1function _toArray(t){return _arrayWithHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableRest()}function _construct(t,e,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct.bind():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 _defineProperty2(t,e,n){return(e=_toPropertyKey(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){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,a,o,s=[],u=!0,c=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return s}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){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 a,o=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function _get(){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=_superPropBase(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}}).apply(this,arguments)}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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e)}function _setPrototypeOf(t,e){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():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){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t)}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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():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;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,_toPropertyKey(r.key),r)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==typeof e?e:String(e)}function _toPrimitive(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"/6Yf":function(t,e,n){"use strict";function r(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=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 i(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function a(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var o=n("qOnz");n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return c}));var s=function(){function t(t,e,n){this.name=t,this.instanceFactory=e,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}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.prototype.setInstanceCreatedCallback=function(t){return this.onInstanceCreated=t,this},t}(),u=function(){function t(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}return t.prototype.get=function(t){var e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){var n=new o.a;if(this.instancesDeferred.set(e,n),this.isInitialized(e)||this.shouldAutoInitialize())try{var r=this.getOrInitializeService({instanceIdentifier:e});r&&n.resolve(r)}catch(i){}}return this.instancesDeferred.get(e).promise},t.prototype.getImmediate=function(t){var e,n=this.normalizeInstanceIdentifier(null==t?void 0:t.identifier),r=null!==(e=null==t?void 0:t.optional)&&void 0!==e&&e;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error("Service "+this.name+" is not available")}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(i){if(r)return null;throw i}},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");
1if(this.component=t,this.shouldAutoInitialize()){if(function(t){return"EAGER"===t.instantiationMode}(t))try{this.getOrInitializeService({instanceIdentifier:"[DEFAULT]"})}catch(h){}try{for(var a=r(this.instancesDeferred.entries()),o=a.next();!o.done;o=a.next()){var s=i(o.value,2),u=s[1],c=this.normalizeInstanceIdentifier(s[0]);try{var l=this.getOrInitializeService({instanceIdentifier:c});u.resolve(l)}catch(h){}}}catch(f){e={error:f}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}}},t.prototype.clearInstance=function(t){void 0===t&&(t="[DEFAULT]"),this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)},t.prototype.delete=function(){return t=this,n=function(){var t;return function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(u){s=[6,u],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}(this,(function(e){switch(e.label){case 0:return t=Array.from(this.instances.values()),[4,Promise.all(a(a([],i(t.filter((function(t){return"INTERNAL"in t})).map((function(t){return t.INTERNAL.delete()})))),i(t.filter((function(t){return"_delete"in t})).map((function(t){return t._delete()})))))];case 1:return e.sent(),[2]}}))},new((e=void 0)||(e=Promise))((function(r,i){function a(t){try{s(n.next(t))}catch(e){i(e)}}function o(t){try{s(n.throw(t))}catch(e){i(e)}}function s(t){var n;t.done?r(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,o)}s((n=n.apply(t,[])).next())}));var t,e,n},t.prototype.isComponentSet=function(){return null!=this.component},t.prototype.isInitialized=function(t){return void 0===t&&(t="[DEFAULT]"),this.instances.has(t)},t.prototype.getOptions=function(t){return void 0===t&&(t="[DEFAULT]"),this.instancesOptions.get(t)||{}},t.prototype.initialize=function(t){var e,n;void 0===t&&(t={});var a=t.options,o=void 0===a?{}:a,s=this.normalizeInstanceIdentifier(t.instanceIdentifier);if(this.isInitialized(s))throw Error(this.name+"("+s+") has already been initialized");if(!this.isComponentSet())throw Error("Component "+this.name+" has not been registered yet");var u=this.getOrInitializeService({instanceIdentifier:s,options:o});try{for(var c=r(this.instancesDeferred.entries()),l=c.next();!l.done;l=c.next()){var h=i(l.value,2),f=h[1];s===this.normalizeInstanceIdentifier(h[0])&&f.resolve(u)}}catch(d){e={error:d}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}return u},t.prototype.onInit=function(t,e){var n,r=this.normalizeInstanceIdentifier(e),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(t),this.onInitCallbacks.set(r,i);var a=this.instances.get(r);return a&&t(a,r),function(){i.delete(t)}},t.prototype.invokeOnInitCallbacks=function(t,e){var n,i,a=this.onInitCallbacks.get(e);if(a)try{for(var o=r(a),s=o.next();!s.done;s=o.next()){var u=s.value;try{u(t,e)}catch(c){}}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}},t.prototype.getOrInitializeService=function(t){var e,n=t.instanceIdentifier,r=t.options,i=void 0===r?{}:r,a=this.instances.get(n);if(!a&&this.component&&(a=this.component.instanceFactory(this.container,{instanceIdentifier:(e=n,"[DEFAULT]"===e?void 0:e),options:i}),this.instances.set(n,a),this.instancesOptions.set(n,i),this.invokeOnInitCallbacks(a,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,a)}catch(o){}return a||null},t.prototype.normalizeInstanceIdentifier=function(t){return void 0===t&&(t="[DEFAULT]"),this.component?this.component.multipleInstances?t:"[DEFAULT]":t},t.prototype.shouldAutoInitialize=function(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode},t}(),c=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 u(t,this);return this.providers.set(t,e),e},t.prototype.getProviders=function(){return Array.from(this.providers.values())},t}()},"/uUt":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e){return function(n){return n.lift(new a(t,e))}}var a=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 o(t,this.compare,this.keySelector))}}]),t}(),o=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).keySelector=i,a.hasKey=!1,"function"==typeof r&&(a.compare=r),a}
1return _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}(r.a)},0:function(t,e,n){t.exports=n("zUnb")},"0EUg":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("bHdf");function i(){return Object(r.a)(1)}},"2QA8":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("XNiG"),i=n("9ppp"),a=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this))._value=t,r}return _createClass(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value}},{key:"next",value:function(t){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=t)}}]),n}(r.a)},"2fFW":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){var e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"3E0/":function(t,e,n){"use strict";var r=n("D0XW"),i=n("7o/Q"),a=n("WMd4");function o(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a,i=(e=t)instanceof Date&&!isNaN(+e)?+t-n.now():Math.abs(t);return function(t){return t.lift(new s(i,n))}}n.d(e,"a",(function(){return o}));var s=function(){function t(e,n){_classCallCheck(this,t),this.delay=e,this.scheduler=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.delay,this.scheduler))}}]),t}(),u=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).delay=r,a.scheduler=i,a.queue=[],a.active=!1,a.errored=!1,a}return _createClass(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new c(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(a.a.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(a.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var a=Math.max(0,n[0].time-r.now());this.schedule(t,a)}else this.unsubscribe(),e.active=!1}}]),n}(i.a),c=_createClass((function t(e,n){_classCallCheck(this,t),this.time=e,this.notification=n}))},"3N8a":function(t,e,n){"use strict";var r=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}(n("quSY").a);n.d(e,"a",(function(){return i}));var 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,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);
1this.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}(r)},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",(function(){return et})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return _t})),n.d(e,"d",(function(){return C})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return _})),n.d(e,"g",(function(){return w})),n.d(e,"h",(function(){return st})),n.d(e,"i",(function(){return gt})),n.d(e,"j",(function(){return mt})),n.d(e,"k",(function(){return E})),n.d(e,"l",(function(){return yt}));var r=n("fXoL"),i=n("ofXK"),a=n("cp0P"),o=n("Cfvw"),s=n("lJxs"),u=new r.w("NgValueAccessor"),c={provide:u,useExisting:Object(r.gb)((function(){return l})),multi:!0},l=function(){var t=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,"checked",t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.M),r.cc(r.o))},t.\u0275dir=r.Xb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&r.qc("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[r.Ob([c])]}),t}(),h={provide:u,useExisting:Object(r.gb)((function(){return d})),multi:!0},f=new r.w("CompositionEventMode"),d=function(){var t=function(){function t(e,n,r){var a;_classCallCheck(this,t),this._renderer=e,this._elementRef=n,this._compositionMode=r,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(a=Object(i.B)()?Object(i.B)().getUserAgent():"",!/android (\d+)/.test(a.toLowerCase())))}return _createClass(t,[{key:"writeValue",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}},{key:"_handleInput",value:function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.M),r.cc(r.o),r.cc(f,8))},t.\u0275dir=r.Xb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&r.qc("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[r.Ob([h])]}),t}(),p=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}},{key:"reset",value:function(t){this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Xb({type:t}),t}(),g=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(p);return t.\u0275fac=function(e){return y(e||t)},t.\u0275dir=r.Xb({type:t,features:[r.Mb]}),t}(),y=r.kc(g);function v(){throw new Error("unimplemented")}var m=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return _createClass(n,[{key:"validator",get:function(){return v()}},{key:"asyncValidator",get:function(){return v()}}]),n}(p),b=function(){function t(e){_classCallCheck(this,t),this._cd=e}return _createClass(t,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),t}(),_=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){return _classCallCheck(this,n),e.call(this,t)}return _createClass(n)}(b);return t.\u0275fac=function(e){return new(e||t)(r.cc(m,2))},t.\u0275dir=r.Xb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Tb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.Mb]}),t}(),w=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){return _classCallCheck(this,n),e.call(this,t)}return _createClass(n)}(b);return t.\u0275fac=function(e){return new(e||t)(r.cc(g,2))},t.\u0275dir=r.Xb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Tb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.Mb]}),t}();function k(t){return null==t||0===t.length}var C=new r.w("NgValidators"),O=new r.w("NgAsyncValidators"),S=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,E=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"min",value:function(t){return function(e){if(k(e.value)||k(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}},{key:"max",value:function(t){return function(e){if(k(e.value)||k(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}},{key:"required",value:function(t){return k(t.value)?{required:!0}:null}},{key:"requiredTrue",value:function(t){return!0===t.value?null:{required:!0}}},{key:"email",value:function(t){return k(t.value)?null:S.test(t.value)?null:{email:!0}}},{key:"minLength",value:function(t){return function(e){if(k(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}}},{key:"maxLength",value:function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{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(k(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(A);return 0==e.length?null:function(t){return M(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(A);return 0==e.length?null:function(t){var n=function(t,e){return e.map((function(e){return e(t)}))}(t,e).map(T);return Object(a.a)(n).pipe(Object(s.a)(M))}}}]),t}();function A(t){return null!=t}function T(t){var e=Object(r.Fb)(t)?Object(o.a)(t):t;if(!Object(r.Eb)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function M(t){var e={};return t.forEach((function(t){e=null!=t?Object.assign(Object.assign({},e),t):e})),0===Object.keys(e).length?null:e}function I(t){return t.validate?function(e){return t.validate(e)}:t}function x(t){return t.validate?function(e){return t.validate(e)}:t}var j={provide:u,useExisting:Object(r.gb)((function(){return L})),multi:!0},L=function(){var t=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",null==t?"":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}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.M),r.cc(r.o))},t.\u0275dir=r.Xb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&r.qc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r.Ob([j])]}),t}(),P={provide:u,useExisting:Object(r.gb)((function(){return D})),multi:!0},R=function(){var t=function(){function t(){_classCallCheck(this,t),this._accessors=[]}return _createClass(t,[{key:"add",value:function(t,e){this._accessors.push([t,e])}},{key:"remove",value:function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}},{key:"select",value:function(t){var e=this;
1this._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}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}(),D=function(){var t=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(m),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: <input type="radio" formControlName="food" name="food">\n ')}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.M),r.cc(r.o),r.cc(R),r.cc(r.x))},t.\u0275dir=r.Xb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&r.qc("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.Ob([P])]}),t}(),z={provide:u,useExisting:Object(r.gb)((function(){return N})),multi:!0},N=function(){var t=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}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.M),r.cc(r.o))},t.\u0275dir=r.Xb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&r.qc("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[r.Ob([z])]}),t}(),V='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',F='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',H={provide:u,useExisting:Object(r.gb)((function(){return B})),multi:!0},B=function(){var t=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=r.Gb}
1return _createClass(t,[{key:"compareWith",set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(t)));this._compareWith=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?"".concat(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<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null}},{key:"_getOptionValue",value:function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.M),r.cc(r.o))},t.\u0275dir=r.Xb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&r.qc("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.Ob([H])]}),t}(),U={provide:u,useExisting:Object(r.gb)((function(){return q})),multi:!0},q=function(){var t=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=r.Gb}
1return _createClass(t,[{key:"compareWith",set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received ".concat(JSON.stringify(t)));this._compareWith=t}},{key:"writeValue",value:function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map((function(t){return n._getOptionId(t)}));e=function(t,e){t._setSelected(r.indexOf(e.toString())>-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,a=0;a<i.length;a++){var o=i.item(a),s=e._getOptionValue(o.value);r.push(s)}else for(var u=n.options,c=0;c<u.length;c++){var l=u.item(c);if(l.selected){var h=e._getOptionValue(l.value);r.push(h)}}e.value=r,t(r)}}},{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(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}},{key:"_getOptionId",value:function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null}},{key:"_getOptionValue",value:function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.M),r.cc(r.o))},t.\u0275dir=r.Xb({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&r.qc("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[r.Ob([U])]}),t}();function W(t,e){return[].concat(_toConsumableArray(e.path),[t])}function G(t,e){t||Y(e,"Cannot find control with"),e.valueAccessor||Y(e,"No value accessor for form control with"),t.validator=E.compose([t.validator,e.validator]),t.asyncValidator=E.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange((function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&K(t,e)}))}(t,e),function(t,e){t.registerOnChange((function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}))}(t,e),function(t,e){e.valueAccessor.registerOnTouched((function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&K(t,e),"submit"!==t.updateOn&&t.markAsTouched()}))}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange((function(t){e.valueAccessor.setDisabledState(t)})),e._rawValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))})),e._rawAsyncValidators.forEach((function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange((function(){return t.updateValueAndValidity()}))}))}function K(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Y(t,e){var n;throw n=t.path.length>1?"path: '".concat(t.path.join(" -> "),"'"):t.path[0]?"name: '".concat(t.path,"'"):"unspecified name attribute",new Error("".concat(e," ").concat(n))}function Q(t){return null!=t?E.compose(t.map(I)):null}function X(t){return null!=t?E.composeAsync(t.map(x)):null}var Z=[l,N,L,B,q,D];function $(t){var e=tt(t)?t.validators:t;return Array.isArray(e)?Q(e):e||null}function J(t,e){var n=tt(e)?e.asyncValidators:t;return Array.isArray(n)?X(n):n||null}function tt(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var et=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:"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:"setValidators",value:function(t){this.validator=$(t)}},{key:"setAsyncValidators",value:function(t){this.asyncValidator=J(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}
vendor: 4,467 bytes, line 1
1),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=T(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 rt?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof it&&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:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}}
1,{key:"_initObservables",value:function(){this.valueChanges=new r.q,this.statusChanges=new r.q}},{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){tt(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}]),t}(),nt=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,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(t=e.call(this,$(i),J(a,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}(et),rt=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,$(r),J(i,r))).controls=t,a._initObservables(),a._setUpdateStrategy(r),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}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.updateV
1alueAndValidity(),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 nt?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);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Mu
1st supply a value for form control with name: '".concat(n,"'."))}))}}]),n}(et),it=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,$(r),J(i,r))).controls=t,a._initObservables(),a._setUpdateStrategy(r),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),a}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:"length",get:function(){return this.controls.length}},{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 nt?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 ".concat(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("Mu
1st 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)}}]),n}(et),at={provide:g,useExisting:Object(r.gb)((function(){return st}))},ot=Promise.resolve(null),st=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this)).submitted=!1,a._directives=[],a.ngSubmit=new r.q,a.form=new rt({},Q(t),X(i)),a}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{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}},{key:"addControl",value:function(t){var e=this;ot.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),G(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;ot.then((function(){var n,r,i,a=e._findContainer(t.path);a&&a.removeControl(t.name),n=e._directives,r=t,(i=n.indexOf(r))>-1&&n.splice(i,1)}))}},{key:"addFormGroup",value:function(t){var e=this;ot.then((function(){var n=e._findContainer(t.path),r=new rt({});(function(t,e){null==t&&Y(e,"Cannot find control with"),t.validator=E.compose([t.validator,e.validator]),t.asyncValidator=E.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(t){var e=this;ot.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;ot.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,e=this._directives,this.form._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})),this.ngSubmit.emit(t),!1;var e}},{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}}]),n}(g);return t.\u0275fac=function(e){return new(e||t)(r.cc(C,10),r.cc(O,10))},t.\u0275dir=r.Xb({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&r.qc("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.Ob([at]),r.Mb]}),t}(),ut=function(){var t=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:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return W(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 Q(this._validators)}},{key:"asyncValidator",get:function(){return X(this._asyncValidators)}},{key:"_checkParentType",value:function(){}}]),n}(g);return t.\u0275fac=function(e){return ct(e||t)},t.\u0275dir=r.Xb({type:t,features:[r.Mb]}),t}(),ct=r.kc(ut),lt=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 \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')}},{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(V,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(F))}},{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: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}},{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(V,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(F))}}]),t}(),ht={provide:g,useExisting:Object(r.gb)((function(){return ft}))}
1,ft=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this))._parent=t,a._validators=r,a._asyncValidators=i,a}return _createClass(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof st||lt.modelGroupParentException()}}]),n}(ut);return t.\u0275fac=function(e){return new(e||t)(r.cc(g,5),r.cc(C,10),r.cc(O,10))},t.\u0275dir=r.Xb({type:t,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[r.Ob([ht]),r.Mb]}),t}(),dt={provide:m,useExisting:Object(r.gb)((function(){return gt}))},pt=Promise.resolve(null),gt=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i,a,o){var s;return _classCallCheck(this,n),(s=e.call(this)).control=new nt,s._registered=!1,s.update=new r.q,s._parent=t,s._rawValidators=i||[],s._rawAsyncValidators=a||[],s.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Y(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 a;e.constructor===d?n=e:(a=e,Z.some((function(t){return a.constructor===t}))?(r&&Y(t,"More than one built-in value accessor matches form control with"),r=e):(i&&Y(t,"More than one custom value accessor matches form control with"),i=e))})),i||r||n||(Y(t,"No valid value accessor for form control with"),null)}(_assertThisInitialized(s),o),s}return _createClass(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(r.Gb)(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?W(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Q(this._rawValidators)}},{key:"asyncValidator",get:function(){return X(this._rawAsyncValidators)}},{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(){G(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 ft)&&this._parent instanceof ut?lt.formGroupNameException():this._parent instanceof ft||this._parent instanceof st||lt.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||lt.missingNameException()}},{key:"_updateValue",value:function(t){var e=this;pt.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;pt.then((function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()}))}}]),n}(m);return t.\u0275fac=function(e){return new(e||t)(r.cc(g,9),r.cc(C,10),r.cc(O,10),r.cc(u,10))},t.\u0275dir=r.Xb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.Ob([dt]),r.Mb,r.Nb]}),t}(),yt=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Xb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),vt={provide:C,useExisting:Object(r.gb)((function(){return mt})),multi:!0},mt=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}},{key:"validate",value:function(t){return this.required?E.required(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Xb({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&r.Qb("required",e.required?"":null)},inputs:{required:"required"},features:[r.Ob([vt])]}),t}(),bt=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275mod=r.ac({type:t}),t.\u0275inj=r.Zb({factory:function(e){return new(e||t)}}),t}(),_t=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275mod=r.ac({type:t}),t.\u0275inj=r.Zb({factory:function(e){return new(e||t)},providers:[R],imports:[bt]}),t}()},"3UD+":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=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}()},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("ZUHj"),i=n("l7GE"),a=n("51Dv"),o=n("lJxs"),s=n("Cfvw");function u(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(u((function(n,r){return Object(s.a)(t(n,r)).pipe(Object(o.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new c(t,n))})}var c=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 l(t,this.project,this.concurrent))}}]),t}(),l=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i,a=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=a,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(e,t,n)}},{key:"_innerSub",value:function(t,e,n){var i=new a.a(this,e,n),o=this.destination;o.add(i);var s=Object(r.a)(this,t,void 0,void 0,i);s!==i&&o.add(s)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(t,e,n,r,i){this.destination.next(e)}},{key:"notifyComplete",value:function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(i.a)},"51Dv":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this)).parent=t,a.outerValue=r,a.outerIndex=i,a.index=0,a}return _createClass(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a)},"6KbF":function(t,e,n){"use strict";n.d(e,"c",(function(){return o}
1)),n.d(e,"h",(function(){return s})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f})),n.d(e,"g",(function(){return d})),n.d(e,"f",(function(){return p}));var r=n("fXoL");function i(){throw Error("Host already has a portal attached")}var a=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()&&i(),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:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),t}(),o=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;return _classCallCheck(this,n),(o=e.call(this)).component=t,o.viewContainerRef=r,o.injector=i,o.componentFactoryResolver=a,o}return _createClass(n)}(a),s=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this)).templateRef=t,a.viewContainerRef=r,a.context=i,a}return _createClass(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{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)}}]),n}(a),u=function(){function t(){_classCallCheck(this,t),this._isDisposed=!1}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()&&i(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof o?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof s?(this._attachedPortal=t,this.attachTemplatePortal(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}(),c=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;return _classCallCheck(this,n),(o=e.call(this)).outletElement=t,o._componentFactoryResolver=r,o._appRef=i,o._defaultInjector=a,o}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.detectChanges(),r.rootNodes.forEach((function(t){return e.outletElement.appendChild(t)})),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}(u),l=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(c),h=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){return _classCallCheck(this,n),e.call(this,t,r)}return _createClass(n)}(s);return t.\u0275fac=function(e){return new(e||t)(r.cc(r.U),r.cc(r.bb))},t.\u0275dir=r.Xb({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[r.Mb]}),t}(),f=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,i){var a;return _classCallCheck(this,n),(a=e.call(this))._componentFactoryResolver=t,a._viewContainerRef
1=i,a._isInitialized=!1,a.attached=new r.q,a}return _createClass(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&_get(_getPrototypeOf(n.prototype),"detach",this).call(this),t&&_get(_getPrototypeOf(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){_get(_getPrototypeOf(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,r=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),i=e.createComponent(r,e.length,t.injector||e.injector);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return i.destroy()})),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var r=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return _get(_getPrototypeOf(n.prototype),"setDisposeFn",this).call(this,(function(){return e._viewContainerRef.clear()})),this._attachedPortal=t,this._attachedRef=r,this.attached.emit(r),r}}]),n}(u);return t.\u0275fac=function(e){return new(e||t)(r.cc(r.k),r.cc(r.bb))},t.\u0275dir=r.Xb({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.Mb]}),t}(),d=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275mod=r.ac({type:t}),t.\u0275inj=r.Zb({factory:function(e){return new(e||t)}}),t}(),p=function(){function t(e,n){_classCallCheck(this,t),this._parentInjector=e,this._customTokens=n}return _createClass(t,[{key:"get",value:function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)}}]),t}()},"7Hc7":function(t,e,n){"use strict";var r=1,i=Promise.resolve(),a={};function o(t){return t in a&&(delete a[t],!0)}var s=function(t){var e=r++;return a[e]=!0,i.then((function(){return o(e)&&t()})),e},u=function(t){o(t)},c=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=s(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&&(u(e),t.scheduled=void 0)}}]),n}(n("3N8a").a),l=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<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}}}]),n}(n("IjjT").a);n.d(e,"a",(function(){return h}));var h=new l(c)},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("n6bG"),i=n("gRHU"),a=n("quSY"),o=n("2QA8"),s=n("2fFW"),u=n("NJ4a"),c=function(t,e){_inherits(r,t);var n=_createSuper(r);function r(t,e,a){var o;switch(_classCallCheck(this,r),(o=n.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=i.a;break;case 1:if(!t){o.destination=i.a;break}if("object"==typeof t){t instanceof r?(o.syncErrorThrowable=t.syncErrorThrowable,o.destination=t,t.add(_assertThisInitialized(o))):(o.syncErrorThrowable=!0,o.destination=new l(_assertThisInitialized(o),t));break}default:o.syncErrorThrowable=!0,o.destination=new l(_assertThisInitialized(o),t,e,a)}return o}return _createClass(r,[{key:e,value:function(){return this}},{key:"next",value:function(t){this.isStopped||this._next(t)}},{key:"error",value:function(t){this.isStopped||(this.isStopped=!0,this._error(t))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(r.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(t){this.destination.next(t)}},{key:"_error",value:function(t){this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}],[{key:"create",value:function(t,e,n){var i=new r(t,e,n);return i.syncErrorThrowable=!1,i}}]),r}(a.a,o.a),l=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,a,o,s){var u,c;_classCallCheck(this,n),(u=e.call(this))._parentSubscriber=t;var l=_assertThisInitialized(u);return Object(r.a)(a)?c=a:a&&(c=a.next,o=a.error,s=a.complete,a!==i.a&&(l=Object.create(a),Object(r.a)(l.unsubscribe)&&u.add(l.unsubscribe.bind(l)),l.unsubscribe=u.unsubscribe.bind(_assertThisInitialized(u)))),u._context=l,u._next=c,u._error=o,u._complete=s,u}return _createClass(n,[{key:"next",value:function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}},{key:"error",value:function(t){if(!this.isStopped){var e=this._parentSubscriber,n=s.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u.a)(t)}}}},{key:"complete",value:function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};s.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw n;Object(u.a)(n)}}},{key:"__tryOrSetError",value:function(t,e,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return s.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(u.a)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}]),n}(c)},"9ppp":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},Cfvw:function(t,e,n){"use strict";var r=n("HDdC"),i=n("SeVD"),a=n("quSY"),o=n("kJWO"),s=n("jZKg"),u=n("Lhse"),c=n("c2HN"),l=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a((function(n){var r=new a.a;return r.add(e.schedule((function(){var i=t[o.a]();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()}
1)))}}))}))),r}))}(t,e);if(Object(c.a)(t))return function(t,e){return new r.a((function(n){var r=new a.a;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(Object(l.a)(t))return Object(s.a)(t,e);if(function(t){return t&&"function"==typeof t[u.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a((function(n){var r,i=new a.a;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(e.schedule((function(){r=t[u.a](),i.add(e.schedule((function(){if(!n.closed){var t,e;try{var i=r.next();t=i.value,e=i.done}catch(a){return void n.error(a)}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 r.a?t:new r.a(Object(i.a)(t))}n.d(e,"a",(function(){return h}))},D0XW:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("3N8a"),i=new(n("IjjT").a)(r.a)},DH7j:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},EY2u:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var r=n("HDdC"),i=new r.a((function(t){return t.complete()}));function a(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):i}},GyhO:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("LRne"),i=n("0EUg");function a(){return Object(i.a)()(Object(r.a).apply(void 0,arguments))}},HDdC:function(t,e,n){"use strict";var r=n("7o/Q"),i=n("2QA8"),a=n("gRHU"),o=n("kJWO"),s=n("mCNh"),u=n("2fFW");n.d(e,"a",(function(){return l}));var c,l=((c=function(t){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(t,e,n){var o=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(a.a)}(t,e,n);if(s.add(o?o.call(s,this.source):this.source||u.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),u.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(t){try{return this._subscribe(t)}catch(e){u.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){var e=t,n=e.closed,i=e.destination,a=e.isStopped;if(n||a)return!1;t=i&&i instanceof r.a?i:null}return!0}(t)?t.error(e):console.warn(e)}}},{key:"forEach",value:function(t,e){var n=this;return new(e=h(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(n){r(n),i&&i.unsubscribe()}}),r,e)}))}},{key:"_subscribe",value:function(t){var e=this.source;return e&&e.subscribe(t)}},{key:t,value:function(){return this}},{key:"pipe",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?this:Object(s.b)(e)(this)}},{key:"toPromise",value:function(t){var e=this;return new(t=h(t))((function(t,n){var r;e.subscribe((function(t){return r=t}),(function(t){return n(t)}),(function(){return t(r)}))}))}}]),e}(o.a)).create=function(t){return new c(t)},c);function h(t){if(t||(t=u.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},"I/3d":function(t,e,n){"use strict";var r=n("fXoL"),i=n("D0XW"),a=n("HDdC"),o=n("Cfvw"),s=n("LRne"),u=n("JX91"),c=n("Zy1z"),l=n("lJxs"),h=n("Kqap"),f=n("/uUt"),d=n("pLZG"),p=n("pxpQ"),g=n("spgP"),y=n("ofXK"),v=n("Jgta"),m=n("zIRd"),b=function(t,e){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function _(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}b(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}
1function w(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{u(r.next(t))}catch(Nd){a(Nd)}}function s(t){try{u(r.throw(t))}catch(Nd){a(Nd)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}u((r=r.apply(t,e||[])).next())}))}function k(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(Nd){s=[6,Nd],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function C(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var O=n("qOnz"),S=n("q/0M"),E=function(t,e){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function A(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}var T,M="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},I=I||{},x=M||self;function j(){}function L(t){var e=typeof t;return"array"==(e="object"!=e?e:t?Array.isArray(t)?"array":e:"null")||"object"==e&&"number"==typeof t.length}function P(t){var e=typeof t;return"object"==e&&null!=t||"function"==e}var R="closure_uid_"+(1e9*Math.random()>>>0),D=0;function z(t,e,n){return t.call.apply(t.bind,arguments)}function N(t,e,n){if(!t)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),t.apply(e,n)}}return function(){return t.apply(e,arguments)}}function V(t,e,n){return(V=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?z:N).apply(null,arguments)}function F(t,e){var n=Array.prototype.slice.call(arguments,1);return function(){var e=n.slice();return e.push.apply(e,arguments),t.apply(this,e)}}function H(t,e){function n(){}n.prototype=e.prototype,t.Z=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.Vb=function(t,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return e.prototype[n].apply(t,i)}}function B(){this.s=this.s,this.o=this.o}var U={};B.prototype.s=!1,B.prototype.na=function(){if(!this.s&&(this.s=!0,this.M(),0)){var t=function(t){return Object.prototype.hasOwnProperty.call(t,R)&&t[R]||(t[R]=++D)}(this);delete U[t]}},B.prototype.M=function(){if(this.o)for(;this.o.length;)this.o.shift()()};var q=Array.prototype.indexOf?function(t,e){return Array.prototype.indexOf.call(t,e,void 0)}:function(t,e){if("string"==typeof t)return"string"!=typeof e||1!=e.length?-1:t.indexOf(e,0);for(var n=0;n<t.length;n++)if(n in t&&t[n]===e)return n;return-1},W=Array.prototype.forEach?function(t,e,n){Array.prototype.forEach.call(t,e,n)}:function(t,e,n){for(var r=t.length,i="string"==typeof t?t.split(""):t,a=0;a<r;a++)a in i&&e.call(n,i[a],a,t)};function G(t){return Array.prototype.concat.apply([],arguments)}function K(t){var e=t.length;if(0<e){for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}return[]}function Y(t){return/^[\s\xa0]*$/.test(t)}var Q,X=String.prototype.trim?function(t){return t.trim()}:function(t){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(t)[1]};function Z(t,e){return-1!=t.indexOf(e)}function $(t,e){return t<e?-1:t>e?1:0}t:{var J=x.navigator;if(J){var tt=J.userAgent;if(tt){Q=tt;break t}}Q=""}function et(t,e,n){for(var r in t)e.call(n,t[r],r,t)}function nt(t){var e={};for(var n in t)e[n]=t[n];return e}var rt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
1ing toString valueOf".split(" ");function it(t,e){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])t[n]=r[n];for(var a=0;a<rt.length;a++)n=rt[a],Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}}function at(t){return at[" "](t),t}at[" "]=j;var ot,st,ut=Z(Q,"Opera"),ct=Z(Q,"Trident")||Z(Q,"MSIE"),lt=Z(Q,"Edge"),ht=lt||ct,ft=Z(Q,"Gecko")&&!(Z(Q.toLowerCase(),"webkit")&&!Z(Q,"Edge"))&&!(Z(Q,"Trident")||Z(Q,"MSIE"))&&!Z(Q,"Edge"),dt=Z(Q.toLowerCase(),"webkit")&&!Z(Q,"Edge");function pt(){var t=x.document;return t?t.documentMode:void 0}t:{var gt="",yt=(st=Q,ft?/rv:([^\);]+)(\)|;)/.exec(st):lt?/Edge\/([\d\.]+)/.exec(st):ct?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(st):dt?/WebKit\/(\S+)/.exec(st):ut?/(?:Version)[ \/]?(\S+)/.exec(st):void 0);if(yt&&(gt=yt?yt[1]:""),ct){var vt=pt();if(null!=vt&&vt>parseFloat(gt)){ot=String(vt);break t}}ot=gt}var mt={},bt=x.document&&ct&&(pt()||parseInt(ot,10))||void 0,_t=function(){if(!x.addEventListener||!Object.defineProperty)return!1;var t=!1,e=Object.defineProperty({},"passive",{get:function(){t=!0}});try{x.addEventListener("test",j,e),x.removeEventListener("test",j,e)}catch(n){}return t}();function wt(t,e){this.type=t,this.g=this.target=e,this.defaultPrevented=!1}function kt(t,e){if(wt.call(this,t?t.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,t){var n=this.type=t.type,r=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:null;if(this.target=t.target||t.srcElement,this.g=e,e=t.relatedTarget){if(ft){t:{try{at(e.nodeName);var i=!0;break t}catch(a){}i=!1}i||(e=null)}}else"mouseover"==n?e=t.fromElement:"mouseout"==n&&(e=t.toElement);this.relatedTarget=e,r?(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=void 0!==t.clientX?t.clientX:t.pageX,this.clientY=void 0!==t.clientY?t.clientY:t.pageY,this.screenX=t.screenX||0,this.screenY=t.screenY||0),this.button=t.button,this.key=t.key||"",this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.pointerId=t.pointerId||0,this.pointerType="string"==typeof t.pointerType?t.pointerType:Ct[t.pointerType]||"",this.state=t.state,this.i=t,t.defaultPrevented&&kt.Z.h.call(this)}}wt.prototype.h=function(){this.defaultPrevented=!0},H(kt,wt);var Ct={2:"touch",3:"pen",4:"mouse"};kt.prototype.h=function(){kt.Z.h.call(this);var t=this.i;t.preventDefault?t.preventDefault():t.returnValue=!1};var Ot="closure_listenable_"+(1e6*Math.random()|0),St=0;function Et(t,e,n,r,i){this.listener=t,this.proxy=null,this.src=e,this.type=n,this.capture=!!r,this.ia=i,this.key=++St,this.ca=this.fa=!1}function At(t){t.ca=!0,t.listener=null,t.proxy=null,t.src=null,t.ia=null}function Tt(t){this.src=t,this.g={},this.h=0}function Mt(t,e){var n=e.type;if(n in t.g){var r,i=t.g[n],a=q(i,e);(r=0<=a)&&Array.prototype.splice.call(i,a,1),r&&(At(e),0==t.g[n].length&&(delete t.g[n],t.h--))}}function It(t,e,n,r){for(var i=0;i<t.length;++i){var a=t[i];if(!a.ca&&a.listener==e&&a.capture==!!n&&a.ia==r)return i}return-1}Tt.prototype.add=function(t,e,n,r,i){var a=t.toString();(t=this.g[a])||(t=this.g[a]=[],this.h++);var o=It(t,e,r,i);return-1<o?(e=t[o],n||(e.fa=!1)):((e=new Et(e,this.src,a,!!r,i)).fa=n,t.push(e)),e};var xt="closure_lm_"+(1e6*Math.random()|0),jt={};function Lt(t,e,n,r,i){if(r&&r.once)return function t(e,n,r,i,a){if(Array.isArray(n)){for(var o=0;o<n.length;o++)t(e,n[o],r,i,a);return null}return r=Ft(r),e&&e[Ot]?e.O(n,r,P(i)?!!i.capture:!!i,a):Pt(e,n,r,!0,i,a)}(t,e,n,r,i);if(Array.isArray(e)){for(var a=0;a<e.length;a++)Lt(t,e[a],n,r,i);return null}return n=Ft(n),t&&t[Ot]?t.N(e,n,P(r)?!!r.capture:!!r,i):Pt(t,e,n,!1,r,i)}function Pt(t,e,n,r,i,a){if(!e)throw Error("Invalid event type");var o=P(i)?!!i.capture:!!i,s=Nt(t);if(s||(t[xt]=s=new Tt(t)),(n=s.add(e,n,r,o,a)).proxy)return n;if(r=function(){var t=zt;return function e(n){return t.call(e.src,e.listener,n)}}(),n.proxy=r,r.src=t,r.listener=n,t.addEventListener)_t||(i=o),void 0===i&&(i=!1),t.addEventListener(e.toString(),r,i);else if(t.attachEvent)t.attachEvent(Dt(e.toString()),r);else{if(!t.addListener||!t.removeListener)throw Error("addEventListener and attachEvent are unavailable.");t.addListener(r)}return n}function Rt(t){if("number"!=typeof t&&t&&!t.ca){var e=t.src;if(e&&e[Ot])Mt(e.i,t);else{var n=t.type,r=t.proxy;e.removeEventListener?e.removeEventListener(n,r,t.capture):e.detachEvent?e.detachEvent(Dt(n),r):e.addListener&&e.removeListener&&e.removeListener(r),(n=Nt(e))?(Mt(n,t),0==n.h&&(n.src=null,e[xt]=null)):At(t)}}}function Dt(t){return t in jt?jt[t]:jt[t]="on"+t}function zt(t,e){if(t.ca)t=!0;else{e=new kt(e,this);var n=t.listener,r=t.ia||t.src;t.fa&&Rt(t),t=n.call(r,e)}return t}function Nt(t){return(t=t[xt])instanceof Tt?t:null}var Vt="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ft(t){return"function"==typeof t?t:(t[Vt]||(t[Vt]=function(e){return t.handleEvent(e)}),t[Vt])}function Ht(){B.call(this),this.i=new Tt(this),this.P=this,this.I=null}function Bt(t,e){var n,r=t.I;if(r)for(n=[];r;r=r.I)n.push(r);if(t=t.P,r=e.type||e,"string"==typeof e)e=new wt(e,t);else if(e instanceof wt)e.target=e.target||t;else{var i=e;it(e=new wt(r,t),i)}if(i=!0,n)for(var a=n.length-1;0<=a;a--){var o=e.g=n[a];i=Ut(o,r,!0,e)&&i}if(i=Ut(o=e.g=t,r,!0,e)&&i,i=Ut(o,r,!1,e)&&i,n)for(a=0;a<n.length;a++)i=Ut(o=e.g=n[a],r,!1,e)&&i}function Ut(t,e,n,r){if(!(e=t.i.g[String(e)]))return!0;e=e.concat();for(var i=!0,a=0;a<e.length;++a){var o=e[a];if(o&&!o.ca&&o.capture==n){var s=o.listener,u=o.ia||o.src;o.fa&&Mt(t.i,o),i=!1!==s.call(u,r)&&i}}return i&&!r.defaultPrevented}H(Ht,B),Ht.prototype[Ot]=!0,Ht.prototype.removeEventListener=function(t,e,n,r){!function t(e,n,r,i,a){if(Array.isArray(n))for(var o=0;o<n.length;o++)t(e,n[o],r,i,a);
1else i=P(i)?!!i.capture:!!i,r=Ft(r),e&&e[Ot]?(e=e.i,(n=String(n).toString())in e.g&&-1<(r=It(o=e.g[n],r,i,a))&&(At(o[r]),Array.prototype.splice.call(o,r,1),0==o.length&&(delete e.g[n],e.h--))):e&&(e=Nt(e))&&(n=e.g[n.toString()],e=-1,n&&(e=It(n,r,i,a)),(r=-1<e?n[e]:null)&&Rt(r))}(this,t,e,n,r)},Ht.prototype.M=function(){if(Ht.Z.M.call(this),this.i){var t,e=this.i;for(t in e.g){for(var n=e.g[t],r=0;r<n.length;r++)At(n[r]);delete e.g[t],e.h--}}this.I=null},Ht.prototype.N=function(t,e,n,r){return this.i.add(String(t),e,!1,n,r)},Ht.prototype.O=function(t,e,n,r){return this.i.add(String(t),e,!0,n,r)};var qt=x.JSON.stringify;function Wt(){var t=Jt,e=null;return t.g&&(e=t.g,t.g=t.g.next,t.g||(t.h=null),e.next=null),e}var Gt,Kt=function(){function t(){this.h=this.g=null}return t.prototype.add=function(t,e){var n=Yt.get();n.set(t,e),this.h?this.h.next=n:this.g=n,this.h=n},t}(),Yt=new(function(){function t(t,e){this.i=t,this.j=e,this.h=0,this.g=null}return t.prototype.get=function(){var t;return 0<this.h?(this.h--,this.g=(t=this.g).next,t.next=null):t=this.i(),t},t}())((function(){return new Qt}),(function(t){return t.reset()})),Qt=function(){function t(){this.next=this.g=this.h=null}return t.prototype.set=function(t,e){this.h=t,this.g=e,this.next=null},t.prototype.reset=function(){this.next=this.g=this.h=null},t}();function Xt(t){x.setTimeout((function(){throw t}),0)}function Zt(t,e){Gt||function(){var t=x.Promise.resolve(void 0);Gt=function(){t.then(te)}}(),$t||(Gt(),$t=!0),Jt.add(t,e)}var $t=!1,Jt=new Kt;function te(){for(var t;t=Wt();){try{t.h.call(t.g)}catch(n){Xt(n)}var e=Yt;e.j(t),100>e.h&&(e.h++,t.next=e.g,e.g=t)}$t=!1}function ee(t,e){Ht.call(this),this.h=t||1,this.g=e||x,this.j=V(this.kb,this),this.l=Date.now()}function ne(t){t.da=!1,t.S&&(t.g.clearTimeout(t.S),t.S=null)}function re(t,e,n){if("function"==typeof t)n&&(t=V(t,n));else{if(!t||"function"!=typeof t.handleEvent)throw Error("Invalid listener argument");t=V(t.handleEvent,t)}return 2147483647<Number(e)?-1:x.setTimeout(t,e||0)}function ie(t){t.g=re((function(){t.g=null,t.i&&(t.i=!1,ie(t))}),t.j);var e=t.h;t.h=null,t.m.apply(null,e)}H(ee,Ht),(T=ee.prototype).da=!1,T.S=null,T.kb=function(){if(this.da){var t=Date.now()-this.l;0<t&&t<.8*this.h?this.S=this.g.setTimeout(this.j,this.h-t):(this.S&&(this.g.clearTimeout(this.S),this.S=null),Bt(this,"tick"),this.da&&(ne(this),this.start()))}},T.start=function(){this.da=!0,this.S||(this.S=this.g.setTimeout(this.j,this.h),this.l=Date.now())},T.M=function(){ee.Z.M.call(this),ne(this),delete this.g};var ae=function(t){function e(e,n){var r=t.call(this)||this;return r.m=e,r.j=n,r.h=null,r.i=!1,r.g=null,r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}E(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e.prototype.l=function(t){this.h=arguments,this.g?this.i=!0:ie(this)},e.prototype.M=function(){t.prototype.M.call(this),this.g&&(x.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)},e}(B);function oe(t){B.call(this),this.h=t,this.g={}}H(oe,B);var se=[];function ue(t,e,n,r){Array.isArray(n)||(n&&(se[0]=n.toString()),n=se);for(var i=0;i<n.length;i++){var a=Lt(e,n[i],r||t.handleEvent,!1,t.h||t);if(!a)break;t.g[a.key]=a}}function ce(t){et(t.g,(function(t,e){this.g.hasOwnProperty(e)&&Rt(t)}),t),t.g={}}function le(){this.g=!0}function he(t,e,n,r){t.info((function(){return"XMLHTTP TEXT ("+e+"): "+function(t,e){if(!t.g)return e;if(!e)return null;try{var n=JSON.parse(e);if(n)for(t=0;t<n.length;t++)if(Array.isArray(n[t])){var r=n[t];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var a=i[0];if("noop"!=a&&"stop"!=a&&"close"!=a)for(var o=1;o<i.length;o++)i[o]=""}}}return qt(n)}catch(s){return e}}(t,n)+(r?" "+r:"")}))}oe.prototype.M=function(){oe.Z.M.call(this),ce(this)},oe.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},le.prototype.Aa=function(){this.g=!1},le.prototype.info=function(){};var fe={},de=null;function pe(){return de=de||new Ht}function ge(t){wt.call(this,fe.Ma,t)}function ye(t){var e=pe();Bt(e,new ge(e,t))}function ve(t,e){wt.call(this,fe.STAT_EVENT,t),this.stat=e}function me(t){var e=pe();Bt(e,new ve(e,t))}function be(t,e){wt.call(this,fe.Na,t),this.size=e}function _e(t,e){if("function"!=typeof t)throw Error("Fn must not be null and must be a function");return x.setTimeout((function(){t()}),e)}fe.Ma="serverreachability",H(ge,wt),fe.STAT_EVENT="statevent",H(ve,wt),fe.Na="timingevent",H(be,wt);var we={NO_ERROR:0,lb:1,yb:2,xb:3,sb:4,wb:5,zb:6,Ja:7,TIMEOUT:8,Cb:9},ke={qb:"complete",Mb:"success",Ka:"error",Ja:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",tb:"downloadprogress",Ub:"uploadprogress"};function Ce(){}function Oe(){}Ce.prototype.h=null;var Se,Ee={OPEN:"a",pb:"b",Ka:"c",Bb:"d"};function Ae(){wt.call(this,"d")}function Te(){wt.call(this,"c")}function Me(){}function Ie(t,e,n,r){this.l=t,this.j=e,this.m=n,this.X=r||1,this.V=new oe(this),this.P=je,this.W=new ee(t=ht?125:void 0),this.H=null,this.i=!1,this.s=this.A=this.v=this.K=this.F=this.Y=this.B=null,this.D=[],this.g=null,this.C=0,this.o=this.u=null,this.N=-1,this.I=!1,this.O=0,this.L=null,this.aa=this.J=this.$=this.U=!1,this.h=new xe}function xe(){this.i=null,this.g="",this.h=!1}H(Ae,wt),H(Te,wt),H(Me,Ce),Me.prototype.g=function(){return new XMLHttpRequest},Me.prototype.i=function(){return{}},Se=new Me;var je=45e3,Le={},Pe={};function Re(t,e,n){t.K=1,t.v=an($e(e)),t.s=n,t.U=!0,De(t,null)}function De(t,e){t.F=Date.now(),Fe(t),t.A=$e(t.v);var n=t.A,r=t.X;Array.isArray(r)||(r=[String(r)]),mn(n.h,"t",r),t.C=0,n=t.l.H,t.h=new xe,t.g=br(t.l,n?e:null,!t.s),0<t.O&&(t.L=new ae(V(t.Ia,t,t.g),t.O)),ue(t.V,t.g,"readystatechange",t.gb),e=t.H?nt(t.H):{},t.s?(t.u||(t.u="POST"),e["Content-Type"]="application/x-www-form-urlencoded",t.g.ea(t.A,t.u,t.s,e)):(t.u="GET",t.g.ea(t.A,t.u,null,e)),ye(1),function(t,e,n,r,i,a){t.info((function(){if(t.g)if(a)for(var o="",s=a.split("&"),u=0;u<s.length;u++){var c=s[u].split("=");if(1<c.length){var l=c[0];c=c[1];var h=l.split("_");o=2<=h.length&&"type"==h[1]?o+(l+"=")+c+"&":o+(l+"=redacted&")}}else o=null;else o=a;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+e+"\n"+n+"\n"+o}))}(t.j,t.u,t.A,t.m,t.X,t.s)}function ze(t){return!!t.g&&"GET"==t.u&&2!=t.K&&t.l.Ba}function Ne(t,e,n){for(var r,i=!0;!t.I&&t.C<n.length;){if((r=Ve(t,n))==Pe){4==e&&(t.o=4,me(14),i=!1),he(t.j,t.m,null,"[Incomplete Response]");break}if(r==Le){t.o=4,me(15),he(t.j,t.m,n,"[Invalid Chunk]"),i=!1;break}he(t.j,t.m,r,null),We(t,r)}ze(t)&&r!=Pe&&r!=Le&&(t.h.g="",t.C=0),4!=e||0!=n.length||t.h.h||(t.o=1,me(16),i=!1),t.i=t.i&&i,i?0<n.length&&!t.aa&&(t.aa=!0,(e=t.l).g==t&&e.$&&!e.L&&(e.h.info("Great, no buffering proxy detected. Bytes received: "+n.length),hr(e),e.L=!0,me(11))):(he(t.j,t.m,n,"[Invalid Chunked Response]"),qe(t),Ue(t))}function Ve(t,e){var n=t.C,r=e.indexOf("\n",n);return-1==r?Pe:(n=Number(e.substring(n,r)),isNaN(n)?Le:(r+=1)+n>e.length?Pe:(e=e.substr(r,n),t.C=r+n,e))}function Fe(t){t.Y=Date.now()+t.P,He(t,t.P)}function He(t,e){if(null!=t.B)throw Error("WatchDog timer not null");t.B=_e(V(t.eb,t),e)}function Be(t){t.B&&(x.clearTimeout(t.B),t.B=null)}function Ue(t){0==t.l.G||t.I||pr(t.l,t)}function qe(t){Be(t);var e=t.L;e&&"function"==typeof e.na&&e.na(),t.L=null,ne(t.W),ce(t.V),t.g&&(e=t.g,t.g=null,e.abort(),e.na())}function We(t,e){try{var n=t.l;if(0!=n.G&&(n.g==t||Sn(n.i,t)))if(n.I=t.N,!t.J&&Sn(n.i,t)&&3==n.G){try{var r=n.Ca.g.parse(e)}catch(a){r=null}if(Array.isArray(r)&&3==r.length){var i=r;if(0==i[0]){t:if(!n.u){if(n.g){if(!(n.g.F+3e3<t.F))break t;dr(n),nr(n)}lr(n),me(18)}}else n.ta=i[1],0<n.ta-n.U&&37500>i[2]&&n.N&&0==n.A&&!n.v&&(n.v=_e(V(n.ab,n),6e3));if(1>=On(n.i)&&n.ka){try{n.ka()}catch(a){}n.ka=void 0}}else yr(n,11)}else if((t.J||n.g==t)&&dr(n),!Y(e))for(i=n.Ca.g.parse(e),e=0;e<i.length;e++){var a=i[e];if(n.U=a[0],a=a[1],2==n.G)if("c"==a[0]){n.J=a[1],n.la=a[2];var o=a[3];
vendor: 14,770 bytes, line 1
1null!=o&&(n.ma=o,n.h.info("VER="+n.ma));var s=a[4];null!=s&&(n.za=s,n.h.info("SVER="+n.za));var u=a[5];null!=u&&"number"==typeof u&&0<u&&(n.K=r=1.5*u,n.h.info("backChannelRequestTimeoutMs_="+r)),r=n;var c=t.g;if(c){var l=c.g?c.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(l){var h=r.i;!h.g&&(Z(l,"spdy")||Z(l,"quic")||Z(l,"h2"))&&(h.j=h.l,h.g=new Set,h.h&&(En(h,h.h),h.h=null))}if(r.D){var f=c.g?c.g.getResponseHeader("X-HTTP-Session-Id"):null;f&&(r.sa=f,rn(r.F,r.D,f))}}n.G=3,n.j&&n.j.xa(),n.$&&(n.O=Date.now()-t.F,n.h.info("Handshake RTT: "+n.O+"ms"));var d=t;if((r=n).oa=mr(r,r.H?r.la:null,r.W),d.J){An(r.i,d);var p=d,g=r.K;g&&p.setTimeout(g),p.B&&(Be(p),Fe(p)),r.g=d}else cr(r);0<n.l.length&&ar(n)}else"stop"!=a[0]&&"close"!=a[0]||yr(n,7);else 3==n.G&&("stop"==a[0]||"close"==a[0]?"stop"==a[0]?yr(n,7):er(n):"noop"!=a[0]&&n.j&&n.j.wa(a),n.A=0)}ye(4)}catch(a){}}function Ge(t,e){if(t.forEach&&"function"==typeof t.forEach)t.forEach(e,void 0);else if(L(t)||"string"==typeof t)W(t,e,void 0);else{if(t.T&&"function"==typeof t.T)var n=t.T();else if(t.R&&"function"==typeof t.R)n=void 0;else if(L(t)||"string"==typeof t){n=[];for(var r=t.length,i=0;i<r;i++)n.push(i)}else for(i in n=[],r=0,t)n[r++]=i;i=(r=function(t){if(t.R&&"function"==typeof t.R)return t.R();if("string"==typeof t)return t.split("");if(L(t)){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e}for(r in e=[],n=0,t)e[n++]=t[r];return e}(t)).length;for(var a=0;a<i;a++)e.call(void 0,r[a],n&&n[a],t)}}function Ke(t,e){this.h={},this.g=[],this.i=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(t)if(t instanceof Ke)for(n=t.T(),r=0;r<n.length;r++)this.set(n[r],t.get(n[r]));else for(r in t)this.set(r,t[r])}function Ye(t){if(t.i!=t.g.length){for(var e=0,n=0;e<t.g.length;){var r=t.g[e];Qe(t.h,r)&&(t.g[n++]=r),e++}t.g.length=n}if(t.i!=t.g.length){var i={};for(n=e=0;e<t.g.length;)Qe(i,r=t.g[e])||(t.g[n++]=r,i[r]=1),e++;t.g.length=n}}function Qe(t,e){return Object.prototype.hasOwnProperty.call(t,e)}(T=Ie.prototype).setTimeout=function(t){this.P=t},T.gb=function(t){t=t.target;var e=this.L;e&&3==Xn(t)?e.l():this.Ia(t)},T.Ia=function(t){try{if(t==this.g)t:{var e=Xn(this.g),n=this.g.Da(),r=this.g.ba();if(!(3>e)&&(3!=e||ht||this.g&&(this.h.h||this.g.ga()||Zn(this.g)))){this.I||4!=e||7==n||ye(8==n||0>=r?3:2),Be(this);var i=this.g.ba();this.N=i;e:if(ze(this)){var a=Zn(this.g);t="";var o=a.length,s=4==Xn(this.g);if(!this.h.i){if("undefined"==typeof TextDecoder){qe(this),Ue(this);var u="";break e}this.h.i=new x.TextDecoder}for(n=0;n<o;n++)this.h.h=!0,t+=this.h.i.decode(a[n],{stream:s&&n==o-1});a.splice(0,o),this.h.g+=t,this.C=0,u=this.h.g}else u=this.g.ga();if(this.i=200==i,function(t,e,n,r,i,a,o){t.info((function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+e+"\n"+n+"\n"+a+" "+o}))}(this.j,this.u,this.A,this.m,this.X,e,i),this.i){if(this.$&&!this.J){e:{if(this.g){var c,l=this.g;if((c=l.g?l.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!Y(c)){var h=c;break e}}h=null}if(!(i=h)){this.i=!1,this.o=3,me(12),qe(this),Ue(this);break t}he(this.j,this.m,i,"Initial handshake response via X-HTTP-Initial-Response"),this.J=!0,We(this,i)}this.U?(Ne(this,e,u),ht&&this.i&&3==e&&(ue(this.V,this.W,"tick",this.fb),this.W.start())):(he(this.j,this.m,u,null),We(this,u)),4==e&&qe(this),this.i&&!this.I&&(4==e?pr(this.l,this):(this.i=!1,Fe(this)))}else 400==i&&0<u.indexOf("Unknown SID")?(this.o=3,me(12)):(this.o=0,me(13)),qe(this),Ue(this)}}}catch(e){}},T.fb=function(){if(this.g){var t=Xn(this.g),e=this.g.ga();this.C<e.length&&(Be(this),Ne(this,t,e),this.i&&4!=t&&Fe(this))}},T.cancel=function(){this.I=!0,qe(this)},T.eb=function(){this.B=null;var t=Date.now();0<=t-this.Y?(function(t,e){t.info((function(){return"TIMEOUT: "+e}))}(this.j,this.A),2!=this.K&&(ye(3),me(17)),qe(this),this.o=2,Ue(this)):He(this,this.Y-t)},(T=Ke.prototype).R=function(){Ye(this);for(var t=[],e=0;e<this.g.length;e++)t.push(this.h[this.g[e]]);return t},T.T=function(){return Ye(this),this.g.concat()},T.get=function(t,e){return Qe(this.h,t)?this.h[t]:e},T.set=function(t,e){Qe(this.h,t)||(this.i++,this.g.push(t)),this.h[t]=e},T.forEach=function(t,e){for(var n=this.T(),r=0;r<n.length;r++){var i=n[r],a=this.get(i);t.call(e,a,i,this)}};var Xe=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^\\/?#]*)@)?([^\\/?#]*?)(?::([0-9]+))?(?=[\\/?#]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function Ze(t,e){if(this.i=this.s=this.j="",this.m=null,this.o=this.l="",this.g=!1,t instanceof Ze){this.g=void 0!==e?e:t.g,Je(this,t.j),this.s=t.s,tn(this,t.i),en(this,t.m),this.l=t.l,e=t.h;var n=new pn;n.i=e.i,e.g&&(n.g=new Ke(e.g),n.h=e.h),nn(this,n),this.o=t.o}else t&&(n=String(t).match(Xe))?(this.g=!!e,Je(this,n[1]||"",!0),this.s=on(n[2]||""),tn(this,n[3]||"",!0),en(this,n[4]),this.l=on(n[5]||"",!0),nn(this,n[6]||"",!0),this.o=on(n[7]||"")):(this.g=!!e,this.h=new pn(null,this.g))}function $e(t){return new Ze(t)}function Je(t,e,n){t.j=n?on(e,!0):e,t.j&&(t.j=t.j.replace(/:$/,""))}function tn(t,e,n){t.i=n?on(e,!0):e}function en(t,e){if(e){if(e=Number(e),isNaN(e)||0>e)throw Error("Bad port number "+e);t.m=e}else t.m=null}function nn(t,e,n){e instanceof pn?(t.h=e,function(t,e){e&&!t.j&&(gn(t),t.i=null,t.g.forEach((function(t,e){var n=e.toLowerCase();e!=n&&(yn(this,e),mn(this,n,t))}),t)),t.j=e}(t.h,t.g)):(n||(e=sn(e,fn)),t.h=new pn(e,t.g))}function rn(t,e,n){t.h.set(e,n)}function an(t){return rn(t,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),t}function on(t,e){return t?e?decodeURI(t.replace(/%25/g,"%2525")):decodeURIComponent(t):""}function sn(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,un),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function un(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}Ze.prototype.toString=function(){var t=[],e=this.j;e&&t.push(sn(e,cn,!0),":");var n=this.i;return(n||"file"==e)&&(t.push("//"),(e=this.s)&&t.push(sn(e,cn,!0),"@"),t.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.m)&&t.push(":",String(n))),(n=this.l)&&(this.i&&"/"!=n.charAt(0)&&t.push("/"),t.push(sn(n,"/"==n.charAt(0)?hn:ln,!0))),(n=this.h.toString())&&t.push("?",n),(n=this.o)&&t.push("#",sn(n,dn)),t.join("")};var cn=/[#\/\?@]/g,ln=/[#\?:]/g,hn=/[#\?]/g,fn=/[#\?@]/g,dn=/#/g;function pn(t,e){this.h=this.g=null,this.i=t||null,this.j=!!e}function gn(t){t.g||(t.g=new Ke,t.h=0,t.i&&function(t,e){if(t){t=t.split("&");for(var n=0;n<t.length;n++){var r=t[n].indexOf("="),i=null;if(0<=r){var a=t[n].substring(0,r);i=t[n].substring(r+1)}else a=t[n];e(a,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(t.i,(function(e,n){t.add(decodeURIComponent(e.replace(/\+/g," ")),n)})))}function yn(t,e){gn(t),e=bn(t,e),Qe(t.g.h,e)&&(t.i=null,t.h-=t.g.get(e).length,Qe((t=t.g).h,e)&&(delete t.h[e],t.i--,t.g.length>2*t.i&&Ye(t)))}function vn(t,e){return gn(t),e=bn(t,e),Qe(t.g.h,e)}function mn(t,e,n){yn(t,e),0<n.length&&(t.i=null,t.g.set(bn(t,e),K(n)),t.h+=n.length)}function bn(t,e){return e=String(e),t.j&&(e=e.toLowerCase()),e}(T=pn.prototype).add=function(t,e){gn(this),this.i=null,t=bn(this,t);var n=this.g.get(t);return n||this.g.set(t,n=[]),n.push(e),this.h+=1,this},T.forEach=function(t,e){gn(this),this.g.forEach((function(n,r){W(n,(function(n){t.call(e,n,r,this)}),this)}),this)},T.T=function(){gn(this);for(var t=this.g.R(),e=this.g.T(),n=[],r=0;r<e.length;r++)for(var i=t[r],a=0;a<i.length;a++)n.push(e[r]);return n},T.R=function(t){gn(this);var e=[];if("string"==typeof t)vn(this,t)&&(e=G(e,this.g.get(bn(this,t))));else{t=this.g.R();for(var n=0;n<t.length;n++)e=G(e,t[n])}return e},T.set=function(t,e){return gn(this),this.i=null,vn(this,t=bn(this,t))&&(this.h-=this.g.get(t).length),this.g.set(t,[e]),this.h+=1,this},T.get=function(t,e){return t&&0<(t=this.R(t)).length?String(t[0]):e},T.toString=function(){if(this.i)return this.i;if(!this.g)return"";for(var t=[],e=this.g.T(),n=0;n<e.length;n++){var r=e[n],i=encodeURIComponent(String(r));r=this.R(r);for(var a=0;a<r.length;a++){var o=i;""!==r[a]&&(o+="="+encodeURIComponent(String(r[a]))),t.push(o)}}return this.i=t.join("&")};var _n=function(t,e){this.h=t,this.g=e};function wn(t){this.l=t||kn,t=x.PerformanceNavigationTiming?0<(t=x.performance.getEntriesByType("navigation")).length&&("hq"==t[0].nextHopProtocol||"h2"==t[0].nextHopProtocol):!!(x.g&&x.g.Ea&&x.g.Ea()&&x.g.Ea().Zb),this.j=t?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}var kn=10;function Cn(t){return!!t.h||!!t.g&&t.g.size>=t.j}function On(t){return t.h?1:t.g?t.g.size:0}function Sn(t,e){return t.h?t.h==e:!!t.g&&t.g.has(e)}function En(t,e){t.g?t.g.add(e):t.h=e}function An(t,e){t.h&&t.h==e?t.h=null:t.g&&t.g.has(e)&&t.g.delete(e)}function Tn(t){var e,n;if(null!=t.h)return t.i.concat(t.h.D);if(null!=t.g&&0!==t.g.size){var r=t.i;try{for(var i=A(t.g.values()),a=i.next();!a.done;a=i.next())r=r.concat(a.value.D)}catch(o){e={error:o}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return r}return K(t.i)}function Mn(){}function In(){this.g=new Mn}function xn(t,e,n){var r=n||"";try{Ge(t,(function(t,n){var i=t;P(t)&&(i=qt(t)),e.push(r+n+"="+encodeURIComponent(i))}))}catch(Nd){throw e.push(r+"type="+encodeURIComponent("_badmap")),Nd}}function jn(t,e,n,r,i){try{e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null,i(r)}catch(a){}}function Ln(t){this.l=t.$b||null,this.j=t.ib||!1}function Pn(t,e){Ht.call(this),this.D=t,this.u=e,this.m=void 0,this.readyState=Rn,this.status=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.v=new Headers,this.h=null,this.C="GET",this.B="",this.g=!1,this.A=this.j=this.l=null}wn.prototype.cancel=function(){var t,e;if(this.i=Tn(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&0!==this.g.size){try{for(var n=A(this.g.values()),r=n.next();!r.done;r=n.next())r.value.cancel()}catch(i){t={error:i}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}this.g.clear()}},Mn.prototype.stringify=function(t){return x.JSON.stringify(t,void 0)},Mn.prototype.parse=function(t){return x.JSON.parse(t,void 0)},H(Ln,Ce),Ln.prototype.g=function(){return new Pn(this.l,this.j)},Ln.prototype.i=function(t){return function(){return t}}({}),H(Pn,Ht);var Rn=0;function Dn(t){t.j.read().then(t.Sa.bind(t)).catch(t.ha.bind(t))}function zn(t){t.readyState=4,t.l=null,t.j=null,t.A=null,Nn(t)}function Nn(t){t.onreadystatechange&&t.onreadystatechange.call(t)}(T=Pn.prototype).open=function(t,e){if(this.readyState!=Rn)throw this.abort(),Error("Error reopening a connection");this.C=t,this.B=e,this.readyState=1,Nn(this)},T.send=function(t){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.g=!0;var e={headers:this.v,method:this.C,credentials:this.m,cache:void 0};t&&(e.body=t),(this.D||x).fetch(new Request(this.B,e)).then(this.Va.bind(this),this.ha.bind(this))},T.abort=function(){this.response=this.responseText="",this.v=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted."),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,zn(this)),this.readyState=Rn},T.Va=function(t){if(this.g&&(this.l=t,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=t.headers,this.readyState=2,Nn(this)),this.g&&(this.readyState=3,Nn(this),this.g)))if("arraybuffer"===this.responseType)t.arrayBuffer().then(this.Ta.bind(this),this.ha.bind(this));else if(void 0!==x.ReadableStream&&"body"in t){if(this.j=t.body.getReader(),this.u){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.A=new TextDecoder;Dn(this)}else t.text().then(this.Ua.bind(this),this.ha.bind(this))},T.Sa=function(t){if(this.g){if(this.u&&t.value)this.response.push(t.value);else if(!this.u){var e=t.value?t.value:new Uint8Array(0);(e=this.A.decode(e,{stream:!t.done}))&&(this.response=this.responseText+=e)}t.done?zn(this):Nn(this),3==this.readyState&&Dn(this)}},T.Ua=function(t){this.g&&(this.response=this.responseText=t,zn(this))},T.Ta=function(t){this.g&&(this.response=t,zn(this))},T.ha=function(){this.g&&zn(this)},T.setRequestHeader=function(t,e){this.v.append(t,e)},T.getResponseHeader=function(t){return this.h&&this.h.get(t.toLowerCase())||""},T.getAllResponseHeaders=function(){if(!this.h)return"";for(var t=[],e=this.h.entries(),n=e.next();!n.done;)t.push((n=n.value)[0]+": "+n[1]),n=e.next();return t.join("\r\n")},Object.defineProperty(Pn.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(t){this.m=t?"include":"same-origin"}});var Vn=x.JSON.parse;function Fn(t){Ht.call(this),this.headers=new Ke,this.u=t||null,this.h=!1,this.C=this.g=null,this.H="",this.m=0,this.j="",this.l=this.F=this.v=this.D=!1,this.B=0,this.A=null,this.J=Hn,this.K=this.L=!1}H(Fn,Ht);var Hn="",Bn=/^https?$/i,Un=["POST","PUT"];function qn(t){return"content-type"==t.toLowerCase()}function Wn(t,e){t.h=!1,t.g&&(t.l=!0,t.g.abort(),t.l=!1),t.j=e,t.m=5,Gn(t),Yn(t)}function Gn(t){t.D||(t.D=!0,Bt(t,"complete"),Bt(t,"error"))}function Kn(t){if(t.h&&void 0!==I&&(!t.C[1]||4!=Xn(t)||2!=t.ba()))if(t.v&&4==Xn(t))re(t.Fa,0,t);else if(Bt(t,"readystatechange"),4==Xn(t)){t.h=!1;try{var e,n=t.ba();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 a=String(t.H).match(Xe)[1]||null;if(!a&&x.self&&x.self.location){var o=x.self.location.protocol;a=o.substr(0,o.length-1)}i=!Bn.test(a?a.toLowerCase():"")}e=i}if(e)Bt(t,"complete"),Bt(t,"success");else{t.m=6;try{var s=2<Xn(t)?t.g.statusText:""}catch(u){s=""}t.j=s+" ["+t.ba()+"]",Gn(t)}}finally{Yn(t)}}}function Yn(t,e){if(t.g){Qn(t);var n=t.g,r=t.C[0]?j:null;t.g=null,t.C=null,e||Bt(t,"ready");try{n.onreadystatechange=r}catch(Nd){}}}function Qn(t){t.g&&t.K&&(t.g.ontimeout=null),t.A&&(x.clearTimeout(t.A),t.A=null)}function Xn(t){return t.g?t.g.readyState:0}function Zn(t){try{if(!t.g)return null;if("response"in t.g)return t.g.response;switch(t.J){case Hn:case"text":return t.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in t.g)return t.g.mozResponseArrayBuffer}return null}catch(e){return null}}function $n(t,e,n){t:{for(r in n){var r=!1;break t}r=!0}r||(n=function(t){var e="";return et(t,(function(t,n){e+=n,e+=":",e+=t,e+="\r\n"})),e}(n),"string"==typeof t?null!=n&&encodeURIComponent(String(n)):rn(t,e,n))}function Jn(t,e,n){return n&&n.internalChannelParams&&n.internalChannelParams[t]||e}function tr(t){this.za=0,this.l=[],this.h=new le,this.la=this.oa=this.F=this.W=this.g=this.sa=this.D=this.aa=this.o=this.P=this.s=null,this.Za=this.V=0,this.Xa=J
1n("failFast",!1,t),this.N=this.v=this.u=this.m=this.j=null,this.X=!0,this.I=this.ta=this.U=-1,this.Y=this.A=this.C=0,this.Pa=Jn("baseRetryDelayMs",5e3,t),this.$a=Jn("retryDelaySeedMs",1e4,t),this.Ya=Jn("forwardChannelMaxRetries",2,t),this.ra=Jn("forwardChannelRequestTimeoutMs",2e4,t),this.qa=t&&t.xmlHttpFactory||void 0,this.Ba=t&&t.Yb||!1,this.K=void 0,this.H=t&&t.supportsCrossDomainXhr||!1,this.J="",this.i=new wn(t&&t.concurrentRequestLimit),this.Ca=new In,this.ja=t&&t.fastHandshake||!1,this.Ra=t&&t.Wb||!1,t&&t.Aa&&this.h.Aa(),t&&t.forceLongPolling&&(this.X=!1),this.$=!this.ja&&this.X&&t&&t.detectBufferingProxy||!1,this.ka=void 0,this.O=0,this.L=!1,this.B=null,this.Wa=!t||!1!==t.Xb}function er(t){if(rr(t),3==t.G){var e=t.V++,n=$e(t.F);rn(n,"SID",t.J),rn(n,"RID",e),rn(n,"TYPE","terminate"),sr(t,n),(e=new Ie(t,t.h,e,void 0)).K=2,e.v=an($e(n)),n=!1,x.navigator&&x.navigator.sendBeacon&&(n=x.navigator.sendBeacon(e.v.toString(),"")),!n&&x.Image&&((new Image).src=e.v,n=!0),n||(e.g=br(e.l,null),e.g.ea(e.v)),e.F=Date.now(),Fe(e)}vr(t)}function nr(t){t.g&&(hr(t),t.g.cancel(),t.g=null)}function rr(t){nr(t),t.u&&(x.clearTimeout(t.u),t.u=null),dr(t),t.i.cancel(),t.m&&("number"==typeof t.m&&x.clearTimeout(t.m),t.m=null)}function ir(t,e){t.l.push(new _n(t.Za++,e)),3==t.G&&ar(t)}function ar(t){Cn(t.i)||t.m||(t.m=!0,Zt(t.Ha,t),t.C=0)}function or(t,e){var n;n=e?e.m:t.V++;var r=$e(t.F);rn(r,"SID",t.J),rn(r,"RID",n),rn(r,"AID",t.U),sr(t,r),t.o&&t.s&&$n(r,t.o,t.s),n=new Ie(t,t.h,n,t.C+1),null===t.o&&(n.H=t.s),e&&(t.l=e.D.concat(t.l)),e=ur(t,n,1e3),n.setTimeout(Math.round(.5*t.ra)+Math.round(.5*t.ra*Math.random())),En(t.i,n),Re(n,r,e)}function sr(t,e){t.j&&Ge({},(function(t,n){rn(e,n,t)}))}function ur(t,e,n){n=Math.min(t.l.length,n);var r=t.j?V(t.j.Oa,t.j,t):null;t:for(var i=t.l,a=-1;;){var o=["count="+n];-1==a?0<n?o.push("ofs="+(a=i[0].h)):a=0:o.push("ofs="+a);for(var s=!0,u=0;u<n;u++){var c=i[u].h,l=i[u].g;if(0>(c-=a))a=Math.max(0,i[u].h-100),s=!1;else try{xn(l,o,"req"+c+"_")}catch(Zr){r&&r(l)}}if(s){r=o.join("&");break t}}return t=t.l.splice(0,n),e.D=t,r}function cr(t){t.g||t.u||(t.Y=1,Zt(t.Ga,t),t.A=0)}function lr(t){return!(t.g||t.u||3<=t.A||(t.Y++,t.u=_e(V(t.Ga,t),gr(t,t.A)),t.A++,0))}function hr(t){null!=t.B&&(x.clearTimeout(t.B),t.B=null)}function fr(t){t.g=new Ie(t,t.h,"rpc",t.Y),null===t.o&&(t.g.H=t.s),t.g.O=0;var e=$e(t.oa);rn(e,"RID","rpc"),rn(e,"SID",t.J),rn(e,"CI",t.N?"0":"1"),rn(e,"AID",t.U),sr(t,e),rn(e,"TYPE","xmlhttp"),t.o&&t.s&&$n(e,t.o,t.s),t.K&&t.g.setTimeout(t.K);var n=t.g;t=t.la,n.K=1,n.v=an($e(e)),n.s=null,n.U=!0,De(n,t)}function dr(t){null!=t.v&&(x.clearTimeout(t.v),t.v=null)}function pr(t,e){var n=null;if(t.g==e){dr(t),hr(t),t.g=null;var r=2}else{if(!Sn(t.i,e))return;n=e.D,An(t.i,e),r=1}if(t.I=e.N,0!=t.G)if(e.i)if(1==r){n=e.s?e.s.length:0,e=Date.now()-e.F;var i=t.C;Bt(r=pe(),new be(r,n,e,i)),ar(t)}else cr(t);else if(3==(i=e.o)||0==i&&0<t.I||!(1==r&&function(t,e){return!(On(t.i)>=t.i.j-(t.m?1:0)||(t.m?(t.l=e.D.concat(t.l),0):1==t.G||2==t.G||t.C>=(t.Xa?0:t.Ya)||(t.m=_e(V(t.Ha,t,e),gr(t,t.C)),t.C++,0)))}(t,e)||2==r&&lr(t)))switch(n&&0<n.length&&(e=t.i,e.i=e.i.concat(n)),i){case 1:yr(t,5);break;case 4:yr(t,10);break;case 3:yr(t,6);break;default:yr(t,2)}}function gr(t,e){var n=t.Pa+Math.floor(Math.random()*t.$a);return t.j||(n*=2),n*e}function yr(t,e){if(t.h.info("Error code "+e),2==e){var n=null;t.j&&(n=null);var r=V(t.jb,t);n||(n=new Ze("//www.google.com/images/cleardot.gif"),x.location&&"http"==x.location.protocol||Je(n,"https"),an(n)),function(t,e){var n=new le;if(x.Image){var r=new Image;r.onload=F(jn,n,r,"TestLoadImage: loaded",!0,e),r.onerror=F(jn,n,r,"TestLoadImage: error",!1,e),r.onabort=F(jn,n,r,"TestLoadImage: abort",!1,e),r.ontimeout=F(jn,n,r,"TestLoadImage: timeout",!1,e),x.setTimeout((function(){r.ontimeout&&r.ontimeout()}),1e4),r.src=t}else e(!1)}(n.toString(),r)}else me(2);t.G=0,t.j&&t.j.va(e),vr(t),rr(t)}function vr(t){t.G=0,t.I=-1,t.j&&(0==Tn(t.i).length&&0==t.l.length||(t.i.i.length=0,K(t.l),t.l.length=0),t.j.ua())}function mr(t,e,n){var r=function(t){return t instanceof Ze?$e(t):new Ze(t,void 0)}(n);if(""!=r.i)e&&tn(r,e+"."+r.i),en(r,r.m);else{var i=x.location;r=function(t,e,n,r){var i=new Ze(null,void 0);return t&&Je(i,t),e&&tn(i,e),n&&en(i,n),r&&(i.l=r),i}(i.protocol,e?e+"."+i.hostname:i.hostname,+i.port,n)}return t.aa&&et(t.aa,(function(t,e){rn(r,e,t)})),n=t.sa,(e=t.D)&&n&&rn(r,e,n),rn(r,"VER",t.ma),sr(t,r),r}function br(t,e,n){if(e&&!t.H)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new Fn(n&&t.Ba&&!t.qa?new Ln({ib:!0}):t.qa)).L=t.H,e}function _r(){}function wr(){if(ct&&!(10<=Number(bt)))throw Error("Environmental error: no available transport.")}function kr(t,e){Ht.call(this),this.g=new tr(e),this.l=t,this.h=e&&e.messageUrlParams||null,t=e&&e.messageHeaders||null,e&&e.clientProtocolHeaderRequired&&(t?t["X-Client-Protocol"]="webchannel":t={"X-Client-Protocol":"webchannel"}),this.g.s=t,t=e&&e.initMessageHeaders||null,e&&e.messageContentType&&(t?t["X-WebChannel-Content-Type"]=e.messageContentType:t={"X-WebChannel-Content-Type":e.messageContentType}),e&&e.ya&&(t?t["X-WebChannel-Client-Profile"]=e.ya:t={"X-WebChannel-Client-Profile":e.ya}),this.g.P=t,(t=e&&e.httpHeadersOverwriteParam)&&!Y(t)&&(this.g.o=t),this.A=e&&e.supportsCrossDomainXhr||!1,this.v=e&&e.sendRawJson||!1,(e=e&&e.httpSessionIdParam)&&!Y(e)&&(this.g.D=e,null!==(t=this.h)&&e in t&&e in(t=this.h)&&delete t[e]),this.j=new Sr(this)}function Cr(t){Ae.call(this);var e=t.__sm__;if(e){t:{for(var n in e){t=n;break t}t=void 0}(this.i=t)&&(t=this.i,e=null!==e&&t in e?e[t]:void 0),this.data=e}else this.data=t}function Or(){Te.call(this),this.status=1}function Sr(t){this.g=t}(T=Fn.prototype).ea=function(t,e,n,r){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.H+"; newUri="+t);e=e?e.toUpperCase():"GET",this.H=t,this.j="",this.m=0,this.D=!1,this.h=!0,this.g=this.u?this.u.g():Se.g(),this.C=function(t){return t.h||(t.h=t.i())}(this.u?this.u:Se),this.g.onreadystatechange=V(this.Fa,this);try{this.F=!0,this.g.open(e,String(t),!0),this.F=!1}catch(a){return void Wn(this,a)}t=n||"";var i=new Ke(this.headers);r&&Ge(r,(function(t,e){i.set(e,t)})),r=function(t){t:{for(var e=qn,n=t.length,r="string"==typeof t?t.split(""):t,i=0;i<n;i++)if(i in r&&e.call(void 0,r[i],i,t)){e=i;break t}e=-1}return 0>e?null:"string"==typeof t?t.charAt(e):t[e]}(i.T()),n=x.FormData&&t instanceof x.FormData,!(0<=q(Un,e))||r||n||i.set("Content-Type","application/x-www-form-urlencoded;
1charset=utf-8"),i.forEach((function(t,e){this.g.setRequestHeader(e,t)}),this),this.J&&(this.g.responseType=this.J),"withCredentials"in this.g&&this.g.withCredentials!==this.L&&(this.g.withCredentials=this.L);try{Qn(this),0<this.B&&((this.K=function(t){return ct&&function(){return t=mt,Object.prototype.hasOwnProperty.call(t,9)?t[9]:t[9]=function(){for(var t=0,e=X(String(ot)).split("."),n=X("9").split("."),r=Math.max(e.length,n.length),i=0;0==t&&i<r;i++){var a=e[i]||"",o=n[i]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],o=/(\d*)(\D*)(.*)/.exec(o)||["","","",""],0==a[0].length&&0==o[0].length)break;t=$(0==a[1].length?0:parseInt(a[1],10),0==o[1].length?0:parseInt(o[1],10))||$(0==a[2].length,0==o[2].length)||$(a[2],o[2]),a=a[3],o=o[3]}while(0==t)}return 0<=t}();var t}()&&"number"==typeof t.timeout&&void 0!==t.ontimeout}(this.g))?(this.g.timeout=this.B,this.g.ontimeout=V(this.pa,this)):this.A=re(this.pa,this.B,this)),this.v=!0,this.g.send(t),this.v=!1}catch(a){Wn(this,a)}},T.pa=function(){void 0!==I&&this.g&&(this.j="Timed out after "+this.B+"ms, aborting",this.m=8,Bt(this,"timeout"),this.abort(8))},T.abort=function(t){this.g&&this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1,this.m=t||7,Bt(this,"complete"),Bt(this,"abort"),Yn(this))},T.M=function(){this.g&&(this.h&&(this.h=!1,this.l=!0,this.g.abort(),this.l=!1),Yn(this,!0)),Fn.Z.M.call(this)},T.Fa=function(){this.s||(this.F||this.v||this.l?Kn(this):this.cb())},T.cb=function(){Kn(this)},T.ba=function(){try{return 2<Xn(this)?this.g.status:-1}catch(st){return-1}},T.ga=function(){try{return this.g?this.g.responseText:""}catch(st){return""}},T.Qa=function(t){if(this.g){var e=this.g.responseText;return t&&0==e.indexOf(t)&&(e=e.substring(t.length)),Vn(e)}},T.Da=function(){return this.m},T.La=function(){return"string"==typeof this.j?this.j:String(this.j)},(T=tr.prototype).ma=8,T.G=1,T.hb=function(t){try{this.h.info("Origin Trials invoked: "+t)}catch(e){}},T.Ha=function(t){if(this.m)if(this.m=null,1==this.G){if(!t){this.V=Math.floor(1e5*Math.random()),t=this.V++;var e=new Ie(this,this.h,t,void 0),n=this.s;if(this.P&&(n?it(n=nt(n),this.P):n=this.P),null===this.o&&(e.H=n),this.ja)t:{for(var r=0,i=0;i<this.l.length;i++){var a=this.l[i];if(void 0===(a="__data__"in a.g&&"string"==typeof(a=a.g.__data__)?a.length:void 0))break;if(4096<(r+=a)){r=i;break t}if(4096===r||i===this.l.length-1){r=i+1;break t}}r=1e3}else r=1e3;r=ur(this,e,r),rn(i=$e(this.F),"RID",t),rn(i,"CVER",22),this.D&&rn(i,"X-HTTP-Session-Id",this.D),sr(this,i),this.o&&n&&$n(i,this.o,n),En(this.i,e),this.Ra&&rn(i,"TYPE","init"),this.ja?(rn(i,"$req",r),rn(i,"SID","null"),e.$=!0,Re(e,i,null)):Re(e,i,r),this.G=2}}else 3==this.G&&(t?or(this,t):0==this.l.length||Cn(this.i)||or(this))},T.Ga=function(){if(this.u=null,fr(this),this.$&&!(this.L||null==this.g||0>=this.O)){var t=2*this.O;this.h.info("BP detection timer enabled: "+t),this.B=_e(V(this.bb,this),t)}},T.bb=function(){this.B&&(this.B=null,this.h.info("BP detection timeout reached."),this.h.info("Buffering proxy detected and switch to long-polling!"),this.N=!1,this.L=!0,me(10),nr(this),fr(this))},T.ab=function(){null!=this.v&&(this.v=null,nr(this),lr(this),me(19))},T.jb=function(t){t?(this.h.info("Successfully pinged google.com"),me(2)):(this.h.info("Failed to ping google.com"),me(1))},(T=_r.prototype).xa=function(){},T.wa=function(){},T.va=function(){},T.ua=function(){},T.Oa=function(){},wr.prototype.g=function(t,e){return new kr(t,e)},H(kr,Ht),kr.prototype.m=function(){this.g.j=this.j,this.A&&(this.g.H=!0);var t=this.g,e=this.l,n=this.h||void 0;t.Wa&&(t.h.info("Origin Trials enabled."),Zt(V(t.hb,t,e))),me(0),t.W=e,t.aa=n||{},t.N=t.X,t.F=mr(t,null,t.W),ar(t)},kr.prototype.close=function(){er(this.g)},kr.prototype.u=function(t){if("string"==typeof t){var e={};e.__data__=t,ir(this.g,e)}else this.v?((e={}).__data__=qt(t),ir(this.g,e)):ir(this.g,t)},kr.prototype.M=function(){this.g.j=null,delete this.j,er(this.g),delete this.g,kr.Z.M.call(this)},H(Cr,Ae),H(Or,Te),H(Sr,_r),Sr.prototype.xa=function(){Bt(this.g,"a")},Sr.prototype.wa=function(t){Bt(this.g,new Cr(t))},Sr.prototype.va=function(t){Bt(this.g,new Or(t))},Sr.prototype.ua=function(){Bt(this.g,"b")},wr.prototype.createWebChannel=wr.prototype.g,kr.prototype.send=kr.prototype.u,kr.prototype.open=kr.prototype.m,kr.prototype.close=kr.prototype.close,we.NO_ERROR=0,we.TIMEOUT=8,we.HTTP_ERROR=6,ke.COMPLETE="complete",Oe.EventType=Ee,Ee.OPEN="a",Ee.CLOSE="b",Ee.ERROR="c",Ee.MESSAGE="d",Ht.prototype.listen=Ht.prototype.N,Fn.prototype.listenOnce=Fn.prototype.O,Fn.prototype.getLastError=Fn.prototype.La,Fn.prototype.getLastErrorCode=Fn.prototype.Da,Fn.prototype.getStatus=Fn.prototype.ba,Fn.prototype.getResponseJson=Fn.prototype.Qa,Fn.prototype.getResponseText=Fn.prototype.ga,Fn.prototype.send=Fn.prototype.ea;var Er=we,Ar=ke,Tr=fe,Mr=Ln,Ir=Oe,xr=Fn,jr=function(){function t(t,e){var n=this;this.previousValue=t,e&&(e.sequenceNumberHandler=function(t){return n.t(t)},this.i=function(t){return e.writeSequenceNumber(t)})}return t.prototype.t=function(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue},t.prototype.next=function(){var t=++this.previousValue;return this.i&&this.i(t),t},t}();jr.o=-1;var Lr={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENT
1ED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},Pr=function(t){function e(e,n){var r=this;return(r=t.call(this,n)||this).code=e,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return _(e,t),e}(Error),Rr=new S.b("@firebase/firestore");function Dr(){return Rr.logLevel}function zr(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Rr.logLevel<=S.a.DEBUG){var r=e.map(Fr);Rr.debug.apply(Rr,C(["Firestore (8.10.1): "+t],r))}}function Nr(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Rr.logLevel<=S.a.ERROR){var r=e.map(Fr);Rr.error.apply(Rr,C(["Firestore (8.10.1): "+t],r))}}function Vr(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(Rr.logLevel<=S.a.WARN){var r=e.map(Fr);Rr.warn.apply(Rr,C(["Firestore (8.10.1): "+t],r))}}function Fr(t){if("string"==typeof t)return t;try{return JSON.stringify(t)}catch(Nd){return t}}function Hr(t){void 0===t&&(t="Unexpected state");var e="FIRESTORE (8.10.1) INTERNAL ASSERTION FAILED: "+t;throw Nr(e),new Error(e)}function Br(t,e){t||Hr()}function Ur(t,e){return t}function qr(t){var e="undefined"!=typeof self&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&"function"==typeof e.getRandomValues)e.getRandomValues(n);else for(var r=0;r<t;r++)n[r]=Math.floor(256*Math.random());return n}var Wr=function(){function t(){}return t.u=function(){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=Math.floor(256/t.length)*t.length,n="";n.length<20;)for(var r=qr(40),i=0;i<r.length;++i)n.length<20&&r[i]<e&&(n+=t.charAt(r[i]%t.length));return n},t}();function Gr(t,e){return t<e?-1:t>e?1:0}function Kr(t,e,n){return t.length===e.length&&t.every((function(t,r){return n(t,e[r])}))}function Yr(t){return t+"\0"}var Qr=function(){function t(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new Pr(Lr.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new Pr(Lr.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<-62135596800)throw new Pr(Lr.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new Pr(Lr.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,Math.floor(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._compareTo=function(t){return this.seconds===t.seconds?Gr(this.nanoseconds,t.nanoseconds):Gr(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.toJSON=function(){return{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}(),Xr=function(){function t(t){this.timestamp=t}return t.fromTimestamp=function(e){return new t(e)},t.min=function(){return new t(new Qr(0,0))},t.prototype.compareTo=function(t){return this.timestamp._compareTo(t.timestamp)},t.prototype.isEqual=function(t){return this.timestamp.isEqual(t.timestamp)},t.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},t.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},t.prototype.toTimestamp=function(){return this.timestamp},t}();function Zr(t){var e=0;for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function $r(t,e){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function Jr(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}var ti=function(){function t(t,e,n){void 0===e?e=0:e>t.length&&Hr(),void 0===n?n=t.length-e:n>t.length-e&&Hr(),this.segments=t,this.offset=e,this.len=n}return Object.defineProperty(t.prototype,"length",{get:function(){return this.len}
1,enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return 0===t.comparator(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.construct(n)},t.prototype.limit=function(){return this.offset+this.length},t.prototype.popFirst=function(t){return this.construct(this.segments,this.offset+(t=void 0===t?1:t),this.length-t)},t.prototype.popLast=function(){return this.construct(this.segments,this.offset,this.length-1)},t.prototype.firstSegment=function(){return this.segments[this.offset]},t.prototype.lastSegment=function(){return this.get(this.length-1)},t.prototype.get=function(t){return this.segments[this.offset+t]},t.prototype.isEmpty=function(){return 0===this.length},t.prototype.isPrefixOf=function(t){if(t.length<this.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.isImmediateParentOf=function(t){if(this.length+1!==t.length)return!1;for(var e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0},t.prototype.forEach=function(t){for(var e=this.offset,n=this.limit();e<n;e++)t(this.segments[e])},t.prototype.toArray=function(){return this.segments.slice(this.offset,this.limit())},t.comparator=function(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++){var i=t.get(r),a=e.get(r);if(i<a)return-1;if(i>a)return 1}return t.length<e.length?-1:t.length>e.length?1:0},t}(),ei=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e.prototype.construct=function(t,n,r){return new e(t,n,r)},e.prototype.canonicalString=function(){return this.toArray().join("/")},e.prototype.toString=function(){return this.canonicalString()},e.fromString=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=[],i=0,a=t;i<a.length;i++){var o=a[i];if(o.indexOf("//")>=0)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid segment ("+o+"). Paths must not contain // in them.");r.push.apply(r,o.split("/").filter((function(t){return t.length>0})))}return new e(r)},e.emptyPath=function(){return new e([])},e}(ti),ni=/^[_a-zA-Z][_a-zA-Z0-9]*$/,ri=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e.prototype.construct=function(t,n,r){return new e(t,n,r)},e.isValidIdentifier=function(t){return ni.test(t)},e.prototype.canonicalString=function(){return this.toArray().map((function(t){return t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),e.isValidIdentifier(t)||(t="`"+t+"`"),t})).join(".")},e.prototype.toString=function(){return this.canonicalString()},e.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},e.keyField=function(){return new e(["__name__"])},e.fromServerFormat=function(t){for(var n=[],r="",i=0,a=function(){if(0===r.length)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid field path ("+t+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},o=!1;i<t.length;){var s=t[i];if("\\"===s){if(i+1===t.length)throw new Pr(Lr.INVALID_ARGUMENT,"Path has trailing escape character: "+t);var u=t[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new Pr(Lr.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);r+=u,i+=2}else"`"===s?(o=!o,i++):"."!==s||o?(r+=s,i++):(a(),i++)}if(a(),o)throw new Pr(Lr.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)},e.emptyPath=function(){return new e([])},e}(ti),ii=function(){function t(t){this.fields=t,t.sort(ri.comparator)}return t.prototype.covers=function(t){for(var e=0,n=this.fields;e<n.length;e++)if(n[e].isPrefixOf(t))return!0;return!1},t.prototype.isEqual=function(t){return Kr(this.fields,t.fields,(function(t,e){return t.isEqual(e)}))},t}(),ai=function(){function t(t){this.binaryString=t}return t.fromBase64String=function(e){return new t(atob(e))},t.fromUint8Array=function(e){return new t(function(t){for(var e="",n=0;n<t.length;++n)e+=String.fromCharCode(t[n]);return e}(e))},t.prototype.toBase64=function(){return btoa(this.binaryString)},t.prototype.toUint8Array=function(){return function(t){for(var e=new Uint8Array(t.length),n=0;n<t.length;n++)e[n]=t.charCodeAt(n);return e}(this.binaryString)},t.prototype.approximateByteSize=function(){return 2*this.binaryString.length},t.prototype.compareTo=function(t){return Gr(this.binaryString,t.binaryString)},t.prototype.isEqual=function(t){return this.binaryString===t.binaryString},t}();ai.EMPTY_BYTE_STRING=new ai("");var oi=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function si(t){if(Br(!!t),"string"==typeof t){var e=0,n=oi.exec(t);if(Br(!!n),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),e=Number(r)}var i=new Date(t);return{seconds:Math.floor(i.getTime()/1e3),nanos:e}}return{seconds:ui(t.seconds),nanos:ui(t.nanos)}}function ui(t){return"number"==typeof t?t:"string"==typeof t?Number(t):0}function ci(t){return"string"==typeof t?ai.fromBase64String(t):ai.fromUint8Array(t)}function li(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 hi(t){var e=si(t.mapValue.fields.__local_write_time__.timestampValue);return new Qr(e.seconds,e.nanos)}function fi(t){return null==t}function di(t){return 0===t&&1/t==-1/0}function pi(t){return"number"==typeof t&&Number.isInteger(t)&&!di(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}var gi=function(){function t(t){this.path=t}return t.fromPath=function(e){return new t(ei.fromString(e))},t.fromName=function(e){return new t(ei.fromString(e).popFirst(5))},t.prototype.hasCollectionId=function(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t},t.prototype.isEqual=function(t){return null!==t&&0===ei.comparator(this.path,t.path)},t.prototype.toString=function(){return this.path.toString()},t.comparator=function(t,e){return ei.comparator(t.path,e.path)},t.isDocumentKey=function(t){return t.length%2==0},t.fromSegments=function(e){return new t(new ei(e.slice()))},t}();function yi(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?li(t)?4:10:Hr()}function vi(t,e){var n=yi(t);if(n!==yi(e))return!1;switch(n){case 0:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return hi(t).isEqual(hi(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=si(t.timestampValue),r=si(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 ci(t.bytesValue).isEqual(ci(e.bytesValue))}(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return function(t,e){return ui(t.geoPointValue.latitude)===ui(e.geoPointValue.latitude)&&ui(t.geoPointValue.longitude)===ui(e.geoPointValue.longitude)}(t,e);case 2:return function(t,e){if("integerValue"in t&&"integerValue"in e)return ui(t.integerValue)===ui(e.integerValue);if("doubleValue"in t&&"doubleValue"in e){var n=ui(t.doubleValue),r=ui(e.doubleValue);return n===r?di(n)===di(r):isNaN(n)&&isNaN(r)}return!1}(t,e);case 9:return Kr(t.arrayValue.values||[],e.arrayValue.values||[],vi);case 10:return function(t,e){var n=t.mapValue.fields||{},r=e.mapValue.fields||{};if(Zr(n)!==Zr(r))return!1;for(var i in n)if(n.hasOwnProperty(i)&&(void 0===r[i]||!vi(n[i],r[i])))return!1;return!0}(t,e);default:return Hr()}}function mi(t,e){return void 0!==(t.values||[]).find((function(t){return vi(t,e)}))}function bi(t,e){var n=yi(t),r=yi(e);if(n!==r)return Gr(n,r);switch(n){case 0:return 0;case 1:return Gr(t.booleanValue,e.booleanValue);case 2:return function(t,e){var n=ui(t.integerValue||t.doubleValue),r=ui(e.integerValue||e.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(t,e);case 3:return _i(t.timestampValue,e.timestampValue);case 4:return _i(hi(t),hi(e));case 5:return Gr(t.stringValue,e.stringValue);case 6:return function(t,e){var n=ci(t),r=ci(e);return n.compareTo(r)}(t.bytesValue,e.bytesValue);case 7:return function(t,e){for(var n=t.split("/"),r=e.split("/"),i=0;i<n.length&&i<r.length;i++){var a=Gr(n[i],r[i]);if(0!==a)return a}return Gr(n.length,r.length)}(t.referenceValue,e.referenceValue);case 8:return function(t,e){var n=Gr(ui(t.latitude),ui(e.latitude));return 0!==n?n:Gr(ui(t.longitude),ui(e.longitude))}(t.geoPointValue,e.geoPointValue);case 9:return function(t,e){for(var n=t.values||[],r=e.values||[],i=0;i<n.length&&i<r.length;++i){var a=bi(n[i],r[i]);if(a)return a}return Gr(n.length,r.length)}(t.arrayValue,e.arrayValue);case 10:return function(t,e){var n=t.fields||{},r=Object.keys(n),i=e.fields||{},a=Object.keys(i);r.sort(),a.sort();for(var o=0;o<r.length&&o<a.length;++o){var s=Gr(r[o],a[o]);if(0!==s)return s;var u=bi(n[r[o]],i[a[o]]);if(0!==u)return u}return Gr(r.length,a.length)}(t.mapValue,e.mapValue);default:throw Hr()}}function _i(t,e){if("string"==typeof t&&"string"==typeof e&&t.length===e.length)return Gr(t,e);var n=si(t),r=si(e),i=Gr(n.seconds,r.seconds);return 0!==i?i:Gr(n.nanos,r.nanos)}function wi(t){return function t(e){return"nullValue"in e?"null":"booleanValue"in e?""+e.booleanValue:"integerValue"in e?""+e.integerValue:"doubleValue"in e?""+e.doubleValue:"timestampValue"in e?function(t){var e=si(t);return"time("+e.seconds+","+e.nanos+")"}(e.timestampValue):"stringValue"in e?e.stringValue:"bytesValue"in e?ci(e.bytesValue).toBase64():"referenceValue"in e?gi.fromName(e.referenceValue).toString():"geoPointValue"in e?"geo("+(n=e.geoPointValue).latitude+","+n.longitude+")":"arrayValue"in e?function(e){for(var n="[",r=!0,i=0,a=e.values||[];i<a.length;i++)r?r=!1:n+=",",n+=t(a[i]);return n+"]"}(e.arrayValue):"mapValue"in e?function(e){for(var n="{",r=!0,i=0,a=Object.keys(e.fields||{}).sort();i<a.length;i++){var o=a[i];r?r=!1:n+=",",n+=o+":"+t(e.fields[o])}return n+"}"}(e.mapValue):Hr();var n}(t)}function ki(t,e){return{referenceValue:"projects/"+t.projectId+"/databases/"+t.database+"/documents/"+e.path.canonicalString()}}function Ci(t){return!!t&&"integerValue"in t}function Oi(t){return!!t&&"arrayValue"in t}function Si(t){return!!t&&"nullValue"in t}function Ei(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Ai(t){return!!t&&"mapValue"in t}function Ti(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&"object"==typeof t.timestampValue)return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){var e={mapValue:{fields:{}}};return $r(t.mapValue.fields,(function(t,n){return e.mapValue.fields[t]=Ti(n)})),e}if(t.arrayValue){for(var n={arrayValue:{values:[]}},r=0;r<(t.arrayValue.values||[]).length;++r)n.arrayValue.values[r]=Ti(t.arrayValue.values[r]);return n}return Object.assign({},t)}var Mi=function(){function t(t){this.value=t}return t.empty=function(){return new t({mapValue:{}})},t.prototype.field=function(t){if(t.isEmpty())return this.value;
1for(var e=this.value,n=0;n<t.length-1;++n)if(!Ai(e=(e.mapValue.fields||{})[t.get(n)]))return null;return(e=(e.mapValue.fields||{})[t.lastSegment()])||null},t.prototype.set=function(t,e){this.getFieldsMap(t.popLast())[t.lastSegment()]=Ti(e)},t.prototype.setAll=function(t){var e=this,n=ri.emptyPath(),r={},i=[];t.forEach((function(t,a){if(!n.isImmediateParentOf(a)){var o=e.getFieldsMap(n);e.applyChanges(o,r,i),r={},i=[],n=a.popLast()}t?r[a.lastSegment()]=Ti(t):i.push(a.lastSegment())}));var a=this.getFieldsMap(n);this.applyChanges(a,r,i)},t.prototype.delete=function(t){var e=this.field(t.popLast());Ai(e)&&e.mapValue.fields&&delete e.mapValue.fields[t.lastSegment()]},t.prototype.isEqual=function(t){return vi(this.value,t.value)},t.prototype.getFieldsMap=function(t){var e=this.value;e.mapValue.fields||(e.mapValue={fields:{}});for(var n=0;n<t.length;++n){var r=e.mapValue.fields[t.get(n)];Ai(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},e.mapValue.fields[t.get(n)]=r),e=r}return e.mapValue.fields},t.prototype.applyChanges=function(t,e,n){$r(e,(function(e,n){return t[e]=n}));for(var r=0,i=n;r<i.length;r++)delete t[i[r]]},t.prototype.clone=function(){return new t(Ti(this.value))},t}();function Ii(t){var e=[];return $r(t.fields,(function(t,n){var r=new ri([t]);if(Ai(n)){var i=Ii(n.mapValue).fields;if(0===i.length)e.push(r);else for(var a=0,o=i;a<o.length;a++)e.push(r.child(o[a]))}else e.push(r)})),new ii(e)}var xi=function(){function t(t,e,n,r,i){this.key=t,this.documentType=e,this.version=n,this.data=r,this.documentState=i}return t.newInvalidDocument=function(e){return new t(e,0,Xr.min(),Mi.empty(),0)},t.newFoundDocument=function(e,n,r){return new t(e,1,n,r,0)},t.newNoDocument=function(e,n){return new t(e,2,n,Mi.empty(),0)},t.newUnknownDocument=function(e,n){return new t(e,3,n,Mi.empty(),2)},t.prototype.convertToFoundDocument=function(t,e){return this.version=t,this.documentType=1,this.data=e,this.documentState=0,this},t.prototype.convertToNoDocument=function(t){return this.version=t,this.documentType=2,this.data=Mi.empty(),this.documentState=0,this},t.prototype.convertToUnknownDocument=function(t){return this.version=t,this.documentType=3,this.data=Mi.empty(),this.documentState=2,this},t.prototype.setHasCommittedMutations=function(){return this.documentState=2,this},t.prototype.setHasLocalMutations=function(){return this.documentState=1,this},Object.defineProperty(t.prototype,"hasLocalMutations",{get:function(){return 1===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCommittedMutations",{get:function(){return 2===this.documentState},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return this.hasLocalMutations||this.hasCommittedMutations},enumerable:!1,configurable:!0}),t.prototype.isValidDocument=function(){return 0!==this.documentType},t.prototype.isFoundDocument=function(){return 1===this.documentType},t.prototype.isNoDocument=function(){return 2===this.documentType},t.prototype.isUnknownDocument=function(){return 3===this.documentType},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)},t.prototype.clone=function(){return new t(this.key,this.documentType,this.version,this.data.clone(),this.documentState)},t.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+JSON.stringify(this.data.value)+", {documentType: "+this.documentType+"}), {documentState: "+this.documentState+"})"},t}(),ji=function(t,e,n,r,i,a,o){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===a&&(a=null),void 0===o&&(o=null),this.path=t,this.collectionGroup=e,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=a,this.endAt=o,this.h=null};function Li(t,e,n,r,i,a,o){return void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===a&&(a=null),void 0===o&&(o=null),new ji(t,e,n,r,i,a,o)}function Pi(t){var e=Ur(t);if(null===e.h){var n=e.path.canonicalString();null!==e.collectionGroup&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((function(t){return function(t){return t.field.canonicalString()+t.op.toString()+wi(t.value)}(t)})).join(","),n+="|ob:",n+=e.orderBy.map((function(t){return function(t){return t.field.canonicalString()+t.dir}(t)})).join(","),fi(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=Ki(e.startAt)),e.endAt&&(n+="|ub:",n+=Ki(e.endAt)),e.h=n}return e.h}function Ri(t,e){if(t.limit!==e.limit)return!1;if(t.orderBy.length!==e.orderBy.length)return!1;for(var n=0;n<t.orderBy.length;n++)if(!Qi(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(var r=0;r<t.filters.length;r++)if((i=t.filters[r]).op!==(a=e.filters[r]).op||!i.field.isEqual(a.field)||!vi(i.value,a.value))return!1;var i,a;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!Zi(t.startAt,e.startAt)&&Zi(t.endAt,e.endAt)}function Di(t){return gi.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length}var zi=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).field=e,i.op=n,i.value=r,i}return _(e,t),e.create=function(t,n,r){return t.isKeyField()?"in"===n||"not-in"===n?this.l(t,n,r):new Ni(t,n,r):"array-contains"===n?new Bi(t,r):"in"===n?new Ui(t,r):"not-in"===n?new qi(t,r):"array-contains-any"===n?new Wi(t,r):new e(t,n,r)},e.l=function(t,e,n){return"in"===e?new Vi(t,n):new Fi(t,n)},e.prototype.matches=function(t){var e=t.data.field(this.field);return"!="===this.op?null!==e&&this.m(bi(e,this.value)):null!==e&&yi(this.value)===yi(e)&&this.m(bi(e,this.value))},e.prototype.m=function(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return 0===t;case"!=":return 0!==t;case">":return t>0;case">=":return t>=0;default:return Hr()}},e.prototype.g=function(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0},e}((function(){})),Ni=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,r)||this).key=gi.fromName(r.referenceValue),i}return _(e,t),e.prototype.matches=function(t){var e=gi.comparator(t.key,this.key);return this.m(e)},e}(zi),Vi=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"in",n)||this).keys=Hi(0,n),r}return _(e,t),e.prototype.matches=function(t){return this.keys.some((function(e){return e.isEqual(t.key)}))},e}(zi),Fi=function(t){function e(e,n){var r=this;return(r=t.call(this,e,"not-in",n)||this).keys=Hi(0,n),r}return _(e,t),e.prototype.matches=function(t){return!this.keys.some((function(e){return e.isEqual(t.key)}))},e}(zi);function Hi(t,e){var n;return((null===(n=e.arrayValue)||void 0===n?void 0:n.values)||[]).map((function(t){return gi.fromName(t.referenceValue)}))}var Bi=function(t){function e(e,n){return t.call(this,e,"array-contains",n)||this}return _(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return Oi(e)&&mi(e.arrayValue,this.value)},e}(zi),Ui=function(t){function e(e,n){return t.call(this,e,"in",n)||this}return _(e,t),e.prototype.matches=function(t){var e=t.data.field(this.field);return null!==e&&mi(this.value.arrayValue,e)},e}(zi),qi=function(t){function e(e,n){return t.call(this,e,"not-in",n)||this}return _(e,t),e.prototype.matches=function(t){if(mi(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;var e=t.data.field(this.field);return null!==e&&!mi(this.value.arrayValue,e)},e}(zi),Wi=function(t){function e(e,n){return t.call(this,e,"array-contains-any",n)||this}return _(e,t),e.prototype.matches=function(t){var e=this,n=t.data.field(this.field);return!(!Oi(n)||!n.arrayValue.values)&&n.arrayValue.values.some((function(t){return mi(e.value.arrayValue,t)}))},e}(zi),Gi=function(t,e){this.position=t,this.before=e};function Ki(t){return(t.before?"b":"a")+":"+t.position.map((function(t){return wi(t)})).join(",")}var Yi=function(t,e){void 0===e&&(e="asc"),this.field=t,this.dir=e};function Qi(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}function Xi(t,e,n){for(var r=0,i=0;i<t.position.length;i++){var a=e[i],o=t.position[i];if(r=a.field.isKeyField()?gi.comparator(gi.fromName(o.referenceValue),n.key):bi(o,n.data.field(a.field)),"desc"===a.dir&&(r*=-1),0!==r)break}return t.before?r<=0:r<0}function Zi(t,e){if(null===t)return null===e;if(null===e)return!1;if(t.before!==e.before||t.position.length!==e.position.length)return!1;for(var n=0;n<t.position.length;n++)if(!vi(t.position[n],e.position[n]))return!1;return!0}var $i=function(t,e,n,r,i,a,o,s){void 0===e&&(e=null),void 0===n&&(n=[]),void 0===r&&(r=[]),void 0===i&&(i=null),void 0===a&&(a="F"),void 0===o&&(o=null),void 0===s&&(s=null),this.path=t,this.collectionGroup=e,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=a,this.startAt=o,this.endAt=s,this.p=null,this.T=null};function Ji(t,e,n,r,i,a,o,s){return new $i(t,e,n,r,i,a,o,s)}function ta(t){return new $i(t)}function ea(t){return!fi(t.limit)&&"F"===t.limitType}function na(t){return!fi(t.limit)&&"L"===t.limitType}function ra(t){return t.explicitOrderBy.length>0?t.explicitOrderBy[0].field:null}function ia(t){for(var e=0,n=t.filters;e<n.length;e++){var r=n[e];if(r.g())return r.field}return null}function aa(t){return null!==t.collectionGroup}function oa(t){var e=Ur(t);if(null===e.p){e.p=[];var n=ia(e),r=ra(e);if(null!==n&&null===r)n.isKeyField()||e.p.push(new Yi(n)),e.p.push(new Yi(ri.keyField(),"asc"));else{for(var i=!1,a=0,o=e.explicitOrderBy;a<o.length;a++){var s=o[a];e.p.push(s),s.field.isKeyField()&&(i=!0)}if(!i){var u=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";e.p.push(new Yi(ri.keyField(),u))}}}return e.p}function sa(t){var e=Ur(t);if(!e.T)if("F"===e.limitType)e.T=Li(e.path,e.collectionGroup,oa(e),e.filters,e.limit,e.startAt,e.endAt);else{for(var n=[],r=0,i=oa(e);r<i.length;r++){var a=i[r];n.push(new Yi(a.field,"desc"===a.dir?"asc":"desc"))}var o=e.endAt?new Gi(e.endAt.position,!e.endAt.before):null,s=e.startAt?new Gi(e.startAt.position,!e.startAt.before):null;e.T=Li(e.path,e.collectionGroup,n,e.filters,e.limit,o,s)}return e.T}function ua(t,e,n){return new $i(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function ca(t,e){return Ri(sa(t),sa(e))&&t.limitType===e.limitType}function la(t){return Pi(sa(t))+"|lt:"+t.limitType}function ha(t){return"Query(target="+function(t){var e=t.path.canonicalString();return null!==t.collectionGroup&&(e+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(e+=", filters: ["+t.filters.map((function(t){return(e=t).field.canonicalString()+" "+e.op+" "+wi(e.value);var e})).join(", ")+"]"),fi(t.limit)||(e+=", limit: "+t.limit),t.orderBy.length>0&&(e+=", orderBy: ["+t.orderBy.map((function(t){return function(t){return t.field.canonicalString()+" ("+t.dir+")"}(t)})).join(", ")+"]"),t.startAt&&(e+=", startAt: "+Ki(t.startAt)),t.endAt&&(e+=", endAt: "+Ki(t.endAt)),"Target("+e+")"}(sa(t))+"; limitType="+t.limitType+")"}function fa(t,e){return e.isFoundDocument()&&function(t,e){var n=e.key.path;return null!==t.collectionGroup?e.key.hasCollectionId(t.collectionGroup)&&t.path.isPrefixOf(n):gi.isDocumentKey(t.path)?t.path.isEqual(n):t.path.isImmediateParentOf(n)}(t,e)&&function(t,e){for(var n=0,r=t.explicitOrderBy;n<r.length;n++){var i=r[n];if(!i.field.isKeyField()&&null===e.data.field(i.field))return!1}return!0}(t,e)&&function(t,e){for(var n=0,r=t.filters;n<r.length;n++)if(!r[n].matches(e))return!1;return!0}(t,e)&&function(t,e){return!(t.startAt&&!Xi(t.startAt,oa(t),e)||t.endAt&&Xi(t.endAt,oa(t),e))}(t,e)}function da(t){return function(e,n){for(var r=!1,i=0,a=oa(t);i<a.length;i++){var o=a[i],s=pa(o,e,n);if(0!==s)return s;r=r||o.field.isKeyField()}return 0}}function pa(t,e,n){var r=t.field.isKeyField()?gi.comparator(e.key,n.key):function(t,e,n){var r=e.data.field(t),i=n.data.field(t);return null!==r&&null!==i?bi(r,i):Hr()}
1(t.field,e,n);switch(t.dir){case"asc":return r;case"desc":return-1*r;default:return Hr()}}function ga(t,e){if(t.I){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:di(e)?"-0":e}}function ya(t){return{integerValue:""+t}}function va(t,e){return pi(e)?ya(e):ga(t,e)}var ma=function(){this._=void 0};function ba(t,e,n){return t instanceof ka?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 Ca?Oa(t,e):t instanceof Sa?Ea(t,e):function(t,e){var n=wa(t,e),r=Ta(n)+Ta(t.A);return Ci(n)&&Ci(t.A)?ya(r):ga(t.R,r)}(t,e)}function _a(t,e,n){return t instanceof Ca?Oa(t,e):t instanceof Sa?Ea(t,e):n}function wa(t,e){return t instanceof Aa?Ci(n=e)||function(t){return!!t&&"doubleValue"in t}(n)?e:{integerValue:0}:null;var n}var ka=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e}(ma),Ca=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return _(e,t),e}(ma);function Oa(t,e){for(var n=Ma(e),r=function(t){n.some((function(e){return vi(e,t)}))||n.push(t)},i=0,a=t.elements;i<a.length;i++)r(a[i]);return{arrayValue:{values:n}}}var Sa=function(t){function e(e){var n=this;return(n=t.call(this)||this).elements=e,n}return _(e,t),e}(ma);function Ea(t,e){for(var n=Ma(e),r=function(t){n=n.filter((function(e){return!vi(e,t)}))},i=0,a=t.elements;i<a.length;i++)r(a[i]);return{arrayValue:{values:n}}}var Aa=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).R=e,r.A=n,r}return _(e,t),e}(ma);function Ta(t){return ui(t.integerValue||t.doubleValue)}function Ma(t){return Oi(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}var Ia=function(t,e){this.field=t,this.transform=e},xa=function(t,e){this.version=t,this.transformResults=e},ja=function(){function t(t,e){this.updateTime=t,this.exists=e}return t.none=function(){return new t},t.exists=function(e){return new t(void 0,e)},t.updateTime=function(e){return new t(e)},Object.defineProperty(t.prototype,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)},t}();function La(t,e){return void 0!==t.updateTime?e.isFoundDocument()&&e.version.isEqual(t.updateTime):void 0===t.exists||t.exists===e.isFoundDocument()}var Pa=function(){};function Ra(t,e,n){t instanceof Fa?function(t,e,n){var r=t.value.clone(),i=Ua(t.fieldTransforms,e,n.transformResults);r.setAll(i),e.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(t,e,n):t instanceof Ha?function(t,e,n){if(La(t.precondition,e)){var r=Ua(t.fieldTransforms,e,n.transformResults),i=e.data;i.setAll(Ba(t)),i.setAll(r),e.convertToFoundDocument(n.version,i).setHasCommittedMutations()}else e.convertToUnknownDocument(n.version)}(t,e,n):function(t,e,n){e.convertToNoDocument(n.version).setHasCommittedMutations()}(0,e,n)}function Da(t,e,n){t instanceof Fa?function(t,e,n){if(La(t.precondition,e)){var r=t.value.clone(),i=qa(t.fieldTransforms,n,e);r.setAll(i),e.convertToFoundDocument(Va(e),r).setHasLocalMutations()}}(t,e,n):t instanceof Ha?function(t,e,n){if(La(t.precondition,e)){var r=qa(t.fieldTransforms,n,e),i=e.data;i.setAll(Ba(t)),i.setAll(r),e.convertToFoundDocument(Va(e),i).setHasLocalMutations()}}(t,e,n):function(t,e){La(t.precondition,e)&&e.convertToNoDocument(Xr.min())}(t,e)}function za(t,e){for(var n=null,r=0,i=t.fieldTransforms;r<i.length;r++){var a=i[r],o=e.data.field(a.field),s=wa(a.transform,o||null);null!=s&&(null==n&&(n=Mi.empty()),n.set(a.field,s))}return n||null}function Na(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!function(t,e){return void 0===t&&void 0===e||!(!t||!e)&&Kr(t,e,(function(t,e){return function(t,e){return t.field.isEqual(e.field)&&function(t,e){return t instanceof Ca&&e instanceof Ca||t instanceof Sa&&e instanceof Sa?Kr(t.elements,e.elements,vi):t instanceof Aa&&e instanceof Aa?vi(t.A,e.A):t instanceof ka&&e instanceof ka}(t.transform,e.transform)}(t,e)}))}(t.fieldTransforms,e.fieldTransforms)&&(0===t.type?t.value.isEqual(e.value):1!==t.type||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}function Va(t){return t.isFoundDocument()?t.version:Xr.min()}var Fa=function(t){function e(e,n,r,i){void 0===i&&(i=[]);var a=this;return(a=t.call(this)||this).key=e,a.value=n,a.precondition=r,a.fieldTransforms=i,a.type=0,a}return _(e,t),e}(Pa),Ha=function(t){function e(e,n,r,i,a){void 0===a&&(a=[]);var o=this;return(o=t.call(this)||this).key=e,o.data=n,o.fieldMask=r,o.prec
1ondition=i,o.fieldTransforms=a,o.type=1,o}return _(e,t),e}(Pa);function Ba(t){var e=new Map;return t.fieldMask.fields.forEach((function(n){if(!n.isEmpty()){var r=t.data.field(n);e.set(n,r)}})),e}function Ua(t,e,n){var r=new Map;Br(t.length===n.length);for(var i=0;i<n.length;i++){var a=t[i],o=a.transform,s=e.data.field(a.field);r.set(a.field,_a(o,s,n[i]))}return r}function qa(t,e,n){for(var r=new Map,i=0,a=t;i<a.length;i++){var o=a[i],s=o.transform,u=n.data.field(o.field);r.set(o.field,ba(s,u,e))}return r}var Wa,Ga,Ka=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.precondition=n,r.type=2,r.fieldTransforms=[],r}return _(e,t),e}(Pa),Ya=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).key=e,r.precondition=n,r.type=3,r.fieldTransforms=[],r}return _(e,t),e}(Pa),Qa=function(t){this.count=t};function Xa(t){switch(t){case Lr.OK:return Hr();case Lr.CANCELLED:case Lr.UNKNOWN:case Lr.DEADLINE_EXCEEDED:case Lr.RESOURCE_EXHAUSTED:case Lr.INTERNAL:case Lr.UNAVAILABLE:case Lr.UNAUTHENTICATED:return!1;case Lr.INVALID_ARGUMENT:case Lr.NOT_FOUND:case Lr.ALREADY_EXISTS:case Lr.PERMISSION_DENIED:case Lr.FAILED_PRECONDITION:case Lr.ABORTED:case Lr.OUT_OF_RANGE:case Lr.UNIMPLEMENTED:case Lr.DATA_LOSS:return!0;default:return Hr()}}function Za(t){if(void 0===t)return Nr("GRPC error has no .code"),Lr.UNKNOWN;switch(t){case Wa.OK:return Lr.OK;case Wa.CANCELLED:return Lr.CANCELLED;case Wa.UNKNOWN:return Lr.UNKNOWN;case Wa.DEADLINE_EXCEEDED:return Lr.DEADLINE_EXCEEDED;case Wa.RESOURCE_EXHAUSTED:return Lr.RESOURCE_EXHAUSTED;case Wa.INTERNAL:return Lr.INTERNAL;case Wa.UNAVAILABLE:return Lr.UNAVAILABLE;case Wa.UNAUTHENTICATED:return Lr.UNAUTHENTICATED;case Wa.INVALID_ARGUMENT:return Lr.INVALID_ARGUMENT;case Wa.NOT_FOUND:return Lr.NOT_FOUND;case Wa.ALREADY_EXISTS:return Lr.ALREADY_EXISTS;case Wa.PERMISSION_DENIED:return Lr.PERMISSION_DENIED;case Wa.FAILED_PRECONDITION:return Lr.FAILED_PRECONDITION;case Wa.ABORTED:return Lr.ABORTED;case Wa.OUT_OF_RANGE:return Lr.OUT_OF_RANGE;case Wa.UNIMPLEMENTED:return Lr.UNIMPLEMENTED;case Wa.DATA_LOSS:return Lr.DATA_LOSS;default:return Hr()}}(Ga=Wa||(Wa={}))[Ga.OK=0]="OK",Ga[Ga.CANCELLED=1]="CANCELLED",Ga[Ga.UNKNOWN=2]="UNKNOWN",Ga[Ga.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ga[Ga.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ga[Ga.NOT_FOUND=5]="NOT_FOUND",Ga[Ga.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ga[Ga.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ga[Ga.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ga[Ga.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ga[Ga.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ga[Ga.ABORTED=10]="ABORTED",Ga[Ga.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ga[Ga.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ga[Ga.INTERNAL=13]="INTERNAL",Ga[Ga.UNAVAILABLE=14]="UNAVAILABLE",Ga[Ga.DATA_LOSS=15]="DATA_LOSS";var $a=function(){function t(t,e){this.comparator=t,this.root=e||to.EMPTY}return t.prototype.insert=function(e,n){return new t(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,to.BLACK,null,null))},t.prototype.remove=function(e){return new t(this.comparator,this.root.remove(e,this.comparator).copy(null,null,to.BLACK,null,null))},t.prototype.get=function(t){for(var e=this.root;!e.isEmpty();){var n=this.comparator(t,e.key);if(0===n)return e.value;n<0?e=e.left:n>0&&(e=e.right)}return null},t.prototype.indexOf=function(t){for(var e=0,n=this.root;!n.isEmpty();){var r=this.comparator(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.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(t.prototype,"size",{get:function(){return this.root.size},enumerable:!1,configurable:!0}),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.forEach=function(t){this.inorderTraversal((function(e,n){return t(e,n),!1}))},t.prototype.toString=function(){var t=[];return this.inorderTraversal((function(e,n){return t.push(e+":"+n),!1})),"{"+t.join(", ")+"}"},t.prototype.reverseTraversal=function(t){return this.root.reverseTraversal(t)},t.prototype.getIterator=function(){return new Ja(this.root,null,this.comparator,!1)}
1,t.prototype.getIteratorFrom=function(t){return new Ja(this.root,t,this.comparator,!1)},t.prototype.getReverseIterator=function(){return new Ja(this.root,null,this.comparator,!0)},t.prototype.getReverseIteratorFrom=function(t){return new Ja(this.root,t,this.comparator,!0)},t}(),Ja=function(){function t(t,e,n,r){this.isReverse=r,this.nodeStack=[];for(var i=1;!t.isEmpty();)if(i=e?n(t.key,e):1,r&&(i*=-1),i<0)t=this.isReverse?t.left:t.right;else{if(0===i){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}return t.prototype.getNext=function(){var t=this.nodeStack.pop(),e={key:t.key,value:t.value};if(this.isReverse)for(t=t.left;!t.isEmpty();)this.nodeStack.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack.push(t),t=t.left;return e},t.prototype.hasNext=function(){return this.nodeStack.length>0},t.prototype.peek=function(){if(0===this.nodeStack.length)return null;var t=this.nodeStack[this.nodeStack.length-1];return{key:t.key,value:t.value}},t}(),to=function(){function t(e,n,r,i,a){this.key=e,this.value=n,this.color=null!=r?r:t.RED,this.left=null!=i?i:t.EMPTY,this.right=null!=a?a:t.EMPTY,this.size=this.left.size+1+this.right.size}return t.prototype.copy=function(e,n,r,i,a){return new t(null!=e?e:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=a?a:this.right)},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 t.EMPTY;var e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),(e=e.copy(null,null,null,e.left.removeMin(),null)).fixUp()},t.prototype.remove=function(e,n){var r,i=this;if(n(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(e,i.key)){if(i.right.isEmpty())return t.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,n))}return i.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.size+1},t.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw Hr();if(this.right.isRed())throw Hr();var t=this.left.check();if(t!==this.right.check())throw Hr();return t+(this.isRed()?0:1)},t}();
1to.EMPTY=null,to.RED=!0,to.BLACK=!1,to.EMPTY=new(function(){function t(){this.size=0}return Object.defineProperty(t.prototype,"key",{get:function(){throw Hr()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){throw Hr()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){throw Hr()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){throw Hr()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){throw Hr()},enumerable:!1,configurable:!0}),t.prototype.copy=function(t,e,n,r,i){return this},t.prototype.insert=function(t,e,n){return new to(t,e)},t.prototype.remove=function(t,e){return this},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.isRed=function(){return!1},t.prototype.checkMaxDepth=function(){return!0},t.prototype.check=function(){return 0},t}());var eo=function(){function t(t){this.comparator=t,this.data=new $a(this.comparator)}return t.prototype.has=function(t){return null!==this.data.get(t)},t.prototype.first=function(){return this.data.minKey()},t.prototype.last=function(){return this.data.maxKey()},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.inorderTraversal((function(e,n){return t(e),!1}))},t.prototype.forEachInRange=function(t,e){for(var n=this.data.getIteratorFrom(t[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,t[1])>=0)return;e(r.key)}},t.prototype.forEachWhile=function(t,e){var n;for(n=void 0!==e?this.data.getIteratorFrom(e):this.data.getIterator();n.hasNext();)if(!t(n.getNext().key))return},t.prototype.firstAfterOrEqual=function(t){var e=this.data.getIteratorFrom(t);return e.hasNext()?e.getNext().key:null},t.prototype.getIterator=function(){return new no(this.data.getIterator())},t.prototype.getIteratorFrom=function(t){return new no(this.data.getIteratorFrom(t))},t.prototype.add=function(t){return this.copy(this.data.remove(t).insert(t,!0))},t.prototype.delete=function(t){return this.has(t)?this.copy(this.data.remove(t)):this},t.prototype.isEmpty=function(){return this.data.isEmpty()},t.prototype.unionWith=function(t){var e=this;return e.size<t.size&&(e=t,t=this),t.forEach((function(t){e=e.add(t)})),e},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.data.getIterator(),r=e.data.getIterator();n.hasNext();){var i=n.getNext().key,a=r.getNext().key;if(0!==this.comparator(i,a))return!1}return!0},t.prototype.toArray=function(){var t=[];return this.forEach((function(e){t.push(e)})),t},t.prototype.toString=function(){var t=[];return this.forEach((function(e){return t.push(e)})),"SortedSet("+t.toString()+")"},t.prototype.copy=function(e){var n=new t(this.comparator);return n.data=e,n},t}(),no=function(){function t(t){this.iter=t}return t.prototype.getNext=function(){return this.iter.getNext().key},t.prototype.hasNext=function(){return this.iter.hasNext()},t}(),ro=new $a(gi.comparator);function io(){return ro}var ao=new $a(gi.comparator);function oo(){return ao}var so=new $a(gi.comparator);function uo(){return so}var co=new eo(gi.comparator);function lo(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=co,r=0,i=t;r<i.length;r++){var a=i[r];n=n.add(a)}return n}var ho=new eo(Gr);function fo(){return ho}var po=function(){function t(t,e,n,r,i){this.snapshotVersion=t,this.targetChanges=e,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}return t.createSynthesizedRemoteEventForCurrentChange=function(e,n){var r=new Map;return r.set(e,go.createSynthesizedTargetChangeForCurrentChange(e,n)),new t(Xr.min(),r,fo(),io(),lo())},t}(),go=function(){function t(t,e,n,r,i){this.resumeToken=t,this.current=e,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}return t.createSynthesizedTargetChangeForCurrentChange=function(e,n){return new t(ai.EMPTY_BYTE_STRING,n,lo(),lo(),lo())},t}(),yo=function(t,e,n,r){this.v=t,this.removedTargetIds=e,this.key=n,this.P=r},vo=function(t,e){this.targetId=t,this.V=e},mo=function(t,e,n,r){void 0===n&&(n=ai.EMPTY_BYTE_STRING),void 0===r&&(r=null),this.state=t,this.targetIds=e,this.resumeToken=n,this.cause=r},bo=function(){function t(){this.S=0,this.D=ko(),this.C=ai.EMPTY_BYTE_STRING,this.N=!1,this.k=!0}return Object.defineProperty(t.prototype,"current",{get:function(){return this.N}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resumeToken",{get:function(){return this.C},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"F",{get:function(){return 0!==this.S},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"$",{get:function(){return this.k},enumerable:!1,configurable:!0}),t.prototype.O=function(t){t.approximateByteSize()>0&&(this.k=!0,this.C=t)},t.prototype.M=function(){var t=lo(),e=lo(),n=lo();return this.D.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:Hr()}})),new go(this.C,this.N,t,e,n)},t.prototype.L=function(){this.k=!1,this.D=ko()},t.prototype.B=function(t,e){this.k=!0,this.D=this.D.insert(t,e)},t.prototype.q=function(t){this.k=!0,this.D=this.D.remove(t)},t.prototype.U=function(){this.S+=1},t.prototype.K=function(){this.S-=1},t.prototype.j=function(){this.k=!0,this.N=!0},t}(),_o=function(){function t(t){this.W=t,this.G=new Map,this.H=io(),this.J=wo(),this.Y=new eo(Gr)}return t.prototype.X=function(t){for(var e=0,n=t.v;e<n.length;e++){var r=n[e];t.P&&t.P.isFoundDocument()?this.Z(r,t.P):this.tt(r,t.key,t.P)}for(var i=0,a=t.removedTargetIds;i<a.length;i++)this.tt(r=a[i],t.key,t.P)},t.prototype.et=function(t){var e=this;this.forEachTarget(t,(function(n){var r=e.nt(n);switch(t.state){case 0:e.st(n)&&r.O(t.resumeToken);break;case 1:r.K(),r.F||r.L(),r.O(t.resumeToken);break;case 2:r.K(),r.F||e.removeTarget(n);break;case 3:e.st(n)&&(r.j(),r.O(t.resumeToken));break;case 4:e.st(n)&&(e.it(n),r.O(t.resumeToken));break;default:Hr()}}))},t.prototype.forEachTarget=function(t,e){var n=this;t.targetIds.length>
10?t.targetIds.forEach(e):this.G.forEach((function(t,r){n.st(r)&&e(r)}))},t.prototype.rt=function(t){var e=t.targetId,n=t.V.count,r=this.ot(e);if(r){var i=r.target;if(Di(i))if(0===n){var a=new gi(i.path);this.tt(e,a,xi.newNoDocument(a,Xr.min()))}else Br(1===n);else this.ct(e)!==n&&(this.it(e),this.Y=this.Y.add(e))}},t.prototype.ut=function(t){var e=this,n=new Map;this.G.forEach((function(r,i){var a=e.ot(i);if(a){if(r.current&&Di(a.target)){var o=new gi(a.target.path);null!==e.H.get(o)||e.at(i,o)||e.tt(i,o,xi.newNoDocument(o,t))}r.$&&(n.set(i,r.M()),r.L())}}));var r=lo();this.J.forEach((function(t,n){var i=!0;n.forEachWhile((function(t){var n=e.ot(t);return!n||2===n.purpose||(i=!1,!1)})),i&&(r=r.add(t))}));var i=new po(t,n,this.Y,this.H,r);return this.H=io(),this.J=wo(),this.Y=new eo(Gr),i},t.prototype.Z=function(t,e){if(this.st(t)){var n=this.at(t,e.key)?2:0;this.nt(t).B(e.key,n),this.H=this.H.insert(e.key,e),this.J=this.J.insert(e.key,this.ht(e.key).add(t))}},t.prototype.tt=function(t,e,n){if(this.st(t)){var r=this.nt(t);this.at(t,e)?r.B(e,1):r.q(e),this.J=this.J.insert(e,this.ht(e).delete(t)),n&&(this.H=this.H.insert(e,n))}},t.prototype.removeTarget=function(t){this.G.delete(t)},t.prototype.ct=function(t){var e=this.nt(t).M();return this.W.getRemoteKeysForTarget(t).size+e.addedDocuments.size-e.removedDocuments.size},t.prototype.U=function(t){this.nt(t).U()},t.prototype.nt=function(t){var e=this.G.get(t);return e||(e=new bo,this.G.set(t,e)),e},t.prototype.ht=function(t){var e=this.J.get(t);return e||(e=new eo(Gr),this.J=this.J.insert(t,e)),e},t.prototype.st=function(t){var e=null!==this.ot(t);return e||zr("WatchChangeAggregator","Detected inactive target",t),e},t.prototype.ot=function(t){var e=this.G.get(t);return e&&e.F?null:this.W.lt(t)},t.prototype.it=function(t){var e=this;this.G.set(t,new bo),this.W.getRemoteKeysForTarget(t).forEach((function(n){e.tt(t,n,null)}))},t.prototype.at=function(t,e){return this.W.getRemoteKeysForTarget(t).has(e)},t}();function wo(){return new $a(gi.comparator)}function ko(){return new $a(gi.comparator)}var Co={asc:"ASCENDING",desc:"DESCENDING"},Oo={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},So=function(t,e){this.databaseId=t,this.I=e};function Eo(t,e){return t.I?new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")+"."+("000000000"+e.nanoseconds).slice(-9)+"Z":{seconds:""+e.seconds,nanos:e.nanoseconds}}function Ao(t,e){return t.I?e.toBase64():e.toUint8Array()}function To(t,e){return Eo(t,e.toTimestamp())}function Mo(t){return Br(!!t),Xr.fromTimestamp(function(t){var e=si(t);return new Qr(e.seconds,e.nanos)}(t))}function Io(t,e){return function(t){return new ei(["projects",t.projectId,"databases",t.database])}(t).child("documents").child(e).canonicalString()}function xo(t){var e=ei.fromString(t);return Br(ts(e)),e}function jo(t,e){return Io(t.databaseId,e.path)}function Lo(t,e){var n=xo(e);if(n.get(1)!==t.databaseId.projectId)throw new Pr(Lr.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new Pr(Lr.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new gi(zo(n))}function Po(t,e){return Io(t.databaseId,e)}function Ro(t){var e=xo(t);return 4===e.length?ei.emptyPath():zo(e)}function Do(t){return new ei(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function zo(t){return Br(t.length>4&&"documents"===t.get(4)),t.popFirst(5)}function No(t,e,n){return{name:jo(t,e),fields:n.value.mapValue.fields}}function Vo(t,e,n){var r=Lo(t,e.name),i=Mo(e.updateTime),a=new Mi({mapValue:{fields:e.fields}}),o=xi.newFoundDocument(r,i,a);return n&&o.setHasCommittedMutations(),n?o.setHasCommittedMutations():o}function Fo(t,e){var n;if(e instanceof Fa)n={update:No(t,e.key,e.value)};else if(e instanceof Ka)n={delete:jo(t,e.key)};else if(e instanceof Ha)n={update:No(t,e.key,e.data),updateMask:Jo(e.fieldMask)};else{if(!(e instanceof Ya))return Hr();n={verify:jo(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map((function(t){return function(t,e){var n=e.transform;if(n instanceof ka)return{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(n instanceof Ca)return{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof Sa)return{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof Aa)return{fieldPath:e.field.canonicalString(),increment:n.A};throw Hr()}(0,t)}))),e.precondition.isNone||(n.currentDocument=function(t,e){return void 0!==e.updateTime?{updateTime:To(t,e.updateTime)}:void 0!==e.exists?{exists:e.exists}:Hr()}(t,e.precondition)),n}function Ho(t,e){var n=e.currentDocument?function(t){return void 0!==t.updateTime?ja.updateTime(Mo(t.updateTime)):void 0!==t.exists?ja.exists(t.exists):ja.none()}(e.currentDocument):ja.none(),r=e.updateTransforms?e.updateTransforms.map((function(e){return function(t,e){var n=null;"setToServerValue"in e?(Br("REQUEST_TIME"===e.setToServerValue),n=new ka):"appendMissingElements"in e?n=new Ca(e.appendMissingElements.values||[]):"removeAllFromArray"in e?n=new Sa(e.removeAllFromArray.values||[]):"increment"in e?n=new Aa(t,e.increment):Hr();var r=ri.fromServerFormat(e.fieldPath);return new Ia(r,n)}(t,e)})):[];if(e.update){var i=Lo(t,e.update.name),a=new Mi({mapValue:{fields:e.update.fields}});if(e.updateMask){var o=function(t){return new ii((t.fieldPaths||[]).map((function(t){return ri.fromServerFormat(t)})))}(e.updateMask);return new Ha(i,a,o,n,r)}return new Fa(i,a,n,r)}if(e.delete){var s=Lo(t,e.delete);return new Ka(s,n)}if(e.verify){var u=Lo(t,e.verify);return new Ya(u,n)}return Hr()}function Bo(t,e){return{documents:[Po(t,e.path)]}}function Uo(t,e){var n={structuredQuery:{}},r=e.path;null!==e.collectionGroup?(n.parent=Po(t,r),n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(n.parent=Po(t,r.popLast()),n.structuredQuery.from=[{collectionId:r.lastSegment()}]);var i=function(t){if(0!==t.length){var e=t.map((function(t){return function(t){if("=="===t.op){if(Ei(t.value))return{unaryFilter:{field:Qo(t.field),op:"IS_NAN"}};if(Si(t.value))return{unaryFilter:{field:Qo(t.field),op:"IS_NULL"}}}else if("!="===t.op){if(Ei(t.value))return{unaryFilter:{field:Qo(t.field),op:"IS_NOT_NA
1N"}};if(Si(t.value))return{unaryFilter:{field:Qo(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Qo(t.field),op:Yo(t.op),value:t.value}}}(t)}));return 1===e.length?e[0]:{compositeFilter:{op:"AND",filters:e}}}}(e.filters);i&&(n.structuredQuery.where=i);var a=function(t){if(0!==t.length)return t.map((function(t){return function(t){return{field:Qo(t.field),direction:Ko(t.dir)}}(t)}))}(e.orderBy);a&&(n.structuredQuery.orderBy=a);var o=function(t,e){return t.I||fi(e)?e:{value:e}}(t,e.limit);return null!==o&&(n.structuredQuery.limit=o),e.startAt&&(n.structuredQuery.startAt=Wo(e.startAt)),e.endAt&&(n.structuredQuery.endAt=Wo(e.endAt)),n}function qo(t){var e=Ro(t.parent),n=t.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){Br(1===r);var a=n.from[0];a.allDescendants?i=a.collectionId:e=e.child(a.collectionId)}var o=[];n.where&&(o=function t(e){return e?void 0!==e.unaryFilter?[$o(e)]:void 0!==e.fieldFilter?[Zo(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map((function(e){return t(e)})).reduce((function(t,e){return t.concat(e)})):Hr():[]}(n.where));var s=[];n.orderBy&&(s=n.orderBy.map((function(t){return function(t){return new Yi(Xo(t.field),function(t){switch(t){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(t.direction))}(t)})));var u=null;n.limit&&(u=function(t){var e;return fi(e="object"==typeof t?t.value:t)?null:e}(n.limit));var c=null;n.startAt&&(c=Go(n.startAt));var l=null;return n.endAt&&(l=Go(n.endAt)),Ji(e,i,s,o,u,"F",c,l)}function Wo(t){return{before:t.before,values:t.position}}function Go(t){return new Gi(t.values||[],!!t.before)}function Ko(t){return Co[t]}function Yo(t){return Oo[t]}function Qo(t){return{fieldPath:t.canonicalString()}}function Xo(t){return ri.fromServerFormat(t.fieldPath)}function Zo(t){return zi.create(Xo(t.fieldFilter.field),function(t){switch(t){case"EQUAL":return"==";case"NOT_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"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":default:return Hr()}}(t.fieldFilter.op),t.fieldFilter.value)}function $o(t){switch(t.unaryFilter.op){case"IS_NAN":var e=Xo(t.unaryFilter.field);return zi.create(e,"==",{doubleValue:NaN});case"IS_NULL":var n=Xo(t.unaryFilter.field);return zi.create(n,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":var r=Xo(t.unaryFilter.field);return zi.create(r,"!=",{doubleValue:NaN});case"IS_NOT_NULL":var i=Xo(t.unaryFilter.field);return zi.create(i,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":default:return Hr()}}function Jo(t){var e=[];return t.fields.forEach((function(t){return e.push(t.canonicalString())})),{fieldPaths:e}}function ts(t){return t.length>=4&&"projects"===t.get(0)&&"databases"===t.get(2)}function es(t){for(var e="",n=0;n<t.length;n++)e.length>0&&(e=rs(e)),e=ns(t.get(n),e);return rs(e)}function ns(t,e){for(var n=e,r=t.length,i=0;i<r;i++){var a=t.charAt(i);switch(a){case"\0":n+="\x01\x10";break;case"\x01":n+="\x01\x11";break;default:n+=a}}return n}function rs(t){return t+"\x01\x01"}function is(t){var e=t.length;if(Br(e>=2),2===e)return Br("\x01"===t.charAt(0)&&"\x01"===t.charAt(1)),ei.emptyPath();for(var n=e-2,r=[],i="",a=0;a<e;){var o=t.indexOf("\x01",a);switch((o<0||o>n)&&Hr(),t.charAt(o+1)){case"\x01":var s=t.substring(a,o),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case"\x10":i+=t.substring(a,o),i+="\0";break;case"\x11":i+=t.substring(a,o+1);break;default:Hr()}a=o+2}return new ei(r)}var as=function(t,e){this.seconds=t,this.nanoseconds=e},os=function(t,e,n){this.ownerId=t,this.allowTabSynchronization=e,this.leaseTimestampMs=n};os.store="owner",os.key="owner";var ss=function(t,e,n){this.userId=t,this.lastAcknowledgedBatchId=e,this.lastStreamToken=n};ss.store="mutationQueues",ss.keyPath="userId";var us=function(t,e,n,r,i){this.userId=t,this.batchId=e,this.localWriteTimeMs=n,this.baseMutations=r,this.mutations=i};us.store="mutations",us.keyPath="batchId",us.userMutationsIndex="userMutationsIndex",us.userMutationsKeyPath=["userId","batchId"];var cs=function(){function t(){}return t.prefixForUser=function(t){return[t]},t.prefixForPath=function(t,e){return[t,es(e)]},t.key=function(t,e,n){return[t,es(e),n]},t}();cs.store="documentMutations",cs.PLACEHOLDER=new cs;var ls=function(t,e){this.path=t,this.readTime=e},hs=function(t,e){this.path=t,this.version=e},fs=function(t,e,n,r,i,a){this.unknownDocument=t,this.noDocument=e,this.document=n,this.hasCommittedMutations=r,this.readTime=i,this.parentPath=a};fs.store="remoteDocuments",fs.readTimeIndex="readTimeIndex",fs.readTimeIndexPath="readTime",fs.collectionReadTimeIndex="collectionReadTimeIndex",fs.collectionReadTimeIndexPath=["parentPath","readTime"];var ds=function(t){this.byteSize=t};ds.store="remoteDocumentGlobal",ds.key="remoteDocumentGlobalKey";var ps=function(t,e,n,r,i,a,o){this.targetId=t,this.canonicalId=e,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.lastLimboFreeSnapshotVersion=a,this.query=o};ps.store="targets",ps.keyPath="targetId",ps.queryTargetsIndexName="queryTargetsIndex",ps.queryTargetsKeyPath=["canonicalId","targetId"];var gs=function(t,e,n){this.targetId=t,this.path=e,this.sequenceNumber=n};gs.store="targetDocuments",gs.keyPath=["targetId","path"],gs.documentTargetsIndex="documentTargetsIndex",gs.documentTargetsKeyPath=["path","targetId"];var ys=function(t,e,n,r){this.highestTargetId=t,this.highestListenSequenceNumber=e,this.lastRemoteSnapshotVersion=n,this.targetCount=r};ys.key="targetGlobalKey",ys.store="targetGlobal";var vs=function(t,e){this.collectionId=t,this.parent=e};vs.store="collectionParents",vs.keyPath=["collectionId","parent"];var ms=function(t,e,n,r){this.clientId=t,this.updateTimeMs=e,this.networkEnabled=n,this.inForeground=r};ms.store="clientMetadata",ms.keyPath="clientId";var bs=function(t,e,n){this.bundleId=t,this.createTime=e,this.version=n};bs.store="bundles",bs.keyPath="bundleId";var _s=function(t,e,n){this.name=t,this.readTime=e,this.bundledQuery=n};_s.store="namedQueries",_s.keyPath="name";var ws=C(C([],C(C([],C(C([],C(C([],[ss.store,us.store,cs.store,fs.store,ps.store,os.store,ys.store,gs.store]),[ms.store])),[ds.store])),[vs.store])),[bs.store,_s.store]),ks="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",Cs=function(){function t(){this.onCommittedListeners=[]}return t.prototype.addOnCommittedListener=function(t){this.onCommittedListeners.push(t)},t.prototype.raiseOnCommittedEvent=function(){this.onCommittedListeners.forEac
1h((function(t){return t()}))},t}(),Os=function(){var t=this;this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))},Ss=function(){function t(t){var e=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t((function(t){e.isDone=!0,e.result=t,e.nextCallback&&e.nextCallback(t)}),(function(t){e.isDone=!0,e.error=t,e.catchCallback&&e.catchCallback(t)}))}return t.prototype.catch=function(t){return this.next(void 0,t)},t.prototype.next=function(e,n){var r=this;return this.callbackAttached&&Hr(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new t((function(t,i){r.nextCallback=function(n){r.wrapSuccess(e,n).next(t,i)},r.catchCallback=function(e){r.wrapFailure(n,e).next(t,i)}}))},t.prototype.toPromise=function(){var t=this;return new Promise((function(e,n){t.next(e,n)}))},t.prototype.wrapUserFunction=function(e){try{var n=e();return n instanceof t?n:t.resolve(n)}catch(e){return t.reject(e)}},t.prototype.wrapSuccess=function(e,n){return e?this.wrapUserFunction((function(){return e(n)})):t.resolve(n)},t.prototype.wrapFailure=function(e,n){return e?this.wrapUserFunction((function(){return e(n)})):t.reject(n)},t.resolve=function(e){return new t((function(t,n){t(e)}))},t.reject=function(e){return new t((function(t,n){n(e)}))},t.waitFor=function(e){return new t((function(t,n){var r=0,i=0,a=!1;e.forEach((function(e){++r,e.next((function(){++i,a&&i===r&&t()}),(function(t){return n(t)}))})),a=!0,i===r&&t()}))},t.or=function(e){for(var n=t.resolve(!1),r=function(e){n=n.next((function(n){return n?t.resolve(n):e()}))},i=0,a=e;i<a.length;i++)r(a[i]);return n},t.forEach=function(t,e){var n=this,r=[];return t.forEach((function(t,i){r.push(e.call(n,t,i))})),this.waitFor(r)},t}(),Es=function(){function t(t,e){var n=this;this.action=t,this.transaction=e,this.aborted=!1,this.ft=new Os,this.transaction.oncomplete=function(){n.ft.resolve()},this.transaction.onabort=function(){e.error?n.ft.reject(new Ms(t,e.error)):n.ft.resolve()},this.transaction.onerror=function(e){var r=Ps(e.target.error);n.ft.reject(new Ms(t,r))}}return t.open=function(e,n,r,i){try{return new t(n,e.transaction(i,r))}catch(e){throw new Ms(n,e)}},Object.defineProperty(t.prototype,"dt",{get:function(){return this.ft.promise},enumerable:!1,configurable:!0}),t.prototype.abort=function(t){t&&this.ft.reject(t),this.aborted||(zr("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 xs(e)},t}(),As=function(){function t(e,n,r){this.name=e,this.version=n,this.wt=r,12.2===t._t(Object(O.i)())&&Nr("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.delete=function(t){return zr("SimpleDb","Removing database:",t),js(window.indexedDB.deleteDatabase(t)).toPromise()},t.yt=function(){if("undefined"==typeof indexedDB)return!1;if(t.gt())return!0;var e=Object(O.i)(),n=t._t(e),r=0<n&&n<10,i=t.Et(e),a=0<i&&i<4.5;return!(e.indexOf("MSIE ")>0||e.indexOf("Trident/")>0||e.indexOf("Edge/")>0||r||a)},t.gt=function(){var t;return"undefined"!=typeof process&&"YES"===(null===(t=process.env)||void 0===t?void 0:t.Tt)},t.It=function(t,e){return t.store(e)},t._t=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.Et=function(t){var e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)},t.prototype.At=function(t){return w(this,void 0,void 0,(function(){var e,n=this;return k(this,(function(r){switch(r.label){case 0:return this.db?[3,2]:(zr("SimpleDb","Opening database:",this.name),e=this,[4,new Promise((function(e,r){var i=indexedDB.open(n.name,n.version);i.onsuccess=function(t){e(t.target.result)},i.onblocked=function(){r(new Ms(t,"Cannot upgrade IndexedDB schema while another tab is open. Close all tabs that access Firestore and reload this page to proceed."))},i.onerror=function(e){var n=e.target.error;r("VersionError"===n.name?new Pr(Lr.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."):new Ms(t,n))},i.onupgradeneeded=function(t){zr("SimpleDb",'Database "'+n.name+'" requires upgrade from version:',t.oldVersion),n.wt.Rt(t.target.result,i.transaction,t.oldVersion,n.version).next((function(){zr("SimpleDb","Database upgrade to version "+n.version+" complete")}
1))}}))]);case 1:e.db=r.sent(),r.label=2;case 2:return[2,(this.bt&&(this.db.onversionchange=function(t){return n.bt(t)}),this.db)]}}))}))},t.prototype.vt=function(t){this.bt=t,this.db&&(this.db.onversionchange=function(e){return t(e)})},t.prototype.runTransaction=function(t,e,n,r){return w(this,void 0,void 0,(function(){var i,a,o,s,u;return k(this,(function(c){switch(c.label){case 0:i="readonly"===e,a=0,o=function(){var e,o,u,c,l;return k(this,(function(h){switch(h.label){case 0:++a,h.label=1;case 1:return h.trys.push([1,4,,5]),[4,s.At(t)];case 2:return s.db=h.sent(),e=Es.open(s.db,t,i?"readonly":"readwrite",n),o=r(e).catch((function(t){return e.abort(t),Ss.reject(t)})).toPromise(),u={},o.catch((function(){})),[4,e.dt];case 3:return[2,(u.value=(h.sent(),o),u)];case 4:return zr("SimpleDb","Transaction failed with error:",(c=h.sent()).message,"Retrying:",l="FirebaseError"!==c.name&&a<3),s.close(),l?[3,5]:[2,{value:Promise.reject(c)}];case 5:return[2]}}))},s=this,c.label=1;case 1:return[5,o()];case 2:if("object"==typeof(u=c.sent()))return[2,u.value];c.label=3;case 3:return[3,1];case 4:return[2]}}
1))}))},t.prototype.close=function(){this.db&&this.db.close(),this.db=void 0},t}(),Ts=function(){function t(t){this.Pt=t,this.Vt=!1,this.St=null}return Object.defineProperty(t.prototype,"isDone",{get:function(){return this.Vt},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dt",{get:function(){return this.St},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cursor",{set:function(t){this.Pt=t},enumerable:!1,configurable:!0}),t.prototype.done=function(){this.Vt=!0},t.prototype.Ct=function(t){this.St=t},t.prototype.delete=function(){return js(this.Pt.delete())},t}(),Ms=function(t){function e(e,n){var r=this;return(r=t.call(this,Lr.UNAVAILABLE,"IndexedDB transaction '"+e+"' failed: "+n)||this).name="IndexedDbTransactionError",r}return _(e,t),e}(Pr);function Is(t){return"IndexedDbTransactionError"===t.name}var xs=function(){function t(t){this.store=t}return t.prototype.put=function(t,e){var n;return void 0!==e?(zr("SimpleDb","PUT",this.store.name,t,e),n=this.store.put(e,t)):(zr("SimpleDb","PUT",this.store.name,"<auto-key>",t),n=this.store.put(t)),js(n)},t.prototype.add=function(t){return zr("SimpleDb","ADD",this.store.name,t,t),js(this.store.add(t))},t.prototype.get=function(t){var e=this;return js(this.store.get(t)).next((function(n){return void 0===n&&(n=null),zr("SimpleDb","GET",e.store.name,t,n),n}))},t.prototype.delete=function(t){return zr("SimpleDb","DELETE",this.store.name,t),js(this.store.delete(t))},t.prototype.count=function(){return zr("SimpleDb","COUNT",this.store.name),js(this.store.count())},t.prototype.Nt=function(t,e){var n=this.cursor(this.options(t,e)),r=[];return this.xt(n,(function(t,e){r.push(e)})).next((function(){return r}))},t.prototype.kt=function(t,e){zr("SimpleDb","DELETE ALL",this.store.name);var n=this.options(t,e);n.Ft=!1;var r=this.cursor(n);return this.xt(r,(function(t,e,n){return n.delete()}))},t.prototype.$t=function(t,e){var n;e?n=t:(n={},e=t);var r=this.cursor(n);return this.xt(r,e)},t.prototype.Ot=function(t){var e=this.cursor({});return new Ss((function(n,r){e.onerror=function(t){var e=Ps(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.xt=function(t,e){var n=[];return new Ss((function(r,i){t.onerror=function(t){i(t.target.error)},t.onsuccess=function(t){var i=t.target.result;if(i){var a=new Ts(i),o=e(i.primaryKey,i.value,a);if(o instanceof Ss){var s=o.catch((function(t){return a.done(),Ss.reject(t)}));n.push(s)}a.isDone?r():null===a.Dt?i.continue():i.continue(a.Dt)}else r()}})).next((function(){return Ss.waitFor(n)}))},t.prototype.options=function(t,e){var n;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.Ft?n.openKeyCursor(t.range,e):n.openCursor(t.range,e)}return this.store.openCursor(t.range,e)},t}();function js(t){return new Ss((function(e,n){t.onsuccess=function(t){e(t.target.result)},t.onerror=function(t){var e=Ps(t.target.error);n(e)}}))}var Ls=!1;function Ps(t){var e=As._t(Object(O.i)());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 Pr("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 Ls||(Ls=!0,setTimeout((function(){throw r}),0)),r}}return t}var Rs=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Mt=e,r.currentSequenceNumber=n,r}return _(e,t),e}(Cs);function Ds(t,e){var n=Ur(t);return As.It(n.Mt,e)}var zs=function(){function t(t,e,n,r){this.batchId=t,this.localWriteTime=e,this.baseMutations=n,this.mutations=r}return t.prototype.applyToRemoteDocument=function(t,e){for(var n=e.mutationResults,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(t.key)&&Ra(i,t,n[r])}},t.prototype.applyToLocalView=function(t){for(var e=0,n=this.baseMutations;e<n.length;e++)(a=n[e]).key.isEqual(t.key)&&Da(a,t,this.localWriteTime);for(var r=0,i=this.mutations;r<i.length;r++){var a;(a=i[r]).key.isEqual(t.key)&&Da(a,t,this.localWriteTime)}},t.prototype.applyToLocalDocumentSet=function(t){var e=this;this.mutations.forEach((function(n){var r=t.get(n.key),i=r;
1e.applyToLocalView(i),r.isValidDocument()||i.convertToNoDocument(Xr.min())}))},t.prototype.keys=function(){return this.mutations.reduce((function(t,e){return t.add(e.key)}),lo())},t.prototype.isEqual=function(t){return this.batchId===t.batchId&&Kr(this.mutations,t.mutations,(function(t,e){return Na(t,e)}))&&Kr(this.baseMutations,t.baseMutations,(function(t,e){return Na(t,e)}))},t}(),Ns=function(){function t(t,e,n,r){this.batch=t,this.commitVersion=e,this.mutationResults=n,this.docVersions=r}return t.from=function(e,n,r){Br(e.mutations.length===r.length);for(var i=uo(),a=e.mutations,o=0;o<a.length;o++)i=i.insert(a[o].key,r[o].version);return new t(e,n,r,i)},t}(),Vs=function(){function t(t,e,n,r,i,a,o){void 0===i&&(i=Xr.min()),void 0===a&&(a=Xr.min()),void 0===o&&(o=ai.EMPTY_BYTE_STRING),this.target=t,this.targetId=e,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=a,this.resumeToken=o}return t.prototype.withSequenceNumber=function(e){return new t(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken)},t.prototype.withResumeToken=function(e,n){return new t(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e)},t.prototype.withLastLimboFreeSnapshotVersion=function(e){return new t(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken)},t}(),Fs=function(t){this.Lt=t};function Hs(t,e){if(e.document)return Vo(t.Lt,e.document,!!e.hasCommittedMutations);if(e.noDocument){var n=gi.fromSegments(e.noDocument.path),r=Gs(e.noDocument.readTime),i=xi.newNoDocument(n,r);return e.hasCommittedMutations?i.setHasCommittedMutations():i}if(e.unknownDocument){var a=gi.fromSegments(e.unknownDocument.path);return r=Gs(e.unknownDocument.version),xi.newUnknownDocument(a,r)}return Hr()}function Bs(t,e,n){var r=Us(n),i=e.key.path.popLast().toArray();if(e.isFoundDocument()){var a=function(t,e){return{name:jo(t,e.key),fields:e.data.value.mapValue.fields,updateTime:Eo(t,e.version.toTimestamp())}}(t.Lt,e),o=e.hasCommittedMutations;return new fs(null,null,a,o,r,i)}if(e.isNoDocument()){var s=e.key.path.toArray(),u=Ws(e.version);return o=e.hasCommittedMutations,new fs(null,new ls(s,u),null,o,r,i)}if(e.isUnknownDocument()){var c=e.key.path.toArray(),l=Ws(e.version);return new fs(new hs(c,l),null,null,!0,r,i)}return Hr()}function Us(t){var e=t.toTimestamp();return[e.seconds,e.nanoseconds]}function qs(t){var e=new Qr(t[0],t[1]);return Xr.fromTimestamp(e)}function Ws(t){var e=t.toTimestamp();return new as(e.seconds,e.nanoseconds)}function Gs(t){var e=new Qr(t.seconds,t.nanoseconds);return Xr.fromTimestamp(e)}function Ks(t,e){for(var n=(e.baseMutations||[]).map((function(e){return Ho(t.Lt,e)})),r=0;r<e.mutations.length-1;++r)r+1<e.mutations.length&&void 0!==e.mutations[r+1].transform&&(e.mutations[r].updateTransforms=e.mutations[r+1].transform.fieldTransforms,e.mutations.splice(r+1,1),++r);var i=e.mutations.map((function(e){return Ho(t.Lt,e)})),a=Qr.fromMillis(e.localWriteTimeMs);return new zs(e.batchId,a,n,i)}function Ys(t){var e,n,r=Gs(t.readTime),i=void 0!==t.lastLimboFreeSnapshotVersion?Gs(t.lastLimboFreeSnapshotVersion):Xr.min();return void 0!==t.query.documents?(Br(1===(n=t.query).documents.length),e=sa(ta(Ro(n.documents[0])))):e=function(t){return sa(qo(t))}(t.query),new Vs(e,t.targetId,0,t.lastListenSequenceNumber,r,i,ai.fromBase64String(t.resumeToken))}function Qs(t,e){var n,r=Ws(e.snapshotVersion),i=Ws(e.lastLimboFreeSnapshotVersion);n=Di(e.target)?Bo(t.Lt,e.target):Uo(t.Lt,e.target);var a=e.resumeToken.toBase64();return new ps(e.targetId,Pi(e.target),r,a,e.sequenceNumber,i,n)}function Xs(t){var e=qo({parent:t.parent,structuredQuery:t.structuredQuery});return"LAST"===t.limitType?ua(e,e.limit,"L"):e}var Zs=function(){function t(){}return t.prototype.getBundleMetadata=function(t,e){return $s(t).get(e).next((function(t){if(t)return{id:(e=t).bundleId,createTime:Gs(e.createTime),version:e.version};var e}))},t.prototype.saveBundleMetadata=function(t,e){return $s(t).put({bundleId:(n=e).id,createTime:Ws(Mo(n.createTime)),version:n.version});var n}
1,t.prototype.getNamedQuery=function(t,e){return Js(t).get(e).next((function(t){if(t)return{name:(e=t).name,query:Xs(e.bundledQuery),readTime:Gs(e.readTime)};var e}))},t.prototype.saveNamedQuery=function(t,e){return Js(t).put(function(t){return{name:t.name,readTime:Ws(Mo(t.readTime)),bundledQuery:t.bundledQuery}}(e))},t}();function $s(t){return Ds(t,bs.store)}function Js(t){return Ds(t,_s.store)}var tu=function(){function t(){this.Bt=new eu}return t.prototype.addToCollectionParentIndex=function(t,e){return this.Bt.add(e),Ss.resolve()},t.prototype.getCollectionParents=function(t,e){return Ss.resolve(this.Bt.getEntries(e))},t}(),eu=function(){function t(){this.index={}}return t.prototype.add=function(t){var e=t.lastSegment(),n=t.popLast(),r=this.index[e]||new eo(ei.comparator),i=!r.has(n);return this.index[e]=r.add(n),i},t.prototype.has=function(t){var e=t.lastSegment(),n=t.popLast(),r=this.index[e];return r&&r.has(n)},t.prototype.getEntries=function(t){return(this.index[t]||new eo(ei.comparator)).toArray()},t}(),nu=function(){function t(){this.qt=new eu}return t.prototype.addToCollectionParentIndex=function(t,e){var n=this;if(!this.qt.has(e)){var r=e.lastSegment(),i=e.popLast();t.addOnCommittedListener((function(){n.qt.add(e)}));var a={collectionId:r,parent:es(i)};return ru(t).put(a)}return Ss.resolve()},t.prototype.getCollectionParents=function(t,e){var n=[],r=IDBKeyRange.bound([e,""],[Yr(e),""],!1,!0);return ru(t).Nt(r).next((function(t){for(var r=0,i=t;r<i.length;r++){var a=i[r];if(a.collectionId!==e)break;n.push(is(a.parent))}return n}))},t}();function ru(t){return Ds(t,vs.store)}var iu={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},au=function(){function t(t,e,n){this.cacheSizeCollectionThreshold=t,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=n}return t.withCacheSize=function(e){return new t(e,t.DEFAULT_COLLECTION_PERCENTILE,t.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)},t}();function ou(t,e,n){var r=t.store(us.store),i=t.store(cs.store),a=[],o=IDBKeyRange.only(n.batchId),s=0,u=r.$t({range:o},(function(t,e,n){return s++,n.delete()}));a.push(u.next((function(){Br(1===s)})));for(var c=[],l=0,h=n.mutations;l<h.length;l++){var f=h[l],d=cs.key(e,f.key.path,n.batchId);a.push(i.delete(d)),c.push(f.key)}return Ss.waitFor(a).next((function(){return c}))}function su(t){if(!t)return 0;var e;if(t.document)e=t.document;else if(t.unknownDocument)e=t.unknownDocument;else{if(!t.noDocument)throw Hr();e=t.noDocument}return JSON.stringify(e).length}au.DEFAULT_COLLECTION_PERCENTILE=10,au.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,au.DEFAULT=new au(41943040,au.DEFAULT_COLLECTION_PERCENTILE,au.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),au.DISABLED=new au(-1,0,0);var uu=function(){function t(t,e,n,r){this.userId=t,this.R=e,this.Ut=n,this.referenceDelegate=r,this.Kt={}}return t.Qt=function(e,n,r,i){return Br(""!==e.uid),new t(e.isAuthenticated()?e.uid:"",n,r,i)},t.prototype.checkEmpty=function(t){var e=!0,n=IDBKeyRange.bound([this.userId,Number.NEGATIVE_INFINITY],[this.userId,Number.POSITIVE_INFINITY]);return lu(t).$t({index:us.userMutationsIndex,range:n},(function(t,n,r){e=!1,r.done()})).next((function(){return e}))},t.prototype.addMutationBatch=function(t,e,n,r){var i=this,a=hu(t),o=lu(t);return o.add({}).next((function(s){Br("number"==typeof s);for(var u=new zs(s,e,n,r),c=function(t,e,n){var r=n.baseMutations.map((function(e){return Fo(t.Lt,e)})),i=n.mutations.map((function(e){return Fo(t.Lt,e)}));return new us(e,n.batchId,n.localWriteTime.toMillis(),r,i)}(i.R,i.userId,u),l=[],h=new eo((function(t,e){return Gr(t.canonicalString(),e.canonicalString())})),f=0,d=r;f<d.length;f++){var p=d[f],g=cs.key(i.userId,p.key.path,s);h=h.add(p.key.path.popLast()),l.push(o.put(c)),l.push(a.put(g,cs.PLACEHOLDER))}return h.forEach((function(e){l.push(i.Ut.addToCollectionParentIndex(t,e))})),t.addOnCommittedListener((function(){i.Kt[s]=u.keys()})),Ss.waitFor(l).next((function(){return u}))}))},t.prototype.lookupMutationBatch=function(t,e){var n=this;return lu(t).get(e).next((function(t){return t?(Br(t.userId===n.userId),Ks(n.R,t)):null}))},t.prototype.jt=function(t,e){var n=this;return this.Kt[e]?Ss.resolve(this.Kt[e]):this.lookupMutationBatch(t,e).next((function(t){if(t){var r=t.keys();return n.Kt[e]=r,r}return null}))},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this,r=e+1,i=IDBKeyRange.lowerBound([this.userId,r]),a=null;return lu(t).$t({index:us.userMutationsIndex,range:i}
1,(function(t,e,i){e.userId===n.userId&&(Br(e.batchId>=r),a=Ks(n.R,e)),i.done()})).next((function(){return a}))},t.prototype.getHighestUnacknowledgedBatchId=function(t){var e=IDBKeyRange.upperBound([this.userId,Number.POSITIVE_INFINITY]),n=-1;return lu(t).$t({index:us.userMutationsIndex,range:e,reverse:!0},(function(t,e,r){n=e.batchId,r.done()})).next((function(){return n}))},t.prototype.getAllMutationBatches=function(t){var e=this,n=IDBKeyRange.bound([this.userId,-1],[this.userId,Number.POSITIVE_INFINITY]);return lu(t).Nt(us.userMutationsIndex,n).next((function(t){return t.map((function(t){return Ks(e.R,t)}))}))},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=cs.prefixForPath(this.userId,e.path),i=IDBKeyRange.lowerBound(r),a=[];return hu(t).$t({range:i},(function(r,i,o){var s=r[0],u=r[2],c=is(r[1]);if(s===n.userId&&e.path.isEqual(c))return lu(t).get(u).next((function(t){if(!t)throw Hr();Br(t.userId===n.userId),a.push(Ks(n.R,t))}));o.done()})).next((function(){return a}))},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new eo(Gr),i=[];return e.forEach((function(e){var a=cs.prefixForPath(n.userId,e.path),o=IDBKeyRange.lowerBound(a),s=hu(t).$t({range:o},(function(t,i,a){var o=t[0],s=t[2],u=is(t[1]);o===n.userId&&e.path.isEqual(u)?r=r.add(s):a.done()}));i.push(s)})),Ss.waitFor(i).next((function(){return n.Wt(t,r)}))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=this,r=e.path,i=r.length+1,a=cs.prefixForPath(this.userId,r),o=IDBKeyRange.lowerBound(a),s=new eo(Gr);return hu(t).$t({range:o},(function(t,e,a){var o=t[0],u=t[2],c=is(t[1]);o===n.userId&&r.isPrefixOf(c)?c.length===i&&(s=s.add(u)):a.done()})).next((function(){return n.Wt(t,s)}))},t.prototype.Wt=function(t,e){var n=this,r=[],i=[];return e.forEach((function(e){i.push(lu(t).get(e).next((function(t){if(null===t)throw Hr();Br(t.userId===n.userId),r.push(Ks(n.R,t))})))})),Ss.waitFor(i).next((function(){return r}))},t.prototype.removeMutationBatch=function(t,e){var n=this;return ou(t.Mt,this.userId,e).next((function(r){return t.addOnCommittedListener((function(){n.Gt(e.batchId)})),Ss.forEach(r,(function(e){return n.referenceDelegate.markPotentiallyOrphaned(t,e)}))}))},t.prototype.Gt=function(t){delete this.Kt[t]},t.prototype.performConsistencyCheck=function(t){var e=this;return this.checkEmpty(t).next((function(n){if(!n)return Ss.resolve();var r=IDBKeyRange.lowerBound(cs.prefixForUser(e.userId)),i=[];return hu(t).$t({range:r},(function(t,n,r){if(t[0]===e.userId){var a=is(t[1]);i.push(a)}else r.done()})).next((function(){Br(0===i.length)}))}))},t.prototype.containsKey=function(t,e){return cu(t,this.userId,e)},t.prototype.zt=function(t){var e=this;return fu(t).get(this.userId).next((function(t){return t||new ss(e.userId,-1,"")}))},t}();function cu(t,e,n){var r=cs.prefixForPath(e,n.path),i=r[1],a=IDBKeyRange.lowerBound(r),o=!1;return hu(t).$t({range:a,Ft:!0},(function(t,n,r){t[0]===e&&t[1]===i&&(o=!0),r.done()})).next((function(){return o}))}function lu(t){return Ds(t,us.store)}function hu(t){return Ds(t,cs.store)}function fu(t){return Ds(t,ss.store)}var du=function(){function t(t){this.Ht=t}return t.prototype.next=function(){return this.Ht+=2,this.Ht},t.Jt=function(){return new t(0)},t.Yt=function(){return new t(-1)},t}(),pu=function(){function t(t,e){this.referenceDelegate=t,this.R=e}return t.prototype.allocateTargetId=function(t){var e=this;return this.Xt(t).next((function(n){var r=new du(n.highestTargetId);return n.highestTargetId=r.next(),e.Zt(t,n).next((function(){return n.highestTargetId}))}))},t.prototype.getLastRemoteSnapshotVersion=function(t){return this.Xt(t).next((function(t){return Xr.fromTimestamp(new Qr(t.lastRemoteSnapshotVersion.seconds,t.lastRemoteSnapshotVersion.nanoseconds))}))},t.prototype.getHighestSequenceNumber=function(t){return this.Xt(t).next((function(t){return t.highestListenSequenceNumber}))},t.prototype.setTargetsMetadata=function(t,e,n){var r=this;return this.Xt(t).next((function(i){return i.highestListenSequenceNumber=e,n&&(i.lastRemoteSnapshotVersion=n.toTimestamp()),e>i.highestListenSequenceNumber&&(i.highestListenSequenceNumber=e),r.Zt(t,i)}))},t.prototype.addTargetData=function(t,e){var n=this;return this.te(t,e).next((function(){return n.Xt(t).next((function(r){return r.targetCount+=1,n.ee(e,r),n.Zt(t,r)}))}))},t.prototype.updateTargetData=function(t,e){return this.te(t,e)},t.prototype.removeTargetData=function(t,e){var n=this;return this.removeMatchingKeysForTargetId(t,e.targetId).next((function(){return gu(t).delete(e.targetId)})).next((function(){return n.Xt(t)})).next((function(e){return Br(e.targetCount>0),e.targetCount-=1,n.Zt(t,e)}))},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,a=[];return gu(t).$t((function(o,s){var u=Ys(s);u.sequenceNumber<=e&&null===n.get(u.targetId)&&(i++,a.push(r.removeTargetData(t,u)))})).next((function(){return Ss.waitFor(a)})).next((function(){return i}))},t.prototype.forEachTarget=function(t,e){return gu(t).$t((function(t,n){var r=Ys(n);e(r)}))},t.prototype.Xt=function(t){return yu(t).get(ys.key).next((function(t){return Br(null!==t),t}))},t.prototype.Zt=function(t,e){return yu(t).put(ys.key,e)},t.prototype.te=function(t,e){return gu(t).put(Qs(this.R,e))},t.prototype.ee=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.getTargetCount=function(t){return this.Xt(t).next((function(t){return t.targetCount}))},t.prototype.getTargetData=function(t,e){var n=Pi(e),r=IDBKeyRange.bound([n,Number.NEGATIVE_INFINITY],[n,Number.POSITIVE_INFINITY]),i=null;
1return gu(t).$t({range:r,index:ps.queryTargetsIndexName},(function(t,n,r){var a=Ys(n);Ri(e,a.target)&&(i=a,r.done())})).next((function(){return i}))},t.prototype.addMatchingKeys=function(t,e,n){var r=this,i=[],a=vu(t);return e.forEach((function(e){var o=es(e.path);i.push(a.put(new gs(n,o))),i.push(r.referenceDelegate.addReference(t,n,e))})),Ss.waitFor(i)},t.prototype.removeMatchingKeys=function(t,e,n){var r=this,i=vu(t);return Ss.forEach(e,(function(e){var a=es(e.path);return Ss.waitFor([i.delete([n,a]),r.referenceDelegate.removeReference(t,n,e)])}))},t.prototype.removeMatchingKeysForTargetId=function(t,e){var n=vu(t),r=IDBKeyRange.bound([e],[e+1],!1,!0);return n.delete(r)},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=IDBKeyRange.bound([e],[e+1],!1,!0),r=vu(t),i=lo();return r.$t({range:n,Ft:!0},(function(t,e,n){var r=is(t[1]),a=new gi(r);i=i.add(a)})).next((function(){return i}))},t.prototype.containsKey=function(t,e){var n=es(e.path),r=IDBKeyRange.bound([n],[Yr(n)],!1,!0),i=0;return vu(t).$t({index:gs.documentTargetsIndex,Ft:!0,range:r},(function(t,e,n){0!==t[0]&&(i++,n.done())})).next((function(){return i>0}))},t.prototype.lt=function(t,e){return gu(t).get(e).next((function(t){return t?Ys(t):null}))},t}();function gu(t){return Ds(t,ps.store)}function yu(t){return Ds(t,ys.store)}function vu(t){return Ds(t,gs.store)}function mu(t){return w(this,void 0,void 0,(function(){return k(this,(function(e){if(t.code!==Lr.FAILED_PRECONDITION||t.message!==ks)throw t;return zr("LocalStore","Unexpectedly lost primary lease"),[2]}))}))}function bu(t,e){var n=t[1],r=e[1],i=Gr(t[0],e[0]);return 0===i?Gr(n,r):i}var _u=function(){function t(t){this.ne=t,this.buffer=new eo(bu),this.se=0}return t.prototype.ie=function(){return++this.se},t.prototype.re=function(t){var e=[t,this.ie()];if(this.buffer.size<this.ne)this.buffer=this.buffer.add(e);else{var n=this.buffer.last();bu(e,n)<0&&(this.buffer=this.buffer.delete(n).add(e))}},Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.buffer.last()[0]},enumerable:!1,configurable:!0}),t}(),wu=function(){function t(t,e){this.garbageCollector=t,this.asyncQueue=e,this.oe=!1,this.ce=null}return t.prototype.start=function(t){-1!==this.garbageCollector.params.cacheSizeCollectionThreshold&&this.ue(t)},t.prototype.stop=function(){this.ce&&(this.ce.cancel(),this.ce=null)},Object.defineProperty(t.prototype,"started",{get:function(){return null!==this.ce},enumerable:!1,configurable:!0}),t.prototype.ue=function(t){var e=this,n=this.oe?3e5:6e4;zr("LruGarbageCollector","Garbage collection scheduled in "+n+"ms"),this.ce=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",n,(function(){return w(e,void 0,void 0,(function(){var e;return k(this,(function(n){switch(n.label){case 0:this.ce=null,this.oe=!0,n.label=1;case 1:return n.trys.push([1,3,,7]),[4,t.collectGarbage(this.garbageCollector)];case 2:return n.sent(),[3,7];case 3:return Is(e=n.sent())?(zr("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",e),[3,6]):[3,4];case 4:return[4,mu(e)];case 5:n.sent(),n.label=6;case 6:return[3,7];case 7:return[4,this.ue(t)];case 8:return n.sent(),[2]}}))}))}))},t}(),ku=function(){function t(t,e){this.ae=t,this.params=e}return t.prototype.calculateTargetCount=function(t,e){return this.ae.he(t).next((function(t){return Math.floor(e/100*t)}))},t.prototype.nthSequenceNumber=function(t,e){var n=this;if(0===e)return Ss.resolve(jr.o);var r=new _u(e);return this.ae.forEachTarget(t,(function(t){return r.re(t.sequenceNumber)})).next((function(){return n.ae.le(t,(function(t){return r.re(t)}))})).next((function(){return r.maxValue}))},t.prototype.removeTargets=function(t,e,n){return this.ae.removeTargets(t,e,n)},t.prototype.removeOrphanedDocuments=function(t,e){return this.ae.removeOrphanedDocuments(t,e)},t.prototype.collect=function(t,e){var n=this;return-1===this.params.cacheSizeCollectionThreshold?(zr("LruGarbageCollector","Garbage collection skipped; disabled"),Ss.resolve(iu)):this.getCacheSize(t).next((function(r){return r<n.params.cacheSizeCollectionThreshold?(zr("LruGarbageCollector","Garbage collection skipped; Cache size "+r+" is lower than threshold "+n.params.cacheSizeCollectionThreshold),iu):n.fe(t,e)}))},t.prototype.getCacheSize=function(t){return this.ae.getCacheSize(t)}
1,t.prototype.fe=function(t,e){var n,r,i,a,o,s,u,c=this,l=Date.now();return this.calculateTargetCount(t,this.params.percentileToCollect).next((function(e){return e>c.params.maximumSequenceNumbersToCollect?(zr("LruGarbageCollector","Capping sequence numbers to collect down to the maximum of "+c.params.maximumSequenceNumbersToCollect+" from "+e),r=c.params.maximumSequenceNumbersToCollect):r=e,a=Date.now(),c.nthSequenceNumber(t,r)})).next((function(r){return n=r,o=Date.now(),c.removeTargets(t,n,e)})).next((function(e){return i=e,s=Date.now(),c.removeOrphanedDocuments(t,n)})).next((function(t){return u=Date.now(),Dr()<=S.a.DEBUG&&zr("LruGarbageCollector","LRU Garbage Collection\n\tCounted targets in "+(a-l)+"ms\n\tDetermined least recently used "+r+" in "+(o-a)+"ms\n\tRemoved "+i+" targets in "+(s-o)+"ms\n\tRemoved "+t+" documents in "+(u-s)+"ms\nTotal Duration: "+(u-l)+"ms"),Ss.resolve({didRun:!0,sequenceNumbersCollected:r,targetsRemoved:i,documentsRemoved:t})}))},t}(),Cu=function(){function t(t,e){this.db=t,this.garbageCollector=function(t,e){return new ku(t,e)}(this,e)}return t.prototype.he=function(t){var e=this.de(t);return this.db.getTargetCache().getTargetCount(t).next((function(t){return e.next((function(e){return t+e}))}))},t.prototype.de=function(t){var e=0;return this.le(t,(function(t){e++})).next((function(){return e}))},t.prototype.forEachTarget=function(t,e){return this.db.getTargetCache().forEachTarget(t,e)},t.prototype.le=function(t,e){return this.we(t,(function(t,n){return e(n)}))},t.prototype.addReference=function(t,e,n){return Ou(t,n)},t.prototype.removeReference=function(t,e,n){return Ou(t,n)},t.prototype.removeTargets=function(t,e,n){return this.db.getTargetCache().removeTargets(t,e,n)},t.prototype.markPotentiallyOrphaned=function(t,e){return Ou(t,e)},t.prototype._e=function(t,e){return function(t,e){var n=!1;return fu(t).Ot((function(r){return cu(t,r,e).next((function(t){return t&&(n=!0),Ss.resolve(!t)}))})).next((function(){return n}))}(t,e)},t.prototype.removeOrphanedDocuments=function(t,e){var n=this,r=this.db.getRemoteDocumentCache().newChangeBuffer(),i=[],a=0;return this.we(t,(function(o,s){if(s<=e){var u=n._e(t,o).next((function(e){if(!e)return a++,r.getEntry(t,o).next((function(){return r.removeEntry(o),vu(t).delete([0,es(o.path)])}))}));i.push(u)}})).next((function(){return Ss.waitFor(i)})).next((function(){return r.apply(t)})).next((function(){return a}))},t.prototype.removeTarget=function(t,e){var n=e.withSequenceNumber(t.currentSequenceNumber);return this.db.getTargetCache().updateTargetData(t,n)},t.prototype.updateLimboDocument=function(t,e){return Ou(t,e)},t.prototype.we=function(t,e){var n,r=vu(t),i=jr.o;return r.$t({index:gs.documentTargetsIndex},(function(t,r){var a=r.path,o=r.sequenceNumber;0===t[0]?(i!==jr.o&&e(new gi(is(n)),i),i=o,n=a):i=jr.o})).next((function(){i!==jr.o&&e(new gi(is(n)),i)}))},t.prototype.getCacheSize=function(t){return this.db.getRemoteDocumentCache().getSize(t)},t}();function Ou(t,e){return vu(t).put(function(t,e){return new gs(0,es(t.path),e)}(e,t.currentSequenceNumber))}var Su=function(){function t(t,e){this.mapKeyFn=t,this.equalsFn=e,this.inner={}}return t.prototype.get=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var a=i[r],o=a[1];if(this.equalsFn(a[0],t))return o}},t.prototype.has=function(t){return void 0!==this.get(t)},t.prototype.set=function(t,e){var n=this.mapKeyFn(t),r=this.inner[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(this.equalsFn(r[i][0],t))return void(r[i]=[t,e]);r.push([t,e])}else this.inner[n]=[[t,e]]},t.prototype.delete=function(t){var e=this.mapKeyFn(t),n=this.inner[e];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(this.equalsFn(n[r][0],t))return 1===n.length?delete this.inner[e]:n.splice(r,1),!0;return!1},t.prototype.forEach=function(t){$r(this.inner,(function(e,n){for(var r=0,i=n;r<i.length;r++){var a=i[r];t(a[0],a[1])}}))},t.prototype.isEmpty=function(){return Jr(this.inner)},t}(),Eu=function(){function t(){this.changes=new Su((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),this.changesApplied=!1}return t.prototype.getReadTime=function(t){var e=this.changes.get(t);return e?e.readTime:Xr.min()},t.prototype.addEntry=function(t,e){this.assertNotApplied(),this.changes.set(t.key,{document:t,readTime:e})},t.prototype.removeEntry=function(t,e){void 0===e&&(e=null),this.assertNotApplied(),this.changes.set(t,{document:xi.newInvalidDocument(t),readTime:e})},t.prototype.getEntry=function(t,e){this.assertNotApplied();var n=this.changes.get(e);return void 0!==n?Ss.resolve(n.document):this.getFromCache(t,e)},t.prototype.getEntries=function(t,e){return this.getAllFromCache(t,e)},t.prototype.apply=function(t){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(t)},t.prototype.assertNotApplied=function(){},t}(),Au=function(){function t(t,e){this.R=t,this.Ut=e}return t.prototype.addEntry=function(t,e,n){return Iu(t).put(xu(e),n)},t.prototype.removeEntry=function(t,e){var n=Iu(t),r=xu(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.me(t,r)}))},t.prototype.getEntry=function(t,e){var n=this;return Iu(t).get(xu(e)).next((function(t){return n.ye(e,t)}))},t.prototype.ge=function(t,e){var n=this;return Iu(t).get(xu(e)).next((function(t){return{document:n.ye(e,t),size:su(t)}}))},t.prototype.getEntries=function(t,e){var n=this,r=io();return this.pe(t,e,(function(t,e){var i=n.ye(t,e);r=r.insert(t,i)})).next((function(){return r}))},t.prototype.Ee=function(t,e){var n=this,r=io(),i=new $a(gi.comparator);return this.pe(t,e,(function(t,e){var a=n.ye(t,e);r=r.insert(t,a),i=i.insert(t,su(e))})).next((function(){return{documents:r,Te:i}}
1))},t.prototype.pe=function(t,e,n){if(e.isEmpty())return Ss.resolve();var r=IDBKeyRange.bound(e.first().path.toArray(),e.last().path.toArray()),i=e.getIterator(),a=i.getNext();return Iu(t).$t({range:r},(function(t,e,r){for(var o=gi.fromSegments(t);a&&gi.comparator(a,o)<0;)n(a,null),a=i.getNext();a&&a.isEqual(o)&&(n(a,e),a=i.hasNext()?i.getNext():null),a?r.Ct(a.path.toArray()):r.done()})).next((function(){for(;a;)n(a,null),a=i.hasNext()?i.getNext():null}))},t.prototype.getDocumentsMatchingQuery=function(t,e,n){var r=this,i=io(),a=e.path.length+1,o={};if(n.isEqual(Xr.min())){var s=e.path.toArray();o.range=IDBKeyRange.lowerBound(s)}else{var u=e.path.toArray(),c=Us(n);o.range=IDBKeyRange.lowerBound([u,c],!0),o.index=fs.collectionReadTimeIndex}return Iu(t).$t(o,(function(t,n,o){if(t.length===a){var s=Hs(r.R,n);e.path.isPrefixOf(s.key.path)?fa(e,s)&&(i=i.insert(s.key,s)):o.done()}})).next((function(){return i}))},t.prototype.newChangeBuffer=function(t){return new Tu(this,!!t&&t.trackRemovals)},t.prototype.getSize=function(t){return this.getMetadata(t).next((function(t){return t.byteSize}))},t.prototype.getMetadata=function(t){return Mu(t).get(ds.key).next((function(t){return Br(!!t),t}))},t.prototype.me=function(t,e){return Mu(t).put(ds.key,e)},t.prototype.ye=function(t,e){if(e){var n=Hs(this.R,e);if(!n.isNoDocument()||!n.version.isEqual(Xr.min()))return n}return xi.newInvalidDocument(t)},t}(),Tu=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).Ie=e,r.trackRemovals=n,r.Ae=new Su((function(t){return t.toString()}),(function(t,e){return t.isEqual(e)})),r}return _(e,t),e.prototype.applyChanges=function(t){var e=this,n=[],r=0,i=new eo((function(t,e){return Gr(t.canonicalString(),e.canonicalString())}));
1return this.changes.forEach((function(a,o){var s=e.Ae.get(a);if(o.document.isValidDocument()){var u=Bs(e.Ie.R,o.document,e.getReadTime(a));i=i.add(a.path.popLast());var c=su(u);r+=c-s,n.push(e.Ie.addEntry(t,a,u))}else if(r-=s,e.trackRemovals){var l=Bs(e.Ie.R,xi.newNoDocument(a,Xr.min()),e.getReadTime(a));n.push(e.Ie.addEntry(t,a,l))}else n.push(e.Ie.removeEntry(t,a))})),i.forEach((function(r){n.push(e.Ie.Ut.addToCollectionParentIndex(t,r))})),n.push(this.Ie.updateMetadata(t,r)),Ss.waitFor(n)},e.prototype.getFromCache=function(t,e){var n=this;return this.Ie.ge(t,e).next((function(t){return n.Ae.set(e,t.size),t.document}))},e.prototype.getAllFromCache=function(t,e){var n=this;return this.Ie.Ee(t,e).next((function(t){var e=t.documents;return t.Te.forEach((function(t,e){n.Ae.set(t,e)})),e}))},e}(Eu);function Mu(t){return Ds(t,ds.store)}function Iu(t){return Ds(t,fs.store)}function xu(t){return t.path.toArray()}var ju=function(){function t(t){this.R=t}return t.prototype.Rt=function(t,e,n,r){var i=this;Br(n<r&&n>=0&&r<=11);var a=new Es("createOrUpgrade",e);n<1&&r>=1&&(function(t){t.createObjectStore(os.store)}(t),function(t){t.createObjectStore(ss.store,{keyPath:ss.keyPath}),t.createObjectStore(us.store,{keyPath:us.keyPath,autoIncrement:!0}).createIndex(us.userMutationsIndex,us.userMutationsKeyPath,{unique:!0}),t.createObjectStore(cs.store)}(t),Lu(t),function(t){t.createObjectStore(fs.store)}(t));var o=Ss.resolve();return n<3&&r>=3&&(0!==n&&(function(t){t.deleteObjectStore(gs.store),t.deleteObjectStore(ps.store),t.deleteObjectStore(ys.store)}(t),Lu(t)),o=o.next((function(){return function(t){var e=t.store(ys.store),n=new ys(0,0,Xr.min().toTimestamp(),0);return e.put(ys.key,n)}(a)}))),n<4&&r>=4&&(0!==n&&(o=o.next((function(){return function(t,e){return e.store(us.store).Nt().next((function(n){t.deleteObjectStore(us.store),t.createObjectStore(us.store,{keyPath:us.keyPath,autoIncrement:!0}).createIndex(us.userMutationsIndex,us.userMutationsKeyPath,{unique:!0});var r=e.store(us.store),i=n.map((function(t){return r.put(t)}));return Ss.waitFor(i)}))}(t,a)}))),o=o.next((function(){!function(t){t.createObjectStore(ms.store,{keyPath:ms.keyPath})}(t)}))),n<5&&r>=5&&(o=o.next((function(){return i.Re(a)}))),n<6&&r>=6&&(o=o.next((function(){return function(t){t.createObjectStore(ds.store)}(t),i.be(a)}))),n<7&&r>=7&&(o=o.next((function(){return i.ve(a)}))),n<8&&r>=8&&(o=o.next((function(){return i.Pe(t,a)}))),n<9&&r>=9&&(o=o.next((function(){!function(t){t.objectStoreNames.contains("remoteDocumentChanges")&&t.deleteObjectStore("remoteDocumentChanges")}(t),function(t){var e=t.objectStore(fs.store);e.createIndex(fs.readTimeIndex,fs.readTimeIndexPath,{unique:!1}),e.createIndex(fs.collectionReadTimeIndex,fs.collectionReadTimeIndexPath,{unique:!1})}(e)}))),n<10&&r>=10&&(o=o.next((function(){return i.Ve(a)}))),n<11&&r>=11&&(o=o.next((function(){!function(t){t.createObjectStore(bs.store,{keyPath:bs.keyPath})}(t),function(t){t.createObjectStore(_s.store,{keyPath:_s.keyPath})}(t)}))),o},t.prototype.be=function(t){var e=0;return t.store(fs.store).$t((function(t,n){e+=su(n)})).next((function(){var n=new ds(e);return t.store(ds.store).put(ds.key,n)}))},t.prototype.Re=function(t){var e=this,n=t.store(ss.store),r=t.store(us.store);return n.Nt().next((function(n){return Ss.forEach(n,(function(n){var i=IDBKeyRange.bound([n.userId,-1],[n.userId,n.lastAcknowledgedBatchId]);return r.Nt(us.userMutationsIndex,i).next((function(r){return Ss.forEach(r,(function(r){Br(r.userId===n.userId);var i=Ks(e.R,r);return ou(t,n.userId,i).next((function(){}))}))}))}))}))},t.prototype.ve=function(t){var e=t.store(gs.store),n=t.store(fs.store);return t.store(ys.store).get(ys.key).next((function(t){var r=[];return n.$t((function(n,i){var a=new ei(n),o=function(t){return[0,es(t)]}(a);r.push(e.get(o).next((function(n){return n?Ss.resolve():function(n){return e.put(new gs(0,es(n),t.highestListenSequenceNumber))}(a)})))})).next((function(){return Ss.waitFor(r)}))}))},t.prototype.Pe=function(t,e){t.createObjectStore(vs.store,{keyPath:vs.keyPath});var n=e.store(vs.store),r=new eu,i=function(t){if(r.add(t)){var e=t.lastSegment(),i=t.popLast();return n.put({collectionId:e,parent:es(i)})}};return e.store(fs.store).$t({Ft:!0},(function(t,e){var n=new ei(t);return i(n.popLast())})).next((function(){return e.store(cs.store).$t({Ft:!0},(function(t,e){var n=is(t[1]);return i(n.popLast())}))}))},t.prototype.Ve=function(t){var e=this,n=t.store(ps.store);return n.$t((function(t,r){var i=Ys(r),a=Qs(e.R,i);return n.put(a)}))},t}();function Lu(t){t.createObjectStore(gs.store,{keyPath:gs.keyPath}).createIndex(gs.documentTargetsIndex,gs.documentTargetsKeyPath,{unique:!0}),t.createObjectStore(ps.store,{keyPath:ps.keyPath}).createIndex(ps.queryTargetsIndexName,ps.queryTargetsKeyPath,{unique:!0}),t.createObjectStore(ys.store)}var Pu="Failed to obtain exclusive access to the persistence layer. To allow shared access, multi-tab synchronization has to be enabled in all tabs. If you are using `experimentalForceOwningTab:true`, make sure that only one tab has persistence enabled at any given time.",Ru=function(){function t(e,n,r,i,a,o,s,u,c,l){if(this.allowTabSynchronization=e,this.persistenceKey=n,this.clientId=r,this.Se=a,this.window=o,this.document=s,this.De=c,this.Ce=l,this.Ne=null,this.xe=!1,this.isPrimary=!1,this.networkEnabled=!0,this.ke=null,this.inForeground=!1,this.Fe=null,this.$e=null,this.Oe=Number.NEGATIVE_INFINITY,this.Me=function(t){return Promise.resolve()}
1,!t.yt())throw new Pr(Lr.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.");this.referenceDelegate=new Cu(this,i),this.Le=n+"main",this.R=new Fs(u),this.Be=new As(this.Le,11,new ju(this.R)),this.qe=new pu(this.referenceDelegate,this.R),this.Ut=new nu,this.Ue=function(t,e){return new Au(t,e)}(this.R,this.Ut),this.Ke=new Zs,this.window&&this.window.localStorage?this.Qe=this.window.localStorage:(this.Qe=null,!1===l&&Nr("IndexedDbPersistence","LocalStorage is unavailable. As a result, persistence may not work reliably. In particular enablePersistence() could fail immediately after refreshing the page."))}return t.prototype.start=function(){var t=this;return this.je().then((function(){if(!t.isPrimary&&!t.allowTabSynchronization)throw new Pr(Lr.FAILED_PRECONDITION,Pu);return t.We(),t.Ge(),t.ze(),t.runTransaction("getHighestListenSequenceNumber","readonly",(function(e){return t.qe.getHighestSequenceNumber(e)}))})).then((function(e){t.Ne=new jr(e,t.De)})).then((function(){t.xe=!0})).catch((function(e){return t.Be&&t.Be.close(),Promise.reject(e)}))},t.prototype.He=function(t){var e=this;return this.Me=function(n){return w(e,void 0,void 0,(function(){return k(this,(function(e){return this.started?[2,t(n)]:[2]}))}))},t(this.isPrimary)},t.prototype.setDatabaseDeletedListener=function(t){var e=this;this.Be.vt((function(n){return w(e,void 0,void 0,(function(){return k(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]}}
1))}))}))},t.prototype.setNetworkEnabled=function(t){var e=this;this.networkEnabled!==t&&(this.networkEnabled=t,this.Se.enqueueAndForget((function(){return w(e,void 0,void 0,(function(){return k(this,(function(t){switch(t.label){case 0:return this.started?[4,this.je()]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))})))},t.prototype.je=function(){var t=this;return this.runTransaction("updateClientMetadataAndTryBecomePrimary","readwrite",(function(e){return zu(e).put(new ms(t.clientId,Date.now(),t.networkEnabled,t.inForeground)).next((function(){if(t.isPrimary)return t.Je(e).next((function(e){e||(t.isPrimary=!1,t.Se.enqueueRetryable((function(){return t.Me(!1)})))}))})).next((function(){return t.Ye(e)})).next((function(n){return t.isPrimary&&!n?t.Xe(e).next((function(){return!1})):!!n&&t.Ze(e).next((function(){return!0}))}))})).catch((function(e){if(Is(e))return zr("IndexedDbPersistence","Failed to extend owner lease: ",e),t.isPrimary;if(!t.allowTabSynchronization)throw e;return zr("IndexedDbPersistence","Releasing owner lease after error during lease refresh",e),!1})).then((function(e){t.isPrimary!==e&&t.Se.enqueueRetryable((function(){return t.Me(e)})),t.isPrimary=e}))},t.prototype.Je=function(t){var e=this;return Du(t).get(os.key).next((function(t){return Ss.resolve(e.tn(t))}))},t.prototype.en=function(t){return zu(t).delete(this.clientId)},t.prototype.nn=function(){return w(this,void 0,void 0,(function(){var t,e,n,r=this;return k(this,(function(i){switch(i.label){case 0:return!this.isPrimary||this.sn(this.Oe,18e5)?[3,2]:(this.Oe=Date.now(),[4,this.runTransaction("maybeGarbageCollectMultiClientState","readwrite-primary",(function(t){var e=Ds(t,ms.store);return e.Nt().next((function(t){var n=r.rn(t,18e5),i=t.filter((function(t){return-1===n.indexOf(t)}));return Ss.forEach(i,(function(t){return e.delete(t.clientId)})).next((function(){return i}))}))})).catch((function(){return[]}))]);case 1:if(t=i.sent(),this.Qe)for(e=0,n=t;e<n.length;e++)this.Qe.removeItem(this.on(n[e].clientId));i.label=2;case 2:return[2]}}
1))}))},t.prototype.ze=function(){var t=this;this.$e=this.Se.enqueueAfterDelay("client_metadata_refresh",4e3,(function(){return t.je().then((function(){return t.nn()})).then((function(){return t.ze()}))}))},t.prototype.tn=function(t){return!!t&&t.ownerId===this.clientId},t.prototype.Ye=function(t){var e=this;return this.Ce?Ss.resolve(!0):Du(t).get(os.key).next((function(n){if(null!==n&&e.sn(n.leaseTimestampMs,5e3)&&!e.cn(n.ownerId)){if(e.tn(n)&&e.networkEnabled)return!0;if(!e.tn(n)){if(!n.allowTabSynchronization)throw new Pr(Lr.FAILED_PRECONDITION,Pu);return!1}}return!(!e.networkEnabled||!e.inForeground)||zu(t).Nt().next((function(t){return void 0===e.rn(t,5e3).find((function(t){return!(e.clientId===t.clientId||!(!e.networkEnabled&&t.networkEnabled||!e.inForeground&&t.inForeground&&e.networkEnabled===t.networkEnabled))}))}))})).next((function(t){return e.isPrimary!==t&&zr("IndexedDbPersistence","Client "+(t?"is":"is not")+" eligible for a primary lease."),t}))},t.prototype.shutdown=function(){return w(this,void 0,void 0,(function(){var t=this;return k(this,(function(e){switch(e.label){case 0:return this.xe=!1,this.un(),this.$e&&(this.$e.cancel(),this.$e=null),this.an(),this.hn(),[4,this.Be.runTransaction("shutdown","readwrite",[os.store,ms.store],(function(e){var n=new Rs(e,jr.o);return t.Xe(n).next((function(){return t.en(n)}))}))];case 1:return e.sent(),this.Be.close(),this.ln(),[2]}}))}))},t.prototype.rn=function(t,e){var n=this;return t.filter((function(t){return n.sn(t.updateTimeMs,e)&&!n.cn(t.clientId)}))},t.prototype.fn=function(){var t=this;return this.runTransaction("getActiveClients","readonly",(function(e){return zu(e).Nt().next((function(e){return t.rn(e,18e5).map((function(t){return t.clientId}))}))}))},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.getMutationQueue=function(t){return uu.Qt(t,this.R,this.Ut,this.referenceDelegate)},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getBundleCache=function(){return this.Ke},t.prototype.runTransaction=function(t,e,n){var r,i=this;return zr("IndexedDbPersistence","Starting transaction:",t),this.Be.runTransaction(t,"readonly"===e?"readonly":"readwrite",ws,(function(a){return r=new Rs(a,i.Ne?i.Ne.next():jr.o),"readwrite-primary"===e?i.Je(r).next((function(t){return!!t||i.Ye(r)})).next((function(e){if(!e)throw Nr("Failed to obtain primary lease for action '"+t+"'."),i.isPrimary=!1,i.Se.enqueueRetryable((function(){return i.Me(!1)})),new Pr(Lr.FAILED_PRECONDITION,ks);return n(r)})).next((function(t){return i.Ze(r).next((function(){return t}))})):i.dn(r).next((function(){return n(r)}))})).then((function(t){return r.raiseOnCommittedEvent(),t}))},t.prototype.dn=function(t){var e=this;return Du(t).get(os.key).next((function(t){if(null!==t&&e.sn(t.leaseTimestampMs,5e3)&&!e.cn(t.ownerId)&&!e.tn(t)&&!(e.Ce||e.allowTabSynchronization&&t.allowTabSynchronization))throw new Pr(Lr.FAILED_PRECONDITION,Pu)}))},t.prototype.Ze=function(t){var e=new os(this.clientId,this.allowTabSynchronization,Date.now());return Du(t).put(os.key,e)},t.yt=function(){return As.yt()},t.prototype.Xe=function(t){var e=this,n=Du(t);return n.get(os.key).next((function(t){return e.tn(t)?(zr("IndexedDbPersistence","Releasing primary lease."),n.delete(os.key)):Ss.resolve()}))},t.prototype.sn=function(t,e){var n=Date.now();return!(t<n-e||t>n&&(Nr("Detected an update time that is in the future: "+t+" > "+n),1))},t.prototype.We=function(){var t=this;null!==this.document&&"function"==typeof this.document.addEventListener&&(this.Fe=function(){t.Se.enqueueAndForget((function(){return t.inForeground="visible"===t.document.visibilityState,t.je()}))},this.document.addEventListener("visibilitychange",this.Fe),this.inForeground="visible"===this.document.visibilityState)},t.prototype.an=function(){this.Fe&&(this.document.removeEventListener("visibilitychange",this.Fe),this.Fe=null)},t.prototype.Ge=function(){var t,e=this;"function"==typeof(null===(t=this.window)||void 0===t?void 0:t.addEventListener)&&(this.ke=function(){e.un(),Object(O.q)()&&navigator.appVersion.match("Version/14")&&e.Se.enterRestrictedMode(!0),e.Se.enqueueAndForget((function(){return e.shutdown()}))},this.window.addEventListener("pagehide",this.ke))},t.prototype.hn=function(){this.ke&&(this.window.removeEventListener("pagehide",this.ke),this.ke=null)},t.prototype.cn=function(t){var e;try{var n=null!==(null===(e=this.Qe)||void 0===e?void 0:e.getItem(this.on(t)));return zr("IndexedDbPersistence","Client '"+t+"' "+(n?"is":"is not")+" zombied in LocalStorage"),n}catch(t){return Nr("IndexedDbPersistence","Failed to get zombied client id.",t),!1}},t.prototype.un=function(){if(this.Qe)try{this.Qe.setItem(this.on(this.clientId),String(Date.now()))}
1catch(t){Nr("Failed to set zombie client id.",t)}},t.prototype.ln=function(){if(this.Qe)try{this.Qe.removeItem(this.on(this.clientId))}catch(t){}},t.prototype.on=function(t){return"firestore_zombie_"+this.persistenceKey+"_"+t},t}();function Du(t){return Ds(t,os.store)}function zu(t){return Ds(t,ms.store)}function Nu(t,e){var n=t.projectId;return t.isDefaultDatabase||(n+="."+t.database),"firestore/"+e+"/"+n+"/"}var Vu=function(t,e){this.progress=t,this.wn=e},Fu=function(){function t(t,e,n){this.Ue=t,this._n=e,this.Ut=n}return t.prototype.mn=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKey(t,e).next((function(r){return n.yn(t,e,r)}))},t.prototype.yn=function(t,e,n){return this.Ue.getEntry(t,e).next((function(t){for(var e=0,r=n;e<r.length;e++)r[e].applyToLocalView(t);return t}))},t.prototype.gn=function(t,e){t.forEach((function(t,n){for(var r=0,i=e;r<i.length;r++)i[r].applyToLocalView(n)}))},t.prototype.pn=function(t,e){var n=this;return this.Ue.getEntries(t,e).next((function(e){return n.En(t,e).next((function(){return e}))}))},t.prototype.En=function(t,e){var n=this;return this._n.getAllMutationBatchesAffectingDocumentKeys(t,e).next((function(t){return n.gn(e,t)}))},t.prototype.getDocumentsMatchingQuery=function(t,e,n){return function(t){return gi.isDocumentKey(t.path)&&null===t.collectionGroup&&0===t.filters.length}(e)?this.Tn(t,e.path):aa(e)?this.In(t,e,n):this.An(t,e,n)},t.prototype.Tn=function(t,e){return this.mn(t,new gi(e)).next((function(t){var e=oo();return t.isFoundDocument()&&(e=e.insert(t.key,t)),e}))},t.prototype.In=function(t,e,n){var r=this,i=e.collectionGroup,a=oo();return this.Ut.getCollectionParents(t,i).next((function(o){return Ss.forEach(o,(function(o){var s=function(t,e){return new $i(e,null,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt)}(e,o.child(i));return r.An(t,s,n).next((function(t){t.forEach((function(t,e){a=a.insert(t,e)}))}))})).next((function(){return a}))}))},t.prototype.An=function(t,e,n){var r,i,a=this;return this.Ue.getDocumentsMatchingQuery(t,e,n).next((function(n){return r=n,a._n.getAllMutationBatchesAffectingQuery(t,e)})).next((function(e){return a.Rn(t,i=e,r).next((function(t){r=t;for(var e=0,n=i;e<n.length;e++)for(var a=n[e],o=0,s=a.mutations;o<s.length;o++){var u=s[o],c=u.key,l=r.get(c);null==l&&(l=xi.newInvalidDocument(c),r=r.insert(c,l)),Da(u,l,a.localWriteTime),l.isFoundDocument()||(r=r.remove(c))}}))})).next((function(){return r.forEach((function(t,n){fa(e,n)||(r=r.remove(t))})),r}))},t.prototype.Rn=function(t,e,n){for(var r=lo(),i=0,a=e;i<a.length;i++)for(var o=0,s=a[i].mutations;o<s.length;o++){var u=s[o];u instanceof Ha&&null===n.get(u.key)&&(r=r.add(u.key))}var c=n;return this.Ue.getEntries(t,r).next((function(t){return t.forEach((function(t,e){e.isFoundDocument()&&(c=c.insert(t,e))})),c}))},t}(),Hu=function(){function t(t,e,n,r){this.targetId=t,this.fromCache=e,this.bn=n,this.vn=r}return t.Pn=function(e,n){for(var r=lo(),i=lo(),a=0,o=n.docChanges;a<o.length;a++){var s=o[a];switch(s.type){case 0:r=r.add(s.doc.key);break;case 1:i=i.add(s.doc.key)}}return new t(e,n.fromCache,r,i)},t}(),Bu=function(){function t(){}return t.prototype.Vn=function(t){this.Sn=t},t.prototype.getDocumentsMatchingQuery=function(t,e,n,r){var i=this;return function(t){return 0===t.filters.length&&null===t.limit&&null==t.startAt&&null==t.endAt&&(0===t.explicitOrderBy.length||1===t.explicitOrderBy.length&&t.explicitOrderBy[0].field.isKeyField())}(e)||n.isEqual(Xr.min())?this.Dn(t,e):this.Sn.pn(t,r).next((function(a){var o=i.Cn(e,a);return(ea(e)||na(e))&&i.Nn(e.limitType,o,r,n)?i.Dn(t,e):(Dr()<=S.a.DEBUG&&zr("QueryEngine","Re-using previous result from %s to execute query: %s",n.toString(),ha(e)),i.Sn.getDocumentsMatchingQuery(t,e,n).next((function(t){return o.forEach((function(e){t=t.insert(e.key,e)})),t})))}))},t.prototype.Cn=function(t,e){var n=new eo(da(t));return e.forEach((function(e,r){fa(t,r)&&(n=n.add(r))})),n},t.prototype.Nn=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.compareTo(r)>0)},t.prototype.Dn=function(t,e){return Dr()<=S.a.DEBUG&&zr("QueryEngine","Using full collection scan to execute query:",ha(e)),this.Sn.getDocumentsMatchingQuery(t,e,Xr.min())},t}(),Uu=function(){function t(t,e,n,r){this.persistence=t,this.xn=e,this.R=r,this.kn=new $a(Gr),this.Fn=new Su((function(t){return Pi(t)}),Ri),this.$n=Xr.min(),this._n=t.getMutationQueue(n),this.On=t.getRemoteDocumentCache(),this.qe=t.getTargetCache(),this.Mn=new Fu(this.On,this._n,this.persistence.getIndexManager()),this.Ke=t.getBundleCache(),this.xn.Vn(this.Mn)}return t.prototype.collectGarbage=function(t){var e=this;return this.persistence.runTransaction("Collect garbage","readwrite-primary",(function(n){return t.collect(n,e.kn)}))},t}();function qu(t,e,n,r){return new Uu(t,e,n,r)}function Wu(t,e){return w(this,void 0,void 0,(function(){var n,r,i,a;return k(this,(function(o){switch(o.label){case 0:return n=Ur(t),r=n._n,i=n.Mn,[4,n.persistence.runTransaction("Handle user change","readonly",(function(t){var a;return n._n.getAllMutationBatches(t).next((function(o){return a=o,r=n.persistence.getMutationQueue(e),i=new Fu(n.On,r,n.persistence.getIndexManager()),r.getAllMutationBatches(t)})).next((function(e){for(var n=[],r=[],o=lo(),s=0,u=a;s<u.length;s++){var c=u[s];n.push(c.batchId);for(var l=0,h=c.mutations;l<h.length;l++)o=o.add(h[l].key)}for(var f=0,d=e;f<d.length;f++){var p=d[f];r.push(p.batchId);for(var g=0,y=p.mutations;g<y.length;g++)o=o.add(y[g].key)}return i.pn(t,o).next((function(t){return{Ln:t,removedBatchIds:n,addedBatchIds:r}}))}))}))];case 1:return a=o.sent(),[2,(n._n=r,n.Mn=i,n.xn.Vn(n.Mn),a)]}}))}))}function Gu(t,e){var n=Ur(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(function(t){var r=e.batch.keys(),i=n.On.newChangeBuffer({trackRemovals:!0});return function(t,e,n,r){var i=n.batch,a=i.keys(),o=Ss.resolve();return a.forEach((function(t){o=o.next((function(){return r.getEntry(e,t)})).next((function(e){var a=n.docVersions.get(t);Br(null!==a),e.version.compareTo(a)<0&&(i.applyToRemoteDocument(e,n),e.isValidDocument()&&r.addEntry(e,n.commitVersion))}))})),o.next((function(){return t._n.removeMutationBatch(e,i)}))}(n,t,e,i).next((function(){return i.apply(t)})).next((function(){return n._n.performConsistencyCheck(t)})).next((function(){return n.Mn.pn(t,r)}))}))}function Ku(t){var e=Ur(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",(function(t){return e.qe.getLastRemoteSnapshotVersion(t)}))}function Yu(t,e){var n=Ur(t),r=e.snapshotVersion,i=n.kn;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(function(t){var a=n.On.newChangeBuffer({trackRemovals:!0});i=n.kn;var o=[];
1e.targetChanges.forEach((function(e,a){var s=i.get(a);if(s){o.push(n.qe.removeMatchingKeys(t,e.removedDocuments,a).next((function(){return n.qe.addMatchingKeys(t,e.addedDocuments,a)})));var u=e.resumeToken;if(u.approximateByteSize()>0){var c=s.withResumeToken(u,r).withSequenceNumber(t.currentSequenceNumber);i=i.insert(a,c),function(t,e,n){return Br(e.resumeToken.approximateByteSize()>0),0===t.resumeToken.approximateByteSize()||e.snapshotVersion.toMicroseconds()-t.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(s,c,e)&&o.push(n.qe.updateTargetData(t,c))}}}));var s=io();if(e.documentUpdates.forEach((function(r,i){e.resolvedLimboDocuments.has(r)&&o.push(n.persistence.referenceDelegate.updateLimboDocument(t,r))})),o.push(Qu(t,a,e.documentUpdates,r,void 0).next((function(t){s=t}))),!r.isEqual(Xr.min())){var u=n.qe.getLastRemoteSnapshotVersion(t).next((function(e){return n.qe.setTargetsMetadata(t,t.currentSequenceNumber,r)}));o.push(u)}return Ss.waitFor(o).next((function(){return a.apply(t)})).next((function(){return n.Mn.En(t,s)})).next((function(){return s}))})).then((function(t){return n.kn=i,t}))}function Qu(t,e,n,r,i){var a=lo();return n.forEach((function(t){return a=a.add(t)})),e.getEntries(t,a).next((function(t){var a=io();return n.forEach((function(n,o){var s=t.get(n),u=(null==i?void 0:i.get(n))||r;o.isNoDocument()&&o.version.isEqual(Xr.min())?(e.removeEntry(n,u),a=a.insert(n,o)):!s.isValidDocument()||o.version.compareTo(s.version)>0||0===o.version.compareTo(s.version)&&s.hasPendingWrites?(e.addEntry(o,u),a=a.insert(n,o)):zr("LocalStore","Ignoring outdated watch update for ",n,". Current version:",s.version," Watch version:",o.version)})),a}))}function Xu(t,e){var n=Ur(t);return n.persistence.runTransaction("Get next mutation batch","readonly",(function(t){return void 0===e&&(e=-1),n._n.getNextMutationBatchAfterBatchId(t,e)}))}function Zu(t,e){var n=Ur(t);return n.persistence.runTransaction("Allocate target","readwrite",(function(t){var r;return n.qe.getTargetData(t,e).next((function(i){return i?Ss.resolve(r=i):n.qe.allocateTargetId(t).next((function(i){return r=new Vs(e,i,0,t.currentSequenceNumber),n.qe.addTargetData(t,r).next((function(){return r}))}))}))})).then((function(t){var r=n.kn.get(t.targetId);return(null===r||t.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.kn=n.kn.insert(t.targetId,t),n.Fn.set(e,t.targetId)),t}))}function $u(t,e,n){return w(this,void 0,void 0,(function(){var r,i,a,o;return k(this,(function(s){switch(s.label){case 0:r=Ur(t),i=r.kn.get(e),a=n?"readwrite":"readwrite-primary",s.label=1;case 1:return s.trys.push([1,4,,5]),n?[3,3]:[4,r.persistence.runTransaction("Release target",a,(function(t){return r.persistence.referenceDelegate.removeTarget(t,i)}))];case 2:s.sent(),s.label=3;case 3:return[3,5];case 4:if(!Is(o=s.sent()))throw o;return zr("LocalStore","Failed to update sequence numbers for target "+e+": "+o),[3,5];case 5:return r.kn=r.kn.remove(e),r.Fn.delete(i.target),[2]}}))}))}function Ju(t,e,n){var r=Ur(t),i=Xr.min(),a=lo();return r.persistence.runTransaction("Execute query","readonly",(function(t){return function(t,e,n){var r=Ur(t),i=r.Fn.get(n);return void 0!==i?Ss.resolve(r.kn.get(i)):r.qe.getTargetData(e,n)}(r,t,sa(e)).next((function(e){if(e)return i=e.lastLimboFreeSnapshotVersion,r.qe.getMatchingKeysForTargetId(t,e.targetId).next((function(t){a=t}))})).next((function(){return r.xn.getDocumentsMatchingQuery(t,e,n?i:Xr.min(),n?a:lo())})).next((function(t){return{documents:t,Bn:a}}))}))}function tc(t,e){var n=Ur(t),r=Ur(n.qe),i=n.kn.get(e);return i?Promise.resolve(i.target):n.persistence.runTransaction("Get target data","readonly",(function(t){return r.lt(t,e).next((function(t){return t?t.target:null}))}))}function ec(t){var e=Ur(t);return e.persistence.runTransaction("Get new document changes","readonly",(function(t){return function(t,e,n){var r=Ur(t),i=io(),a=Us(n),o=Iu(e),s=IDBKeyRange.lowerBound(a,!0);return o.$t({index:fs.readTimeIndex,range:s},(function(t,e){var n=Hs(r.R,e);i=i.insert(n.key,n),a=e.readTime})).next((function(){return{wn:i,readTime:qs(a)}}))}(e.On,t,e.$n)}
1)).then((function(t){var n=t.wn;return e.$n=t.readTime,n}))}function nc(t){return w(this,void 0,void 0,(function(){var e;return k(this,(function(n){return[2,(e=Ur(t)).persistence.runTransaction("Synchronize last document change read time","readonly",(function(t){return function(t){var e=Iu(t),n=Xr.min();return e.$t({index:fs.readTimeIndex,reverse:!0},(function(t,e,r){e.readTime&&(n=qs(e.readTime)),r.done()})).next((function(){return n}))}(t)})).then((function(t){e.$n=t}))]}))}))}function rc(t,e,n,r){return w(this,void 0,void 0,(function(){var i,a,o,s,u,c,l,h,f,d;return k(this,(function(p){switch(p.label){case 0:for(i=Ur(t),a=lo(),o=io(),s=uo(),u=0,c=n;u<c.length;u++)h=e.qn((l=c[u]).metadata.name),l.document&&(a=a.add(h)),o=o.insert(h,e.Un(l)),s=s.insert(h,e.Kn(l.metadata.readTime));return f=i.On.newChangeBuffer({trackRemovals:!0}),[4,Zu(i,function(t){return sa(ta(ei.fromString("__bundle__/docs/"+t)))}(r))];case 1:return d=p.sent(),[2,i.persistence.runTransaction("Apply bundle documents","readwrite",(function(t){return Qu(t,f,o,Xr.min(),s).next((function(e){return f.apply(t),e})).next((function(e){return i.qe.removeMatchingKeysForTargetId(t,d.targetId).next((function(){return i.qe.addMatchingKeys(t,a,d.targetId)})).next((function(){return i.Mn.En(t,e)})).next((function(){return e}))}))}))]}}))}))}function ic(t,e,n){return void 0===n&&(n=lo()),w(this,void 0,void 0,(function(){var r,i;return k(this,(function(a){switch(a.label){case 0:return[4,Zu(t,sa(Xs(e.bundledQuery)))];case 1:return r=a.sent(),[2,(i=Ur(t)).persistence.runTransaction("Save named query","readwrite",(function(t){var a=Mo(e.readTime);if(r.snapshotVersion.compareTo(a)>=0)return i.Ke.saveNamedQuery(t,e);var o=r.withResumeToken(ai.EMPTY_BYTE_STRING,a);return i.kn=i.kn.insert(o.targetId,o),i.qe.updateTargetData(t,o).next((function(){return i.qe.removeMatchingKeysForTargetId(t,r.targetId)})).next((function(){return i.qe.addMatchingKeys(t,n,r.targetId)})).next((function(){return i.Ke.saveNamedQuery(t,e)}))}))]}}))}))}var ac=function(){function t(t){this.R=t,this.Qn=new Map,this.jn=new Map}return t.prototype.getBundleMetadata=function(t,e){return Ss.resolve(this.Qn.get(e))},t.prototype.saveBundleMetadata=function(t,e){var n;return this.Qn.set(e.id,{id:(n=e).id,version:n.version,createTime:Mo(n.createTime)}),Ss.resolve()},t.prototype.getNamedQuery=function(t,e){return Ss.resolve(this.jn.get(e))},t.prototype.saveNamedQuery=function(t,e){return this.jn.set(e.name,function(t){return{name:t.name,query:Xs(t.bundledQuery),readTime:Mo(t.readTime)}}(e)),Ss.resolve()},t}(),oc=function(){function t(){this.Wn=new eo(sc.Gn),this.zn=new eo(sc.Hn)}return t.prototype.isEmpty=function(){return this.Wn.isEmpty()},t.prototype.addReference=function(t,e){var n=new sc(t,e);this.Wn=this.Wn.add(n),this.zn=this.zn.add(n)},t.prototype.Jn=function(t,e){var n=this;t.forEach((function(t){return n.addReference(t,e)}))},t.prototype.removeReference=function(t,e){this.Yn(new sc(t,e))},t.prototype.Xn=function(t,e){var n=this;t.forEach((function(t){return n.removeReference(t,e)}))},t.prototype.Zn=function(t){var e=this,n=new gi(new ei([])),r=new sc(n,t),i=new sc(n,t+1),a=[];return this.zn.forEachInRange([r,i],(function(t){e.Yn(t),a.push(t.key)})),a},t.prototype.ts=function(){var t=this;this.Wn.forEach((function(e){return t.Yn(e)}))},t.prototype.Yn=function(t){this.Wn=this.Wn.delete(t),this.zn=this.zn.delete(t)},t.prototype.es=function(t){var e=new gi(new ei([])),n=new sc(e,t),r=new sc(e,t+1),i=lo();return this.zn.forEachInRange([n,r],(function(t){i=i.add(t.key)})),i},t.prototype.containsKey=function(t){var e=new sc(t,0),n=this.Wn.firstAfterOrEqual(e);return null!==n&&t.isEqual(n.key)},t}(),sc=function(){function t(t,e){this.key=t,this.ns=e}return t.Gn=function(t,e){return gi.comparator(t.key,e.key)||Gr(t.ns,e.ns)},t.Hn=function(t,e){return Gr(t.ns,e.ns)||gi.comparator(t.key,e.key)},t}(),uc=function(){function t(t,e){this.Ut=t,this.referenceDelegate=e,this._n=[],this.ss=1,this.rs=new eo(sc.Gn)}return t.prototype.checkEmpty=function(t){return Ss.resolve(0===this._n.length)},t.prototype.addMutationBatch=function(t,e,n,r){var i=this.ss;this.ss++;var a=new zs(i,e,n,r);this._n.push(a);for(var o=0,s=r;o<s.length;o++){var u=s[o];this.rs=this.rs.add(new sc(u.key,i)),this.Ut.addToCollectionParentIndex(t,u.key.path.popLast())}return Ss.resolve(a)},t.prototype.lookupMutationBatch=function(t,e){return Ss.resolve(this.os(e))},t.prototype.getNextMutationBatchAfterBatchId=function(t,e){var n=this.cs(e+1),r=n<0?0:n;return Ss.resolve(this._n.length>r?this._n[r]:null)},t.prototype.getHighestUnacknowledgedBatchId=function(){return Ss.resolve(0===this._n.length?-1:this.ss-1)},t.prototype.getAllMutationBatches=function(t){return Ss.resolve(this._n.slice())},t.prototype.getAllMutationBatchesAffectingDocumentKey=function(t,e){var n=this,r=new sc(e,0),i=new sc(e,Number.POSITIVE_INFINITY),a=[];
1return this.rs.forEachInRange([r,i],(function(t){var e=n.os(t.ns);a.push(e)})),Ss.resolve(a)},t.prototype.getAllMutationBatchesAffectingDocumentKeys=function(t,e){var n=this,r=new eo(Gr);return e.forEach((function(t){var e=new sc(t,0),i=new sc(t,Number.POSITIVE_INFINITY);n.rs.forEachInRange([e,i],(function(t){r=r.add(t.ns)}))})),Ss.resolve(this.us(r))},t.prototype.getAllMutationBatchesAffectingQuery=function(t,e){var n=e.path,r=n.length+1,i=n;gi.isDocumentKey(i)||(i=i.child(""));var a=new sc(new gi(i),0),o=new eo(Gr);return this.rs.forEachWhile((function(t){var e=t.key.path;return!!n.isPrefixOf(e)&&(e.length===r&&(o=o.add(t.ns)),!0)}),a),Ss.resolve(this.us(o))},t.prototype.us=function(t){var e=this,n=[];return t.forEach((function(t){var r=e.os(t);null!==r&&n.push(r)})),n},t.prototype.removeMutationBatch=function(t,e){var n=this;Br(0===this.hs(e.batchId,"removed")),this._n.shift();var r=this.rs;return Ss.forEach(e.mutations,(function(i){var a=new sc(i.key,e.batchId);return r=r.delete(a),n.referenceDelegate.markPotentiallyOrphaned(t,i.key)})).next((function(){n.rs=r}))},t.prototype.Gt=function(t){},t.prototype.containsKey=function(t,e){var n=new sc(e,0),r=this.rs.firstAfterOrEqual(n);return Ss.resolve(e.isEqual(r&&r.key))},t.prototype.performConsistencyCheck=function(t){return Ss.resolve()},t.prototype.hs=function(t,e){return this.cs(t)},t.prototype.cs=function(t){return 0===this._n.length?0:t-this._n[0].batchId},t.prototype.os=function(t){var e=this.cs(t);return e<0||e>=this._n.length?null:this._n[e]},t}(),cc=function(){function t(t,e){this.Ut=t,this.ls=e,this.docs=new $a(gi.comparator),this.size=0}return t.prototype.addEntry=function(t,e,n){var r=e.key,i=this.docs.get(r),a=i?i.size:0,o=this.ls(e);return this.docs=this.docs.insert(r,{document:e.clone(),size:o,readTime:n}),this.size+=o-a,this.Ut.addToCollectionParentIndex(t,r.path.popLast())},t.prototype.removeEntry=function(t){var e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)},t.prototype.getEntry=function(t,e){var n=this.docs.get(e);return Ss.resolve(n?n.document.clone():xi.newInvalidDocument(e))},t.prototype.getEntries=function(t,e){var n=this,r=io();return e.forEach((function(t){var e=n.docs.get(t);r=r.insert(t,e?e.document.clone():xi.newInvalidDocument(t))})),Ss.resolve(r)},t.prototype.getDocumentsMatchingQuery=function(t,e,n){for(var r=io(),i=new gi(e.path.child("")),a=this.docs.getIteratorFrom(i);a.hasNext();){var o=a.getNext(),s=o.value,u=s.document,c=s.readTime;if(!e.path.isPrefixOf(o.key.path))break;c.compareTo(n)<=0||fa(e,u)&&(r=r.insert(u.key,u.clone()))}return Ss.resolve(r)},t.prototype.fs=function(t,e){return Ss.forEach(this.docs,(function(t){return e(t)}))},t.prototype.newChangeBuffer=function(t){return new lc(this)},t.prototype.getSize=function(t){return Ss.resolve(this.size)},t}(),lc=function(t){function e(e){var n=this;return(n=t.call(this)||this).Ie=e,n}return _(e,t),e.prototype.applyChanges=function(t){var e=this,n=[];
1return this.changes.forEach((function(r,i){i.document.isValidDocument()?n.push(e.Ie.addEntry(t,i.document,e.getReadTime(r))):e.Ie.removeEntry(r)})),Ss.waitFor(n)},e.prototype.getFromCache=function(t,e){return this.Ie.getEntry(t,e)},e.prototype.getAllFromCache=function(t,e){return this.Ie.getEntries(t,e)},e}(Eu),hc=function(){function t(t){this.persistence=t,this.ds=new Su((function(t){return Pi(t)}),Ri),this.lastRemoteSnapshotVersion=Xr.min(),this.highestTargetId=0,this.ws=0,this._s=new oc,this.targetCount=0,this.ys=du.Jt()}return t.prototype.forEachTarget=function(t,e){return this.ds.forEach((function(t,n){return e(n)})),Ss.resolve()},t.prototype.getLastRemoteSnapshotVersion=function(t){return Ss.resolve(this.lastRemoteSnapshotVersion)},t.prototype.getHighestSequenceNumber=function(t){return Ss.resolve(this.ws)},t.prototype.allocateTargetId=function(t){return this.highestTargetId=this.ys.next(),Ss.resolve(this.highestTargetId)},t.prototype.setTargetsMetadata=function(t,e,n){return n&&(this.lastRemoteSnapshotVersion=n),e>this.ws&&(this.ws=e),Ss.resolve()},t.prototype.te=function(t){this.ds.set(t.target,t);var e=t.targetId;e>this.highestTargetId&&(this.ys=new du(e),this.highestTargetId=e),t.sequenceNumber>this.ws&&(this.ws=t.sequenceNumber)},t.prototype.addTargetData=function(t,e){return this.te(e),this.targetCount+=1,Ss.resolve()},t.prototype.updateTargetData=function(t,e){return this.te(e),Ss.resolve()},t.prototype.removeTargetData=function(t,e){return this.ds.delete(e.target),this._s.Zn(e.targetId),this.targetCount-=1,Ss.resolve()},t.prototype.removeTargets=function(t,e,n){var r=this,i=0,a=[];return this.ds.forEach((function(o,s){s.sequenceNumber<=e&&null===n.get(s.targetId)&&(r.ds.delete(o),a.push(r.removeMatchingKeysForTargetId(t,s.targetId)),i++)})),Ss.waitFor(a).next((function(){return i}))},t.prototype.getTargetCount=function(t){return Ss.resolve(this.targetCount)},t.prototype.getTargetData=function(t,e){var n=this.ds.get(e)||null;return Ss.resolve(n)},t.prototype.addMatchingKeys=function(t,e,n){return this._s.Jn(e,n),Ss.resolve()},t.prototype.removeMatchingKeys=function(t,e,n){this._s.Xn(e,n);var r=this.persistence.referenceDelegate,i=[];return r&&e.forEach((function(e){i.push(r.markPotentiallyOrphaned(t,e))})),Ss.waitFor(i)},t.prototype.removeMatchingKeysForTargetId=function(t,e){return this._s.Zn(e),Ss.resolve()},t.prototype.getMatchingKeysForTargetId=function(t,e){var n=this._s.es(e);return Ss.resolve(n)},t.prototype.containsKey=function(t,e){return Ss.resolve(this._s.containsKey(e))},t}(),fc=function(){function t(t,e){var n=this;this.gs={},this.Ne=new jr(0),this.xe=!1,this.xe=!0,this.referenceDelegate=t(this),this.qe=new hc(this),this.Ut=new tu,this.Ue=function(t,e){return new cc(t,(function(t){return n.referenceDelegate.ps(t)}))}(this.Ut),this.R=new Fs(e),this.Ke=new ac(this.R)}return t.prototype.start=function(){return Promise.resolve()},t.prototype.shutdown=function(){return this.xe=!1,Promise.resolve()},Object.defineProperty(t.prototype,"started",{get:function(){return this.xe},enumerable:!1,configurable:!0}),t.prototype.setDatabaseDeletedListener=function(){},t.prototype.setNetworkEnabled=function(){},t.prototype.getIndexManager=function(){return this.Ut},t.prototype.getMutationQueue=function(t){var e=this.gs[t.toKey()];return e||(e=new uc(this.Ut,this.referenceDelegate),this.gs[t.toKey()]=e),e},t.prototype.getTargetCache=function(){return this.qe},t.prototype.getRemoteDocumentCache=function(){return this.Ue},t.prototype.getBundleCache=function(){return this.Ke},t.prototype.runTransaction=function(t,e,n){var r=this;zr("MemoryPersistence","Starting transaction:",t);var i=new dc(this.Ne.next());return this.referenceDelegate.Es(),n(i).next((function(t){return r.referenceDelegate.Ts(i).next((function(){return t}))})).toPromise().then((function(t){return i.raiseOnCommittedEvent(),t}))},t.prototype.Is=function(t,e){return Ss.or(Object.values(this.gs).map((function(n){return function(){return n.containsKey(t,e)}})))},t}(),dc=function(t){function e(e){var n=this;return(n=t.call(this)||this).currentSequenceNumber=e,n}return _(e,t),e}(Cs),pc=function(){function t(t){this.persistence=t,this.As=new oc,this.Rs=null}return t.bs=function(e){return new t(e)},Object.defineProperty(t.prototype,"vs",{get:function(){if(this.Rs)return this.Rs;throw Hr()}
1,enumerable:!1,configurable:!0}),t.prototype.addReference=function(t,e,n){return this.As.addReference(n,e),this.vs.delete(n.toString()),Ss.resolve()},t.prototype.removeReference=function(t,e,n){return this.As.removeReference(n,e),this.vs.add(n.toString()),Ss.resolve()},t.prototype.markPotentiallyOrphaned=function(t,e){return this.vs.add(e.toString()),Ss.resolve()},t.prototype.removeTarget=function(t,e){var n=this;this.As.Zn(e.targetId).forEach((function(t){return n.vs.add(t.toString())}));var r=this.persistence.getTargetCache();return r.getMatchingKeysForTargetId(t,e.targetId).next((function(t){t.forEach((function(t){return n.vs.add(t.toString())}))})).next((function(){return r.removeTargetData(t,e)}))},t.prototype.Es=function(){this.Rs=new Set},t.prototype.Ts=function(t){var e=this,n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Ss.forEach(this.vs,(function(r){var i=gi.fromPath(r);return e.Ps(t,i).next((function(t){t||n.removeEntry(i)}))})).next((function(){return e.Rs=null,n.apply(t)}))},t.prototype.updateLimboDocument=function(t,e){var n=this;return this.Ps(t,e).next((function(t){t?n.vs.delete(e.toString()):n.vs.add(e.toString())}))},t.prototype.ps=function(t){return 0},t.prototype.Ps=function(t,e){var n=this;return Ss.or([function(){return Ss.resolve(n.As.containsKey(e))},function(){return n.persistence.getTargetCache().containsKey(t,e)},function(){return n.persistence.Is(t,e)}])},t}(),gc=function(){function t(t){this.uid=t}return t.prototype.isAuthenticated=function(){return null!=this.uid},t.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},t.prototype.isEqual=function(t){return t.uid===this.uid},t}();function yc(t,e){return"firestore_clients_"+t+"_"+e}function vc(t,e,n){var r="firestore_mutations_"+t+"_"+n;return e.isAuthenticated()&&(r+="_"+e.uid),r}function mc(t,e){return"firestore_targets_"+t+"_"+e}gc.UNAUTHENTICATED=new gc(null),gc.GOOGLE_CREDENTIALS=new gc("google-credentials-uid"),gc.FIRST_PARTY=new gc("first-party-uid"),gc.MOCK_USER=new gc("mock-user");var bc=function(){function t(t,e,n,r){this.user=t,this.batchId=e,this.state=n,this.error=r}return t.Vs=function(e,n,r){var i,a=JSON.parse(r),o="object"==typeof a&&-1!==["pending","acknowledged","rejected"].indexOf(a.state)&&(void 0===a.error||"object"==typeof a.error);return o&&a.error&&(o="string"==typeof a.error.message&&"string"==typeof a.error.code)&&(i=new Pr(a.error.code,a.error.message)),o?new t(e,n,a.state,i):(Nr("SharedClientState","Failed to parse mutation state for ID '"+n+"': "+r),null)},t.prototype.Ss=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),_c=function(){function t(t,e,n){this.targetId=t,this.state=e,this.error=n}return t.Vs=function(e,n){var r,i=JSON.parse(n),a="object"==typeof i&&-1!==["not-current","current","rejected"].indexOf(i.state)&&(void 0===i.error||"object"==typeof i.error);return a&&i.error&&(a="string"==typeof i.error.message&&"string"==typeof i.error.code)&&(r=new Pr(i.error.code,i.error.message)),a?new t(e,i.state,r):(Nr("SharedClientState","Failed to parse target state for ID '"+e+"': "+n),null)},t.prototype.Ss=function(){var t={state:this.state,updateTimeMs:Date.now()};return this.error&&(t.error={code:this.error.code,message:this.error.message}),JSON.stringify(t)},t}(),wc=function(){function t(t,e){this.clientId=t,this.activeTargetIds=e}return t.Vs=function(e,n){for(var r=JSON.parse(n),i="object"==typeof r&&r.activeTargetIds instanceof Array,a=fo(),o=0;i&&o<r.activeTargetIds.length;++o)i=pi(r.activeTargetIds[o]),a=a.add(r.activeTargetIds[o]);return i?new t(e,a):(Nr("SharedClientState","Failed to parse client data for instance '"+e+"': "+n),null)},t}(),kc=function(){function t(t,e){this.clientId=t,this.onlineState=e}return t.Vs=function(e){var n=JSON.parse(e);return"object"==typeof n&&-1!==["Unknown","Online","Offline"].indexOf(n.onlineState)&&"string"==typeof n.clientId?new t(n.clientId,n.onlineState):(Nr("SharedClientState","Failed to parse online state: "+e),null)},t}(),Cc=function(){function t(){this.activeTargetIds=fo()}return t.prototype.Ds=function(t){this.activeTargetIds=this.activeTargetIds.add(t)},t.prototype.Cs=function(t){this.activeTargetIds=this.activeTargetIds.delete(t)},t.prototype.Ss=function(){var t={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(t)},t}(),Oc=function(){function t(t,e,n,r,i){this.window=t,this.Se=e,this.persistenceKey=n,this.Ns=r,this.syncEngine=null,this.onlineStateHandler=null,this.sequenceNumberHandler=null,this.xs=this.ks.bind(this),this.Fs=new $a(Gr),this.started=!1,this.$s=[];var a=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");this.storage=this.window.localStorage,this.currentUser=i,this.Os=yc(this.persistenceKey,this.Ns),this.Ms=function(t){return"firestore_sequence_number_"+t}(this.persistenceKey),this.Fs=this.Fs.insert(this.Ns,new Cc),this.Ls=new RegExp("^firestore_clients_"+a+"_([^_]*)$"),this.Bs=new RegExp("^firestore_mutations_"+a+"_(\\d+)(?:_(.*))?$"),this.qs=new RegExp("^firestore_targets_"+a+"_(\\d+)$"),this.Us=function(t){return"firestore_online_state_"+t}(this.persistenceKey),this.Ks=function(t){return"firestore_bundle_loaded_"+t}(this.persistenceKey),this.window.addEventListener("storage",this.xs)}return t.yt=function(t){return!(!t||!t.localStorage)},t.prototype.start=function(){return w(this,void 0,void 0,(function(){var t,e,n,r,i,a,o,s,u,c,l=this;return k(this,(function(h){switch(h.label){case 0:return[4,this.syncEngine.fn()];case 1:for(t=h.sent(),e=0,n=t;e<n.length;e++)(r=n[e])!==this.Ns&&(i=this.getItem(yc(this.persistenceKey,r)))&&(a=wc.Vs(r,i))&&(this.Fs=this.Fs.insert(a.clientId,a));for(this.Qs(),(o=this.storage.getItem(this.Us))&&(s=this.js(o))&&this.Ws(s),u=0,c=this.$s;u<c.length;u++)this.ks(c[u]);return this.$s=[],this.window.addEventListener("pagehide",(function(){return l.shutdown()})),this.started=!0,[2]}}))}))},t.prototype.writeSequenceNumber=function(t){this.setItem(this.Ms,JSON.stringify(t))},t.prototype.getAllActiveQueryTargets=function(){return this.Gs(this.Fs)},t.prototype.isActiveQueryTarget=function(t){var e=!1;return this.Fs.forEach((function(n,r){r.activeTargetIds.has(t)&&(e=!0)})),e},t.prototype.addPendingMutation=function(t){this.zs(t,"pending")},t.prototype.updateMutationState=function(t,e,n){this.zs(t,e,n),this.Hs(t)},t.prototype.addLocalQueryTarget=function(t){var e="not-current";if(this.isActiveQueryTarget(t)){var n=this.storage.getItem(mc(this.persistenceKey,t));if(n){var r=_c.Vs(t,n);r&&(e=r.state)}}return this.Js.Ds(t),this.Qs(),e},t.prototype.removeLocalQueryTarget=function(t){this.Js.Cs(t),this.Qs()},t.prototype.isLocalQueryTarget=function(t){return this.Js.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){this.removeItem(mc(this.persistenceKey,t))},t.prototype.updateQueryState=function(t,e,n){this.Ys(t,e,n)},t.prototype.handleUserChange=function(t,e,n){var r=this;e.forEach((function(t){r.Hs(t)}
1)),this.currentUser=t,n.forEach((function(t){r.addPendingMutation(t)}))},t.prototype.setOnlineState=function(t){this.Xs(t)},t.prototype.notifyBundleLoaded=function(){this.Zs()},t.prototype.shutdown=function(){this.started&&(this.window.removeEventListener("storage",this.xs),this.removeItem(this.Os),this.started=!1)},t.prototype.getItem=function(t){var e=this.storage.getItem(t);return zr("SharedClientState","READ",t,e),e},t.prototype.setItem=function(t,e){zr("SharedClientState","SET",t,e),this.storage.setItem(t,e)},t.prototype.removeItem=function(t){zr("SharedClientState","REMOVE",t),this.storage.removeItem(t)},t.prototype.ks=function(t){var e=this,n=t;if(n.storageArea===this.storage){if(zr("SharedClientState","EVENT",n.key,n.newValue),n.key===this.Os)return void Nr("Received WebStorage notification for local change. Another client might have garbage-collected our state");this.Se.enqueueRetryable((function(){return w(e,void 0,void 0,(function(){var t,e,r,i,a,o;return k(this,(function(s){if(this.started){if(null!==n.key)if(this.Ls.test(n.key)){if(null==n.newValue)return t=this.ti(n.key),[2,this.ei(t,null)];if(e=this.ni(n.key,n.newValue))return[2,this.ei(e.clientId,e)]}else if(this.Bs.test(n.key)){if(null!==n.newValue&&(r=this.si(n.key,n.newValue)))return[2,this.ii(r)]}else if(this.qs.test(n.key)){if(null!==n.newValue&&(i=this.ri(n.key,n.newValue)))return[2,this.oi(i)]}else if(n.key===this.Us){if(null!==n.newValue&&(a=this.js(n.newValue)))return[2,this.Ws(a)]}else if(n.key===this.Ms)(o=function(t){var e=jr.o;if(null!=t)try{var n=JSON.parse(t);Br("number"==typeof n),e=n}catch(t){Nr("SharedClientState","Failed to read sequence number from WebStorage",t)}return e}(n.newValue))!==jr.o&&this.sequenceNumberHandler(o);else if(n.key===this.Ks)return[2,this.syncEngine.ci()]}else this.$s.push(n);return[2]}))}))}))}},Object.defineProperty(t.prototype,"Js",{get:function(){return this.Fs.get(this.Ns)},enumerable:!1,configurable:!0}),t.prototype.Qs=function(){this.setItem(this.Os,this.Js.Ss())},t.prototype.zs=function(t,e,n){var r=new bc(this.currentUser,t,e,n),i=vc(this.persistenceKey,this.currentUser,t);this.setItem(i,r.Ss())},t.prototype.Hs=function(t){var e=vc(this.persistenceKey,this.currentUser,t);this.removeItem(e)},t.prototype.Xs=function(t){this.storage.setItem(this.Us,JSON.stringify({clientId:this.Ns,onlineState:t}))},t.prototype.Ys=function(t,e,n){var r=mc(this.persistenceKey,t),i=new _c(t,e,n);this.setItem(r,i.Ss())},t.prototype.Zs=function(){this.setItem(this.Ks,"value-not-used")},t.prototype.ti=function(t){var e=this.Ls.exec(t);return e?e[1]:null},t.prototype.ni=function(t,e){var n=this.ti(t);return wc.Vs(n,e)},t.prototype.si=function(t,e){var n=this.Bs.exec(t),r=Number(n[1]);return bc.Vs(new gc(void 0!==n[2]?n[2]:null),r,e)},t.prototype.ri=function(t,e){var n=this.qs.exec(t),r=Number(n[1]);return _c.Vs(r,e)},t.prototype.js=function(t){return kc.Vs(t)},t.prototype.ii=function(t){return w(this,void 0,void 0,(function(){return k(this,(function(e){return t.user.uid===this.currentUser.uid?[2,this.syncEngine.ui(t.batchId,t.state,t.error)]:(zr("SharedClientState","Ignoring mutation for non-active user "+t.user.uid),[2])}))}))},t.prototype.oi=function(t){return this.syncEngine.ai(t.targetId,t.state,t.error)},t.prototype.ei=function(t,e){var n=this,r=e?this.Fs.insert(t,e):this.Fs.remove(t),i=this.Gs(this.Fs),a=this.Gs(r),o=[],s=[];return a.forEach((function(t){i.has(t)||o.push(t)})),i.forEach((function(t){a.has(t)||s.push(t)})),this.syncEngine.hi(o,s).then((function(){n.Fs=r}))},t.prototype.Ws=function(t){this.Fs.get(t.clientId)&&this.onlineStateHandler(t.onlineState)},t.prototype.Gs=function(t){var e=fo();return t.forEach((function(t,n){e=e.unionWith(n.activeTargetIds)})),e},t}(),Sc=function(){function t(){this.li=new Cc,this.fi={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}return t.prototype.addPendingMutation=function(t){},t.prototype.updateMutationState=function(t,e,n){},t.prototype.addLocalQueryTarget=function(t){return this.li.Ds(t),this.fi[t]||"not-current"},t.prototype.updateQueryState=function(t,e,n){this.fi[t]=e},t.prototype.removeLocalQueryTarget=function(t){this.li.Cs(t)},t.prototype.isLocalQueryTarget=function(t){return this.li.activeTargetIds.has(t)},t.prototype.clearQueryState=function(t){delete this.fi[t]},t.prototype.getAllActiveQueryTargets=function(){return this.li.activeTargetIds},t.prototype.isActiveQueryTarget=function(t){return this.li.activeTargetIds.has(t)},t.prototype.start=function(){return this.li=new Cc,Promise.resolve()},t.prototype.handleUserChange=function(t,e,n){},t.prototype.setOnlineState=function(t){},t.prototype.shutdown=function(){},t.prototype.writeSequenceNumber=function(t){},t.prototype.notifyBundleLoaded=function(){},t}(),Ec=function(){function t(){}return t.prototype.di=function(t){},t.prototype.shutdown=function(){},t}(),Ac=function(){function t(){var t=this;this.wi=function(){return t._i()},this.mi=function(){return t.yi()},this.gi=[],this.pi()}return t.prototype.di=function(t){this.gi.push(t)},t.prototype.shutdown=function(){window.removeEventListener("online",this.wi),window.removeEventListener("offline",this.mi)},t.prototype.pi=function(){window.addEventListener("online",this.wi),window.addEventListener("offline",this.mi)},t.prototype._i=function(){zr("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(0)},t.prototype.yi=function(){zr("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(var t=0,e=this.gi;t<e.length;t++)(0,e[t])(1)},t.yt=function(){return"undefined"!=typeof window&&void 0!==window.addEventListener&&void 0!==window.removeEventListener},t}(),Tc={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery"},Mc=function(){function t(t){this.Ei=t.Ei,this.Ti=t.Ti}return t.prototype.Ii=function(t){this.Ai=t},t.prototype.Ri=function(t){this.bi=t},t.prototype.onMessage=function(t){this.vi=t},t.prototype.close=function(){this.Ti()},t.prototype.send=function(t){this.Ei(t)},t.prototype.Pi=function(){this.Ai()},t.prototype.Vi=function(t){this.bi(t)},t.prototype.Si=function(t){this.vi(t)},t}(),Ic=function(t){function e(e){var n=this;return(n=t.call(this,e)||this).forceLongPolling=e.forceLongPolling,n.autoDetectLongPolling=e.autoDetectLongPolling,n.useFetchStreams=e.useFetchStreams,n}return _(e,t),e.prototype.Fi=function(t,e,n,r){return new Promise((function(i,a){var o=new xr;
1o.listenOnce(Ar.COMPLETE,(function(){try{switch(o.getLastErrorCode()){case Er.NO_ERROR:var e=o.getResponseJson();zr("Connection","XHR received:",JSON.stringify(e)),i(e);break;case Er.TIMEOUT:zr("Connection",'RPC "'+t+'" timed out'),a(new Pr(Lr.DEADLINE_EXCEEDED,"Request time out"));break;case Er.HTTP_ERROR:var n=o.getStatus();if(zr("Connection",'RPC "'+t+'" failed with status:',n,"response text:",o.getResponseText()),n>0){var r=o.getResponseJson().error;if(r&&r.status&&r.message){var s=function(t){var e=t.toLowerCase().replace(/_/g,"-");return Object.values(Lr).indexOf(e)>=0?e:Lr.UNKNOWN}(r.status);a(new Pr(s,r.message))}else a(new Pr(Lr.UNKNOWN,"Server responded with status "+o.getStatus()))}else a(new Pr(Lr.UNAVAILABLE,"Connection failed."));break;default:Hr()}}finally{zr("Connection",'RPC "'+t+'" completed.')}}));var s=JSON.stringify(r);o.send(e,"POST",s,n,15)}))},e.prototype.Oi=function(t,e){var n=[this.Di,"/","google.firestore.v1.Firestore","/",t,"/channel"],r=new wr,i=pe(),a={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling};this.useFetchStreams&&(a.xmlHttpFactory=new Mr({})),this.ki(a.initMessageHeaders,e),Object(O.n)()||Object(O.p)()||Object(O.l)()||Object(O.m)()||Object(O.r)()||Object(O.k)()||(a.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");zr("Connection","Creating WebChannel: "+o,a);var s=r.createWebChannel(o,a),u=!1,c=!1,l=new Mc({Ei:function(t){c?zr("Connection","Not sending because WebChannel is closed:",t):(u||(zr("Connection","Opening WebChannel transport."),s.open(),u=!0),zr("Connection","WebChannel sending:",t),s.send(t))},Ti:function(){return s.close()}}),h=function(t,e,n){t.listen(e,(function(t){try{n(t)}catch(t){setTimeout((function(){throw t}),0)}}))};return h(s,Ir.EventType.OPEN,(function(){c||zr("Connection","WebChannel transport opened.")})),h(s,Ir.EventType.CLOSE,(function(){c||(c=!0,zr("Connection","WebChannel transport closed"),l.Vi())})),h(s,Ir.EventType.ERROR,(function(t){c||(c=!0,Vr("Connection","WebChannel transport errored:",t),l.Vi(new Pr(Lr.UNAVAILABLE,"The operation could not be completed")))})),h(s,Ir.EventType.MESSAGE,(function(t){var e;if(!c){var n=t.data[0];Br(!!n);var r=n.error||(null===(e=n[0])||void 0===e?void 0:e.error);if(r){zr("Connection","WebChannel received error:",r);var i=r.status,a=function(t){var e=Wa[t];if(void 0!==e)return Za(e)}(i),o=r.message;void 0===a&&(a=Lr.INTERNAL,o="Unknown error status: "+i+" with message "+r.message),c=!0,l.Vi(new Pr(a,o)),s.close()}else zr("Connection","WebChannel received:",n),l.Si(n)}})),h(i,Tr.STAT_EVENT,(function(t){10===t.stat?zr("Connection","Detected buffering proxy"):11===t.stat&&zr("Connection","Detected no buffering proxy")})),setTimeout((function(){l.Pi()}),0),l},e}(function(){function t(t){this.databaseInfo=t,this.databaseId=t.databaseId,this.Di=(t.ssl?"https":"http")+"://"+t.host,this.Ci="projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database+"/documents"}return t.prototype.Ni=function(t,e,n,r){var i=this.xi(t,e);zr("RestConnection","Sending: ",i,n);var a={};return this.ki(a,r),this.Fi(t,i,a,n).then((function(t){return zr("RestConnection","Received: ",t),t}),(function(e){throw Vr("RestConnection",t+" failed with error: ",e,"url: ",i,"request:",n),e}))},t.prototype.$i=function(t,e,n,r){return this.Ni(t,e,n,r)},t.prototype.ki=function(t,e){if(t["X-Goog-Api-Client"]="gl-js/ fire/8.10.1",t["Content-Type"]="text/plain",this.databaseInfo.appId&&(t["X-Firebase-GMPID"]=this.databaseInfo.appId),e)for(var n in e.authHeaders)e.authHeaders.hasOwnProperty(n)&&(t[n]=e.authHeaders[n])},t.prototype.xi=function(t,e){return this.Di+"/v1/"+e+":"+Tc[t]},t}());function xc(){return"undefined"!=typeof window?window:null}function jc(){return"undefined"!=typeof document?document:null}function Lc(t){return new So(t,!0)}var Pc=function(){function t(t,e,n,r,i){void 0===n&&(n=1e3),void 0===r&&(r=1.5),void 0===i&&(i=6e4),this.Se=t,this.timerId=e,this.Mi=n,this.Li=r,this.Bi=i,this.qi=0,this.Ui=null,this.Ki=Date.now(),this.reset()}return t.prototype.reset=function(){this.qi=0},t.prototype.Qi=function(){this.qi=this.Bi},t.prototype.ji=function(t){var e=this;this.cancel();var n=Math.floor(this.qi+this.Wi()),r=Math.max(0,Date.now()-this.Ki),i=Math.max(0,n-r);i>0&&zr("ExponentialBackoff","Backing off for "+i+" ms (base delay: "+this.qi+" ms, delay with
1jitter: "+n+" ms, last attempt: "+r+" ms ago)"),this.Ui=this.Se.enqueueAfterDelay(this.timerId,i,(function(){return e.Ki=Date.now(),t()})),this.qi*=this.Li,this.qi<this.Mi&&(this.qi=this.Mi),this.qi>this.Bi&&(this.qi=this.Bi)},t.prototype.Gi=function(){null!==this.Ui&&(this.Ui.skipDelay(),this.Ui=null)},t.prototype.cancel=function(){null!==this.Ui&&(this.Ui.cancel(),this.Ui=null)},t.prototype.Wi=function(){return(Math.random()-.5)*this.qi},t}(),Rc=function(){function t(t,e,n,r,i,a){this.Se=t,this.zi=n,this.Hi=r,this.Ji=i,this.listener=a,this.state=0,this.Yi=0,this.Xi=null,this.stream=null,this.Zi=new Pc(t,e)}return t.prototype.tr=function(){return 1===this.state||2===this.state||4===this.state},t.prototype.er=function(){return 2===this.state},t.prototype.start=function(){3!==this.state?this.auth():this.nr()},t.prototype.stop=function(){return w(this,void 0,void 0,(function(){return k(this,(function(t){switch(t.label){case 0:return this.tr()?[4,this.close(0)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))},t.prototype.sr=function(){this.state=0,this.Zi.reset()},t.prototype.ir=function(){var t=this;this.er()&&null===this.Xi&&(this.Xi=this.Se.enqueueAfterDelay(this.zi,6e4,(function(){return t.rr()})))},t.prototype.cr=function(t){this.ur(),this.stream.send(t)},t.prototype.rr=function(){return w(this,void 0,void 0,(function(){return k(this,(function(t){return this.er()?[2,this.close(0)]:[2]}))}))},t.prototype.ur=function(){this.Xi&&(this.Xi.cancel(),this.Xi=null)},t.prototype.close=function(t,e){return w(this,void 0,void 0,(function(){return k(this,(function(n){switch(n.label){case 0:return this.ur(),this.Zi.cancel(),this.Yi++,3!==t?this.Zi.reset():e&&e.code===Lr.RESOURCE_EXHAUSTED?(Nr(e.toString()),Nr("Using maximum backoff delay to prevent overloading the backend."),this.Zi.Qi()):e&&e.code===Lr.UNAUTHENTICATED&&this.Ji.invalidateToken(),null!==this.stream&&(this.ar(),this.stream.close(),this.stream=null),this.state=t,[4,this.listener.Ri(e)];case 1:return n.sent(),[2]}}))}))},t.prototype.ar=function(){},t.prototype.auth=function(){var t=this;this.state=1;var e=this.hr(this.Yi),n=this.Yi;this.Ji.getToken().then((function(e){t.Yi===n&&t.lr(e)}),(function(n){e((function(){var e=new Pr(Lr.UNKNOWN,"Fetching auth token failed: "+n.message);return t.dr(e)}))}))},t.prototype.lr=function(t){var e=this,n=this.hr(this.Yi);this.stream=this.wr(t),this.stream.Ii((function(){n((function(){return e.state=2,e.listener.Ii()}))})),this.stream.Ri((function(t){n((function(){return e.dr(t)}))})),this.stream.onMessage((function(t){n((function(){return e.onMessage(t)}))}))},t.prototype.nr=function(){var t=this;this.state=4,this.Zi.ji((function(){return w(t,void 0,void 0,(function(){return k(this,(function(t){return this.state=0,this.start(),[2]}))}))}))},t.prototype.dr=function(t){return zr("PersistentStream","close with error: "+t),this.stream=null,this.close(3,t)},t.prototype.hr=function(t){var e=this;return function(n){e.Se.enqueueAndForget((function(){return e.Yi===t?n():(zr("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())}))}},t}(),Dc=function(t){function e(e,n,r,i,a){var o=this;return(o=t.call(this,e,"listen_stream_connection_backoff","listen_stream_idle",n,r,a)||this).R=i,o}return _(e,t),e.prototype.wr=function(t){return this.Hi.Oi("Listen",t)},e.prototype.onMessage=function(t){this.Zi.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:Hr()}(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],a=function(t,e){return t.I?(Br(void 0===e||"string"==typeof e),ai.fromBase64String(e||"")):(Br(void 0===e||e instanceof Uint8Array),ai.fromUint8Array(e||new Uint8Array))}(t,e.targetChange.resumeToken),o=(s=e.targetChange.cause)&&function(t){var e=void 0===t.code?Lr.UNKNOWN:Za(t.code);return new Pr(e,t.message||"")}(s);n=new mo(r,i,a,o||null)}else if("documentChange"in e){i=Lo(t,(r=e.documentChange).document.name),a=Mo(r.document.updateTime);var s=new Mi({mapValue:{fields:r.document.fields}}),u=(o=xi.newFoundDocument(i,a,s),r.targetIds||[]);n=new yo(u,r.removedTargetIds||[],o.key,o)}else if("documentDelete"in e)i=Lo(t,(r=e.documentDelete).document),a=r.readTime?Mo(r.readTime):Xr.min(),s=xi.newNoDocument(i,a),n=new yo([],o=r.removedTargetIds||[],s.key,s);else if("documentRemove"in e)i=Lo(t,(r=e.documentRemove).document),n=new yo([],a=r.removedTargetIds||[],i,null);else{if(!("filter"in e))return Hr();var c=e.filter;i=new Qa(r=c.count||0),n=new vo(a=c.targetId,i)}return n}(this.R,t),n=function(t){if(!("targetChange"in t))return Xr.min();var e=t.targetChange;return e.targetIds&&e.targetIds.length?Xr.min():e.readTime?Mo(e.readTime):Xr.min()}(t);return this.listener._r(e,n)},e.prototype.mr=function(t){var e={};e.database=Do(this.R),e.addTarget=function(t,e){var n,r=e.target;return(n=Di(r)?{documents:Bo(t,r)}:{query:Uo(t,r)}).targetId=e.targetId,e.resumeToken.approximateByteSize()>0?n.resumeToken=Ao(t,e.resumeToken):e.snapshotVersion.compareTo(Xr.min())>0&&(n.readTime=Eo(t,e.snapshotVersion.toTimestamp())),n}(this.R,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 Hr()}}(0,e.purpose);return null==n?null:{"goog-listen-tags":n}}(0,t);n&&(e.labels=n),this.cr(e)},e.prototype.yr=function(t){var e={};e.database=Do(this.R),e.removeTarget=t,this.cr(e)},e}(Rc),zc=function(t){function e(e,n,r,i,a){var o=this;return(o=t.call(this,e,"write_stream_connection_backoff","write_stream_idle",n,r,a)||this).R=i,o.gr=!1,o}
1return _(e,t),Object.defineProperty(e.prototype,"pr",{get:function(){return this.gr},enumerable:!1,configurable:!0}),e.prototype.start=function(){this.gr=!1,this.lastStreamToken=void 0,t.prototype.start.call(this)},e.prototype.ar=function(){this.gr&&this.Er([])},e.prototype.wr=function(t){return this.Hi.Oi("Write",t)},e.prototype.onMessage=function(t){if(Br(!!t.streamToken),this.lastStreamToken=t.streamToken,this.gr){this.Zi.reset();var e=function(t,e){return t&&t.length>0?(Br(void 0!==e),t.map((function(t){return function(t,e){var n=Mo(t.updateTime?t.updateTime:e);return n.isEqual(Xr.min())&&(n=Mo(e)),new xa(n,t.transformResults||[])}(t,e)}))):[]}(t.writeResults,t.commitTime),n=Mo(t.commitTime);return this.listener.Tr(n,e)}return Br(!t.writeResults||0===t.writeResults.length),this.gr=!0,this.listener.Ir()},e.prototype.Ar=function(){var t={};t.database=Do(this.R),this.cr(t)},e.prototype.Er=function(t){var e=this,n={streamToken:this.lastStreamToken,writes:t.map((function(t){return Fo(e.R,t)}))};this.cr(n)},e}(Rc),Nc=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).credentials=e,i.Hi=n,i.R=r,i.Rr=!1,i}return _(e,t),e.prototype.br=function(){if(this.Rr)throw new Pr(Lr.FAILED_PRECONDITION,"The client has already been terminated.")},e.prototype.Ni=function(t,e,n){var r=this;return this.br(),this.credentials.getToken().then((function(i){return r.Hi.Ni(t,e,n,i)})).catch((function(t){throw"FirebaseError"===t.name?(t.code===Lr.UNAUTHENTICATED&&r.credentials.invalidateToken(),t):new Pr(Lr.UNKNOWN,t.toString())}))},e.prototype.$i=function(t,e,n){var r=this;return this.br(),this.credentials.getToken().then((function(i){return r.Hi.$i(t,e,n,i)})).catch((function(t){throw"FirebaseError"===t.name?(t.code===Lr.UNAUTHENTICATED&&r.credentials.invalidateToken(),t):new Pr(Lr.UNKNOWN,t.toString())}))},e.prototype.terminate=function(){this.Rr=!0},e}((function(){})),Vc=function(){function t(t,e){this.asyncQueue=t,this.onlineStateHandler=e,this.state="Unknown",this.vr=0,this.Pr=null,this.Vr=!0}return t.prototype.Sr=function(){var t=this;0===this.vr&&(this.Dr("Unknown"),this.Pr=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(function(){return t.Pr=null,t.Cr("Backend didn't respond within 10 seconds."),t.Dr("Offline"),Promise.resolve()})))},t.prototype.Nr=function(t){"Online"===this.state?this.Dr("Unknown"):(this.vr++,this.vr>=1&&(this.kr(),this.Cr("Connection failed 1 times. Most recent error: "+t.toString()),this.Dr("Offline")))},t.prototype.set=function(t){this.kr(),this.vr=0,"Online"===t&&(this.Vr=!1),this.Dr(t)},t.prototype.Dr=function(t){t!==this.state&&(this.state=t,this.onlineStateHandler(t))},t.prototype.Cr=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.Vr?(Nr(e),this.Vr=!1):zr("OnlineStateTracker",e)},t.prototype.kr=function(){null!==this.Pr&&(this.Pr.cancel(),this.Pr=null)},t}(),Fc=function(t,e,n,r,i){var a=this;this.localStore=t,this.datastore=e,this.asyncQueue=n,this.remoteSyncer={},this.Fr=[],this.$r=new Map,this.Or=new Set,this.Mr=[],this.Lr=i,this.Lr.di((function(t){n.enqueueAndForget((function(){return w(a,void 0,void 0,(function(){return k(this,(function(t){switch(t.label){case 0:return Qc(this)?(zr("RemoteStore","Restarting streams for network reachability change."),[4,function(t){return w(this,void 0,void 0,(function(){var e;return k(this,(function(n){switch(n.label){case 0:return(e=Ur(t)).Or.add(4),[4,Bc(e)];case 1:return n.sent(),e.Br.set("Unknown"),e.Or.delete(4),[4,Hc(e)];case 2:return n.sent(),[2]}}))}))}(this)]):[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}}
1))}))}))})),this.Br=new Vc(n,r)};function Hc(t){return w(this,void 0,void 0,(function(){var e,n;return k(this,(function(r){switch(r.label){case 0:if(!Qc(t))return[3,4];e=0,n=t.Mr,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!0)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}))}function Bc(t){return w(this,void 0,void 0,(function(){var e,n;return k(this,(function(r){switch(r.label){case 0:e=0,n=t.Mr,r.label=1;case 1:return e<n.length?[4,(0,n[e])(!1)]:[3,4];case 2:r.sent(),r.label=3;case 3:return e++,[3,1];case 4:return[2]}}))}))}function Uc(t,e){var n=Ur(t);n.$r.has(e.targetId)||(n.$r.set(e.targetId,e),Yc(n)?Kc(n):ll(n).er()&&Wc(n,e))}function qc(t,e){var n=Ur(t),r=ll(n);n.$r.delete(e),r.er()&&Gc(n,e),0===n.$r.size&&(r.er()?r.ir():Qc(n)&&n.Br.set("Unknown"))}function Wc(t,e){t.qr.U(e.targetId),ll(t).mr(e)}function Gc(t,e){t.qr.U(e),ll(t).yr(e)}function Kc(t){t.qr=new _o({getRemoteKeysForTarget:function(e){return t.remoteSyncer.getRemoteKeysForTarget(e)},lt:function(e){return t.$r.get(e)||null}}),ll(t).start(),t.Br.Sr()}function Yc(t){return Qc(t)&&!ll(t).tr()&&t.$r.size>0}function Qc(t){return 0===Ur(t).Or.size}function Xc(t){t.qr=void 0}function Zc(t){return w(this,void 0,void 0,(function(){return k(this,(function(e){return t.$r.forEach((function(e,n){Wc(t,e)})),[2]}))}))}function $c(t,e){return w(this,void 0,void 0,(function(){return k(this,(function(n){return Xc(t),Yc(t)?(t.Br.Nr(e),Kc(t)):t.Br.set("Unknown"),[2]}))}))}function Jc(t,e,n){return w(this,void 0,void 0,(function(){var r,i,a;return k(this,(function(o){switch(o.label){case 0:if(t.Br.set("Online"),!(e instanceof mo&&2===e.state&&e.cause))return[3,6];o.label=1;case 1:return o.trys.push([1,3,,5]),[4,function(t,e){return w(this,void 0,void 0,(function(){var n,r,i,a;return k(this,(function(o){switch(o.label){case 0:n=e.cause,r=0,i=e.targetIds,o.label=1;case 1:return r<i.length?t.$r.has(a=i[r])?[4,t.remoteSyncer.rejectListen(a,n)]:[3,3]:[3,5];case 2:o.sent(),t.$r.delete(a),t.qr.removeTarget(a),o.label=3;case 3:o.label=4;case 4:return r++,[3,1];case 5:return[2]}}
1))}))}(t,e)];case 2:return o.sent(),[3,5];case 3:return r=o.sent(),zr("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),r),[4,tl(t,r)];case 4:return o.sent(),[3,5];case 5:return[3,13];case 6:if(e instanceof yo?t.qr.X(e):e instanceof vo?t.qr.rt(e):t.qr.et(e),n.isEqual(Xr.min()))return[3,13];o.label=7;case 7:return o.trys.push([7,11,,13]),[4,Ku(t.localStore)];case 8:return i=o.sent(),n.compareTo(i)>=0?[4,function(t,e){var n=t.qr.ut(e);return n.targetChanges.forEach((function(n,r){if(n.resumeToken.approximateByteSize()>0){var i=t.$r.get(r);i&&t.$r.set(r,i.withResumeToken(n.resumeToken,e))}})),n.targetMismatches.forEach((function(e){var n=t.$r.get(e);if(n){t.$r.set(e,n.withResumeToken(ai.EMPTY_BYTE_STRING,n.snapshotVersion)),Gc(t,e);var r=new Vs(n.target,e,1,n.sequenceNumber);Wc(t,r)}})),t.remoteSyncer.applyRemoteEvent(n)}(t,n)]:[3,10];case 9:o.sent(),o.label=10;case 10:return[3,13];case 11:return zr("RemoteStore","Failed to raise snapshot:",a=o.sent()),[4,tl(t,a)];case 12:return o.sent(),[3,13];case 13:return[2]}}
1))}))}function tl(t,e,n){return w(this,void 0,void 0,(function(){var r=this;return k(this,(function(i){switch(i.label){case 0:if(!Is(e))throw e;return t.Or.add(1),[4,Bc(t)];case 1:return i.sent(),t.Br.set("Offline"),n||(n=function(){return Ku(t.localStore)}),t.asyncQueue.enqueueRetryable((function(){return w(r,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return zr("RemoteStore","Retrying IndexedDB access"),[4,n()];case 1:return e.sent(),t.Or.delete(1),[4,Hc(t)];case 2:return e.sent(),[2]}}))}))})),[2]}}))}))}function el(t,e){return e().catch((function(n){return tl(t,n,e)}))}function nl(t){return w(this,void 0,void 0,(function(){var e,n,r,i,a;return k(this,(function(o){switch(o.label){case 0:e=Ur(t),n=hl(e),r=e.Fr.length>0?e.Fr[e.Fr.length-1].batchId:-1,o.label=1;case 1:if(!function(t){return Qc(t)&&t.Fr.length<10}(e))return[3,7];o.label=2;case 2:return o.trys.push([2,4,,6]),[4,Xu(e.localStore,r)];case 3:return null===(i=o.sent())?(0===e.Fr.length&&n.ir(),[3,7]):(r=i.batchId,function(t,e){t.Fr.push(e);var n=hl(t);n.er()&&n.pr&&n.Er(e.mutations)}(e,i),[3,6]);case 4:return a=o.sent(),[4,tl(e,a)];case 5:return o.sent(),[3,6];case 6:return[3,1];case 7:return rl(e)&&il(e),[2]}}))}))}function rl(t){return Qc(t)&&!hl(t).tr()&&t.Fr.length>0}function il(t){hl(t).start()}function al(t){return w(this,void 0,void 0,(function(){return k(this,(function(e){return hl(t).Ar(),[2]}))}))}function ol(t){return w(this,void 0,void 0,(function(){var e,n,r;return k(this,(function(i){for(e=hl(t),n=0,r=t.Fr;n<r.length;n++)e.Er(r[n].mutations);return[2]}))}))}function sl(t,e,n){return w(this,void 0,void 0,(function(){var r,i;return k(this,(function(a){switch(a.label){case 0:return r=t.Fr.shift(),i=Ns.from(r,e,n),[4,el(t,(function(){return t.remoteSyncer.applySuccessfulWrite(i)}))];case 1:return a.sent(),[4,nl(t)];case 2:return a.sent(),[2]}}))}))}function ul(t,e){return w(this,void 0,void 0,(function(){return k(this,(function(n){switch(n.label){case 0:return e&&hl(t).pr?[4,function(t,e){return w(this,void 0,void 0,(function(){var n,r;return k(this,(function(i){switch(i.label){case 0:return Xa(r=e.code)&&r!==Lr.ABORTED?(n=t.Fr.shift(),hl(t).sr(),[4,el(t,(function(){return t.remoteSyncer.rejectFailedWrite(n.batchId,e)}))]):[3,3];case 1:return i.sent(),[4,nl(t)];case 2:i.sent(),i.label=3;case 3:return[2]}}
1))}))}(t,e)]:[3,2];case 1:n.sent(),n.label=2;case 2:return rl(t)&&il(t),[2]}}))}))}function cl(t,e){return w(this,void 0,void 0,(function(){var n;return k(this,(function(r){switch(r.label){case 0:return n=Ur(t),e?(n.Or.delete(2),[4,Hc(n)]):[3,2];case 1:return r.sent(),[3,5];case 2:return e?[3,4]:(n.Or.add(2),[4,Bc(n)]);case 3:r.sent(),n.Br.set("Unknown"),r.label=4;case 4:r.label=5;case 5:return[2]}}))}))}function ll(t){var e=this;return t.Ur||(t.Ur=function(t,e,n){var r=Ur(t);return r.br(),new Dc(e,r.Hi,r.credentials,r.R,n)}(t.datastore,t.asyncQueue,{Ii:Zc.bind(null,t),Ri:$c.bind(null,t),_r:Jc.bind(null,t)}),t.Mr.push((function(n){return w(e,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return n?(t.Ur.sr(),Yc(t)?Kc(t):t.Br.set("Unknown"),[3,3]):[3,1];case 1:return[4,t.Ur.stop()];case 2:e.sent(),Xc(t),e.label=3;case 3:return[2]}}))}))}))),t.Ur}function hl(t){var e=this;return t.Kr||(t.Kr=function(t,e,n){var r=Ur(t);return r.br(),new zc(e,r.Hi,r.credentials,r.R,n)}(t.datastore,t.asyncQueue,{Ii:al.bind(null,t),Ri:ul.bind(null,t),Ir:ol.bind(null,t),Tr:sl.bind(null,t)}),t.Mr.push((function(n){return w(e,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return n?(t.Kr.sr(),[4,nl(t)]):[3,2];case 1:return e.sent(),[3,4];case 2:return[4,t.Kr.stop()];case 3:e.sent(),t.Fr.length>0&&(zr("RemoteStore","Stopping write stream with "+t.Fr.length+" pending writes"),t.Fr=[]),e.label=4;case 4:return[2]}}
1))}))}))),t.Kr}var fl=function(){function t(t,e,n,r,i){this.asyncQueue=t,this.timerId=e,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new Os,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((function(t){}))}return t.createAndSchedule=function(e,n,r,i,a){var o=new t(e,n,Date.now()+r,i,a);return o.start(r),o},t.prototype.start=function(t){var e=this;this.timerHandle=setTimeout((function(){return e.handleDelayElapsed()}),t)},t.prototype.skipDelay=function(){return this.handleDelayElapsed()},t.prototype.cancel=function(t){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Pr(Lr.CANCELLED,"Operation cancelled"+(t?": "+t:""))))},t.prototype.handleDelayElapsed=function(){var t=this;this.asyncQueue.enqueueAndForget((function(){return null!==t.timerHandle?(t.clearTimeout(),t.op().then((function(e){return t.deferred.resolve(e)}))):Promise.resolve()}))},t.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},t}();function dl(t,e){if(Nr("AsyncQueue",e+": "+t),Is(t))return new Pr(Lr.UNAVAILABLE,e+": "+t);throw t}var pl=function(){function t(t){this.comparator=t?function(e,n){return t(e,n)||gi.comparator(e.key,n.key)}:function(t,e){return gi.comparator(t.key,e.key)},this.keyedMap=oo(),this.sortedSet=new $a(this.comparator)}return t.emptySet=function(e){return new t(e.comparator)},t.prototype.has=function(t){return null!=this.keyedMap.get(t)},t.prototype.get=function(t){return this.keyedMap.get(t)},t.prototype.first=function(){return this.sortedSet.minKey()},t.prototype.last=function(){return this.sortedSet.maxKey()},t.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},t.prototype.indexOf=function(t){var e=this.keyedMap.get(t);return e?this.sortedSet.indexOf(e):-1},Object.defineProperty(t.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t){this.sortedSet.inorderTraversal((function(e,n){return t(e),!1}))},t.prototype.add=function(t){var e=this.delete(t.key);return e.copy(e.keyedMap.insert(t.key,t),e.sortedSet.insert(t,null))},t.prototype.delete=function(t){var e=this.get(t);return e?this.copy(this.keyedMap.remove(t),this.sortedSet.remove(e)):this},t.prototype.isEqual=function(e){if(!(e instanceof t))return!1;if(this.size!==e.size)return!1;for(var n=this.sortedSet.getIterator(),r=e.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,a=r.getNext().key;if(!i.isEqual(a))return!1}return!0},t.prototype.toString=function(){var t=[];return this.forEach((function(e){t.push(e.toString())})),0===t.length?"DocumentSet ()":"DocumentSet (\n "+t.join(" \n")+"\n)"},t.prototype.copy=function(e,n){var r=new t;return r.comparator=this.comparator,r.keyedMap=e,r.sortedSet=n,r},t}(),gl=function(){function t(){this.Qr=new $a(gi.comparator)}return t.prototype.track=function(t){var e=t.doc.key,n=this.Qr.get(e);n?0!==t.type&&3===n.type?this.Qr=this.Qr.insert(e,t):3===t.type&&1!==n.type?this.Qr=this.Qr.insert(e,{type:n.type,doc:t.doc}):2===t.type&&2===n.type?this.Qr=this.Qr.insert(e,{type:2,doc:t.doc}):2===t.type&&0===n.type?this.Qr=this.Qr.insert(e,{type:0,doc:t.doc}):1===t.type&&0===n.type?this.Qr=this.Qr.remove(e):1===t.type&&2===n.type?this.Qr=this.Qr.insert(e,{type:1,doc:n.doc}):0===t.type&&1===n.type?this.Qr=this.Qr.insert(e,{type:2,doc:t.doc}):Hr():this.Qr=this.Qr.insert(e,t)},t.prototype.jr=function(){var t=[];return this.Qr.inorderTraversal((function(e,n){t.push(n)})),t},t}(),yl=function(){function t(t,e,n,r,i,a,o,s){this.query=t,this.docs=e,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=a,this.syncStateChanged=o,this.excludesMetadataChanges=s}return t.fromInitialDocuments=function(e,n,r,i){var a=[];return n.forEach((function(t){a.push({type:0,doc:t})})),new t(e,n,pl.emptySet(n),a,r,i,!0,!1)},Object.defineProperty(t.prototype,"hasPendingWrites",{get:function(){return!this.mutatedKeys.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){if(!(this.fromCache===t.fromCache&&this.syncStateChanged===t.syncStateChanged&&this.mutatedKeys.isEqual(t.mutatedKeys)&&ca(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.oldDocs.isEqual(t.oldDocs)))return!1;var e=this.docChanges,n=t.docChanges;if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(e[r].type!==n[r].type||!e[r].doc.isEqual(n[r].doc))return!1;return!0},t}(),vl=function(){this.Wr=void 0,this.listeners=[]},ml=function(){this.queries=new Su((function(t){return la(t)}),ca),this.onlineState="Unknown",this.Gr=new Set};function bl(t,e){return w(this,void 0,void 0,(function(){var n,r,i,a,o,s,u;return k(this,(function(c){switch(c.label){case 0:if(n=Ur(t),i=!1,(a=n.queries.get(r=e.query))||(i=!0,a=new vl),!i)return[3,4];c.label=1;case 1:return c.trys.push([1,3,,4]),o=a,[4,n.onListen(r)];case 2:return o.Wr=c.sent(),[3,4];case 3:return s=c.sent(),u=dl(s,"Initialization of query '"+ha(e.query)+"' failed"),[2,void e.onError(u)];case 4:return n.queries.set(r,a),a.listeners.push(e),e.zr(n.onlineState),a.Wr&&e.Hr(a.Wr)&&Cl(n),[2]}}))}))}function _l(t,e){return w(this,void 0,void 0,(function(){var n,r,i,a,o;return k(this,(function(s){return n=Ur(t),i=!1,(a=n.queries.get(r=e.query))&&
1(o=a.listeners.indexOf(e))>=0&&(a.listeners.splice(o,1),i=0===a.listeners.length),i?[2,(n.queries.delete(r),n.onUnlisten(r))]:[2]}))}))}function wl(t,e){for(var n=Ur(t),r=!1,i=0,a=e;i<a.length;i++){var o=a[i],s=n.queries.get(o.query);if(s){for(var u=0,c=s.listeners;u<c.length;u++)c[u].Hr(o)&&(r=!0);s.Wr=o}}r&&Cl(n)}function kl(t,e,n){var r=Ur(t),i=r.queries.get(e);if(i)for(var a=0,o=i.listeners;a<o.length;a++)o[a].onError(n);r.queries.delete(e)}function Cl(t){t.Gr.forEach((function(t){t.next()}))}var Ol=function(){function t(t,e,n){this.query=t,this.Jr=e,this.Yr=!1,this.Xr=null,this.onlineState="Unknown",this.options=n||{}}return t.prototype.Hr=function(t){if(!this.options.includeMetadataChanges){for(var e=[],n=0,r=t.docChanges;n<r.length;n++){var i=r[n];3!==i.type&&e.push(i)}t=new yl(t.query,t.docs,t.oldDocs,e,t.mutatedKeys,t.fromCache,t.syncStateChanged,!0)}var a=!1;return this.Yr?this.Zr(t)&&(this.Jr.next(t),a=!0):this.eo(t,this.onlineState)&&(this.no(t),a=!0),this.Xr=t,a},t.prototype.onError=function(t){this.Jr.error(t)},t.prototype.zr=function(t){this.onlineState=t;var e=!1;return this.Xr&&!this.Yr&&this.eo(this.Xr,t)&&(this.no(this.Xr),e=!0),e},t.prototype.eo=function(t,e){return!t.fromCache||!(this.options.so&&"Offline"!==e||t.docs.isEmpty()&&"Offline"!==e)},t.prototype.Zr=function(t){return t.docChanges.length>0||!!(t.syncStateChanged||this.Xr&&this.Xr.hasPendingWrites!==t.hasPendingWrites)&&!0===this.options.includeMetadataChanges},t.prototype.no=function(t){t=yl.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache),this.Yr=!0,this.Jr.next(t)},t}(),Sl=function(){function t(t,e){this.payload=t,this.byteLength=e}return t.prototype.io=function(){return"metadata"in this.payload},t}(),El=function(){function t(t){this.R=t}return t.prototype.qn=function(t){return Lo(this.R,t)},t.prototype.Un=function(t){return t.metadata.exists?Vo(this.R,t.document,!1):xi.newNoDocument(this.qn(t.metadata.name),this.Kn(t.metadata.readTime))},t.prototype.Kn=function(t){return Mo(t)},t}();!function(){function t(t,e,n){this.ro=t,this.localStore=e,this.R=n,this.queries=[],this.documents=[],this.progress=function(t){return{taskState:"Running",documentsLoaded:0,bytesLoaded:0,totalDocuments:t.totalDocuments,totalBytes:t.totalBytes}}(t)}t.prototype.oo=function(t){this.progress.bytesLoaded+=t.byteLength;var e=this.progress.documentsLoaded;return t.payload.namedQuery?this.queries.push(t.payload.namedQuery):t.payload.documentMetadata?(this.documents.push({metadata:t.payload.documentMetadata}),t.payload.documentMetadata.exists||++e):t.payload.document&&(this.documents[this.documents.length-1].document=t.payload.document,++e),e!==this.progress.documentsLoaded?(this.progress.documentsLoaded=e,Object.assign({},this.progress)):null},t.prototype.co=function(t){for(var e=new Map,n=new El(this.R),r=0,i=t;r<i.length;r++){var a=i[r];if(a.metadata.queries)for(var o=n.qn(a.metadata.name),s=0,u=a.metadata.queries;s<u.length;s++){var c=u[s],l=(e.get(c)||lo()).add(o);e.set(c,l)}}return e},t.prototype.complete=function(){return w(this,void 0,void 0,(function(){var t,e,n,r,i;return k(this,(function(a){switch(a.label){case 0:return[4,rc(this.localStore,new El(this.R),this.documents,this.ro.id)];case 1:t=a.sent(),e=this.co(this.documents),n=0,r=this.queries,a.label=2;case 2:return n<r.length?[4,ic(this.localStore,i=r[n],e.get(i.name))]:[3,5];case 3:a.sent(),a.label=4;case 4:return n++,[3,2];case 5:return[2,(this.progress.taskState="Success",new Vu(Object.assign({},this.progress),t))]}}))}))}}();var Al=function(t){this.key=t},Tl=function(t){this.key=t},Ml=function(){function t(t,e){this.query=t,this.uo=e,this.ao=null,this.current=!1,this.ho=lo(),this.mutatedKeys=lo(),this.lo=da(t),this.fo=new pl(this.lo)}return Object.defineProperty(t.prototype,"wo",{get:function(){return this.uo},enumerable:!1,configurable:!0}),t.prototype._o=function(t,e){var n=this,r=e?e.mo:new gl,i=e?e.fo:this.fo,a=e?e.mutatedKeys:this.mutatedKeys,o=i,s=!1,u=ea(this.query)&&i.size===this.query.limit?i.last():null,c=na(this.query)&&i.size===this.query.limit?i.first():null;if(t.inorderTraversal((function(t,e){var l=i.get(t),h=fa(n.query,e)?e:null,f=!!l&&n.mutatedKeys.has(l.key),d=!!h&&(h.hasLocalMutations||n.mutatedKeys.has(h.key)&&h.hasCommittedMutations),p=!1;l&&h?l.data.isEqual(h.data)?f!==d&&(r.track({type:3,doc:h}),p=!0):n.yo(l,h)||(r.track({type:2,doc:h}),p=!0,(u&&n.lo(h,u)>0||c&&n.lo(h,c)<0)&&(s=!0)):!l&&h?(r.track({type:0,doc:h}),p=!0):l&&!h&&(r.track({type:1,doc:l}),p=!0,(u||c)&&(s=!0)),p&&(h?(o=o.add(h),a=d?a.add(t):a.delete(t)):(o=o.delete(t),a=a.delete(t)))})),ea(this.query)||na(this.query))for(;o.size>this.query.limit;){var l=ea(this.query)?o.last():o.first();o=o.delete(l.key),a=a.delete(l.key),r.track({type:1,doc:l})}return{fo:o,mo:r,Nn:s,mutatedKeys:a}},t.prototype.yo=function(t,e){return t.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations},t.prototype.applyChanges=function(t,e,n){var r=this,i=this.fo;this.fo=t.fo,this.mutatedKeys=t.mutatedKeys;var a=t.mo.jr();a.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 Hr()}};return n(t)-n(e)}(t.type,e.type)||r.lo(t.doc,e.doc)})),this.po(n);var o=e?this.Eo():[],s=0===this.ho.size&&this.current?1:0,u=s!==this.ao;return this.ao=s,0!==a.length||u?{snapshot:new yl(this.query,t.fo,i,a,t.mutatedKeys,0===s,u,!1),To:o}:{To:o}},t.prototype.zr=function(t){return this.current&&"Offline"===t?(this.current=!1,this.applyChanges({fo:this.fo,mo:new gl,mutatedKeys:this.mutatedKeys,Nn:!1},!1)):{To:[]}},t.prototype.Io=function(t){return!this.uo.has(t)&&!!this.fo.has(t)&&!this.fo.get(t).hasLocalMutations},t.prototype.po=function(t){var e=this;
1t&&(t.addedDocuments.forEach((function(t){return e.uo=e.uo.add(t)})),t.modifiedDocuments.forEach((function(t){})),t.removedDocuments.forEach((function(t){return e.uo=e.uo.delete(t)})),this.current=t.current)},t.prototype.Eo=function(){var t=this;if(!this.current)return[];var e=this.ho;this.ho=lo(),this.fo.forEach((function(e){t.Io(e.key)&&(t.ho=t.ho.add(e.key))}));var n=[];return e.forEach((function(e){t.ho.has(e)||n.push(new Tl(e))})),this.ho.forEach((function(t){e.has(t)||n.push(new Al(t))})),n},t.prototype.Ao=function(t){this.uo=t.Bn,this.ho=lo();var e=this._o(t.documents);return this.applyChanges(e,!0)},t.prototype.Ro=function(){return yl.fromInitialDocuments(this.query,this.fo,this.mutatedKeys,0===this.ao)},t}(),Il=function(t,e,n){this.query=t,this.targetId=e,this.view=n},xl=function(t){this.key=t,this.bo=!1},jl=function(){function t(t,e,n,r,i,a){this.localStore=t,this.remoteStore=e,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=a,this.vo={},this.Po=new Su((function(t){return la(t)}),ca),this.Vo=new Map,this.So=new Set,this.Do=new $a(gi.comparator),this.Co=new Map,this.No=new oc,this.xo={},this.ko=new Map,this.Fo=du.Yt(),this.onlineState="Unknown",this.$o=void 0}return Object.defineProperty(t.prototype,"isPrimaryClient",{get:function(){return!0===this.$o},enumerable:!1,configurable:!0}),t}();function Ll(t,e){return w(this,void 0,void 0,(function(){var n,r,i,a,o;return k(this,(function(s){switch(s.label){case 0:return n=uh(t),(i=n.Po.get(e))?(n.sharedClientState.addLocalQueryTarget(i.targetId),r=i.view.Ro(),[3,4]):[3,1];case 1:return[4,Zu(n.localStore,sa(e))];case 2:return a=s.sent(),o=n.sharedClientState.addLocalQueryTarget(a.targetId),[4,Pl(n,e,a.targetId,"current"===o)];case 3:r=s.sent(),n.isPrimaryClient&&Uc(n.remoteStore,a),s.label=4;case 4:return[2,r]}}))}))}function Pl(t,e,n,r){return w(this,void 0,void 0,(function(){var i,a,o,s,u,c;return k(this,(function(l){switch(l.label){case 0:return t.Oo=function(e,n,r){return function(t,e,n,r){return w(this,void 0,void 0,(function(){var i,a,o;return k(this,(function(s){switch(s.label){case 0:return(i=e.view._o(n)).Nn?[4,Ju(t.localStore,e.query,!1).then((function(t){return e.view._o(t.documents,i)}))]:[3,2];case 1:i=s.sent(),s.label=2;case 2:return a=r&&r.targetChanges.get(e.targetId),o=e.view.applyChanges(i,t.isPrimaryClient,a),[2,(Kl(t,e.targetId,o.To),o.snapshot)]}}))}))}(t,e,n,r)},[4,Ju(t.localStore,e,!0)];case 1:return i=l.sent(),a=new Ml(e,i.Bn),o=a._o(i.documents),s=go.createSynthesizedTargetChangeForCurrentChange(n,r&&"Offline"!==t.onlineState),u=a.applyChanges(o,t.isPrimaryClient,s),Kl(t,n,u.To),c=new Il(e,n,a),[2,(t.Po.set(e,c),t.Vo.has(n)?t.Vo.get(n).push(e):t.Vo.set(n,[e]),u.snapshot)]}}))}))}function Rl(t,e){return w(this,void 0,void 0,(function(){var n,r,i;return k(this,(function(a){switch(a.label){case 0:return n=Ur(t),r=n.Po.get(e),(i=n.Vo.get(r.targetId)).length>1?[2,(n.Vo.set(r.targetId,i.filter((function(t){return!ca(t,e)}))),void n.Po.delete(e))]:n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(r.targetId),n.sharedClientState.isActiveQueryTarget(r.targetId)?[3,2]:[4,$u(n.localStore,r.targetId,!1).then((function(){n.sharedClientState.clearQueryState(r.targetId),qc(n.remoteStore,r.targetId),Wl(n,r.targetId)})).catch(mu)]):[3,3];case 1:a.sent(),a.label=2;case 2:return[3,5];case 3:return Wl(n,r.targetId),[4,$u(n.localStore,r.targetId,!0)];case 4:a.sent(),a.label=5;case 5:return[2]}}
1))}))}function Dl(t,e,n){return w(this,void 0,void 0,(function(){var r,i,a,o;return k(this,(function(s){switch(s.label){case 0:r=ch(t),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,function(t,e){var n,r=Ur(t),i=Qr.now(),a=e.reduce((function(t,e){return t.add(e.key)}),lo());return r.persistence.runTransaction("Locally write mutations","readwrite",(function(t){return r.Mn.pn(t,a).next((function(a){n=a;for(var o=[],s=0,u=e;s<u.length;s++){var c=u[s],l=za(c,n.get(c.key));null!=l&&o.push(new Ha(c.key,l,Ii(l.value.mapValue),ja.exists(!0)))}return r._n.addMutationBatch(t,i,o,e)}))})).then((function(t){return t.applyToLocalDocumentSet(n),{batchId:t.batchId,changes:n}}))}(r.localStore,e)];case 2:return i=s.sent(),r.sharedClientState.addPendingMutation(i.batchId),function(t,e,n){var r=t.xo[t.currentUser.toKey()];r||(r=new $a(Gr)),r=r.insert(e,n),t.xo[t.currentUser.toKey()]=r}(r,i.batchId,n),[4,Xl(r,i.changes)];case 3:return s.sent(),[4,nl(r.remoteStore)];case 4:return s.sent(),[3,6];case 5:return a=s.sent(),o=dl(a,"Failed to persist write"),n.reject(o),[3,6];case 6:return[2]}}
1))}))}function zl(t,e){return w(this,void 0,void 0,(function(){var n,r;return k(this,(function(i){switch(i.label){case 0:n=Ur(t),i.label=1;case 1:return i.trys.push([1,4,,6]),[4,Yu(n.localStore,e)];case 2:return r=i.sent(),e.targetChanges.forEach((function(t,e){var r=n.Co.get(e);r&&(Br(t.addedDocuments.size+t.modifiedDocuments.size+t.removedDocuments.size<=1),t.addedDocuments.size>0?r.bo=!0:t.modifiedDocuments.size>0?Br(r.bo):t.removedDocuments.size>0&&(Br(r.bo),r.bo=!1))})),[4,Xl(n,r,e)];case 3:return i.sent(),[3,6];case 4:return[4,mu(i.sent())];case 5:return i.sent(),[3,6];case 6:return[2]}}))}))}function Nl(t,e,n){var r=Ur(t);if(r.isPrimaryClient&&0===n||!r.isPrimaryClient&&1===n){var i=[];r.Po.forEach((function(t,n){var r=n.view.zr(e);r.snapshot&&i.push(r.snapshot)})),function(t,e){var n=Ur(t);n.onlineState=e;var r=!1;n.queries.forEach((function(t,n){for(var i=0,a=n.listeners;i<a.length;i++)a[i].zr(e)&&(r=!0)})),r&&Cl(n)}(r.eventManager,e),i.length&&r.vo._r(i),r.onlineState=e,r.isPrimaryClient&&r.sharedClientState.setOnlineState(e)}}function Vl(t,e,n){return w(this,void 0,void 0,(function(){var r,i,a,o,s,u;return k(this,(function(c){switch(c.label){case 0:return(r=Ur(t)).sharedClientState.updateQueryState(e,"rejected",n),i=r.Co.get(e),(a=i&&i.key)?(o=(o=new $a(gi.comparator)).insert(a,xi.newNoDocument(a,Xr.min())),s=lo().add(a),u=new po(Xr.min(),new Map,new eo(Gr),o,s),[4,zl(r,u)]):[3,2];case 1:return c.sent(),r.Do=r.Do.remove(a),r.Co.delete(e),Ql(r),[3,4];case 2:return[4,$u(r.localStore,e,!1).then((function(){return Wl(r,e,n)})).catch(mu)];case 3:c.sent(),c.label=4;case 4:return[2]}}
1))}))}function Fl(t,e){return w(this,void 0,void 0,(function(){var n,r,i;return k(this,(function(a){switch(a.label){case 0:n=Ur(t),r=e.batch.batchId,a.label=1;case 1:return a.trys.push([1,4,,6]),[4,Gu(n.localStore,e)];case 2:return i=a.sent(),ql(n,r,null),Ul(n,r),n.sharedClientState.updateMutationState(r,"acknowledged"),[4,Xl(n,i)];case 3:return a.sent(),[3,6];case 4:return[4,mu(a.sent())];case 5:return a.sent(),[3,6];case 6:return[2]}}))}))}function Hl(t,e,n){return w(this,void 0,void 0,(function(){var r,i;return k(this,(function(a){switch(a.label){case 0:r=Ur(t),a.label=1;case 1:return a.trys.push([1,4,,6]),[4,function(t,e){var n=Ur(t);return n.persistence.runTransaction("Reject batch","readwrite-primary",(function(t){var r;return n._n.lookupMutationBatch(t,e).next((function(e){return Br(null!==e),r=e.keys(),n._n.removeMutationBatch(t,e)})).next((function(){return n._n.performConsistencyCheck(t)})).next((function(){return n.Mn.pn(t,r)}))}))}(r.localStore,e)];case 2:return i=a.sent(),ql(r,e,n),Ul(r,e),r.sharedClientState.updateMutationState(e,"rejected",n),[4,Xl(r,i)];case 3:return a.sent(),[3,6];case 4:return[4,mu(a.sent())];case 5:return a.sent(),[3,6];case 6:return[2]}}
1))}))}function Bl(t,e){return w(this,void 0,void 0,(function(){var n,r,i,a,o;return k(this,(function(s){switch(s.label){case 0:Qc((n=Ur(t)).remoteStore)||zr("SyncEngine","The network is disabled. The task returned by 'awaitPendingWrites()' will not complete until the network is enabled."),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,function(t){var e=Ur(t);return e.persistence.runTransaction("Get highest unacknowledged batch id","readonly",(function(t){return e._n.getHighestUnacknowledgedBatchId(t)}))}(n.localStore)];case 2:return-1===(r=s.sent())?[2,void e.resolve()]:((i=n.ko.get(r)||[]).push(e),n.ko.set(r,i),[3,4]);case 3:return a=s.sent(),o=dl(a,"Initialization of waitForPendingWrites() operation failed"),e.reject(o),[3,4];case 4:return[2]}}))}))}function Ul(t,e){(t.ko.get(e)||[]).forEach((function(t){t.resolve()})),t.ko.delete(e)}function ql(t,e,n){var r=Ur(t),i=r.xo[r.currentUser.toKey()];if(i){var a=i.get(e);a&&(n?a.reject(n):a.resolve(),i=i.remove(e)),r.xo[r.currentUser.toKey()]=i}}function Wl(t,e,n){void 0===n&&(n=null),t.sharedClientState.removeLocalQueryTarget(e);for(var r=0,i=t.Vo.get(e);r<i.length;r++){var a=i[r];t.Po.delete(a),n&&t.vo.Mo(a,n)}t.Vo.delete(e),t.isPrimaryClient&&t.No.Zn(e).forEach((function(e){t.No.containsKey(e)||Gl(t,e)}))}function Gl(t,e){t.So.delete(e.path.canonicalString());var n=t.Do.get(e);null!==n&&(qc(t.remoteStore,n),t.Do=t.Do.remove(e),t.Co.delete(n),Ql(t))}function Kl(t,e,n){for(var r=0,i=n;r<i.length;r++){var a=i[r];a instanceof Al?(t.No.addReference(a.key,e),Yl(t,a)):a instanceof Tl?(zr("SyncEngine","Document no longer in limbo: "+a.key),t.No.removeReference(a.key,e),t.No.containsKey(a.key)||Gl(t,a.key)):Hr()}}function Yl(t,e){var n=e.key,r=n.path.canonicalString();t.Do.get(n)||t.So.has(r)||(zr("SyncEngine","New document in limbo: "+n),t.So.add(r),Ql(t))}function Ql(t){for(;t.So.size>0&&t.Do.size<t.maxConcurrentLimboResolutions;){var e=t.So.values().next().value;t.So.delete(e);var n=new gi(ei.fromString(e)),r=t.Fo.next();t.Co.set(r,new xl(n)),t.Do=t.Do.insert(n,r),Uc(t.remoteStore,new Vs(sa(ta(n.path)),r,2,jr.o))}}function Xl(t,e,n){return w(this,void 0,void 0,(function(){var r,i,a,o;return k(this,(function(s){switch(s.label){case 0:return r=Ur(t),i=[],a=[],o=[],r.Po.isEmpty()?[3,3]:(r.Po.forEach((function(t,s){o.push(r.Oo(s,e,n).then((function(t){if(t){r.isPrimaryClient&&r.sharedCl
1ientState.updateQueryState(s.targetId,t.fromCache?"not-current":"current"),i.push(t);var e=Hu.Pn(s.targetId,t);a.push(e)}})))})),[4,Promise.all(o)]);case 1:return s.sent(),r.vo._r(i),[4,function(t,e){return w(this,void 0,void 0,(function(){var n,r,i,a,o,s,u,c;return k(this,(function(l){switch(l.label){case 0:n=Ur(t),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,n.persistence.runTransaction("notifyLocalViewChanges","readwrite",(function(t){return Ss.forEach(e,(function(e){return Ss.forEach(e.bn,(function(r){return n.persistence.referenceDelegate.addReference(t,e.targetId,r)})).next((function(){return Ss.forEach(e.vn,(function(r){return n.persistence.referenceDelegate.removeReference(t,e.targetId,r)}))}))}))}))];case 2:return l.sent(),[3,4];case 3:if(!Is(r=l.sent()))throw r;return zr("LocalStore","Failed to update sequence numbers: "+r),[3,4];case 4:for(i=0,a=e;i<a.length;i++)s=(o=a[i]).targetId,o.fromCache||(u=n.kn.get(s),c=u.withLastLimboFreeSnapshotVersion(u.snapshotVersion),n.kn=n.kn.insert(s,c));return[2]}}))}))}(r.localStore,a)];case 2:s.sent(),s.label=3;case 3:return[2]}}
1))}))}function Zl(t,e){return w(this,void 0,void 0,(function(){var n,r;return k(this,(function(i){switch(i.label){case 0:return(n=Ur(t)).currentUser.isEqual(e)?[3,3]:(zr("SyncEngine","User change. New user:",e.toKey()),[4,Wu(n.localStore,e)]);case 1:return r=i.sent(),n.currentUser=e,function(t,e){t.ko.forEach((function(t){t.forEach((function(t){t.reject(new Pr(Lr.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))}))})),t.ko.clear()}(n),n.sharedClientState.handleUserChange(e,r.removedBatchIds,r.addedBatchIds),[4,Xl(n,r.Ln)];case 2:i.sent(),i.label=3;case 3:return[2]}}))}))}function $l(t,e){var n=Ur(t),r=n.Co.get(e);if(r&&r.bo)return lo().add(r.key);var i=lo(),a=n.Vo.get(e);if(!a)return i;for(var o=0,s=a;o<s.length;o++){var u=n.Po.get(s[o]);i=i.unionWith(u.view.wo)}return i}function Jl(t,e){return w(this,void 0,void 0,(function(){var n,r,i;return k(this,(function(a){switch(a.label){case 0:return[4,Ju((n=Ur(t)).localStore,e.query,!0)];case 1:return r=a.sent(),i=e.view.Ao(r),[2,(n.isPrimaryClient&&Kl(n,e.targetId,i.To),i)]}}))}))}function th(t){return w(this,void 0,void 0,(function(){var e;return k(this,(function(n){return[2,ec((e=Ur(t)).localStore).then((function(t){return Xl(e,t)}))]}))}))}function eh(t,e,n,r){return w(this,void 0,void 0,(function(){var i,a;return k(this,(function(o){switch(o.label){case 0:return[4,function(t,e){var n=Ur(t),r=Ur(n._n);return n.persistence.runTransaction("Lookup mutation documents","readonly",(function(t){return r.jt(t,e).next((function(e){return e?n.Mn.pn(t,e):Ss.resolve(null)}))}))}((i=Ur(t)).localStore,e)];case 1:return null===(a=o.sent())?[3,6]:"pending"!==n?[3,3]:[4,nl(i.remoteStore)];case 2:return o.sent(),[3,4];case 3:"acknowledged"===n||"rejected"===n?(ql(i,e,r||null),Ul(i,e),function(t,e){Ur(Ur(t)._n).Gt(e)}(i.localStore,e)):Hr(),o.label=4;case 4:return[4,Xl(i,a)];case 5:return o.sent(),[3,7];case 6:zr("SyncEngine","Cannot apply mutation batch with id: "+e),o.label=7;case 7:return[2]}}
1))}))}function nh(t,e){return w(this,void 0,void 0,(function(){var n,r,i,a,o,s,u;return k(this,(function(c){switch(c.label){case 0:return uh(n=Ur(t)),ch(n),!0!==e||!0===n.$o?[3,3]:(r=n.sharedClientState.getAllActiveQueryTargets(),[4,rh(n,r.toArray())]);case 1:return i=c.sent(),n.$o=!0,[4,cl(n.remoteStore,!0)];case 2:for(c.sent(),a=0,o=i;a<o.length;a++)Uc(n.remoteStore,o[a]);return[3,7];case 3:return!1!==e||!1===n.$o?[3,7]:(s=[],u=Promise.resolve(),n.Vo.forEach((function(t,e){n.sharedClientState.isLocalQueryTarget(e)?s.push(e):u=u.then((function(){return Wl(n,e),$u(n.localStore,e,!0)})),qc(n.remoteStore,e)})),[4,u]);case 4:return c.sent(),[4,rh(n,s)];case 5:return c.sent(),function(t){var e=Ur(t);e.Co.forEach((function(t,n){qc(e.remoteStore,n)})),e.No.ts(),e.Co=new Map,e.Do=new $a(gi.comparator)}(n),n.$o=!1,[4,cl(n.remoteStore,!1)];case 6:c.sent(),c.label=7;case 7:return[2]}}))}))}function rh(t,e,n){return w(this,void 0,void 0,(function(){var n,r,i,a,o,s,u,c,l,h,f,d,p;return k(this,(function(g){switch(g.label){case 0:n=Ur(t),r=[],i=[],a=0,o=e,g.label=1;case 1:return a<o.length?(u=void 0,(c=n.Vo.get(s=o[a]))&&0!==c.length?[4,Zu(n.localStore,sa(c[0]))]:[3,7]):[3,13];case 2:u=g.sent(),l=0,h=c,g.label=3;case 3:return l<h.length?(f=n.Po.get(h[l]),[4,Jl(n,f)]):[3,6];case 4:(d=g.sent()).snapshot&&i.push(d.snapshot),g.label=5;case 5:return l++,[3,3];case 6:return[3,11];case 7:return[4,tc(n.localStore,s)];case 8:return p=g.sent(),[4,Zu(n.localStore,p)];case 9:return u=g.sent(),[4,Pl(n,ih(p),s,!1)];case 10:g.sent(),g.label=11;case 11:r.push(u),g.label=12;case 12:return a++,[3,1];case 13:return[2,(n.vo._r(i),r)]}}))}))}function ih(t){return Ji(t.path,t.collectionGroup,t.orderBy,t.filters,t.limit,"F",t.startAt,t.endAt)}function ah(t){var e=Ur(t);return Ur(Ur(e.localStore).persistence).fn()}function oh(t,e,n,r){return w(this,void 0,void 0,(function(){var i,a,o;return k(this,(function(s){switch(s.label){case 0:return(i=Ur(t)).$o?(zr("SyncEngine","Ignoring unexpected query state notification."),[3,8]):[3,1];case 1:if(!i.Vo.has(e))return[3,8];switch(n){case"current":case"not-current":return[3,2];case"rejected":return[3,5]}return[3,7];case 2:return[4,ec(i.localStore)];case 3:return a=s.sent(),o=po.createSynthesizedRemoteEventForCurrentChange(e,"current"===n),[4,Xl(i,a,o)];case 4:return s.sent(),[3,8];case 5:return[4,$u(i.localStore,e,!0)];case 6:return s.sent(),Wl(i,e,r),[3,8];case 7:Hr(),s.label=8;case 8:return[2]}}
1))}))}function sh(t,e,n){return w(this,void 0,void 0,(function(){var r,i,a,o,s,u,c,l,h;return k(this,(function(f){switch(f.label){case 0:if(!(r=uh(t)).$o)return[3,10];i=0,a=e,f.label=1;case 1:return i<a.length?r.Vo.has(o=a[i])?(zr("SyncEngine","Adding an already active target "+o),[3,5]):[4,tc(r.localStore,o)]:[3,6];case 2:return s=f.sent(),[4,Zu(r.localStore,s)];case 3:return u=f.sent(),[4,Pl(r,ih(s),u.targetId,!1)];case 4:f.sent(),Uc(r.remoteStore,u),f.label=5;case 5:return i++,[3,1];case 6:c=function(t){return k(this,(function(e){switch(e.label){case 0:return r.Vo.has(t)?[4,$u(r.localStore,t,!1).then((function(){qc(r.remoteStore,t),Wl(r,t)})).catch(mu)]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))},l=0,h=n,f.label=7;case 7:return l<h.length?[5,c(h[l])]:[3,10];case 8:f.sent(),f.label=9;case 9:return l++,[3,7];case 10:return[2]}}))}))}function uh(t){var e=Ur(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=zl.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=$l.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=Vl.bind(null,e),e.vo._r=wl.bind(null,e.eventManager),e.vo.Mo=kl.bind(null,e.eventManager),e}function ch(t){var e=Ur(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=Fl.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=Hl.bind(null,e),e}var lh=function(){function t(){this.synchronizeTabs=!1}return t.prototype.initialize=function(t){return w(this,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return this.R=Lc(t.databaseInfo.databaseId),this.sharedClientState=this.Bo(t),this.persistence=this.qo(t),[4,this.persistence.start()];case 1:return e.sent(),this.gcScheduler=this.Uo(t),this.localStore=this.Ko(t),[2]}}))}))},t.prototype.Uo=function(t){return null},t.prototype.Ko=function(t){return qu(this.persistence,new Bu,t.initialUser,this.R)},t.prototype.qo=function(t){return new fc(pc.bs,this.R)},t.prototype.Bo=function(t){return new Sc},t.prototype.terminate=function(){return w(this,void 0,void 0,(function(){return k(this,(function(t){switch(t.label){case 0:return this.gcScheduler&&this.gcScheduler.stop(),[4,this.sharedClientState.shutdown()];case 1:return t.sent(),[4,this.persistence.shutdown()];case 2:return t.sent(),[2]}}))}))},t}(),hh=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).Qo=e,i.cacheSizeBytes=n,i.forceOwnership=r,i.synchronizeTabs=!1,i}return _(e,t),e.prototype.initialize=function(e){return w(this,void 0,void 0,(function(){var n=this;return k(this,(function(r){switch(r.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return r.sent(),[4,nc(this.localStore)];case 2:return r.sent(),[4,this.Qo.initialize(this,e)];case 3:return r.sent(),[4,ch(this.Qo.syncEngine)];case 4:return r.sent(),[4,nl(this.Qo.remoteStore)];case 5:return r.sent(),[4,this.persistence.He((function(){return n.gcScheduler&&!n.gcScheduler.started&&n.gcScheduler.start(n.localStore),Promise.resolve()}))];case 6:return r.sent(),[2]}}))}))},e.prototype.Ko=function(t){return qu(this.persistence,new Bu,t.initialUser,this.R)},e.prototype.Uo=function(t){return new wu(this.persistence.referenceDelegate.garbageCollector,t.asyncQueue)},e.prototype.qo=function(t){var e=Nu(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey),n=void 0!==this.cacheSizeBytes?au.withCacheSize(this.cacheSizeBytes):au.DEFAULT;return new Ru(this.synchronizeTabs,e,t.clientId,n,t.asyncQueue,xc(),jc(),this.R,this.sharedClientState,!!this.forceOwnership)},e.prototype.Bo=function(t){return new Sc},e}(lh),fh=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n,!1)||this).Qo=e,r.cacheSizeBytes=n,r.synchronizeTabs=!0,r}return _(e,t),e.prototype.initialize=function(e){return w(this,void 0,void 0,(function(){var n,r=this;return k(this,(function(i){switch(i.label){case 0:return[4,t.prototype.initialize.call(this,e)];case 1:return i.sent(),n=this.Qo.syncEngine,this.sharedClientState instanceof Oc?(this.sharedClientState.syncEngine={ui:eh.bind(null,n),ai:oh.bind(null,n),hi:sh.bind(null,n),fn:ah.bind(null,n),ci:th.bind(null,n)},[4,this.sharedClientState.start()]):[3,3];case 2:i.sent(),i.label=3;case 3:return[4,this.persistence.He((function(t){return w(r,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return[4,nh(this.Qo.syncEngine,t)];case 1:return e.sent(),this.gcScheduler&&(t&&!this.gcScheduler.started?this.gcScheduler.start(this.localStore):t||this.gcScheduler.stop()),[2]}}))}))}))];case 4:return i.sent(),[2]}}))}))},e.prototype.Bo=function(t){var e=xc();
1if(!Oc.yt(e))throw new Pr(Lr.UNIMPLEMENTED,"IndexedDB persistence is only available on platforms that support LocalStorage.");var n=Nu(t.databaseInfo.databaseId,t.databaseInfo.persistenceKey);return new Oc(e,t.asyncQueue,n,t.clientId,t.initialUser)},e}(hh),dh=function(){function t(){}return t.prototype.initialize=function(t,e){return w(this,void 0,void 0,(function(){var n=this;return k(this,(function(r){switch(r.label){case 0:return this.localStore?[3,2]:(this.localStore=t.localStore,this.sharedClientState=t.sharedClientState,this.datastore=this.createDatastore(e),this.remoteStore=this.createRemoteStore(e),this.eventManager=this.createEventManager(e),this.syncEngine=this.createSyncEngine(e,!t.synchronizeTabs),this.sharedClientState.onlineStateHandler=function(t){return Nl(n.syncEngine,t,1)},this.remoteStore.remoteSyncer.handleCredentialChange=Zl.bind(null,this.syncEngine),[4,cl(this.remoteStore,this.syncEngine.isPrimaryClient)]);case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},t.prototype.createEventManager=function(t){return new ml},t.prototype.createDatastore=function(t){var e=Lc(t.databaseInfo.databaseId),n=new Ic(t.databaseInfo);return function(t,e,n){return new Nc(t,e,n)}(t.credentials,n,e)},t.prototype.createRemoteStore=function(t){var e,n,r,i,a,o=this;return e=this.localStore,n=this.datastore,r=t.asyncQueue,i=function(t){return Nl(o.syncEngine,t,0)},a=Ac.yt()?new Ac:new Ec,new Fc(e,n,r,i,a)},t.prototype.createSyncEngine=function(t,e){return function(t,e,n,r,i,a,o){var s=new jl(t,e,n,r,i,a);return o&&(s.$o=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,t.initialUser,t.maxConcurrentLimboResolutions,e)},t.prototype.terminate=function(){return function(t){return w(this,void 0,void 0,(function(){var e;return k(this,(function(n){switch(n.label){case 0:return e=Ur(t),zr("RemoteStore","RemoteStore shutting down."),e.Or.add(5),[4,Bc(e)];case 1:return n.sent(),e.Lr.shutdown(),e.Br.set("Unknown"),[2]}}))}))}(this.remoteStore)},t}(),ph=function(){function t(t){this.observer=t,this.muted=!1}return t.prototype.next=function(t){this.observer.next&&this.jo(this.observer.next,t)},t.prototype.error=function(t){this.observer.error?this.jo(this.observer.error,t):console.error("Uncaught Error in snapshot listener:",t)},t.prototype.Wo=function(){this.muted=!0},t.prototype.jo=function(t,e){var n=this;this.muted||setTimeout((function(){n.muted||t(e)}),0)},t}(),gh=(function(){function t(t,e){var n=this;this.Go=t,this.R=e,this.metadata=new Os,this.buffer=new Uint8Array,this.zo=new TextDecoder("utf-8"),this.Ho().then((function(t){t&&t.io()?n.metadata.resolve(t.payload.metadata):n.metadata.reject(new Error("The first element of the bundle is not a metadata, it is\n "+JSON.stringify(null==t?void 0:t.payload)))}),(function(t){return n.metadata.reject(t)}))}t.prototype.close=function(){return this.Go.cancel()},t.prototype.getMetadata=function(){return w(this,void 0,void 0,(function(){return k(this,(function(t){return[2,this.metadata.promise]}))}))},t.prototype.Lo=function(){return w(this,void 0,void 0,(function(){return k(this,(function(t){switch(t.label){case 0:return[4,this.getMetadata()];case 1:return[2,(t.sent(),this.Ho())]}}))}))},t.prototype.Ho=function(){return w(this,void 0,void 0,(function(){var t,e,n,r;return k(this,(function(i){switch(i.label){case 0:return[4,this.Jo()];case 1:return null===(t=i.sent())?[2,null]:(e=this.zo.decode(t),n=Number(e),isNaN(n)&&this.Yo("length string ("+e+") is not valid number"),[4,this.Xo(n)]);case 2:return r=i.sent(),[2,new Sl(JSON.parse(r),t.length+n)]}}))}))},t.prototype.Zo=function(){return this.buffer.findIndex((function(t){return t==="{".charCodeAt(0)}))},t.prototype.Jo=function(){return w(this,void 0,void 0,(function(){var t,e;return k(this,(function(n){switch(n.label){case 0:return this.Zo()<0?[4,this.tc()]:[3,3];case 1:if(n.sent())return[3,3];n.label=2;case 2:return[3,0];case 3:return 0===this.buffer.length?[2,null]:((t=this.Zo())<0&&this.Yo("Reached the end of bundle when a length string is expected."),e=this.buffer.slice(0,t),[2,(this.buffer=this.buffer.slice(t),e)])}}))}))},t.prototype.Xo=function(t){return w(this,void 0,void 0,(function(){var e;return k(this,(function(n){switch(n.label){case 0:return this.buffer.length<t?[4,this.tc()]:[3,3];case 1:n.sent()&&this.Yo("Reached the end of bundle when more is expected."),n.label=2;case 2:return[3,0];case 3:return e=this.zo.decode(this.buffer.slice(0,t)),[2,(this.buffer=this.buffer.slice(t),e)]}}))}))},t.prototype.Yo=function(t){throw this.Go.cancel(),new Error("Invalid bundle format: "+t)},t.prototype.tc=function(){return w(this,void 0,void 0,(function(){var t,e;return k(this,(function(n){switch(n.label){case 0:return[4,this.Go.read()];
1case 1:return(t=n.sent()).done||((e=new Uint8Array(this.buffer.length+t.value.length)).set(this.buffer),e.set(t.value,this.buffer.length),this.buffer=e),[2,t.done]}}))}))}}(),function(){function t(t){this.datastore=t,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastWriteError=null,this.writtenDocs=new Set}return t.prototype.lookup=function(t){return w(this,void 0,void 0,(function(){var e,n=this;return k(this,(function(r){switch(r.label){case 0:if(this.ensureCommitNotCalled(),this.mutations.length>0)throw new Pr(Lr.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes.");return[4,function(t,e){return w(this,void 0,void 0,(function(){var n,r,i,a,o,s;return k(this,(function(u){switch(u.label){case 0:return n=Ur(t),r=Do(n.R)+"/documents",i={documents:e.map((function(t){return jo(n.R,t)}))},[4,n.$i("BatchGetDocuments",r,i)];case 1:return a=u.sent(),o=new Map,a.forEach((function(t){var e=function(t,e){return"found"in e?function(t,e){Br(!!e.found);var n=Lo(t,e.found.name),r=Mo(e.found.updateTime),i=new Mi({mapValue:{fields:e.found.fields}});return xi.newFoundDocument(n,r,i)}(t,e):"missing"in e?function(t,e){Br(!!e.missing),Br(!!e.readTime);var n=Lo(t,e.missing),r=Mo(e.readTime);return xi.newNoDocument(n,r)}(t,e):Hr()}(n.R,t);o.set(e.key.toString(),e)})),s=[],[2,(e.forEach((function(t){var e=o.get(t.toString());Br(!!e),s.push(e)})),s)]}}))}))}(this.datastore,t)];case 1:return[2,((e=r.sent()).forEach((function(t){return n.recordVersion(t)})),e)]}}))}))},t.prototype.set=function(t,e){this.write(e.toMutation(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.update=function(t,e){try{this.write(e.toMutation(t,this.preconditionForUpdate(t)))}catch(t){this.lastWriteError=t}this.writtenDocs.add(t.toString())},t.prototype.delete=function(t){this.write(new Ka(t,this.precondition(t))),this.writtenDocs.add(t.toString())},t.prototype.commit=function(){return w(this,void 0,void 0,(function(){var t,e=this;return k(this,(function(n){switch(n.label){case 0:if(this.ensureCommitNotCalled(),this.lastWriteError)throw this.lastWriteError;return t=this.readVersions,this.mutations.forEach((function(e){t.delete(e.key.toString())})),t.forEach((function(t,n){var r=gi.fromPath(n);e.mutations.push(new Ya(r,e.precondition(r)))})),[4,function(t,e){return w(this,void 0,void 0,(function(){var n,r,i;return k(this,(function(a){switch(a.label){case 0:return n=Ur(t),r=Do(n.R)+"/documents",i={writes:e.map((function(t){return Fo(n.R,t)}))},[4,n.Ni("Commit",r,i)];case 1:return a.sent(),[2]}}))}))}(this.datastore,this.mutations)];case 1:return n.sent(),this.committed=!0,[2]}}))}))},t.prototype.recordVersion=function(t){var e;if(t.isFoundDocument())e=t.version;else{if(!t.isNoDocument())throw Hr();e=Xr.min()}var n=this.readVersions.get(t.key.toString());if(n){if(!e.isEqual(n))throw new Pr(Lr.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(t.key.toString(),e)},t.prototype.precondition=function(t){var e=this.readVersions.get(t.toString());return!this.writtenDocs.has(t.toString())&&e?ja.updateTime(e):ja.none()},t.prototype.preconditionForUpdate=function(t){var e=this.readVersions.get(t.toString());if(!this.writtenDocs.has(t.toString())&&e){if(e.isEqual(Xr.min()))throw new Pr(Lr.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return ja.updateTime(e)}return ja.exists(!0)},t.prototype.write=function(t){this.ensureCommitNotCalled(),this.mutations.push(t)},t.prototype.ensureCommitNotCalled=function(){},t}()),yh=function(){function t(t,e,n,r){this.asyncQueue=t,this.datastore=e,this.updateFunction=n,this.deferred=r,this.ec=5,this.Zi=new Pc(this.asyncQueue,"transaction_retry")}return t.prototype.run=function(){this.ec-=1,this.nc()},t.prototype.nc=function(){var t=this;this.Zi.ji((function(){return w(t,void 0,void 0,(function(){var t,e,n=this;return k(this,(function(r){return t=new gh(this.datastore),(e=this.sc(t))&&e.then((function(e){n.asyncQueue.enqueueAndForget((function(){return t.commit().then((function(){n.deferred.resolve(e)})).catch((function(t){n.ic(t)}))}))})).catch((function(t){n.ic(t)})),[2]}))}
1))}))},t.prototype.sc=function(t){try{var e=this.updateFunction(t);return!fi(e)&&e.catch&&e.then?e:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.deferred.reject(t),null}},t.prototype.ic=function(t){var e=this;this.ec>0&&this.rc(t)?(this.ec-=1,this.asyncQueue.enqueueAndForget((function(){return e.nc(),Promise.resolve()}))):this.deferred.reject(t)},t.prototype.rc=function(t){if("FirebaseError"===t.name){var e=t.code;return"aborted"===e||"failed-precondition"===e||!Xa(e)}return!1},t}(),vh=function(){function t(t,e,n){var r=this;this.credentials=t,this.asyncQueue=e,this.databaseInfo=n,this.user=gc.UNAUTHENTICATED,this.clientId=Wr.u(),this.credentialListener=function(){return Promise.resolve()},this.credentials.setChangeListener(e,(function(t){return w(r,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return zr("FirestoreClient","Received user=",t.uid),[4,this.credentialListener(t)];case 1:return e.sent(),this.user=t,[2]}}))}))}))}return t.prototype.getConfiguration=function(){return w(this,void 0,void 0,(function(){return k(this,(function(t){return[2,{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,credentials:this.credentials,initialUser:this.user,maxConcurrentLimboResolutions:100}]}))}))},t.prototype.setCredentialChangeListener=function(t){this.credentialListener=t},t.prototype.verifyNotTerminated=function(){if(this.asyncQueue.isShuttingDown)throw new Pr(Lr.FAILED_PRECONDITION,"The client has already been terminated.")},t.prototype.terminate=function(){var t=this;this.asyncQueue.enterRestrictedMode();var e=new Os;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((function(){return w(t,void 0,void 0,(function(){var t,n;return k(this,(function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),this.onlineComponents?[4,this.onlineComponents.terminate()]:[3,2];case 1:r.sent(),r.label=2;case 2:return this.offlineComponents?[4,this.offlineComponents.terminate()]:[3,4];case 3:r.sent(),r.label=4;case 4:return this.credentials.removeChangeListener(),e.resolve(),[3,6];case 5:return t=r.sent(),n=dl(t,"Failed to shutdown persistence"),e.reject(n),[3,6];case 6:return[2]}}
1))}))})),e.promise},t}();function mh(t,e){return w(this,void 0,void 0,(function(){var n,r,i=this;return k(this,(function(a){switch(a.label){case 0:return t.asyncQueue.verifyOperationInProgress(),zr("FirestoreClient","Initializing OfflineComponentProvider"),[4,t.getConfiguration()];case 1:return n=a.sent(),[4,e.initialize(n)];case 2:return a.sent(),r=n.initialUser,t.setCredentialChangeListener((function(t){return w(i,void 0,void 0,(function(){return k(this,(function(n){switch(n.label){case 0:return r.isEqual(t)?[3,2]:[4,Wu(e.localStore,t)];case 1:n.sent(),r=t,n.label=2;case 2:return[2]}}))}))})),e.persistence.setDatabaseDeletedListener((function(){return t.terminate()})),t.offlineComponents=e,[2]}}))}))}function bh(t,e){return w(this,void 0,void 0,(function(){var n,r;return k(this,(function(i){switch(i.label){case 0:return t.asyncQueue.verifyOperationInProgress(),[4,_h(t)];case 1:return n=i.sent(),zr("FirestoreClient","Initializing OnlineComponentProvider"),[4,t.getConfiguration()];case 2:return r=i.sent(),[4,e.initialize(n,r)];case 3:return i.sent(),t.setCredentialChangeListener((function(t){return function(t,e){return w(this,void 0,void 0,(function(){var n,r;return k(this,(function(i){switch(i.label){case 0:return(n=Ur(t)).asyncQueue.verifyOperationInProgress(),zr("RemoteStore","RemoteStore received new credentials"),r=Qc(n),n.Or.add(3),[4,Bc(n)];case 1:return i.sent(),r&&n.Br.set("Unknown"),[4,n.remoteSyncer.handleCredentialChange(e)];case 2:return i.sent(),n.Or.delete(3),[4,Hc(n)];case 3:return i.sent(),[2]}}))}))}(e.remoteStore,t)})),t.onlineComponents=e,[2]}}))}))}function _h(t){return w(this,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return t.offlineComponents?[3,2]:(zr("FirestoreClient","Using default OfflineComponentProvider"),[4,mh(t,new lh)]);case 1:e.sent(),e.label=2;case 2:return[2,t.offlineComponents]}}))}))}function wh(t){return w(this,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return t.onlineComponents?[3,2]:(zr("FirestoreClient","Using default OnlineComponentProvider"),[4,bh(t,new dh)]);case 1:e.sent(),e.label=2;case 2:return[2,t.onlineComponents]}}))}))}function kh(t){return _h(t).then((function(t){return t.persistence}))}function Ch(t){return _h(t).then((function(t){return t.localStore}))}function Oh(t){return wh(t).then((function(t){return t.remoteStore}))}function Sh(t){return wh(t).then((function(t){return t.syncEngine}))}function Eh(t){return w(this,void 0,void 0,(function(){var e,n;return k(this,(function(r){switch(r.label){case 0:return[4,wh(t)];case 1:return e=r.sent(),[2,((n=e.eventManager).onListen=Ll.bind(null,e.syncEngine),n.onUnlisten=Rl.bind(null,e.syncEngine),n)]}}))}))}function Ah(t,e,n){var r=this;void 0===n&&(n={});var i=new Os;return t.asyncQueue.enqueueAndForget((function(){return w(r,void 0,void 0,(function(){var r;return k(this,(function(a){switch(a.label){case 0:return r=function(t,e,n,r,i){var a=new ph({next:function(a){e.enqueueAndForget((function(){return _l(t,o)}));var s=a.docs.has(n);!s&&a.fromCache?i.reject(new Pr(Lr.UNAVAILABLE,"Failed to get document because the client is offline.")):s&&a.fromCache&&r&&"server"===r.source?i.reject(new Pr(Lr.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):i.resolve(a)},error:function(t){return i.reject(t)}}),o=new Ol(ta(n.path),a,{includeMetadataChanges:!0,so:!0});return bl(t,o)},[4,Eh(t)];case 1:return[2,r.apply(void 0,[a.sent(),t.asyncQueue,e,n,i])]}}))}))})),i.promise}function Th(t,e,n){var r=this;void 0===n&&(n={});var i=new Os;return t.asyncQueue.enqueueAndForget((function(){return w(r,void 0,void 0,(function(){var r;return k(this,(function(a){switch(a.label){case 0:return r=function(t,e,n,r,i){var a=new ph({next:function(n){e.enqueueAndForget((function(){return _l(t,o)})),n.fromCache&&"server"===r.source?i.reject(new Pr(Lr.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):i.resolve(n)},error:function(t){return i.reject(t)}}),o=new Ol(n,a,{includeMetadataChanges:!0,so:!0});return bl(t,o)},[4,Eh(t)];case 1:return[2,r.apply(void 0,[a.sent(),t.asyncQueue,e,n,i])]}}))}))})),i.promise}var Mh=function(t,e,n,r,i,a,o,s){this.databaseId=t,this.appId=e,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=a,this.autoDetectLongPolling=o,this.useFetchStreams=s},Ih=function(){function t(t,e){this.projectId=t,this.database=e||"(default)"}return Object.defineProperty(t.prototype,"isDefaultDatabase",{get:function(){return"(default)"===this.database}
1,enumerable:!1,configurable:!0}),t.prototype.isEqual=function(e){return e instanceof t&&e.projectId===this.projectId&&e.database===this.database},t}(),xh=new Map,jh=function(t,e){this.user=e,this.type="OAuth",this.authHeaders={},this.authHeaders.Authorization="Bearer "+t},Lh=function(){function t(){this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(null)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){this.changeListener=e,t.enqueueRetryable((function(){return e(gc.UNAUTHENTICATED)}))},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),Ph=function(){function t(t){this.token=t,this.changeListener=null}return t.prototype.getToken=function(){return Promise.resolve(this.token)},t.prototype.invalidateToken=function(){},t.prototype.setChangeListener=function(t,e){var n=this;this.changeListener=e,t.enqueueRetryable((function(){return e(n.token.user)}))},t.prototype.removeChangeListener=function(){this.changeListener=null},t}(),Rh=function(){function t(t){var e=this;this.currentUser=gc.UNAUTHENTICATED,this.oc=new Os,this.cc=0,this.forceRefresh=!1,this.auth=null,this.asyncQueue=null,this.uc=function(){e.cc++,e.currentUser=e.ac(),e.oc.resolve(),e.changeListener&&e.asyncQueue.enqueueRetryable((function(){return e.changeListener(e.currentUser)}))};var n=function(t){zr("FirebaseCredentialsProvider","Auth detected"),e.auth=t,e.auth.addAuthTokenListener(e.uc)};t.onInit((function(t){return n(t)})),setTimeout((function(){if(!e.auth){var r=t.getImmediate({optional:!0});r?n(r):(zr("FirebaseCredentialsProvider","Auth not yet detected"),e.oc.resolve())}}),0)}return t.prototype.getToken=function(){var t=this,e=this.cc,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((function(n){return t.cc!==e?(zr("FirebaseCredentialsProvider","getToken aborted due to token change."),t.getToken()):n?(Br("string"==typeof n.accessToken),new jh(n.accessToken,t.currentUser)):null})):Promise.resolve(null)},t.prototype.invalidateToken=function(){this.forceRefresh=!0},t.prototype.setChangeListener=function(t,e){var n=this;this.asyncQueue=t,this.asyncQueue.enqueueRetryable((function(){return w(n,void 0,void 0,(function(){return k(this,(function(t){switch(t.label){case 0:return[4,this.oc.promise];case 1:return t.sent(),[4,e(this.currentUser)];case 2:return t.sent(),this.changeListener=e,[2]}}))}))}))},t.prototype.removeChangeListener=function(){this.auth&&this.auth.removeAuthTokenListener(this.uc),this.changeListener=function(){return Promise.resolve()}},t.prototype.ac=function(){var t=this.auth&&this.auth.getUid();return Br(null===t||"string"==typeof t),new gc(t)},t}(),Dh=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n,this.type="FirstParty",this.user=gc.FIRST_PARTY}return Object.defineProperty(t.prototype,"authHeaders",{get:function(){var t={"X-Goog-AuthUser":this.lc},e=this.hc.auth.getAuthHeaderValueForFirstParty([]);return e&&(t.Authorization=e),this.fc&&(t["X-Goog-Iam-Authorization-Token"]=this.fc),t},enumerable:!1,configurable:!0}),t}(),zh=function(){function t(t,e,n){this.hc=t,this.lc=e,this.fc=n}return t.prototype.getToken=function(){return Promise.resolve(new Dh(this.hc,this.lc,this.fc))},t.prototype.setChangeListener=function(t,e){t.enqueueRetryable((function(){return e(gc.FIRST_PARTY)}))},t.prototype.removeChangeListener=function(){},t.prototype.invalidateToken=function(){},t}();function Nh(t,e,n){if(!n)throw new Pr(Lr.INVALID_ARGUMENT,"Function "+t+"() cannot be called with an empty "+e+".")}function Vh(t,e){if(void 0===e)return{merge:!1};if(void 0!==e.mergeFields&&void 0!==e.merge)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid options passed to function "+t+'(): You cannot specify both "merge" and "mergeFields".');return e}function Fh(t,e,n,r){if(!0===e&&!0===r)throw new Pr(Lr.INVALID_ARGUMENT,t+" and "+n+" cannot be used together.")}function Hh(t){if(!gi.isDocumentKey(t))throw new Pr(Lr.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t+" has "+t.length+".")}function Bh(t){if(gi.isDocumentKey(t))throw new Pr(Lr.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t+" has "+t.length+".")}function Uh(t){if(void 0===t)return"undefined";if(null===t)return"null";if("string"==typeof t)return t.length>20&&(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":Hr()}function qh(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new Pr(Lr.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");var n=Uh(t);throw new Pr(Lr.INVALID_ARGUMENT,"Expected type '"+e.name+"', but it was: "+n)}return t}function Wh(t,e){if(e<=0)throw new Pr(Lr.INVALID_ARGUMENT,"Function "+t+"() requires a positive number, but it was: "+e+".")}var Gh=function(){function t(t){var e;if(void 0===t.host){if(void 0!==t.ssl)throw new Pr(Lr.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=t.host,this.ssl=null===(e=t.ssl)||void 0===e||e;if(this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,void 0===t.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==t.cacheSizeBytes&&t.cacheSizeBytes<1048576)throw new Pr(Lr.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.useFetchStreams=!!t.useFetchStreams,Fh("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling)}return t.prototype.isEqual=function(t){return this.host===t.host&&this.ssl===t.ssl&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties&&this.useFetchStreams===t.useFetchStreams},t}(),Kh=function(){function t(t,e){this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Gh({}),this._settingsFrozen=!1,t instanceof Ih?(this._databaseId=t,this._credentials=new Lh):(this._app=t,this._databaseId=function(t){if(!Object.prototype.hasOwnProperty.apply(t.options,["projectId"]))throw new Pr(Lr.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Ih(t.options.projectId)}(t),this._credentials=new Rh(e))}return Object.defineProperty(t.prototype,"app",{get:function(){if(!this._app)throw new Pr(Lr.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_initialized",{get:function(){return this._settingsFrozen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_terminated",{get:function(){return void 0!==this._terminateTask},enumerable:!1,configurable:!0}),t.prototype._setSettings=function(t){if(this._settingsFrozen)throw new Pr(Lr.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Gh(t),void 0!==t.credentials&&(this._credentials=function(t){if(!t)return new Lh;switch(t.type){case"gapi":var e=t.client;return Br(!("object"!=typeof e||null===e||!e.auth||!e.auth.getAuthHeaderValueForFirstParty)),new zh(e,t.sessionIndex||"0",t.iamToken||null);case"provider":return t.client;default:throw new Pr(Lr.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},t.prototype._getSettings=function(){return this._settings},t.prototype._freezeSettings=function(){return this._settingsFrozen=!0,this._settings},t.prototype._delete=function(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask},t.prototype.toJSON=function(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}},t.prototype._terminate=function(){return(t=xh.get(this))&&(zr("ComponentProvider","Removing Datastore"),xh.delete(this),t.terminate()),Promise.resolve();var t},t}(),Yh=function(){function t(t,e,n){this.converter=e,this._key=n,this.type="document",this.firestore=t}return Object.defineProperty(t.prototype,"_path",{get:function(){return this._key.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Xh(this.firestore,this.converter,this._key.path.popLast())},enumerable:!1,configurable:!0}),t.prototype.withConverter=function(e){return new t(this.firestore,e,this._key)},t}(),Qh=function(){function t(t,e,n){this.converter=e,this._query=n,this.type="query",this.firestore=t}return t.prototype.withConverter=function(e){return new t(this.firestore,e,this._query)},t}(),Xh=function(t){function e(e,n,r){var i=this;return(i=t.call(this,e,n,ta(r))||this)._path=r,i.type="collection",i}return _(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._path.popLast();return t.isEmpty()?null:new Yh(this.firestore,null,new gi(t))},enumerable:!1,configurable:!0}),e.prototype.withConverter=function(t){return new e(this.firestore,t,this._path)},e}(Qh);function Zh(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(t=Object(O.h)(t),Nh("collection","path",e),t instanceof Kh)return Bh(n=ei.fromString.apply(ei,C([e],r))),new Xh(t,null,n);if(!(t instanceof Yh||t instanceof Xh))throw new Pr(Lr.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Bh(n=ei.fromString.apply(ei,C([t.path],r)).child(ei.fromString(e))),new Xh(t.firestore,null,n)}function $h(t,e){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];if(t=Object(O.h)(t),1===arguments.length&&(e=Wr.u()),Nh("doc","path",e),t instanceof Kh)return Hh(n=ei.fromString.apply(ei,C([e],r))),new Yh(t,null,new gi(n));if(!(t instanceof Yh||t instanceof Xh))throw new Pr(Lr.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");return Hh(n=t._path.child(ei.fromString.apply(ei,C([e],r)))),new Yh(t.firestore,t instanceof Xh?t.converter:null,new gi(n))}function Jh(t,e){return t=Object(O.h)(t),e=Object(O.h)(e),(t instanceof Yh||t instanceof Xh)&&(e instanceof Yh||e instanceof Xh)&&t.firestore===e.firestore&&t.path===e.path&&t.converter===e.converter}function tf(t,e){return t=Object(O.h)(t),e=Object(O.h)(e),t instanceof Qh&&e instanceof Qh&&t.firestore===e.firestore&&ca(t._query,e._query)&&t.converter===e.converter}var ef=function(){function t(){var t=this;
1this.dc=Promise.resolve(),this.wc=[],this._c=!1,this.mc=[],this.yc=null,this.gc=!1,this.Ec=!1,this.Tc=[],this.Zi=new Pc(this,"async_queue_retry"),this.Ic=function(){var e=jc();e&&zr("AsyncQueue","Visibility state changed to "+e.visibilityState),t.Zi.Gi()};var e=jc();e&&"function"==typeof e.addEventListener&&e.addEventListener("visibilitychange",this.Ic)}return Object.defineProperty(t.prototype,"isShuttingDown",{get:function(){return this._c},enumerable:!1,configurable:!0}),t.prototype.enqueueAndForget=function(t){this.enqueue(t)},t.prototype.enqueueAndForgetEvenWhileRestricted=function(t){this.Ac(),this.Rc(t)},t.prototype.enterRestrictedMode=function(t){if(!this._c){this._c=!0,this.Ec=t||!1;var e=jc();e&&"function"==typeof e.removeEventListener&&e.removeEventListener("visibilitychange",this.Ic)}},t.prototype.enqueue=function(t){var e=this;if(this.Ac(),this._c)return new Promise((function(){}));var n=new Os;return this.Rc((function(){return e._c&&e.Ec?Promise.resolve():(t().then(n.resolve,n.reject),n.promise)})).then((function(){return n.promise}))},t.prototype.enqueueRetryable=function(t){var e=this;this.enqueueAndForget((function(){return e.wc.push(t),e.bc()}))},t.prototype.bc=function(){return w(this,void 0,void 0,(function(){var t,e=this;return k(this,(function(n){switch(n.label){case 0:if(0===this.wc.length)return[3,5];n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.wc[0]()];case 2:return n.sent(),this.wc.shift(),this.Zi.reset(),[3,4];case 3:if(!Is(t=n.sent()))throw t;return zr("AsyncQueue","Operation failed with retryable error: "+t),[3,4];case 4:this.wc.length>0&&this.Zi.ji((function(){return e.bc()})),n.label=5;case 5:return[2]}}
1))}))},t.prototype.Rc=function(t){var e=this,n=this.dc.then((function(){return e.gc=!0,t().catch((function(t){throw e.yc=t,e.gc=!1,Nr("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.gc=!1,t}))}));return this.dc=n,n},t.prototype.enqueueAfterDelay=function(t,e,n){var r=this;this.Ac(),this.Tc.indexOf(t)>-1&&(e=0);var i=fl.createAndSchedule(this,t,e,n,(function(t){return r.vc(t)}));return this.mc.push(i),i},t.prototype.Ac=function(){this.yc&&Hr()},t.prototype.verifyOperationInProgress=function(){},t.prototype.Pc=function(){return w(this,void 0,void 0,(function(){var t;return k(this,(function(e){switch(e.label){case 0:return[4,t=this.dc];case 1:e.sent(),e.label=2;case 2:if(t!==this.dc)return[3,0];e.label=3;case 3:return[2]}}))}))},t.prototype.Vc=function(t){for(var e=0,n=this.mc;e<n.length;e++)if(n[e].timerId===t)return!0;return!1},t.prototype.Sc=function(t){var e=this;return this.Pc().then((function(){e.mc.sort((function(t,e){return t.targetTimeMs-e.targetTimeMs}));for(var n=0,r=e.mc;n<r.length;n++){var i=r[n];if(i.skipDelay(),"all"!==t&&i.timerId===t)break}return e.Pc()}))},t.prototype.Dc=function(t){this.Tc.push(t)},t.prototype.vc=function(t){var e=this.mc.indexOf(t);this.mc.splice(e,1)},t}();function nf(t){return function(t,e){if("object"!=typeof t||null===t)return!1;for(var n=t,r=0,i=["next","error","complete"];r<i.length;r++){var a=i[r];if(a in n&&"function"==typeof n[a])return!0}return!1}(t)}!function(){function t(){this._progressObserver={},this._taskCompletionResolver=new Os,this._lastProgress={taskState:"Running",totalBytes:0,totalDocuments:0,bytesLoaded:0,documentsLoaded:0}}t.prototype.onProgress=function(t,e,n){this._progressObserver={next:t,error:e,complete:n}},t.prototype.catch=function(t){return this._taskCompletionResolver.promise.catch(t)},t.prototype.then=function(t,e){return this._taskCompletionResolver.promise.then(t,e)},t.prototype._completeWith=function(t){this._updateProgress(t),this._progressObserver.complete&&this._progressObserver.complete(),this._taskCompletionResolver.resolve(t)},t.prototype._failWith=function(t){this._lastProgress.taskState="Error",this._progressObserver.next&&this._progressObserver.next(this._lastProgress),this._progressObserver.error&&this._progressObserver.error(t),this._taskCompletionResolver.reject(t)},t.prototype._updateProgress=function(t){this._lastProgress=t,this._progressObserver.next&&this._progressObserver.next(t)}}();var rf=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n)||this).type="firestore",r._queue=new ef,r._persistenceKey="name"in e?e.name:"[DEFAULT]",r}return _(e,t),e.prototype._terminate=function(){return this._firestoreClient||of(this),this._firestoreClient.terminate()},e}(Kh);function af(t){return t._firestoreClient||of(t),t._firestoreClient.verifyNotTerminated(),t._firestoreClient}function of(t){var e,n=t._freezeSettings(),r=function(t,e,n,r){return new Mh(t,e,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,r.useFetchStreams)}(t._databaseId,(null===(e=t._app)||void 0===e?void 0:e.options.appId)||"",t._persistenceKey,n);t._firestoreClient=new vh(t._credentials,t._queue,r)}function sf(t,e,n){var r=this,i=new Os;return t.asyncQueue.enqueue((function(){return w(r,void 0,void 0,(function(){var r;return k(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),[4,mh(t,n)];case 1:return a.sent(),[4,bh(t,e)];case 2:return a.sent(),i.resolve(),[3,4];case 3:if(!function(t){return"FirebaseError"===t.name?t.code===Lr.FAILED_PRECONDITION||t.code===Lr.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&t instanceof DOMException)||22===t.code||20===t.code||11===t.code}(r=a.sent()))throw r;return console.warn("Error enabling offline persistence. Falling back to persistence disabled: "+r),i.reject(r),[3,4];case 4:return[2]}}
1))}))})).then((function(){return i.promise}))}function uf(t){if(t._initialized||t._terminated)throw new Pr(Lr.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only enable persistence before calling any other methods on a Firestore object.")}var cf=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0;n<t.length;++n)if(0===t[n].length)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ri(t)}return t.prototype.isEqual=function(t){return this._internalPath.isEqual(t._internalPath)},t}(),lf=function(){function t(t){this._byteString=t}return t.fromBase64String=function(e){try{return new t(ai.fromBase64String(e))}catch(e){throw new Pr(Lr.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}},t.fromUint8Array=function(e){return new t(ai.fromUint8Array(e))},t.prototype.toBase64=function(){return this._byteString.toBase64()},t.prototype.toUint8Array=function(){return this._byteString.toUint8Array()},t.prototype.toString=function(){return"Bytes(base64: "+this.toBase64()+")"},t.prototype.isEqual=function(t){return this._byteString.isEqual(t._byteString)},t}(),hf=function(t){this._methodName=t},ff=function(){function t(t,e){if(!isFinite(t)||t<-90||t>90)throw new Pr(Lr.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new Pr(Lr.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this._lat=t,this._long=e}return Object.defineProperty(t.prototype,"latitude",{get:function(){return this._lat},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"longitude",{get:function(){return this._long},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this._lat===t._lat&&this._long===t._long},t.prototype.toJSON=function(){return{latitude:this._lat,longitude:this._long}},t.prototype._compareTo=function(t){return Gr(this._lat,t._lat)||Gr(this._long,t._long)},t}(),df=/^__.*__$/,pf=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return null!==this.fieldMask?new Ha(t,this.data,this.fieldMask,e,this.fieldTransforms):new Fa(t,this.data,e,this.fieldTransforms)},t}(),gf=function(){function t(t,e,n){this.data=t,this.fieldMask=e,this.fieldTransforms=n}return t.prototype.toMutation=function(t,e){return new Ha(t,this.data,this.fieldMask,e,this.fieldTransforms)},t}();function yf(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Hr()}}var vf=function(){function t(t,e,n,r,i,a){this.settings=t,this.databaseId=e,this.R=n,this.ignoreUndefinedProperties=r,void 0===i&&this.Cc(),this.fieldTransforms=i||[],this.fieldMask=a||[]}return Object.defineProperty(t.prototype,"path",{get:function(){return this.settings.path},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Nc",{get:function(){return this.settings.Nc},enumerable:!1,configurable:!0}),t.prototype.xc=function(e){return new t(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.R,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)},t.prototype.kc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.xc({path:n,Fc:!1});return r.$c(t),r},t.prototype.Oc=function(t){var e,n=null===(e=this.path)||void 0===e?void 0:e.child(t),r=this.xc({path:n,Fc:!1});return r.Cc(),r},t.prototype.Mc=function(t){return this.xc({path:void 0,Fc:!0})},t.prototype.Lc=function(t){return zf(t,this.settings.methodName,this.settings.Bc||!1,this.path,this.settings.qc)},t.prototype.contains=function(t){return void 0!==this.fieldMask.find((function(e){return t.isPrefixOf(e)}))||void 0!==this.fieldTransforms.find((function(e){return t.isPrefixOf(e.field)}))},t.prototype.Cc=function(){if(this.path)for(var t=0;t<this.path.length;t++)this.$c(this.path.get(t))},t.prototype.$c=function(t){if(0===t.length)throw this.Lc("Document fields must not be empty");if(yf(this.Nc)&&df.test(t))throw this.Lc('Document fields cannot begin and end with "__"')},t}(),mf=function(){function t(t,e,n){this.databaseId=t,this.ignoreUndefinedProperties=e,this.R=n||Lc(t)}return t.prototype.Uc=function(t,e,n,r){return void 0===r&&(r=!1),new vf({Nc:t,methodName:e,qc:n,path:ri.emptyPath(),Fc:!1,Bc:r},this.databaseId,this.R,this.ignoreUndefinedProperties)},t}();function bf(t){var e=t._freezeSettings(),n=Lc(t._databaseId);return new mf(t._databaseId,!!e.ignoreUndefinedProperties,n)}function _f(t,e,n,r,i,a){void 0===a&&(a={});var o=t.Uc(a.merge||a.mergeFields?2:0,e,n,i);Lf("Data must be an object, but it was:",o,r);var s,u,c=xf(r,o);if(a.merge)s=new ii(o.fieldMask),u=o.fieldTransforms;else if(a.mergeFields){for(var l=[],h=0,f=a.mergeFields;h<f.length;h++){var d=Pf(e,f[h],n);if(!o.contains(d))throw new Pr(Lr.INVALID_ARGUMENT,"Field '"+d+"' is specified in your field mask but missing from your input data.");Nf(l,d)||l.push(d)}s=new ii(l),u=o.fieldTransforms.filter((function(t){return s.covers(t.field)}))}else s=null,u=o.fieldTransforms;return new pf(new Mi(c),s,u)}var wf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e.prototype._toFieldTransform=function(t){if(2!==t.Nc)throw t.Lc(1===t.Nc?this._methodName+"() can only appear at the top level of your update data":this._methodName+"() cannot be used with set() unless you pass {merge:true}");return t.fieldMask.push(t.path),null},e.prototype.isEqual=function(t){return t instanceof e},e}(hf);function kf(t,e,n){return new vf({Nc:3,qc:e.settings.qc,methodName:t._methodName,Fc:n},e.databaseId,e.R,e.ignoreUndefinedProperties)}var Cf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e.prototype._toFieldTransform=function(t){return new Ia(t.path,new ka)},e.prototype.isEqual=function(t){return t instanceof e},e}(hf),Of=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).Kc=n,r}return _(e,t),e.prototype._toFieldTransform=function(t){var e=kf(this,t,!0),n=this.Kc.map((function(t){return If(t,e)})),r=new Ca(n);return new Ia(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(hf),Sf=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).Kc=n,r}return _(e,t),e.prototype._toFieldTransform=function(t){var e=kf(this,t,!0),n=this.Kc.map((function(t){return If(t,e)})),r=new Sa(n);return new Ia(t.path,r)},e.prototype.isEqual=function(t){return this===t},e}(hf),Ef=function(t){function e(e,n){var r=this;return(r=t.call(this,e)||this).Qc=n,r}return _(e,t),e.prototype._toFieldTransform=function(t){var e=new Aa(t.R,va(t.R,this.Qc));return new Ia(t.path,e)},e.prototype.isEqual=function(t){return this===t},e}(hf);function Af(t,e,n,r){var i=t.Uc(1,e,n);Lf("Data must be an object, but it was:",i,r);var a=[],o=Mi.empty();$r(r,(function(t,r){var s=Df(e,t,n);r=Object(O.h)(r);var u=i.Oc(s);if(r instanceof wf)a.push(s);else{var c=If(r,u);null!=c&&(a.push(s),o.set(s,c))}}));var s=new ii(a);return new gf(o,s,i.fieldTransforms)}function Tf(t,e,n,r,i,a){var o=t.Uc(1,e,n),s=[Pf(e,r,n)],u=[i];if(a.length%2!=0)throw new Pr(Lr.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var c=0;c<a.length;c+=2)s.push(Pf(e,a[c])),u.push(a[c+1]);for(var l=[],h=Mi.empty(),f=s.length-1;f>=0;--f)if(!Nf(l,s[f])){var d=s[f],p=u[f];p=Object(O.h)(p);var g=o.Oc(d);if(p instanceof wf)l.push(d);else{var y=If(p,g);null!=y&&(l.push(d),h.set(d,y))}}var v=new ii(l);return new gf(h,v,o.fieldTransforms)}function Mf(t,e,n,r){return void 0===r&&(r=!1),If(n,t.Uc(r?4:3,e))}function If(t,e){if(jf(t=Object(O.h)(t)))return Lf("Unsupported field value:",e,t),xf(t,e);if(t instanceof hf)return function(t,e){if(!yf(e.Nc))throw e.Lc(t._methodName+"() can only be used with update(
1) and set()");if(!e.path)throw e.Lc(t._methodName+"() is not currently supported inside arrays");var n=t._toFieldTransform(e);n&&e.fieldTransforms.push(n)}(t,e),null;if(void 0===t&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.Fc&&4!==e.Nc)throw e.Lc("Nested arrays are not supported");return function(t,e){for(var n=[],r=0,i=0,a=t;i<a.length;i++){var o=If(a[i],e.Mc(r));null==o&&(o={nullValue:"NULL_VALUE"}),n.push(o),r++}return{arrayValue:{values:n}}}(t,e)}return function(t,e){if(null===(t=Object(O.h)(t)))return{nullValue:"NULL_VALUE"};if("number"==typeof t)return va(e.R,t);if("boolean"==typeof t)return{booleanValue:t};if("string"==typeof t)return{stringValue:t};if(t instanceof Date){var n=Qr.fromDate(t);return{timestampValue:Eo(e.R,n)}}if(t instanceof Qr)return n=new Qr(t.seconds,1e3*Math.floor(t.nanoseconds/1e3)),{timestampValue:Eo(e.R,n)};if(t instanceof ff)return{geoPointValue:{latitude:t.latitude,longitude:t.longitude}};if(t instanceof lf)return{bytesValue:Ao(e.R,t._byteString)};if(t instanceof Yh){var r=t.firestore._databaseId;if(!r.isEqual(n=e.databaseId))throw e.Lc("Document reference is for database "+r.projectId+"/"+r.database+" but should be for database "+n.projectId+"/"+n.database);return{referenceValue:Io(t.firestore._databaseId||e.databaseId,t._key.path)}}throw e.Lc("Unsupported field value: "+Uh(t))}(t,e)}function xf(t,e){var n={};return Jr(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):$r(t,(function(t,r){var i=If(r,e.kc(t));null!=i&&(n[t]=i)})),{mapValue:{fields:n}}}function jf(t){return!("object"!=typeof t||null===t||t instanceof Array||t instanceof Date||t instanceof Qr||t instanceof ff||t instanceof lf||t instanceof Yh||t instanceof hf)}function Lf(t,e,n){if(!jf(n)||!function(t){return"object"==typeof t&&null!==t&&(Object.getPrototypeOf(t)===Object.prototype||null===Object.getPrototypeOf(t))}(n)){var r=Uh(n);throw e.Lc("an object"===r?t+" a custom object":t+" "+r)}}function Pf(t,e,n){if((e=Object(O.h)(e))instanceof cf)return e._internalPath;if("string"==typeof e)return Df(t,e);throw zf("Field path arguments must be of type string or FieldPath.",t,!1,void 0,n)}var Rf=new RegExp("[~\\*/\\[\\]]");function Df(t,e,n){if(e.search(Rf)>=0)throw zf("Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'",t,!1,void 0,n);try{return(new(cf.bind.apply(cf,C([void 0],e.split(".")))))._internalPath}catch(Nd){throw zf("Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'",t,!1,void 0,n)}}function zf(t,e,n,r,i){var a=r&&!r.isEmpty(),o=void 0!==i,s="Function "+e+"() called with invalid data";n&&(s+=" (via `toFirestore()`)");var u="";return(a||o)&&(u+=" (found",a&&(u+=" in field "+r),o&&(u+=" in document "+i),u+=")"),new Pr(Lr.INVALID_ARGUMENT,(s+=". ")+t+u)}function Nf(t,e){return t.some((function(t){return t.isEqual(e)}))}var Vf=function(){function t(t,e,n,r,i){this._firestore=t,this._userDataWriter=e,this._key=n,this._document=r,this._converter=i}return Object.defineProperty(t.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ref",{get:function(){return new Yh(this._firestore,this._converter,this._key)},enumerable:!1,configurable:!0}),t.prototype.exists=function(){return null!==this._document},t.prototype.data=function(){if(this._document){if(this._converter){var t=new Ff(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(t)}return this._userDataWriter.convertValue(this._document.data.value)}},t.prototype.get=function(t){if(this._document){var e=this._document.data.field(Hf("DocumentSnapshot.get",t));if(null!==e)return this._userDataWriter.convertValue(e)}},t}(),Ff=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e.prototype.data=function(){return t.prototype.data.call(this)},e}(Vf);function Hf(t,e){return"string"==typeof e?Df(t,e):e instanceof cf?e._internalPath:e._delegate._internalPath}var Bf=function(){function t(t,e){this.hasPendingWrites=t,this.fromCache=e}return t.prototype.isEqual=function(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache},t}(),Uf=function(t){function e(e,n,r,i,a,o){var s=this;return(s=t.call(this,e,n,r,i,o)||this)._firestore=e,s._firestoreImpl=e,s.metadata=a,s}return _(e,t),e.prototype.exists=function(){return t.prototype.exists.call(this)},e.prototype.data=function(t){if(void 0===t&&(t={}),this._document){if(this._converter){var e=new qf(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(e,t)}return this._userDataWriter.convertValue(this._document.data.value,t.serverTimestamps)}},e.prototype.get=function(t,e){if(void 0===e&&(e={}),this._document){var n=this._document.data.field(Hf("DocumentSnapshot.get",t));if(null!==n)return this._userDataWriter.convertValue(n,e.serverTimestamps)}},e}(Vf),qf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e.prototype.data=function(e){return void 0===e&&(e={}),t.prototype.data.call(this,e)},e}(Uf),Wf=function(){function t(t,e,n,r){this._firestore=t,this._userDataWriter=e,this._snapshot=r,this.metadata=new Bf(r.hasPendingWrites,r.fromCache),this.query=n}return Object.defineProperty(t.prototype,"docs",{get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.size},enumerable:!1,configurable:!0}),t.prototype.forEach=function(t,e){var n=this;this._snapshot.docs.forEach((function(r){t.call(e,new qf(n._firestore,n._userDataWriter,r.key,r,new Bf(n._snapshot.mutatedKeys.has(r.key),n._snapshot.fromCache),n.query.converter))}))},t.prototype.docChanges=function(t){void 0===t&&(t={});var e=!!t.includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new Pr(Lr.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=function(t,e){if(t._snapshot.oldDocs.isEmpty()){var n=0;return t._snapshot.docChanges.map((function(e){return{type:"added",doc:new qf(t._firestore,t._userDataWriter,e.doc.key,e.doc,new Bf(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),oldIndex:-1,newIndex:n++}}))}var r=t._snapshot.oldDocs;return t._snapshot.docChanges.filter((function(t){return e||3!==t.type})).map((function(e){var n=new qf(t._firestore,t._userDataWriter,e.doc.key,e.doc,new Bf(t._snapshot.mutatedKeys.has(e.doc.key),t._snapshot.fromCache),t.query.converter),i=-1,a=-1;return 0!==e.type&&(i=r.indexOf(e.doc.key),r=r.delete(e.doc.key)),1!==e.type&&(a=(r=r.add(e.doc)).indexOf(e.doc.key)),{type:Gf(e.type),doc:n,oldIndex:i,newIndex:a}}))}(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges},t}();function Gf(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Hr()}}function Kf(t,e){return t instanceof Uf&&e instanceof Uf?t._firestore===e._firestore&&t._key.isEqual(e._key)&&(null===t._document?null===e._document:t._document.isEqual(e._document))&&t._converter===e._converter:t instanceof Wf&&e instanceof Wf&&t._firestore===e._firestore&&tf(t.query,e.query)&&t.metadata.isEqual(e.metadata)&&t._snapshot.isEqual(e._snapshot)}function Yf(t){if(na(t)&&0===t.explicitOrderBy.length)throw new Pr(Lr.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var Qf=function(){};function Xf(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var a=i[r];t=a._apply(t)}return t}var Zf=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).jc=e,i.Wc=n,i.Gc=r,i.type="where",i}return _(e,t),e.prototype._apply=function(t){var e=bf(t.firestore),n=function(t,e,n,r,i,a,o){var s;if(i.isKeyField()){if("array-contains"===a||"array-contains-any"===a)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid Query. You can't perform '"+a+"' queries on FieldPath.documentId().");if("in"===a||"not-in"===a){id(o,a);for(var u=[],c=0,l=o;c<l.length;c++)u.push(rd(r,t,l[c]));s={arrayValue:{values:u}}}else s=rd(r,t,o)}else"in"!==a&&"not-in"!==a&&"array-contains-any"!==a||id(o,a),s=Mf(n,"where",o,"in"===a||"not-in"===a);var h=zi.create(i,a,s);return function(t,e){if(e.g()){var n=ia(t);if(null!==n&&!n.isEqual(e.field))throw new Pr(Lr.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, !=, not-in, >, or >=) must be on the same field. But you have inequality filters on '"+n.toString()+"' and '"+e.field.toString()+"'");var r=ra(t);null!==r&&ad(0,e.field,r)}var i=function(t,e){for(var n=0,r=t.filters;n<r.length;n++){var i=r[n];if(e.indexOf(i.op)>=0)return i.op}return null}(t,function(t){switch(t){case"!=":return["!=","not-in"];case"array-contains":return["array-contains","array-contains-any","not-in"];case"in":return["array-contains-any","in","not-in"];case"array-contains-any":return["array-contains","array-contains-any","in","not-in"];case"not-in":return["array-contains","array-contains-any","in","not-in","!="];default:return[]}}(e.op));if(null!==i)throw new Pr(Lr.INVALID_ARGUMENT,i===e.op?"Invalid query. You cannot use more than one '"+e.op.toString()+"' filter.":"Invalid query. You cannot use '"+e.op.toString()+"' filters with '"+i.toString()+"' filters.")}(t,h),h}
1(t._query,0,e,t.firestore._databaseId,this.jc,this.Wc,this.Gc);return new Qh(t.firestore,t.converter,function(t,e){var n=t.filters.concat([e]);return new $i(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}(t._query,n))},e}(Qf),$f=function(t){function e(e,n){var r=this;return(r=t.call(this)||this).jc=e,r.zc=n,r.type="orderBy",r}return _(e,t),e.prototype._apply=function(t){var e=function(t,e,n){if(null!==t.startAt)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(null!==t.endAt)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");var r=new Yi(e,n);return function(t,e){if(null===ra(t)){var n=ia(t);null!==n&&ad(0,n,e.field)}}(t,r),r}(t._query,this.jc,this.zc);return new Qh(t.firestore,t.converter,function(t,e){var n=t.explicitOrderBy.concat([e]);return new $i(t.path,t.collectionGroup,n,t.filters.slice(),t.limit,t.limitType,t.startAt,t.endAt)}(t._query,e))},e}(Qf),Jf=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Hc=n,i.Jc=r,i}return _(e,t),e.prototype._apply=function(t){return new Qh(t.firestore,t.converter,ua(t._query,this.Hc,this.Jc))},e}(Qf),td=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Yc=n,i.Xc=r,i}return _(e,t),e.prototype._apply=function(t){var e=nd(t,this.type,this.Yc,this.Xc);return new Qh(t.firestore,t.converter,function(t,e){return new $i(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,e,t.endAt)}(t._query,e))},e}(Qf),ed=function(t){function e(e,n,r){var i=this;return(i=t.call(this)||this).type=e,i.Yc=n,i.Xc=r,i}return _(e,t),e.prototype._apply=function(t){var e=nd(t,this.type,this.Yc,this.Xc);return new Qh(t.firestore,t.converter,function(t,e){return new $i(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),t.limit,t.limitType,t.startAt,e)}(t._query,e))},e}(Qf);function nd(t,e,n,r){if(n[0]=Object(O.h)(n[0]),n[0]instanceof Vf)return function(t,e,n,r,i){if(!r)throw new Pr(Lr.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+n+"().");for(var a=[],o=0,s=oa(t);o<s.length;o++){var u=s[o];if(u.field.isKeyField())a.push(ki(e,r.key));else{var c=r.data.field(u.field);if(li(c))throw new Pr(Lr.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+u.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(null===c){var l=u.field.canonicalString();throw new Pr(Lr.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+l+"' (used as the orderBy) does not exist.")}a.push(c)}}return new Gi(a,i)}(t._query,t.firestore._databaseId,e,n[0]._document,r);var i=bf(t.firestore);return function(t,e,n,r,i,a){var o=t.explicitOrderBy;if(i.length>o.length)throw new Pr(Lr.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<i.length;u++){var c=i[u];if(o[u].field.isKeyField()){if("string"!=typeof c)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+r+"(), but got a "+typeof c);if(!aa(t)&&-1!==c.indexOf("/"))throw new Pr(Lr.INVALID_ARGUMENT,"Invalid query. When querying a collection and ordering by FieldPath.documentId(), the value passed to "+r+"() must be a plain document ID, but '"+c+"' contains a slash.");var l=t.path.child(ei.fromString(c));if(!gi.isDocumentKey(l))throw new Pr(Lr.INVALID_ARGUMENT,"Invalid query. When querying a collection group and ordering by FieldPath.documentId(), the value passed to "+r+"() must result in a valid document path, but '"+l+"' is not because it contains an odd number of segments.");var h=new gi(l);s.push(ki(e,h))}else{var f=Mf(n,r,c);s.push(f)}}return new Gi(s,a)}(t._query,t.firestore._databaseId,i,e,n,r)}function rd(t,e,n){if("string"==typeof(n=Object(O.h)(n))){if(""===n)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid document ID, but it was an empty string.");if(!aa(e)&&-1!==n.indexOf("/"))throw new Pr(Lr.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(ei.fromString(n));if(!gi.isDocumentKey(r))throw new Pr(Lr.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 ki(t,new gi(r))}if(n instanceof Yh)return ki(t,n._key);throw new Pr(Lr.INVALID_ARGUMENT,"Invalid query. When querying with FieldPath.documentId(), you must provide a valid string or a DocumentReference, but it was: "+Uh(n)+".")}function id(t,e){if(!Array.isArray(t)||0===t.length)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid Query. A non-empty array is required for '"+e.toString()+"' filters.");if(t.length>10)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid Query. '"+e.toString()+"' filters support a maximum of 10 elements in the value array.")}function ad(t,e,n){if(!n.isEqual(e))throw new Pr(Lr.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, !=, not-in, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first argument to orderBy(), but your first orderBy() is on field '"+n.toString()+"' instead.")}var od=function(){function t(){}return t.prototype.convertValue=function(t,e){switch(void 0===e&&(e="none"),yi(t)){case 0:return null;case 1:return t.booleanValue;case 2:return ui(t.integerValue||t.doubleValue);case 3:return this.convertTimestamp(t.timestampValue);case 4:return this.convertServerTimestamp(t,e);case 5:return t.stringValue;case 6:return this.convertBytes(ci(t.bytesValue));case 7:return this.convertReference(t.referenceValue);case 8:return this.convertGeoPoint(t.geoPointValue);case 9:return this.convertArray(t.arrayValue,e);case 10:return this.convertObject(t.mapValue,e);default:throw Hr()}},t.prototype.convertObject=function(t,e){var n=this,r={};return $r(t.fields,(function(t,i){r[t]=n.convertValue(i,e)})),r},t.prototype.convertGeoPoint=function(t){return new ff(ui(t.latitude),ui(t.longitude))},t.prototype.convertArray=function(t,e){var n=this;return(t.values||[]).map((function(t){return n.convertValue(t,e)}))},t.prototype.convertServerTimestamp=function(t,e){switch(e){case"previous":var n=function t(e){var n=e.mapValue.fields.__previous_value__;return li(n)?t(n):n}(t);return null==n?null:this.convertValue(n,e);case"estimate":return this.convertTimestamp(hi(t));default:return null}},t.prototype.convertTimestamp=function(t){var e=si(t);return new Qr(e.seconds,e.nanos)}
1,t.prototype.convertDocumentKey=function(t,e){var n=ei.fromString(t);Br(ts(n));var r=new Ih(n.get(1),n.get(3)),i=new gi(n.popFirst(5));return r.isEqual(e)||Nr("Document "+i+" contains a document reference within a different database ("+r.projectId+"/"+r.database+") which is not supported. It will be treated as a reference in the current database ("+e.projectId+"/"+e.database+") instead."),i},t}();function sd(t,e,n){return t?n&&(n.merge||n.mergeFields)?t.toFirestore(e,n):t.toFirestore(e):e}var ud=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return _(e,t),e.prototype.convertBytes=function(t){return new lf(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new Yh(this.firestore,null,e)},e}(od),cd=function(){function t(t,e){this._firestore=t,this._commitHandler=e,this._mutations=[],this._committed=!1,this._dataReader=bf(t)}return t.prototype.set=function(t,e,n){this._verifyNotCommitted();var r=ld(t,this._firestore),i=sd(r.converter,e,n),a=_f(this._dataReader,"WriteBatch.set",r._key,i,null!==r.converter,n);return this._mutations.push(a.toMutation(r._key,ja.none())),this},t.prototype.update=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];this._verifyNotCommitted();var a,o=ld(t,this._firestore);return a="string"==typeof(e=Object(O.h)(e))||e instanceof cf?Tf(this._dataReader,"WriteBatch.update",o._key,e,n,r):Af(this._dataReader,"WriteBatch.update",o._key,e),this._mutations.push(a.toMutation(o._key,ja.exists(!0))),this},t.prototype.delete=function(t){this._verifyNotCommitted();var e=ld(t,this._firestore);return this._mutations=this._mutations.concat(new Ka(e._key,ja.none())),this},t.prototype.commit=function(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()},t.prototype._verifyNotCommitted=function(){if(this._committed)throw new Pr(Lr.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},t}();function ld(t,e){if((t=Object(O.h)(t)).firestore!==e)throw new Pr(Lr.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}var hd=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return _(e,t),e.prototype.convertBytes=function(t){return new lf(t)},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return new Yh(this.firestore,null,e)},e}(od);function fd(t,e,n){t=qh(t,Yh);var r=qh(t.firestore,rf),i=sd(t.converter,e,n);return gd(r,[_f(bf(r),"setDoc",t._key,i,null!==t.converter,n).toMutation(t._key,ja.none())])}function dd(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];t=qh(t,Yh);var a=qh(t.firestore,rf),o=bf(a);return gd(a,[("string"==typeof(e=Object(O.h)(e))||e instanceof cf?Tf(o,"updateDoc",t._key,e,n,r):Af(o,"updateDoc",t._key,e)).toMutation(t._key,ja.exists(!0))])}function pd(t){for(var e,n,r,i=[],a=1;a<arguments.length;a++)i[a-1]=arguments[a];t=Object(O.h)(t);var o={includeMetadataChanges:!1},s=0;"object"!=typeof i[s]||nf(i[s])||(o=i[s],s++);var u,c,l,h={includeMetadataChanges:o.includeMetadataChanges};if(nf(i[s])){var f=i[s];i[s]=null===(e=f.next)||void 0===e?void 0:e.bind(f),i[s+1]=null===(n=f.error)||void 0===n?void 0:n.bind(f),i[s+2]=null===(r=f.complete)||void 0===r?void 0:r.bind(f)}if(t instanceof Yh)c=qh(t.firestore,rf),l=ta(t._key.path),u={next:function(e){i[s]&&i[s](yd(c,t,e))},error:i[s+1],complete:i[s+2]};else{var d=qh(t,Qh);c=qh(d.firestore,rf),l=d._query;var p=new hd(c);u={next:function(t){i[s]&&i[s](new Wf(c,p,d,t))},error:i[s+1],complete:i[s+2]},Yf(t._query)}return function(t,e,n,r){var i=this,a=new ph(r),o=new Ol(e,a,n);return t.asyncQueue.enqueueAndForget((function(){return w(i,void 0,void 0,(function(){var e;return k(this,(function(n){switch(n.label){case 0:return e=bl,[4,Eh(t)];case 1:return[2,e.apply(void 0,[n.sent(),o])]}}))}))})),function(){a.Wo(),t.asyncQueue.enqueueAndForget((function(){return w(i,void 0,void 0,(function(){var e;return k(this,(function(n){switch(n.label){case 0:return e=_l,[4,Eh(t)];case 1:return[2,e.apply(void 0,[n.sent(),o])]}}))}))}))}}(af(c),l,h,u)}function gd(t,e){return function(t,e){var n=this,r=new Os;return t.asyncQueue.enqueueAndForget((function(){return w(n,void 0,void 0,(function(){var n;return k(this,(function(i){switch(i.label){case 0:return n=Dl,[4,Sh(t)];case 1:return[2,n.apply(void 0,[i.sent(),e,r])]}}))}))})),r.promise}(af(t),e)}function yd(t,e,n){var r=n.docs.get(e._key),i=new hd(t);return new Uf(t,i,e._key,r,new Bf(n.hasPendingWrites,n.fromCache),e.converter)}var vd=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n)||this)._firestore=e,r}return _(e,t),e.prototype.get=function(e){var n=this,r=ld(e,this._firestore),i=new hd(this._firestore);return t.prototype.get.call(this,e).then((function(t){return new Uf(n._firestore,i,r._key,t._document,new Bf(!1,!1),r.converter)}))},e}(function(){function t(t,e){this._firestore=t,this._transaction=e,this._dataReader=bf(t)}return t.prototype.get=function(t){var e=this,n=ld(t,this._firestore),r=new ud(this._firestore);return this._transaction.lookup([n._key]).then((function(t){if(!t||1!==t.length)return Hr();var i=t[0];if(i.isFoundDocument())return new Vf(e._firestore,r,i.key,i,n.converter);if(i.isNoDocument())return new Vf(e._firestore,r,n._key,null,n.converter);throw Hr()}
1))},t.prototype.set=function(t,e,n){var r=ld(t,this._firestore),i=sd(r.converter,e,n),a=_f(this._dataReader,"Transaction.set",r._key,i,null!==r.converter,n);return this._transaction.set(r._key,a),this},t.prototype.update=function(t,e,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];var a,o=ld(t,this._firestore);return a="string"==typeof(e=Object(O.h)(e))||e instanceof cf?Tf(this._dataReader,"Transaction.update",o._key,e,n,r):Af(this._dataReader,"Transaction.update",o._key,e),this._transaction.update(o._key,a),this},t.prototype.delete=function(t){var e=ld(t,this._firestore);return this._transaction.delete(e._key),this},t}());function md(){if("undefined"==typeof Uint8Array)throw new Pr(Lr.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function bd(){if("undefined"==typeof atob)throw new Pr(Lr.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var _d=function(){function t(t){this._delegate=t}return t.fromBase64String=function(e){return bd(),new t(lf.fromBase64String(e))},t.fromUint8Array=function(e){return md(),new t(lf.fromUint8Array(e))},t.prototype.toBase64=function(){return bd(),this._delegate.toBase64()},t.prototype.toUint8Array=function(){return md(),this._delegate.toUint8Array()},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},t}(),wd=function(){function t(){}return t.prototype.enableIndexedDbPersistence=function(t,e){return function(t,e){uf(t=qh(t,rf));var n=af(t),r=t._freezeSettings(),i=new dh;return sf(n,i,new hh(i,r.cacheSizeBytes,null==e?void 0:e.forceOwnership))}(t._delegate,{forceOwnership:e})},t.prototype.enableMultiTabIndexedDbPersistence=function(t){return function(t){uf(t=qh(t,rf));var e=af(t),n=t._freezeSettings(),r=new dh;return sf(e,r,new fh(r,n.cacheSizeBytes))}(t._delegate)},t.prototype.clearIndexedDbPersistence=function(t){return function(t){var e=this;if(t._initialized&&!t._terminated)throw new Pr(Lr.FAILED_PRECONDITION,"Persistence can only be cleared before a Firestore instance is initialized or after it is terminated.");var n=new Os;return t._queue.enqueueAndForgetEvenWhileRestricted((function(){return w(e,void 0,void 0,(function(){var e;return k(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,function(t){return w(this,void 0,void 0,(function(){return k(this,(function(e){switch(e.label){case 0:return As.yt()?[4,As.delete(t+"main")]:[2,Promise.resolve()];case 1:return e.sent(),[2]}}))}))}(Nu(t._databaseId,t._persistenceKey))];case 1:return r.sent(),n.resolve(),[3,3];case 2:return e=r.sent(),n.reject(e),[3,3];case 3:return[2]}}
1))}))})),n.promise}(t._delegate)},t}(),kd=function(){function t(t,e,n){var r=this;this._delegate=e,this.Zc=n,this.INTERNAL={delete:function(){return r.terminate()}},t instanceof Ih||(this.tu=t)}return Object.defineProperty(t.prototype,"_databaseId",{get:function(){return this._delegate._databaseId},enumerable:!1,configurable:!0}),t.prototype.settings=function(t){var e=this._delegate._getSettings();t.merge||e.host===t.host||Vr("You are overriding the original host. If you did not intend to override your settings, use {merge: true}."),t.merge&&delete(t=Object.assign(Object.assign({},e),t)).merge,this._delegate._setSettings(t)},t.prototype.useEmulator=function(t,e,n){void 0===n&&(n={}),function(t,e,n,r){var i;void 0===r&&(r={});var a=(t=qh(t,Kh))._getSettings();if("firestore.googleapis.com"!==a.host&&a.host!==e&&Vr("Host has been set in both settings() and useEmulator(), emulator host will be used"),t._setSettings(Object.assign(Object.assign({},a),{host:e+":"+n,ssl:!1})),r.mockUserToken){var o,s;if("string"==typeof r.mockUserToken)o=r.mockUserToken,s=gc.MOCK_USER;else{o=Object(O.d)(r.mockUserToken,null===(i=t._app)||void 0===i?void 0:i.options.projectId);var u=r.mockUserToken.sub||r.mockUserToken.user_id;if(!u)throw new Pr(Lr.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");s=new gc(u)}t._credentials=new Ph(new jh(o,s))}}(this._delegate,t,e,n)},t.prototype.enableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue((function(){return w(e,void 0,void 0,(function(){var e,n;return k(this,(function(r){switch(r.label){case 0:return[4,kh(t)];case 1:return e=r.sent(),[4,Oh(t)];case 2:return n=r.sent(),[2,(e.setNetworkEnabled(!0),function(t){var e=Ur(t);return e.Or.delete(0),Hc(e)}(n))]}}))}))}))}(af(qh(this._delegate,rf)))},t.prototype.disableNetwork=function(){return function(t){var e=this;return t.asyncQueue.enqueue((function(){return w(e,void 0,void 0,(function(){var e,n;return k(this,(function(r){switch(r.label){case 0:return[4,kh(t)];case 1:return e=r.sent(),[4,Oh(t)];case 2:return n=r.sent(),[2,(e.setNetworkEnabled(!1),function(t){return w(this,void 0,void 0,(function(){var e;return k(this,(function(n){switch(n.label){case 0:return(e=Ur(t)).Or.add(0),[4,Bc(e)];case 1:return n.sent(),e.Br.set("Offline"),[2]}}))}))}(n))]}}))}))}))}(af(qh(this._delegate,rf)))},t.prototype.enablePersistence=function(t){var e=!1,n=!1;return t&&Fh("synchronizeTabs",e=!!t.synchronizeTabs,"experimentalForceOwningTab",n=!!t.experimentalForceOwningTab),e?this.Zc.enableMultiTabIndexedDbPersistence(this):this.Zc.enableIndexedDbPersistence(this,n)},t.prototype.clearPersistence=function(){return this.Zc.clearIndexedDbPersistence(this)},t.prototype.terminate=function(){return this.tu&&(this.tu._removeServiceInstance("firestore"),this.tu._removeServiceInstance("firestore-exp")),this._delegate._delete()},t.prototype.waitForPendingWrites=function(){return function(t){var e=this,n=new Os;return t.asyncQueue.enqueueAndForget((function(){return w(e,void 0,void 0,(function(){var e;return k(this,(function(r){switch(r.label){case 0:return e=Bl,[4,Sh(t)];case 1:return[2,e.apply(void 0,[r.sent(),n])]}}))}))})),n.promise}(af(qh(this._delegate,rf)))},t.prototype.onSnapshotsInSync=function(t){return function(t,e){return function(t,e){var n=this,r=new ph(e);return t.asyncQueue.enqueueAndForget((function(){return w(n,void 0,void 0,(function(){var e;return k(this,(function(n){switch(n.label){case 0:return e=function(t,e){Ur(t).Gr.add(e),e.next()},[4,Eh(t)];case 1:return[2,e.apply(void 0,[n.sent(),r])]}}))}))})),function(){r.Wo(),t.asyncQueue.enqueueAndForget((function(){return w(n,void 0,void 0,(function(){var e;return k(this,(function(n){switch(n.label){case 0:return e=function(t,e){Ur(t).Gr.delete(e)},[4,Eh(t)];case 1:return[2,e.apply(void 0,[n.sent(),r])]}}))}))}))}}(af(t=qh(t,rf)),nf(e)?e:{next:e})}(this._delegate,t)},Object.defineProperty(t.prototype,"app",{get:function(){if(!this.tu)throw new Pr(Lr.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this.tu}
1,enumerable:!1,configurable:!0}),t.prototype.collection=function(t){try{return new Dd(this,Zh(this._delegate,t))}catch(t){throw Td(t,"collection()","Firestore.collection()")}},t.prototype.doc=function(t){try{return new Ad(this,$h(this._delegate,t))}catch(t){throw Td(t,"doc()","Firestore.doc()")}},t.prototype.collectionGroup=function(t){try{return new Ld(this,function(t,e){if(t=qh(t,Kh),Nh("collectionGroup","collection id",e),e.indexOf("/")>=0)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid collection ID '"+e+"' passed to function collectionGroup(). Collection IDs must not contain '/'.");return new Qh(t,null,function(t){return new $i(ei.emptyPath(),t)}(e))}(this._delegate,t))}catch(t){throw Td(t,"collectionGroup()","Firestore.collectionGroup()")}},t.prototype.runTransaction=function(t){var e=this;return function(t,e){return function(t,e){var n=this,r=new Os;return t.asyncQueue.enqueueAndForget((function(){return w(n,void 0,void 0,(function(){var n;return k(this,(function(i){switch(i.label){case 0:return[4,function(t){return wh(t).then((function(t){return t.datastore}))}(t)];case 1:return n=i.sent(),new yh(t.asyncQueue,n,e,r).run(),[2]}}))}))})),r.promise}(af(t),(function(n){return e(new vd(t,n))}))}(this._delegate,(function(n){return t(new Od(e,n))}))},t.prototype.batch=function(){var t=this;return af(this._delegate),new Sd(new cd(this._delegate,(function(e){return gd(t._delegate,e)})))},t.prototype.loadBundle=function(t){throw new Pr(Lr.FAILED_PRECONDITION,'"loadBundle()" does not exist, have you imported "firebase/firestore/bundle"?')},t.prototype.namedQuery=function(t){throw new Pr(Lr.FAILED_PRECONDITION,'"namedQuery()" does not exist, have you imported "firebase/firestore/bundle"?')},t}(),Cd=function(t){function e(e){var n=this;return(n=t.call(this)||this).firestore=e,n}return _(e,t),e.prototype.convertBytes=function(t){return new _d(new lf(t))},e.prototype.convertReference=function(t){var e=this.convertDocumentKey(t,this.firestore._databaseId);return Ad.eu(e,this.firestore,null)},e}(od),Od=function(){function t(t,e){this._firestore=t,this._delegate=e,this._userDataWriter=new Cd(t)}return t.prototype.get=function(t){var e=this,n=zd(t);return this._delegate.get(n).then((function(t){return new xd(e._firestore,new Uf(e._firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,n.converter))}))},t.prototype.set=function(t,e,n){var r=zd(t);return n?(Vh("Transaction.set",n),this._delegate.set(r,e,n)):this._delegate.set(r,e),this},t.prototype.update=function(t,e,n){for(var r,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var o=zd(t);return 2===arguments.length?this._delegate.update(o,e):(r=this._delegate).update.apply(r,C([o,e,n],i)),this},t.prototype.delete=function(t){var e=zd(t);return this._delegate.delete(e),this},t}(),Sd=function(){function t(t){this._delegate=t}return t.prototype.set=function(t,e,n){var r=zd(t);return n?(Vh("WriteBatch.set",n),this._delegate.set(r,e,n)):this._delegate.set(r,e),this},t.prototype.update=function(t,e,n){for(var r,i=[],a=3;a<arguments.length;a++)i[a-3]=arguments[a];var o=zd(t);return 2===arguments.length?this._delegate.update(o,e):(r=this._delegate).update.apply(r,C([o,e,n],i)),this},t.prototype.delete=function(t){var e=zd(t);return this._delegate.delete(e),this},t.prototype.commit=function(){return this._delegate.commit()},t}(),Ed=function(){function t(t,e,n){this._firestore=t,this._userDataWriter=e,this._delegate=n}return t.prototype.fromFirestore=function(t,e){var n=new qf(this._firestore._delegate,this._userDataWriter,t._key,t._document,t.metadata,null);return this._delegate.fromFirestore(new jd(this._firestore,n),null!=e?e:{})},t.prototype.toFirestore=function(t,e){return e?this._delegate.toFirestore(t,e):this._delegate.toFirestore(t)},t.nu=function(e,n){var r=t.su,i=r.get(e);i||(i=new WeakMap,r.set(e,i));var a=i.get(n);return a||(a=new t(e,new Cd(e),n),i.set(n,a)),a},t}();Ed.su=new WeakMap;var Ad=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new Cd(t)}return t.iu=function(e,n,r){if(e.length%2!=0)throw new Pr(Lr.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+e.canonicalString()+" has "+e.length);return new t(n,new Yh(n._delegate,r,new gi(e)))},t.eu=function(e,n,r){return new t(n,new Yh(n._delegate,r,e))},Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return new Dd(this.firestore,this._delegate.parent)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),t.prototype.collection=function(t){try{return new Dd(this.firestore,Zh(this._delegate,t))}catch(t){throw Td(t,"collection()","DocumentReference.collection()")}},t.prototype.isEqual=function(t){return(t=Object(O.h)(t))instanceof Yh&&Jh(this._delegate,t)},t.prototype.set=function(t,e){e=Vh("DocumentReference.set",e);try{return e?fd(this._delegate,t,e):fd(this._delegate,t)}catch(t){throw Td(t,"setDoc()","DocumentReference.set()")}},t.prototype.update=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];try{return 1===arguments.length?dd(this._delegate,t):dd.apply(void 0,C([this._delegate,t,e],n))}catch(t){throw Td(t,"updateDoc()","DocumentReference.update()")}},t.prototype.delete=function(){return gd(qh((t=this._delegate).firestore,rf),[new Ka(t._key,ja.none())]);var t},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Md(e),i=Id(e,(function(e){return new xd(t.firestore,new Uf(t.firestore._delegate,t._userDataWriter,e._key,e._document,e.metadata,t._delegate.converter))}));return pd(this._delegate,r,i)},t.prototype.get=function(t){var e=this;return("cache"===(null==t?void 0:t.source)?function(t){t=qh(t,Yh);var e=qh(t.firestore,rf),n=af(e),r=new hd(e);return function(t,e){var n=this,r=new Os;return t.asyncQueue.enqueueAndForget((function(){return w(n,void 0,void 0,(function(){var n;return k(this,(function(i){switch(i.label){case 0:return n=function(t,e,n){return w(this,void 0,void 0,(function(){var r,i;return k(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,function(t,e){var n=Ur(t);return n.persistence.runTransaction("read document","readonly",(function(t){return n.Mn.mn(t,e)}))}(t,e)];case 1:return(i=a.sent()).isFoundDocument()?n.resolve(i):i.isNoDocument()?n.resolve(null):n.reject(new Pr(Lr.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")),[3,3];case 2:return r=a.sent(),i=dl(r,"Failed to get document '"+e+" from cache"),n.reject(i),[3,3];case 3:return[2]}}
1))}))},[4,Ch(t)];case 1:return[2,n.apply(void 0,[i.sent(),e,r])]}}))}))})),r.promise}(n,t._key).then((function(n){return new Uf(e,r,t._key,n,new Bf(null!==n&&n.hasLocalMutations,!0),t.converter)}))}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=qh(t,Yh);var e=qh(t.firestore,rf);return Ah(af(e),t._key,{source:"server"}).then((function(n){return yd(e,t,n)}))}(this._delegate):function(t){t=qh(t,Yh);var e=qh(t.firestore,rf);return Ah(af(e),t._key).then((function(n){return yd(e,t,n)}))}(this._delegate)).then((function(t){return new xd(e.firestore,new Uf(e.firestore._delegate,e._userDataWriter,t._key,t._document,t.metadata,e._delegate.converter))}))},t.prototype.withConverter=function(e){return new t(this.firestore,this._delegate.withConverter(e?Ed.nu(this.firestore,e):null))},t}();function Td(t,e,n){return t.message=t.message.replace(e,n),t}function Md(t){for(var e=0,n=t;e<n.length;e++){var r=n[e];if("object"==typeof r&&!nf(r))return r}return{}}function Id(t,e){var n,r,i;return{next:function(t){i.next&&i.next(e(t))},error:null===(n=(i=nf(t[0])?t[0]:nf(t[1])?t[1]:"function"==typeof t[0]?{next:t[0],error:t[1],complete:t[2]}:{next:t[1],error:t[2],complete:t[3]}).error)||void 0===n?void 0:n.bind(i),complete:null===(r=i.complete)||void 0===r?void 0:r.bind(i)}}var xd=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"ref",{get:function(){return new Ad(this._firestore,this._delegate.ref)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exists",{get:function(){return this._delegate.exists()},enumerable:!1,configurable:!0}),t.prototype.data=function(t){return this._delegate.data(t)},t.prototype.get=function(t,e){return this._delegate.get(t,e)},t.prototype.isEqual=function(t){return Kf(this._delegate,t._delegate)},t}(),jd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _(e,t),e.prototype.data=function(t){return this._delegate.data(t)},e}(xd),Ld=function(){function t(t,e){this.firestore=t,this._delegate=e,this._userDataWriter=new Cd(t)}return t.prototype.where=function(e,n,r){try{return new t(this.firestore,Xf(this._delegate,function(t,e,n){var r=e,i=Hf("where",t);return new Zf(i,r,n)}(e,n,r)))}catch(e){throw Td(e,/(orderBy|where)\(\)/,"Query.$1()")}},t.prototype.orderBy=function(e,n){try{return new t(this.firestore,Xf(this._delegate,function(t,e){void 0===e&&(e="asc");var n=e,r=Hf("orderBy",t);return new $f(r,n)}(e,n)))}catch(e){throw Td(e,/(orderBy|where)\(\)/,"Query.$1()")}},t.prototype.limit=function(e){try{return new t(this.firestore,Xf(this._delegate,function(t){return Wh("limit",t),new Jf("limit",t,"F")}(e)))}catch(e){throw Td(e,"limit()","Query.limit()")}},t.prototype.limitToLast=function(e){try{return new t(this.firestore,Xf(this._delegate,function(t){return Wh("limitToLast",t),new Jf("limitToLast",t,"L")}(e)))}catch(e){throw Td(e,"limitToLast()","Query.limitToLast()")}},t.prototype.startAt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,Xf(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new td("startAt",t,!0)}).apply(void 0,e)))}catch(e){throw Td(e,"startAt()","Query.startAt()")}},t.prototype.startAfter=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,Xf(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new td("startAfter",t,!1)}).apply(void 0,e)))}catch(e){throw Td(e,"startAfter()","Query.startAfter()")}},t.prototype.endBefore=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,Xf(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new ed("endBefore",t,!0)}).apply(void 0,e)))}catch(e){throw Td(e,"endBefore()","Query.endBefore()")}},t.prototype.endAt=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];try{return new t(this.firestore,Xf(this._delegate,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new ed("endAt",t,!1)}).apply(void 0,e)))}catch(e){throw Td(e,"endAt()","Query.endAt()")}},t.prototype.isEqual=function(t){return tf(this._delegate,t._delegate)},t.prototype.get=function(t){var e=this;
1return("cache"===(null==t?void 0:t.source)?function(t){t=qh(t,Qh);var e=qh(t.firestore,rf),n=af(e),r=new hd(e);return function(t,e){var n=this,r=new Os;return t.asyncQueue.enqueueAndForget((function(){return w(n,void 0,void 0,(function(){var n;return k(this,(function(i){switch(i.label){case 0:return n=function(t,e,n){return w(this,void 0,void 0,(function(){var r,i,a,o,s;return k(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,Ju(t,e,!0)];case 1:return s=u.sent(),r=new Ml(e,s.Bn),i=r._o(s.documents),a=r.applyChanges(i,!1),n.resolve(a.snapshot),[3,3];case 2:return o=u.sent(),s=dl(o,"Failed to execute query '"+e+" against cache"),n.reject(s),[3,3];case 3:return[2]}}))}))},[4,Ch(t)];case 1:return[2,n.apply(void 0,[i.sent(),e,r])]}}))}))})),r.promise}(n,t._query).then((function(n){return new Wf(e,r,t,n)}))}(this._delegate):"server"===(null==t?void 0:t.source)?function(t){t=qh(t,Qh);var e=qh(t.firestore,rf),n=af(e),r=new hd(e);return Th(n,t._query,{source:"server"}).then((function(n){return new Wf(e,r,t,n)}))}(this._delegate):function(t){t=qh(t,Qh);var e=qh(t.firestore,rf),n=af(e),r=new hd(e);return Yf(t._query),Th(n,t._query).then((function(n){return new Wf(e,r,t,n)}))}(this._delegate)).then((function(t){return new Rd(e.firestore,new Wf(e.firestore._delegate,e._userDataWriter,e._delegate,t._snapshot))}))},t.prototype.onSnapshot=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=Md(e),i=Id(e,(function(e){return new Rd(t.firestore,new Wf(t.firestore._delegate,t._userDataWriter,t._delegate,e._snapshot))}));return pd(this._delegate,r,i)},t.prototype.withConverter=function(e){return new t(this.firestore,this._delegate.withConverter(e?Ed.nu(this.firestore,e):null))},t}(),Pd=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"type",{get:function(){return this._delegate.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"doc",{get:function(){return new jd(this._firestore,this._delegate.doc)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"oldIndex",{get:function(){return this._delegate.oldIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newIndex",{get:function(){return this._delegate.newIndex},enumerable:!1,configurable:!0}),t}(),Rd=function(){function t(t,e){this._firestore=t,this._delegate=e}return Object.defineProperty(t.prototype,"query",{get:function(){return new Ld(this._firestore,this._delegate.query)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"metadata",{get:function(){return this._delegate.metadata},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this._delegate.size},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return this._delegate.empty},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"docs",{get:function(){var t=this;return this._delegate.docs.map((function(e){return new jd(t._firestore,e)}))},enumerable:!1,configurable:!0}),t.prototype.docChanges=function(t){var e=this;return this._delegate.docChanges(t).map((function(t){return new Pd(e._firestore,t)}))},t.prototype.forEach=function(t,e){var n=this;this._delegate.forEach((function(r){t.call(e,new jd(n._firestore,r))}))},t.prototype.isEqual=function(t){return Kf(this._delegate,t._delegate)},t}(),Dd=function(t){function e(e,n){var r=this;return(r=t.call(this,e,n)||this).firestore=e,r._delegate=n,r}return _(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this._delegate.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._delegate.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){var t=this._delegate.parent;return t?new Ad(this.firestore,t):null},enumerable:!1,configurable:!0}),e.prototype.doc=function(t){try{return new Ad(this.firestore,void 0===t?$h(this._delegate):$h(this._delegate,t))}catch(t){throw Td(t,"doc()","CollectionReference.doc()")}},e.prototype.add=function(t){var e=this;return function(t,e){var n=qh(t.firestore,rf),r=$h(t),i=sd(t.converter,e);return gd(n,[_f(bf(t.firestore),"addDoc",r._key,i,null!==t.converter,{}).toMutation(r._key,ja.exists(!1))]).then((function(){return r}))}(this._delegate,t).then((function(t){return new Ad(e.firestore,t)}))},e.prototype.isEqual=function(t){return Jh(this._delegate,t._delegate)},e.prototype.withConverter=function(t){return new e(this.firestore,this._delegate.withConverter(t?Ed.nu(this.firestore,t):null))},e}(Ld);function zd(t){return qh(t,Yh)}var Nd,Vd=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._delegate=new(cf.bind.apply(cf,C([void 0],t)))}return t.documentId=function(){return new t(ri.keyField().canonicalString())},t.prototype.isEqual=function(t){return(t=Object(O.h)(t))instanceof cf&&this._delegate._internalPath.isEqual(t._internalPath)},t}(),Fd=function(){function t(t){this._delegate=t}return t.serverTimestamp=function(){var e=new Cf("serverTimestamp");return e._methodName="FieldValue.serverTimestamp",new t(e)},t.delete=function(){var e=new wf("deleteField");return e._methodName="FieldValue.delete",new t(e)},t.arrayUnion=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new Of("arrayUnion",t)}).apply(void 0,e);return r._methodName="FieldValue.arrayUnion",new t(r)},t.arrayRemove=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return new Sf("arrayRemove",t)}).apply(void 0,e);return r._methodName="FieldValue.arrayRemove",new t(r)},t.increment=function(e){var n=function(t){return new Ef("increment",t)}(e);return n._methodName="FieldValue.increment",new t(n)},t.prototype.isEqual=function(t){return this._delegate.isEqual(t._delegate)},t}(),Hd=n("/6Yf"),Bd={Firestore:kd,GeoPoint:ff,Timestamp:Qr,Blob:_d,Transaction:Od,WriteBatch:Sd,DocumentReference:Ad,DocumentSnapshot:xd,Query:Ld,QueryDocumentSnapshot:jd,QuerySnapsh
1ot:Rd,CollectionReference:Dd,FieldPath:Vd,FieldValue:Fd,setLogLevel:function(t){Rr.setLogLevel(t)},CACHE_SIZE_UNLIMITED:-1};(function(t,e){t.INTERNAL.registerComponent(new Hd.a("firestore",(function(t){return function(t,e){return new kd(t,new rf(t,e),new wd)}(t.getProvider("app").getImmediate(),t.getProvider("auth-internal"))}),"PUBLIC").setServiceProps(Object.assign({},Bd)))})(Nd=m.a),Nd.registerVersion("@firebase/firestore","2.4.1"),n("XNiG"),n("VRyK"),n("eIep"),n("UXun"),n("SxV6"),n("tf+s");var Ud=new r.w("angularfire2.auth.use-emulator");function qd(t,e){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return new a.a((function(n){var r;return null!=e?e.schedule((function(){r=t.onSnapshot({includeMetadataChanges:!0},n)})):r=t.onSnapshot({includeMetadataChanges:!0},n),function(){null!=r&&r()}}))}(t,e)}function Wd(t,e){return qd(t,e).pipe(Object(l.a)((function(t){return{payload:t,type:"query"}})))}function Gd(t,e){return Wd(t,e).pipe(Object(u.a)(void 0),Object(c.a)(),Object(l.a)((function(t){var e=_slicedToArray(t,2),n=e[0],r=e[1],i=r.payload.docChanges(),a=i.map((function(t){return{type:t.type,payload:t}}));return n&&JSON.stringify(n.payload.metadata)!==JSON.stringify(r.payload.metadata)&&r.payload.docs.forEach((function(t,e){var r=i.find((function(e){return e.doc.ref.isEqual(t.ref)}
1)),o=null==n?void 0:n.payload.docs.find((function(e){return e.ref.isEqual(t.ref)}));r&&JSON.stringify(r.doc.metadata)===JSON.stringify(t.metadata)||!r&&o&&JSON.stringify(o.metadata)===JSON.stringify(t.metadata)||a.push({type:"modified",payload:{oldIndex:e,newIndex:e,type:"modified",doc:t}})})),a})))}function Kd(t,e,n){return Gd(t,n).pipe(Object(h.a)((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":if(!t[e.newIndex]||!t[e.newIndex].doc.ref.isEqual(e.doc.ref))return Yd(t,e.newIndex,0,e);break;case"modified":if(null==t[e.oldIndex]||t[e.oldIndex].doc.ref.isEqual(e.doc.ref)){if(e.oldIndex!==e.newIndex){var n=t.slice();return n.splice(e.oldIndex,1),n.splice(e.newIndex,0,e),n}return Yd(t,e.newIndex,1,e)}break;case"removed":if(t[e.oldIndex]&&t[e.oldIndex].doc.ref.isEqual(e.doc.ref))return Yd(t,e.oldIndex,1)}return t}(t,e))})),t}(t,n.map((function(t){return t.payload})),e)}),[]),Object(f.a)(),Object(l.a)((function(t){return t.map((function(t){return{type:t.type,payload:t}}))})))}function Yd(t,e,n){for(var r=t.slice(),i=arguments.length,a=new Array(i>3?i-3:0),o=3;o<i;o++)a[o-3]=arguments[o];return r.splice.apply(r,[e,n].concat(a)),r}function Qd(t){return t&&0!==t.length||(t=["added","removed","modified"]),t}n.d(e,"a",(function(){return op})),n.d(e,"b",(function(){return sp}));var Xd=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){var e=Gd(this.query,this.afs.schedulers.outsideAngular);return t&&t.length>0&&(e=e.pipe(Object(l.a)((function(e){return e.filter((function(e){return t.indexOf(e.type)>-1}))})))),e.pipe(Object(u.a)(void 0),Object(c.a)(),Object(d.a)((function(t){var e=_slicedToArray(t,2),n=e[0];return e[1].length>0||!n})),Object(l.a)((function(t){var e=_slicedToArray(t,2);e[0];return e[1]})),this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(Object(h.a)((function(t,e){return[].concat(_toConsumableArray(t),_toConsumableArray(e))}),[]))}},{key:"snapshotChanges",value:function(t){var e=Qd(t);return Kd(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 Wd(this.query,this.afs.schedulers.outsideAngular).pipe(Object(l.a)((function(e){return e.payload.docs.map((function(e){return t.idField?Object.assign(Object.assign({},e.data()),_defineProperty2({},t.idField,e.id)):e.data()}))})),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return Object(o.a)(this.query.get(t)).pipe(Object(p.b)(this.afs.schedulers.insideAngular))}},{key:"add",value:function(t){return this.ref.add(t)}},{key:"doc",value:function(t){return new Zd(this.ref.doc(t),this.afs)}}]),t}(),Zd=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=rp(this.ref.collection(t),e),r=n.ref,i=n.query;return new Xd(r,i,this.afs)}},{key:"snapshotChanges",value:function(){return qd(this.ref,this.afs.schedulers.outsideAngular).pipe(Object(u.a)(void 0),Object(c.a)(),Object(l.a)((function(t){var e=_slicedToArray(t,2),n=e[0],r=e[1];return r.exists?(null==n?void 0:n.exists)?{payload:r,type:"modified"}:{payload:r,type:"added"}:{payload:r,type:"removed"}}))).pipe(this.afs.keepUnstableUntilFirst)}},{key:"valueChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.snapshotChanges().pipe(Object(l.a)((function(e){var n=e.payload;return t.idField?Object.assign(Object.assign({},n.data()),_defineProperty2({},t.idField,n.id)):n.data()})))}},{key:"get",value:function(t){return Object(o.a)(this.ref.get(t)).pipe(Object(p.b)(this.afs.schedulers.insideAngular))}}]),t}(),$d=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?Gd(this.query,this.afs.schedulers.outsideAngular).pipe(Object(l.a)((function(e){return e.filter((function(e){return t.indexOf(e.type)>-1}))}
1)),Object(d.a)((function(t){return t.length>0})),this.afs.keepUnstableUntilFirst):Gd(this.query,this.afs.schedulers.outsideAngular).pipe(this.afs.keepUnstableUntilFirst)}},{key:"auditTrail",value:function(t){return this.stateChanges(t).pipe(Object(h.a)((function(t,e){return[].concat(_toConsumableArray(t),_toConsumableArray(e))}),[]))}},{key:"snapshotChanges",value:function(t){var e=Qd(t);return Kd(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 Wd(this.query,this.afs.schedulers.outsideAngular).pipe(Object(l.a)((function(e){return e.payload.docs.map((function(e){return t.idField?Object.assign(_defineProperty2({},t.idField,e.id),e.data()):e.data()}))})),this.afs.keepUnstableUntilFirst)}},{key:"get",value:function(t){return Object(o.a)(this.query.get(t)).pipe(Object(p.b)(this.afs.schedulers.insideAngular))}}]),t}(),Jd=new r.w("angularfire2.enableFirestorePersistence"),tp=new r.w("angularfire2.firestore.persistenceSettings"),ep=new r.w("angularfire2.firestore.settings"),np=new r.w("angularfire2.firestore.use-emulator");function rp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t};return{query:e(t),ref:t}}var ip,ap,op=((ap=function(){function t(e,n,r,i,a,u,c,l,h){_classCallCheck(this,t),this.schedulers=new g.d(u),this.keepUnstableUntilFirst=Object(g.h)(this.schedulers);var f=Object(g.g)(e,u,n);!v.a.auth&&h&&Object(g.j)();var d=l,p=_slicedToArray(Object(g.f)("".concat(f.name,".firestore"),"AngularFirestore",f,(function(){var t=u.runOutsideAngular((function(){return f.firestore()}));return i&&t.settings(i),d&&t.useEmulator.apply(t,_toConsumableArray(d)),r&&!Object(y.y)(a)?[t,u.runOutsideAngular((function(){try{return Object(o.a)(t.enablePersistence(c||void 0).then((function(){return!0}),(function(){return!1})))}catch(Nd){return"undefined"!=typeof console&&console.warn(Nd),Object(s.a)(!1)}}))]:[t,Object(s.a)(!1)]}),[i,d,r]),2);this.firestore=p[0],this.persistenceEnabled$=p[1]}
1return _createClass(t,[{key:"collection",value:function(t,e){var n=rp("string"==typeof t?this.firestore.collection(t):t,e),r=n.ref,i=n.query,a=this.schedulers.ngZone.run((function(){return r}));return new Xd(a,i,this)}},{key:"collectionGroup",value:function(t,e){var n=e||function(t){return t},r=this.firestore.collectionGroup(t);return new $d(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 Zd(n,this)}},{key:"createId",value:function(){return this.firestore.collection("_").doc().id}}]),t}()).\u0275fac=function(t){return new(t||ap)(r.mc(g.c),r.mc(g.b,8),r.mc(Jd,8),r.mc(ep,8),r.mc(r.J),r.mc(r.G),r.mc(tp,8),r.mc(np,8),r.mc(Ud,8))},ap.\u0275prov=r.Yb({factory:function(){return new ap(r.mc(g.c),r.mc(g.b,8),r.mc(Jd,8),r.mc(ep,8),r.mc(r.J),r.mc(r.G),r.mc(tp,8),r.mc(np,8),r.mc(Ud,8))},token:ap,providedIn:"any"}),ap),sp=((ip=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"enablePersistence",value:function(e){return{ngModule:t,providers:[{provide:Jd,useValue:!0},{provide:tp,useValue:e}]}}}]),t}()).\u0275mod=r.ac({type:ip}),ip.\u0275inj=r.Zb({factory:function(t){return new(t||ip)},providers:[op]}),ip)},I55L:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t}},IjjT:function(t,e,n){"use strict";var r=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}();n.d(e,"a",(function(){return i}));var i=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.now;return _classCallCheck(this,n),(i=e.call(this,t,(function(){return n.delegate&&n.delegate!==_assertThisInitialized(i)?n.delegate.now():a()}))).actions=[],i.active=!1,i.scheduled=void 0,i}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}(r)},IzEk:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("4I5i"),a=n("EY2u");function o(t){return function(e){return 0===t?Object(a.b)():e.lift(new s(t))}}var s=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new i.a}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new u(t,this.total))}}]),t}(),u=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}(r.a)},JX91:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("GyhO"),i=n("z+Ro");function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var a=e[e.length-1];return Object(i.a)(a)?(e.pop(),function(t){return Object(r.a)(e,t,a)}):function(t){return Object(r.a)(e,t)}}},Jgta:function(t,e,n){"use strict";var r=n("zIRd");n.d(e,"a",(function(){return r.a})),r.a.registerVersion("firebase","8.10.1","app"),r.a.SDK_VERSION="8.10.1"},Kj3r:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("7o/Q"),i=n("D0XW");function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return function(n){return n.lift(new o(t,e))}}var o=function(){function t(e,n){_classCallCheck(this,t),this.dueTime=e,this.scheduler
1=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.dueTime,this.scheduler))}}]),t}(),s=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).dueTime=r,a.scheduler=i,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return _createClass(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(u,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(r.a);function u(t){t.debouncedNext()}},Kqap:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new a(t,e,n))}}var a=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 o(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),o=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;return _classCallCheck(this,n),(o=e.call(this,t)).accumulator=r,o._seed=i,o.hasSeed=a,o.index=0,o}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{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)}}]),n}(r.a)},KqfI:function(t,e,n){"use strict";function r(){}n.d(e,"a",(function(){return r}))},LRne:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("z+Ro"),i=n("yCtX"),a=n("jZKg");function o(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=e[e.length-1];return Object(r.a)(o)?(e.pop(),Object(a.a)(e,o)):Object(i.a)(e)}},Lhse:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},NJ4a:function(t,e,n){"use strict";function r(t){setTimeout((function(){throw t}),0)}n.d(e,"a",(function(){return r}))},NXyV:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("HDdC"),i=n("Cfvw"),a=n("EY2u");function o(t){return new r.a((function(e){var n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(i.a)(n):Object(a.b)()).subscribe(e)}))}},R0Ic:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return c})),n.d(e,"i",(function(){return h})),n.d(e,"j",(function(){return o})),n.d(e,"k",(function(){return p})),n.d(e,"l",(function(){return g}));var r=_createClass((function t(){_classCallCheck(this,t)})),i=_createClass((function t(){_classCallCheck(this,t)})),a="*";function o(t,e){return{type:7,name:t,definitions:e,options:{}}}function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function l(t,e,n){return{type:0,name:t,styles:e,options:n}}function h(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function f(t){Promise.resolve(null).then(t)}var d=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;f((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){}}
1,{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}(),p=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,a=0,o=this.players.length;0==o?f((function(){return n._onFinish()})):this.players.forEach((function(t){t.onDone((function(){++r==o&&n._onFinish()})),t.onDestroy((function(){++i==o&&n._onDestroy()})),t.onStart((function(){++a==o&&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}(),g="!"},RgrY:function(t,e,n){"use strict";n.d(e,"a",(function(){return g})),n.d(e,"b",(function(){return y}));var r=n("fXoL"),i=n("LRne"),a=n("Cfvw"),o=n("pxpQ"),s=n("eIep"),u=n("lJxs"),c=n("UXun"),l=n("spgP"),h=new r.w("angularfire2.functions.origin"),f=new r.w("angularfire2.functions.region"),d=new r.w("angularfire2.functions.new-origin-behavior"),p=new r.w("angularfire2.functions.use-emulator"),g=function(){var t=_createClass((function t(e,r,h,f,d,p,g){_classCallCheck(this,t);var y=new l.d(h),v=g,m=Object(i.a)(void 0).pipe(Object(o.b)(y.outsideAngular),Object(s.a)((function(){return n.e(8).then(n.bind(null,"iTTW"))})),Object(u.a)((function(){return Object(l.g)(e,h,r)})),Object(u.a)((function(t){return Object(l.f)("".concat(t.name,".functions.").concat(f||d),"AngularFireFunctions",t,(function(){var e,n;if(p){if(f&&d)throw new Error("REGION and ORIGIN can't be used at the same time.");n=t.functions(f||d||void 0)}else n=t.functions(f||void 0);return p||v||!d||n.useFunctionsEmulator(d),v&&(e=n).useEmulator.apply(e,_toConsumableArray(v)),n}),[f,d,v])})),Object(c.a)({bufferSize:1,refCount:!1}));return this.httpsCallable=function(t,e){return function(n){return Object(a.a)(m).pipe(Object(o.b)(y.insideAngular),Object(s.a)((function(r){return r.httpsCallable(t,e)(n)})),Object(u.a)((function(t){return t.data})))}},Object(l.i)(this,m,h)}));return t.\u0275fac=function(e){return new(e||t)(r.mc(l.c),r.mc(l.b,8),r.mc(r.G),r.mc(f,8),r.mc(h,8),r.mc(d,8),r.mc(p,8))},t.\u0275prov=r.Yb({factory:function(){return new t(r.mc(l.c),r.mc(l.b,8),r.mc(r.G),r.mc(f,8),r.mc(h,8),r.mc(d,8),r.mc(p,8))},token:t,providedIn:"any"}),t}(),y=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275mod=r.ac({type:t}),t.\u0275inj=r.Zb({factory:function(e){return new(e||t)},providers:[g]}),t}()}
1,SeVD:function(t,e,n){"use strict";var r=n("ngJS"),i=n("NJ4a"),a=n("Lhse"),o=n("kJWO"),s=n("I55L"),u=n("c2HN"),c=n("XoHu");n.d(e,"a",(function(){return l}));var l=function(t){if(t&&"function"==typeof t[o.a])return l=t,function(t){var e=l[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(s.a)(t))return Object(r.a)(t);if(Object(u.a)(t))return n=t,function(t){return n.then((function(e){t.closed||(t.next(e),t.complete())}),(function(e){return t.error(e)})).then(null,i.a),t};if(t&&"function"==typeof t[a.a])return e=t,function(t){for(var n=e[a.a]();;){var r=n.next();if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add((function(){n.return&&n.return()})),t};var e,n,l,h=Object(c.a)(t)?"an invalid object":"'".concat(t,"'");throw new TypeError("You provided ".concat(h," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.")}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",(function(){return r}))},SxV6:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("sVev"),i=n("pLZG"),a=n("IzEk"),o=n("xbPD"),s=n("XDbj"),u=n("SpAZ");function c(t,e){var n=arguments.length>=2;return function(c){return c.pipe(t?Object(i.a)((function(e,n){return t(e,n,c)})):u.a,Object(a.a)(1),n?Object(o.a)(e):Object(s.a)((function(){return new r.a})))}}},UXun:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("jtHE");function i(t,e,n){var i;return i=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,i=t.bufferSize,a=void 0===i?Number.POSITIVE_INFINITY:i,o=t.windowTime,s=void 0===o?Number.POSITIVE_INFINITY:o,u=t.refCount,c=t.scheduler,l=0,h=!1,f=!1;return function(t){l++,e&&!h||(h=!1,e=new r.a(a,s,c),n=t.subscribe({next:function(t){e.next(t)},error:function(t){h=!0,e.error(t)},complete:function(){f=!0,n=void 0,e.complete()}}));var i=e.subscribe(this);this.add((function(){l--,i.unsubscribe(),n&&!f&&u&&0===l&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(i))}}},VRyK:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),i=n("z+Ro"),a=n("bHdf"),o=n("yCtX");function s(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var s=Number.POSITIVE_INFINITY,u=null,c=e[e.length-1];return Object(i.a)(c)?(u=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(s=e.pop())):"number"==typeof c&&(s=e.pop()),null===u&&1===e.length&&e[0]instanceof r.a?e[0]:Object(a.a)(s)(Object(o.a)(e,u))}},WMd4:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("EY2u"),i=n("LRne"),a=n("z6cu"),o=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 Object(i.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(r.b)()}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}()},Wr5T:function(t,e){!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Ob
1ject.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[];r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},r.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},r.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},r.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},r.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(window,"resize",this._checkForIntersections,!0),i(t,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},r.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,a(window,"resize",this._checkForIntersections,!0),a(t,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},r.prototype._checkForIntersections=function(){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(r){var i=r.element,a=o(i),s=this._rootContainsTarget(i),u=r.entry,c=t&&s&&this._computeTargetAndRootIntersection(i,e),l=r.entry=new n({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:e,intersectionRect:c});u?t&&s?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},r.prototype._computeTargetAndRootIntersection=function(e,n){if("none"!=window.getComputedStyle(e).display){for(var r,i,a,s,c,l,h,f,d=o(e),p=u(e),g=!1;!g;){var y=null,v=1==p.nodeType?window.getComputedStyle(p):{};if("none"==v.display)return;if(p==this.root||p==t?(g=!0,y=n):p!=t.body&&p!=t.documentElement&&"visible"!=v.overflow&&(y=o(p)),y&&(r=y,i=d,a=Math.max(r.top,i.top),s=Math.min(r.bottom,i.bottom),c=Math.max(r.left,i.left),f=s-a,!(d=(h=(l=Math.min(r.right,i.right))-c)>=0&&f>=0&&{top:a,bottom:s,left:c,right:l,width:h,height:f})))break;p=u(p)}return d}},r.prototype._getRootRect=function(){var e;if(this.root)e=o(this.root);else{var n=t.documentElement,r=t.body;e={top:0,left:0,right:n.clientWidth||r.clientWidth,width:n.clientWidth||r.clientWidth,bottom:n.clientHeight||r.clientHeight,height:n.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},r.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,r=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==r)for(var i=0;i<this.thresholds.length;i++){var a=this.thresholds[i];if(a==n||a==r||a<n!=a<r)return!0}},r.prototype._rootIsInDom=function(){return!this.root||s(t,this.root)},r.prototype._rootContainsTarget=function(e){return s(this.root||t,e)}
1,r.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},r.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=r,window.IntersectionObserverEntry=n}function n(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0},this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,r=this.intersectionRect;this.intersectionRatio=n?Number((r.width*r.height/n).toFixed(4)):this.isIntersecting?1:0}function r(t,e){var n,r,i,a=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(a.root&&1!=a.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),r=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){n(),i=null}),r))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(a.rootMargin),this.thresholds=this._initThresholds(a.threshold),this.root=a.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" ")}function i(t,e,n,r){"function"==typeof t.addEventListener?t.addEventListener(e,n,r||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function a(t,e,n,r){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,r||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function o(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function s(t,e){for(var n=e;n;){if(n==t)return!0;n=u(n)}return!1}function u(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}}()},XDbj:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("sVev"),i=n("7o/Q");function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return function(e){return e.lift(new o(t))}}var o=function(){function t(e){_classCallCheck(this,t),this.errorFactory=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.errorFactory))}}]),t}(),s=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}(i.a);function u(){return new r.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var r=n("HDdC"),i=n("7o/Q"),a=n("quSY"),o=n("9ppp"),s=n("Ylt2"),u=n("2QA8"),c=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this,t)).destination=t,r}return _createClass(n)}(i.a),l=function(){var t=function(t,e){_inherits(i,t);var n=_createSuper(i);function i(){var t;return _classCallCheck(this,i),(t=n.call(this)).observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return _createClass(i,[{key:e,value:function(){return new c(this)}},{key:"lift",value:function(t){var e=new h(this,this);return e.operator=t,e}},{key:"next",value:function(t){if(this.closed)throw new o.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)}},{key:"error",value:function(t){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new o.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(t){if(this.closed)throw new o.a;return _get(_getPrototypeOf(i.prototype),"_trySubscribe",this).call(this,t)}},{key:"_subscribe",value:function(t){if(this.closed)throw new o.a;return this.hasError?(t.error(this.thrownError),a.a.EMPTY):this.isStopped?(t.complete(),a.a.EMPTY):(this.observers.push(t),new s.a(this,t))}},{key:"asObservable",value:function(){var t=new r.a;return t.source=this,t}}]),i}(r.a,u.a);return t.create=function(t,e){return new h(t,e)},t}(),h=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this)).destination=t,i.source=r,i}return _createClass(n,[{key:"next",value:function(t){var e=this.destination;e&&e.next&&e.next(t)}},{key:"error",value:function(t){var e=this.destination;e&&e.error&&this.destination.error(t)}},{key:"complete",value:function(){var t=this.destination;t&&t.complete&&this.destination.complete()}},{key:"_subscribe",value:function(t){return this.source?this.source.subscribe(t):a.a.EMPTY}}]),n}(l)},XoHu:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},Y7HM:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("DH7j");function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},Ylt2:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this)).subject=t,i.subscriber=r,i.closed=!1,i}return _createClass(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}}}]),n}(n("quSY").a)},ZUHj:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
1));var r=n("51Dv"),i=n("SeVD"),a=n("HDdC");function o(t,e,n,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new r.a(t,n,o);if(!s.closed)return e instanceof a.a?e.subscribe(s):Object(i.a)(e)(s)}},ZtdT:function(t,e,n){var r;"undefined"!=typeof self&&self,r=function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,(function(e){return t[e]}).bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="./package/src/index.js")}({
vendor: 3,061 bytes, line 1
1"./node_modules/classnames/dedupe.js":function(t,e,n){var r;!function(){"use strict";var n=function(){function t(){}function e(t,e){for(var n=e.length,r=0;r<n;++r)i(t,e[r])}t.prototype=Object.create(null);var n={}.hasOwnProperty,r=/\s+/;function i(t,i){if(i){var a=typeof i;"string"===a?function(t,e){for(var n=e.split(r),i=n.length,a=0;a<i;++a)t[n[a]]=!0}(t,i):Array.isArray(i)?e(t,i):"object"===a?function(t,e){for(var r in e)n.call(e,r)&&(t[r]=!!e[r])}(t,i):"number"===a&&function(t,e){t[e]=!0}(t,i)}}return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=new t;e(a,r);var o=[];for(var s in a)a[s]&&o.push(s);return o.join(" ")}}();void 0!==t&&t.exports?(n.default=n,t.exports=n):void 0===(r=(function(){return n}).apply(e,[]))||(t.exports=r)}()},"./node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./package/src/animation.scss":function(t,e,n){(t.exports=n("./node_modules/css-loader/lib/css-base.js")(!1)).push([t.i,"/**\n * @license\n * Copyright Akveo. All Rights Reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n */\n.eva-animation {\n animation-duration: 1s;\n animation-fill-mode: both; }\n\n.eva-infinite {\n animation-iteration-count: infinite; }\n\n.eva-icon-shake {\n animation-name: eva-shake; }\n\n.eva-icon-zoom {\n animation-name: eva-zoomIn; }\n\n.eva-icon-pulse {\n animation-name: eva-pulse; }\n\n.eva-icon-flip {\n animation-name: eva-flipInY; }\n\n.eva-hover {\n display: inline-block; }\n\n.eva-hover:hover .eva-icon-hover-shake, .eva-parent-hover:hover .eva-icon-hover-shake {\n animation-name: eva-shake; }\n\n.eva-hover:hover .eva-icon-hover-zoom, .eva-parent-hover:hover .eva-icon-hover-zoom {\n animation-name: eva-zoomIn; }\n\n.eva-hover:hover .eva-icon-hover-pulse, .eva-parent-hover:hover .eva-icon-hover-pulse {\n animation-name: eva-pulse; }\n\n.eva-hover:hover .eva-icon-hover-flip, .eva-parent-hover:hover .eva-icon-hover-flip {\n animation-name: eva-flipInY; }\n\n@keyframes eva-flipInY {\n from {\n transform: perspective(400px) rotate3d(0, 1, 0, 90deg);\n animation-timing-function: ease-in;\n opacity: 0; }\n 40% {\n transform: perspective(400px) rotate3d(0, 1, 0, -20deg);\n animation-timing-function: ease-in; }\n 60% {\n transform: perspective(400px) rotate3d(0, 1, 0, 10deg);\n opacity: 1; }\n 80% {\n transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }\n to {\n transform: perspective(400px); } }\n\n@keyframes eva-shake {\n from,\n to {\n transform: translate3d(0, 0, 0); }\n 10%,\n 30%,\n 50%,\n 70%,\n 90% {\n transform: translate3d(-3px, 0, 0); }\n 20%,\n 40%,\n 60%,\n 80% {\n transform: translate3d(3px, 0, 0); } }\n\n@keyframes eva-pulse {\n from {\n transform: scale3d(1, 1, 1); }\n 50% {\n transform: scale3d(1.2, 1.2, 1.2); }\n to {\n transform: scale3d(1, 1, 1); } }\n\n@keyframes eva-zoomIn {\n from {\n opacity: 1;\n transform: scale3d(0.5, 0.5, 0.5); }\n 50% {\n opacity: 1; } }\n",""])},
vendor: 841 bytes, line 1
1"./node_modules/css-loader/lib/css-base.js":function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i="/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */",a=r.sources.map((function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"}));return[n].concat(a).concat([i]).join("\n")}return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n})).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var a=this[i][0];"number"==typeof a&&(r[a]=!0)}for(i=0;i<t.length;i++){var o=t[i];"number"==typeof o[0]&&r[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},
vendor: 1,063 bytes, line 1
1"./node_modules/isomorphic-style-loader/insertCss.js":function(t,e,n){"use strict";var r={};function i(t){t.forEach((function(t){if(--r[t]<=0){var e=document.getElementById(t);e&&e.parentNode.removeChild(e)}}))}t.exports=function(t,e){for(var n,a=void 0===e?{}:e,o=a.replace,s=void 0!==o&&o,u=a.prepend,c=void 0!==u&&u,l=a.prefix,h=void 0===l?"s":l,f=[],d=0;d<t.length;d++){var p=t[d],g=p[1],y=p[2],v=p[3],m=""+h+p[0]+"-"+d;if(f.push(m),!r[m]||s){r[m]=1;var b=document.getElementById(m),_=!1;b||(_=!0,(b=document.createElement("style")).setAttribute("type","text/css"),b.id=m,y&&b.setAttribute("media",y));var w=g;v&&"function"==typeof btoa&&(w+="\n/*# sourceMappingURL=data:application/json;base64,"+(n=JSON.stringify(v),btoa(encodeURIComponent(n).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode("0x"+e)}))))+"*/",w+="\n/*# sourceURL="+v.file+"?"+m+"*/"),"textContent"in b?b.textContent=w:b.styleSheet.cssText=w,_&&(c?document.head.insertBefore(b,document.head.childNodes[0]):document.head.appendChild(b))}else r[m]++}return i.bind(null,f)}},
1"./package-build/eva-icons.json":function(t){t
vendor: 214,295 bytes, line 1
1.exports={activity:'<g data-name="Layer 2"><g data-name="activity"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M14.33 20h-.21a2 2 0 0 1-1.76-1.58L9.68 6l-2.76 6.4A1 1 0 0 1 6 13H3a1 1 0 0 1 0-2h2.34l2.51-5.79a2 2 0 0 1 3.79.38L14.32 18l2.76-6.38A1 1 0 0 1 18 11h3a1 1 0 0 1 0 2h-2.34l-2.51 5.79A2 2 0 0 1 14.33 20z"/></g></g>',"alert-circle":'<g data-name="Layer 2"><g data-name="alert-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 15a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm1-4a1 1 0 0 1-2 0V8a1 1 0 0 1 2 0z"/></g></g>',"alert-triangle":'<g data-name="Layer 2"><g data-name="alert-triangle"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M22.56 16.3L14.89 3.58a3.43 3.43 0 0 0-5.78 0L1.44 16.3a3 3 0 0 0-.05 3A3.37 3.37 0 0 0 4.33 21h15.34a3.37 3.37 0 0 0 2.94-1.66 3 3 0 0 0-.05-3.04zM12 17a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm1-4a1 1 0 0 1-2 0V9a1 1 0 0 1 2 0z"/></g></g>',archive:'<g data-name="Layer 2"><g data-name="archive"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M18 3H6a3 3 0 0 0-2 5.22V18a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8.22A3 3 0 0 0 18 3zm-3 10.13a.87.87 0 0 1-.87.87H9.87a.87.87 0 0 1-.87-.87v-.26a.87.87 0 0 1 .87-.87h4.26a.87.87 0 0 1 .87.87zM18 7H6a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></g></g>',"arrow-back":'<g data-name="Layer 2"><g data-name="arrow-back"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M19 11H7.14l3.63-4.36a1 1 0 1 0-1.54-1.28l-5 6a1.19 1.19 0 0 0-.09.15c0 .05 0 .08-.07.13A1 1 0 0 0 4 12a1 1 0 0 0 .07.36c0 .05 0 .08.07.13a1.19 1.19 0 0 0 .09.15l5 6A1 1 0 0 0 10 19a1 1 0 0 0 .64-.23 1 1 0 0 0 .13-1.41L7.14 13H19a1 1 0 0 0 0-2z"/></g></g>',"arrow-circle-down":'<g data-name="Layer 2"><g data-name="arrow-circle-down"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm3.69 11.86l-3 2.86a.49.49 0 0 1-.15.1.54.54 0 0 1-.16.1.94.94 0 0 1-.76 0 1 1 0 0 1-.33-.21l-3-3a1 1 0 0 1 1.42-1.42l1.29 1.3V8a1 1 0 0 1 2 0v5.66l1.31-1.25a1 1 0 0 1 1.38 1.45z"/></g></g>',"arrow-circle-left":'<g data-name="Layer 2"><g data-name="arrow-circle-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M22 12a10 10 0 1 0-10 10 10 10 0 0 0 10-10zm-11.86 3.69l-2.86-3a.49.49 0 0 1-.1-.15.54.54 0 0 1-.1-.16.94.94 0 0 1 0-.76 1 1 0 0 1 .21-.33l3-3a1 1 0 0 1 1.42 1.42L10.41 11H16a1 1 0 0 1 0 2h-5.66l1.25 1.31a1 1 0 0 1-1.45 1.38z"/></g></g>',"arrow-circle-right":'<g data-name="Layer 2"><g data-name="arrow-circle-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M2 12A10 10 0 1 0 12 2 10 10 0 0 0 2 12zm11.86-3.69l2.86 3a.49.49 0 0 1 .1.15.54.54 0 0 1 .1.16.94.94 0 0 1 0 .76 1 1 0 0 1-.21.33l-3 3a1 1 0 0 1-1.42-1.42l1.3-1.29H8a1 1 0 0 1 0-2h5.66l-1.25-1.31a1 1 0 0 1 1.45-1.38z"/></g></g>',"arrow-circle-up":'<g data-name="Layer 2"><g data-name="arrow-circle-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 22A10 10 0 1 0 2 12a10 10 0 0 0 10 10zM8.31 10.14l3-2.86a.49.49 0 0 1 .15-.1.54.54 0 0 1 .16-.1.94.94 0 0 1 .76 0 1 1 0 0 1 .33.21l3 3a1 1 0 0 1-1.42 1.42L13 10.41V16a1 1 0 0 1-2 0v-5.66l-1.31 1.25a1 1 0 0 1-1.38-1.45z"/></g></g>',"arrow-down":'<g data-name="Layer 2"><g data-name="arrow-downward"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M12 17a1.72 1.72 0 0 1-1.33-.64l-4.21-5.1a2.1 2.1 0 0 1-.26-2.21A1.76 1.76 0 0 1 7.79 8h8.42a1.76 1.76 0 0 1 1.59 1.05 2.1 2.1 0 0 1-.26 2.21l-4.21 5.1A1.72 1.72 0 0 1 12 17z"/></g></g>',"arrow-downward":'<g data-name="Layer 2"><g data-name="arrow-down"><rect width="24" height="24" opacity="0"/><path d="M18.77 13.36a1 1 0 0 0-1.41-.13L13 16.86V5a1 1 0 0 0-2 0v11.86l-4.36-3.63a1 1 0 1 0-1.28 1.54l6 5 .15.09.13.07a1 1 0 0 0 .72 0l.13-.07.15-.09 6-5a1 1 0 0 0 .13-1.41z"/></g></g>',"arrow-forward":'<g data-name="Layer 2"><g data-name="arrow-forward"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M5 13h11.86l-3.63 4.36a1 1 0 0 0 1.54 1.28l5-6a1.19 1.19 0 0 0 .09-.15c0-.05.05-.08.07-.13A1 1 0 0 0 20 12a1 1 0 0 0-.07-.36c0-.05-.05-.08-.07-.13a1.19 1.19 0 0 0-.09-.15l-5-6A1 1 0 0 0 14 5a1 1 0 0 0-.64.23 1 1 0 0 0-.13 1.41L16.86 11H5a1 1 0 0 0 0 2z"/></g></g>',"arrow-ios-back":'<g data-name="Layer 2"><g data-name="arrow-ios-back"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.83 19a1 1 0 0 1-.78-.37l-4.83-6a1 1 0 0 1 0-1.27l5-6a1 1 0 0 1 1.54 1.28L10.29 12l4.32 5.36a1 1 0 0 1-.78 1.64z"/></g></g>',"arrow-ios-downward":'<g data-name="Layer 2"><g data-name="arrow-ios-downward"><rect width="24" height="24" opacity="0"/><path d="M12 16a1 1 0 0 1-.64-.23l-6-5a1 1 0 1 1 1.28-1.54L12 13.71l5.36-4.32a1 1 0 0 1 1.41.15 1 1 0 0 1-.14 1.46l-6 4.83A1 1 0 0 1 12 16z"/></g></g>',"arrow-ios-forward":'<g data-name="Layer 2"><g data-name="arrow-ios-forward"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M10 19a1 1 0 0 1-.64-.23 1 1 0 0 1-.13-1.41L13.71 12 9.39 6.63a1 1 0 0 1 .15-1.41 1 1 0 0 1 1.46.15l4.83 6a1 1 0 0 1 0 1.27l-5 6A1 1 0 0 1 10 19z"/></g></g>',"arrow-ios-upward":'<g data-name="Layer 2"><g data-name="arrow-ios-upward"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 15a1 1 0 0 1-.64-.23L12 10.29l-5.37 4.32a1 1 0 0 1-1.41-.15 1 1 0 0 1 .15-1.41l6-4.83a1 1 0 0 1 1.27 0l6 5a1 1 0 0 1 .13 1.41A1 1 0 0 1 18 15z"/></g></g>',"arrow-left":'<g data-name="Layer 2"><g data-name="arrow-left"><rect width="24" height="24" opacity="0"/><path d="M13.54 18a2.06 2.06 0 0 1-1.3-.46l-5.1-4.21a1.7 1.7 0 0 1 0-2.66l5.1-4.21a2.1 2.1 0 0 1 2.21-.26 1.76 1.76 0 0 1 1.05 1.59v8.42a1.76 1.76 0 0 1-1.05 1.59 2.23 2.23 0 0 1-.91.2z"/></g></g>',"arrow-right":'<g data-name="Layer 2"><g data-name="arrow-right"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M10.46 18a2.23 2.23 0 0 1-.91-.2 1.76 1.76 0 0 1-1.05-1.59V7.79A1.76 1.76 0 0 1 9.55 6.2a2.1 2.1 0 0 1 2.21.26l5.1 4.21a1.7 1.7 0 0 1 0 2.66l-5.1 4.21a2.06 2.06 0 0 1-1.3.46z"/></g></g>',"arrow-up":'<g data-name="Layer 2"><g data-name="arrow-up"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M16.21 16H7.79a1.76 1.76 0 0 1-1.59-1 2.1 2.1 0 0 1 .26-2.21l4.21-5.1a1.76 1.76 0 0 1 2.66 0l4.21 5.1A2.1 2.1 0 0 1 17.8 15a1.76 1.76 0 0 1-1.59 1z"/></g></g>',"arrow-upward":'<g data-name="Layer 2"><g data-name="arrow-upward"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M5.23 10.64a1 1 0 0 0 1.41.13L11 7.14V19a1 1 0 0 0 2 0V7.14l4.36 3.63a1 1 0 1 0 1.28-1.54l-6-5-.15-.09-.13-.07a1 1 0 0 0-.72 0l-.13.07-.15.09-6 5a1 1 0 0 0-.13 1.41z"/></g></g>',"arrowhead-down":'<g data-name="Layer 2"><g data-name="arrowhead-down"><rect width="24" height="24" opacity="0"/><path d="M17.37 12.39L12 16.71l-5.36-4.48a1 1 0 1 0-1.28 1.54l6 5a1 1 0 0 0 1.27 0l6-4.83a1 1 0 0 0 .15-1.41 1 1 0 0 0-1.41-.14z"/><path d="M11.36 11.77a1 1 0 0 0 1.27 0l6-4.83a1 1 0 0 0 .15-1.41 1 1 0 0 0-1.41-.15L12 9.71 6.64 5.23a1 1 0 0 0-1.28 1.54z"/></g></g>',"arrowhead-left":'<g data-name="Layer 2"><g data-name="arrowhead-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M11.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L7.29 12l4.48-5.37a1 1 0 0 0-.13-1.4z"/><path d="M14.29 12l4.48-5.37a1 1 0 0 0-1.54-1.28l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63z"/></g></g>',"arrowhead-right":'<g data-name="Layer 2"><g data-name="arrowhead-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M18.78 11.37l-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L16.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 13 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/><path d="M7 5.37a1 1 0 0 0-1.61 1.26L9.71 12l-4.48 5.36a1 1 0 0 0 .13 1.41A1 1 0 0 0 6 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 0-1.27z"/></g></g>',"arrowhead-up":'<g data-name="Layer 2"><g data-name="arrowhead-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M6.63 11.61L12 7.29l5.37 4.48A1 1 0 0 0 18 12a1 1 0 0 0 .77-.36 1 1 0 0 0-.13-1.41l-6-5a1 1 0 0 0-1.27 0l-6 4.83a1 1 0 0 0-.15 1.41 1 1 0 0 0 1.41.14z"/><path d="M12.64 12.23a1 1 0 0 0-1.27 0l-6 4.83a1 1 0 0 0-.15 1.41 1 1 0 0 0 1.41.15L12 14.29l5.37 4.48A1 1 0 0 0 18 19a1 1 0 0 0 .77-.36 1 1 0 0 0-.13-1.41z"/></g></g>',at:'<g data-name="Layer 2"><g data-name="at"><rect width="24" height="24" opacity="0"/><path d="M13 2a10 10 0 0 0-5 19.1 10.15 10.15 0 0 0 4 .9 10 10 0 0 0 6.08-2.06 1 1 0 0 0 .19-1.4 1 1 0 0 0-1.41-.19A8 8 0 1 1 12.77 4 8.17 8.17 0 0 1 20 12.22v.68a1.71 1.71 0 0 1-1.78 1.7 1.82 1.82 0 0 1-1.62-1.88V8.4a1 1 0 0 0-1-1 1 1 0 0 0-1 .87 5 5 0 0 0-3.44-1.36A5.09 5.09 0 1 0 15.31 15a3.6 3.6 0 0 0 5.55.61A3.67 3.67 0 0 0 22 12.9v-.68A10.2 10.2 0 0 0 13 2zm-1.82 13.09A3.09 3.09 0 1 1 14.27 12a3.1 3.1 0 0 1-3.09 3.09z"/></g></g>',"attach-2":'<g data-name="Layer 2"><g data-name="attach-2"><rect width="24" height="24" opacity="0"/><path d="M12 22a5.86 5.86 0 0 1-6-5.7V6.13A4.24 4.24 0 0 1 10.33 2a4.24 4.24 0 0 1 4.34 4.13v10.18a2.67 2.67 0 0 1-5.33 0V6.92a1 1 0 0 1 1-1 1 1 0 0 1 1 1v9.39a.67.67 0 0 0 1.33 0V6.13A2.25 2.25 0 0 0 10.33 4 2.25 2.25 0 0 0 8 6.13V16.3a3.86 3.86 0 0 0 4 3.7 3.86 3.86 0 0 0 4-3.7V6.13a1 1 0 1 1 2 0V16.3a5.86 5.86 0 0 1-6 5.7z"/></g></g>',attach:'<g data-name="Layer 2"><g data-name="attach"><rect width="24" height="24" opacity="0"/><path d="M9.29 21a6.23 6.23 0 0 1-4.43-1.88 6 6 0 0 1-.22-8.49L12 3.2A4.11 4.11 0 0 1 15 2a4.48 4.48 0 0 1 3.19 1.35 4.36 4.36 0 0 1 .15 6.13l-7.4 7.43a2.54 2.54 0 0 1-1.81.75 2.72 2.72 0 0 1-1.95-.82 2.68 2.68 0 0 1-.08-3.77l6.83-6.86a1 1 0 0 1 1.37 1.41l-6.83 6.86a.68.68 0 0 0 .08.95.78.78 0 0 0 .53.23.56.56 0 0 0 .4-.16l7.39-7.43a2.36 2.36 0 0 0-.15-3.31 2.38 2.38 0 0 0-3.27-.15L6.06 12a4 4 0 0 0 .22 5.67 4.22 4.22 0 0 0 3 1.29 3.67 3.67 0 0 0 2.61-1.06l7.39-7.43a1 1 0 1 1 1.42 1.41l-7.39 7.43A5.65 5.65 0 0 1 9.29 21z"/></g></g>',award:'<g data-name="Layer 2"><g data-name="award"><rect width="24" height="24" opacity="0"/><path d="M19 20.75l-2.31-9A5.94 5.94 0 0 0 18 8 6 6 0 0 0 6 8a5.94 5.94 0 0 0 1.34 3.77L5 20.75a1 1 0 0 0 1.48 1.11l5.33-3.13 5.68 3.14A.91.91 0 0 0 18 22a1 1 0 0 0 1-1.25zM12 4a4 4 0 1 1-4 4 4 4 0 0 1 4-4z"/></g></g>',backspace:'<g data-name="Layer 2"><g data-name="backspace"><rect width="24" height="24" opacity="0"/><path d="M20.14 4h-9.77a3 3 0 0 0-2 .78l-.1.11-6 7.48a1 1 0 0 0 .11 1.37l6 5.48a3 3 0 0 0 2 .78h9.77A1.84 1.84 0 0 0 22 18.18V5.82A1.84 1.84 0 0 0 20.14 4zm-3.43 9.29a1 1 0 0 1 0 1.42 1 1 0 0 1-1.42 0L14 13.41l-1.29 1.3a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.42l1.3-1.29-1.3-1.29a1 1 0 0 1 1.42-1.42l1.29 1.3 1.29-1.3a1 1 0 0 1 1.42 1.42L15.41 12z"/></g></g>',"bar-chart-2":'<g data-name="Layer 2"><g data-name="bar-chart-2"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M12 8a1 1 0 0 0-1 1v11a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/><path d="M19 4a1 1 0 0 0-1 1v15a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/><path d="M5 12a1 1 0 0 0-1 1v7a1 1 0 0 0 2 0v-7a1 1 0 0 0-1-1z"/></g></g>',"bar-chart":'<g data-name="Layer 2"><g data-name="bar-chart"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M12 4a1 1 0 0 0-1 1v15a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/><path d="M19 12a1 1 0 0 0-1 1v7a1 1 0 0 0 2 0v-7a1 1 0 0 0-1-1z"/><path d="M5 8a1 1 0 0 0-1 1v11a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/></g></g>',battery:'<g data-name="Layer 2"><g data-name="battery"><rect width="24" height="24" opacity="0"/><path d="M15.83 6H4.17A2.31 2.31 0 0 0 2 8.43v7.14A2.31 2.31 0 0 0 4.17 18h11.66A2.31 2.31 0 0 0 18 15.57V8.43A2.31 2.31 0 0 0 15.83 6z"/><path d="M21 9a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1z"/></g></g>',behance:'<g data-name="Layer 2"><g data-name="behance"><rect width="24" height="24" opacity="0"/><path d="M14.76 11.19a1 1 0 0 0-1 1.09h2.06a1 1 0 0 0-1.06-1.09z"/><path d="M9.49 12.3H8.26v1.94h1c1 0 1.44-.33 1.44-1s-.46-.94-1.21-.94z"/><path d="M10.36 10.52c0-.53-.35-.85-.95-.85H8.26v1.74h.85c.89 0 1.25-.32 1.25-.89z"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zM9.7 15.2H7V8.7h2.7c1.17 0 1.94.61 1.94 1.6a1.4 1.4 0 0 1-1.12 1.43A1.52 1.52 0 0 1 12 13.37c0 1.16-1 1.83-2.3 1.83zm3.55-6h3v.5h-3zM17 13.05h-3.3v.14a1.07 1.07 0 0 0 1.09 1.19.9.9 0 0 0 1-.63H17a2 2 0 0 1-2.17 1.55 2.15 2.15 0 0 1-2.36-2.3v-.44a2.11 2.11 0 0 1 2.28-2.25A2.12 2.12 0 0 1 17 12.58z"/></g></g>',"bell-off":'<g data-name="Layer 2"><g data-name="bell-off"><rect width="24" height="24" opacity="0"/><path d="M15.88 18.71l-.59-.59L14 16.78l-.07-.07L6.58 9.4 5.31 8.14a5.68 5.68 0 0 0 0 .59v4.67l-1.8 1.81A1.64 1.64 0 0 0 4.64 18H8v.34A3.84 3.84 0 0 0 12 22a3.88 3.88 0 0 0 4-3.22zM14 18.34A1.88 1.88 0 0 1 12 20a1.88 1.88 0 0 1-2-1.66V18h4z"/><path d="M7.13 4.3l1.46 1.46 9.53 9.53 2 2 .31.3a1.58 1.58 0 0 0 .45-.6 1.62 1.62 0 0 0-.35-1.78l-1.8-1.81V8.94a6.86 6.86 0 0 0-5.83-6.88 6.71 6.71 0 0 0-5.32 1.61 6.88 6.88 0 0 0-.58.54z"/><path d="M20.71 19.29L19.41 18l-2-2-9.52-9.53L6.42 5 4.71 3.29a1 1 0 0 0-1.42 1.42L5.53 7l1.75 1.7 7.31 7.3.07.07L16 17.41l.59.59 2.7 2.71a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',bell:'<g data-name="Layer 2"><g data-name="bell"><rect width="24" height="24" opacity="0"/><path d="M20.52 15.21l-1.8-1.81V8.94a6.86 6.86 0 0 0-5.82-6.88 6.74 6.74 0 0 0-7.62 6.67v4.67l-1.8 1.81A1.64 1.64 0 0 0 4.64 18H8v.34A3.84 3.84 0 0 0 12 22a3.84 3.84 0 0 0 4-3.66V18h3.36a1.64 1.64 0 0 0 1.16-2.79zM14 18.34A1.88 1.88 0 0 1 12 20a1.88 1.88 0 0 1-2-1.66V18h4z"/></g></g>',bluetooth:'<g data-name="Layer 2"><g data-name="bluetooth"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.63 12l4-3.79a1.14 1.14 0 0 0-.13-1.77l-4.67-3.23a1.17 1.17 0 0 0-1.21-.08 1.15 1.15 0 0 0-.62 1v6.2l-3.19-4a1 1 0 0 0-1.56 1.3L9.72 12l-3.5 4.43a1 1 0 0 0 .16 1.4A1 1 0 0 0 7 18a1 1 0 0 0 .78-.38L11 13.56v6.29A1.16 1.16 0 0 0 12.16 21a1.16 1.16 0 0 0 .67-.21l4.64-3.18a1.17 1.17 0 0 0 .49-.85 1.15 1.15 0 0 0-.34-.91zM13 5.76l2.5 1.73L13 9.85zm0 12.49v-4.07l2.47 2.38z"/></g></g>',"book-open":'<g data-name="Layer 2"><g data-name="book-open"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M21 4.34a1.24 1.24 0 0 0-1.08-.23L13 5.89v14.27l7.56-1.94A1.25 1.25 0 0 0 21.5 17V5.32a1.25 1.25 0 0 0-.5-.98z"/><path d="M11 5.89L4.06 4.11A1.27 1.27 0 0 0 3 4.34a1.25 1.25 0 0 0-.48 1V17a1.25 1.25 0 0 0 .94 1.21L11 20.16z"/></g></g>',book:'<g data-name="Layer 2"><g data-name="book"><rect width="24" height="24" opacity="0"/><path d="M19 3H7a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM7 19a1 1 0 0 1 0-2h11v2z"/></g></g>',bookmark:'<g data-name="Layer 2"><g data-name="bookmark"><rect width="24" height="24" opacity="0"/><path d="M6 21a1 1 0 0 1-.49-.13A1 1 0 0 1 5 20V5.33A2.28 2.28 0 0 1 7.2 3h9.6A2.28 2.28 0 0 1 19 5.33V20a1 1 0 0 1-.5.86 1 1 0 0 1-1 0l-5.67-3.21-5.33 3.2A1 1 0 0 1 6 21z"/></g></g>',briefcase:'<g data-name="Layer 2"><g data-name="briefcase"><rect width="24" height="24" opacity="0"/><path d="M7 21h10V7h-1V5.5A2.5 2.5 0 0 0 13.5 3h-3A2.5 2.5 0 0 0 8 5.5V7H7zm3-15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V7h-4z"/><path d="M19 7v14a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3z"/><path d="M5 7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3z"/></g></g>',browser:'<g data-name="Layer 2"><g data-name="browser"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm-6 3a1 1 0 1 1-1 1 1 1 0 0 1 1-1zM8 6a1 1 0 1 1-1 1 1 1 0 0 1 1-1zm11 12a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-7h14z"/></g></g>',brush:'<g data-name="Layer 2"><g data-name="brush"><rect width="24" height="24" opacity="0"/><path d="M7.12 12.55a4 4 0 0 0-3.07 3.86v3.11a.47.47 0 0 0 .48.48l3.24-.06a3.78 3.78 0 0 0 3.44-2.2 3.65 3.65 0 0 0-4.09-5.19z"/><path d="M19.26 4.46a2.14 2.14 0 0 0-2.88.21L10 11.08a.47.47 0 0 0 0 .66L12.25 14a.47.47 0 0 0 .66 0l6.49-6.47a2.06 2.06 0 0 0 .6-1.47 2 2 0 0 0-.74-1.6z"/></g></g>',bulb:'<g data-name="Layer 2"><g data-name="bulb"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 7a5 5 0 0 0-3 9v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a5 5 0 0 0-3-9z"/><path d="M12 6a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v2a1 1 0 0 0 1 1z"/><path d="M21 11h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M5 11H3a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M7.66 6.42L6.22 5a1 1 0 0 0-1.39 1.47l1.44 1.39a1 1 0 0 0 .73.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.06-1.41z"/><path d="M19.19 5.05a1 1 0 0 0-1.41 0l-1.44 1.37a1 1 0 0 0 0 1.41 1 1 0 0 0 .72.31 1 1 0 0 0 .69-.28l1.44-1.39a1 1 0 0 0 0-1.42z"/></g></g>',calendar:'<g data-name="Layer 2"><g data-name="calendar"><rect width="24" height="24" opacity="0"/><path d="M18 4h-1V3a1 1 0 0 0-2 0v1H9V3a1 1 0 0 0-2 0v1H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zM8 17a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm8 0h-4a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zm3-6H5V7a1 1 0 0 1 1-1h1v1a1 1 0 0 0 2 0V6h6v1a1 1 0 0 0 2 0V6h1a1 1 0 0 1 1 1z"/></g></g>',camera:'<g data-name="Layer 2"><g data-name="camera"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="14" r="1.5"/><path d="M19 7h-3V5.5A2.5 2.5 0 0 0 13.5 3h-3A2.5 2.5 0 0 0 8 5.5V7H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-9-1.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V7h-4zm2 12a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5z"/></g></g>',car:'<g data-name="Layer 2"><g data-name="car"><rect width="24" height="24" opacity="0"/><path d="M21.6 11.22L17 7.52V5a1.91 1.91 0 0 0-1.81-2H3.79A1.91 1.91 0 0 0 2 5v10a2 2 0 0 0 1.2 1.88 3 3 0 1 0 5.6.12h6.36a3 3 0 1 0 5.64 0h.2a1 1 0 0 0 1-1v-4a1 1 0 0 0-.4-.78zM20 12.48V15h-3v-4.92zM7 18a1 1 0 1 1-1-1 1 1 0 0 1 1 1zm12 0a1 1 0 1 1-1-1 1 1 0 0 1 1 1z"/></g></g>',cast:'<g data-name="Layer 2"><g data-name="cast"><polyline points="24 24 0 24 0 0" opacity="0"/><path d="M18.4 3H5.6A2.7 2.7 0 0 0 3 5.78V7a1 1 0 0 0 2 0V5.78A.72.72 0 0 1 5.6 5h12.8a.72.72 0 0 1 .6.78v12.44a.72.72 0 0 1-.6.78H17a1 1 0 0 0 0 2h1.4a2.7 2.7 0 0 0 2.6-2.78V5.78A2.7 2.7 0 0 0 18.4 3z"/><path d="M3.86 14A1 1 0 0 0 3 15.17a1 1 0 0 0 1.14.83 2.49 2.49 0 0 1 2.12.72 2.52 2.52 0 0 1 .51 2.84 1 1 0 0 0 .48 1.33 1.06 1.06 0 0 0 .42.09 1 1 0 0 0 .91-.58A4.52 4.52 0 0 0 3.86 14z"/><path d="M3.86 10.08a1 1 0 0 0 .28 2 6 6 0 0 1 5.09 1.71 6 6 0 0 1 1.53 5.95 1 1 0 0 0 .68 1.26.9.9 0 0 0 .28 0 1 1 0 0 0 1-.72 8 8 0 0 0-8.82-10.2z"/><circle cx="4" cy="19" r="1"/></g></g>',charging:'<g data-name="Layer 2"><g data-name="charging"><rect width="24" height="24" opacity="0"/><path d="M11.28 13H7a1 1 0 0 1-.86-.5 1 1 0 0 1 0-1L9.28 6H4.17A2.31 2.31 0 0 0 2 8.43v7.14A2.31 2.31 0 0 0 4.17 18h4.25z"/><path d="M15.83 6h-4.25l-2.86 5H13a1 1 0 0 1 .86.5 1 1 0 0 1 0 1L10.72 18h5.11A2.31 2.31 0 0 0 18 15.57V8.43A2.31 2.31 0 0 0 15.83 6z"/><path d="M21 9a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1z"/></g></g>',"checkmark-circle-2":'<g data-name="Layer 2"><g data-name="checkmark-circle-2"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm4.3 7.61l-4.57 6a1 1 0 0 1-.79.39 1 1 0 0 1-.79-.38l-2.44-3.11a1 1 0 0 1 1.58-1.23l1.63 2.08 3.78-5a1 1 0 1 1 1.6 1.22z"/></g></g>',"checkmark-circle":'<g data-name="Layer 2"><g data-name="checkmark-circle"><rect width="24" height="24" opacity="0"/><path d="M9.71 11.29a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .72-.34l7-8a1 1 0 0 0-1.5-1.32L12 13.54z"/><path d="M21 11a1 1 0 0 0-1 1 8 8 0 0 1-8 8A8 8 0 0 1 6.33 6.36 7.93 7.93 0 0 1 12 4a8.79 8.79 0 0 1 1.9.22 1 1 0 1 0 .47-1.94A10.54 10.54 0 0 0 12 2a10 10 0 0 0-7 17.09A9.93 9.93 0 0 0 12 22a10 10 0 0 0 10-10 1 1 0 0 0-1-1z"/></g></g>',"checkmark-square-2":'<g data-name="Layer 2"><g data-name="checkmark-square-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm-1.7 6.61l-4.57 6a1 1 0 0 1-.79.39 1 1 0 0 1-.79-.38l-2.44-3.11a1 1 0 0 1 1.58-1.23l1.63 2.08 3.78-5a1 1 0 1 1 1.6 1.22z"/></g></g>',"checkmark-square":'<g data-name="Layer 2"><g data-name="checkmark-square"><rect width="24" height="24" opacity="0"/><path d="M20 11.83a1 1 0 0 0-1 1v5.57a.6.6 0 0 1-.6.6H5.6a.6.6 0 0 1-.6-.6V5.6a.6.6 0 0 1 .6-.6h9.57a1 1 0 1 0 0-2H5.6A2.61 2.61 0 0 0 3 5.6v12.8A2.61 2.61 0 0 0 5.6 21h12.8a2.61 2.61 0 0 0 2.6-2.6v-5.57a1 1 0 0 0-1-1z"/><path d="M10.72 11a1 1 0 0 0-1.44 1.38l2.22 2.33a1 1 0 0 0 .72.31 1 1 0 0 0 .72-.3l6.78-7a1 1 0 1 0-1.44-1.4l-6.05 6.26z"/></g></g>',checkmark:'<g data-name="Layer 2"><g data-name="checkmark"><rect width="24" height="24" opacity="0"/><path d="M9.86 18a1 1 0 0 1-.73-.32l-4.86-5.17a1 1 0 1 1 1.46-1.37l4.12 4.39 8.41-9.2a1 1 0 1 1 1.48 1.34l-9.14 10a1 1 0 0 1-.73.33z"/></g></g>',"chevron-down":'<g data-name="Layer 2"><g data-name="chevron-down"><rect width="24" height="24" opacity="0"/><path d="M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.1l3.3-3.18a1 1 0 1 1 1.38 1.44l-4 3.86a1 1 0 0 1-.68.28z"/></g></g>',"chevron-left":'<g data-name="Layer 2"><g data-name="chevron-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.36 17a1 1 0 0 1-.72-.31l-3.86-4a1 1 0 0 1 0-1.4l4-4a1 1 0 1 1 1.42 1.42L10.9 12l3.18 3.3a1 1 0 0 1 0 1.41 1 1 0 0 1-.72.29z"/></g></g>',"chevron-right":'<g data-name="Layer 2"><g data-name="chevron-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M10.5 17a1 1 0 0 1-.71-.29 1 1 0 0 1 0-1.42L13.1 12 9.92 8.69a1 1 0 0 1 0-1.41 1 1 0 0 1 1.42 0l3.86 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 0 1-.7.32z"/></g></g>',"chevron-up":'<g data-name="Layer 2"><g data-name="chevron-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M16 14.5a1 1 0 0 1-.71-.29L12 10.9l-3.3 3.18a1 1 0 0 1-1.41 0 1 1 0 0 1 0-1.42l4-3.86a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.42 1 1 0 0 1-.69.28z"/></g></g>',clipboard:'<g data-name="Layer 2"><g data-name="clipboard"><rect width="24" height="24" opacity="0"/><path d="M18 4v3a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V4a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3z"/><rect x="7" y="2" width="10" height="6" rx="1" ry="1"/></g></g>',clock:'<g data-name="Layer 2"><g data-name="clock"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm4 11h-4a1 1 0 0 1-1-1V8a1 1 0 0 1 2 0v3h3a1 1 0 0 1 0 2z"/></g></g>',"close-circle":'<g data-name="Layer 2"><g data-name="close-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm2.71 11.29a1 1 0 0 1 0 1.42 1 1 0 0 1-1.42 0L12 13.41l-1.29 1.3a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.42l1.3-1.29-1.3-1.29a1 1 0 0 1 1.42-1.42l1.29 1.3 1.29-1.3a1 1 0 0 1 1.42 1.42L13.41 12z"/></g></g>',"close-square":'<g data-name="Layer 2"><g data-name="close-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm-3.29 10.29a1 1 0 0 1 0 1.42 1 1 0 0 1-1.42 0L12 13.41l-1.29 1.3a1 1 0 0 1-1.42 0 1 1 0 0 1 0-1.42l1.3-1.29-1.3-1.29a1 1 0 0 1 1.42-1.42l1.29 1.3 1.29-1.3a1 1 0 0 1 1.42 1.42L13.41 12z"/></g></g>',close:'<g data-name="Layer 2"><g data-name="close"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29-4.3 4.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4.29-4.3 4.29 4.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"cloud-download":'<g data-name="Layer 2"><g data-name="cloud-download"><rect width="24" height="24" opacity="0"/><path d="M21.9 11c0-.11-.06-.22-.09-.33a4.17 4.17 0 0 0-.18-.57c-.05-.12-.12-.24-.18-.37s-.15-.3-.24-.44S21 9.08 21 9s-.2-.25-.31-.37-.21-.2-.32-.3L20 8l-.36-.24a3.68 3.68 0 0 0-.44-.23l-.39-.18a4.13 4.13 0 0 0-.5-.15 3 3 0 0 0-.41-.09h-.18A6 6 0 0 0 6.33 7h-.18a3 3 0 0 0-.41.09 4.13 4.13 0 0 0-.5.15l-.39.18a3.68 3.68 0 0 0-.44.23L4.05 8l-.37.31c-.11.1-.22.19-.32.3s-.21.25-.31.37-.18.23-.26.36-.16.29-.24.44-.13.25-.18.37a4.17 4.17 0 0 0-.18.57c0 .11-.07.22-.09.33A5.23 5.23 0 0 0 2 12a5.5 5.5 0 0 0 .09.91c0 .1.05.19.07.29a5.58 5.58 0 0 0 .18.58l.12.29a5 5 0 0 0 .3.56l.14.22a.56.56 0 0 0 .05.08L3 15a5 5 0 0 0 4 2 2 2 0 0 1 .59-1.41A2 2 0 0 1 9 15a1.92 1.92 0 0 1 1 .27V12a2 2 0 0 1 4 0v3.37a2 2 0 0 1 1-.27 2.05 2.05 0 0 1 1.44.61A2 2 0 0 1 17 17a5 5 0 0 0 4-2l.05-.05a.56.56 0 0 0 .05-.08l.14-.22a5 5 0 0 0 .3-.56l.12-.29a5.58 5.58 0 0 0 .18-.58c0-.1.05-.19.07-.29A5.5 5.5 0 0 0 22 12a5.23 5.23 0 0 0-.1-1z"/><path d="M14.31 16.38L13 17.64V12a1 1 0 0 0-2 0v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 21a1 1 0 0 0 .69-.28l3-2.9a1 1 0 1 0-1.38-1.44z"/><rect width="24" height="24" opacity="0"/><path d="M21.9 11c0-.11-.06-.22-.09-.33a4.17 4.17 0 0 0-.18-.57c-.05-.12-.12-.24-.18-.37s-.15-.3-.24-.44S21 9.08 21 9s-.2-.25-.31-.37-.21-.2-.32-.3L20 8l-.36-.24a3.68 3.68 0 0 0-.44-.23l-.39-.18a4.13 4.13 0 0 0-.5-.15 3 3 0 0 0-.41-.09h-.18A6 6 0 0 0 6.33 7h-.18a3 3 0 0 0-.41.09 4.13 4.13 0 0 0-.5.15l-.39.18a3.68 3.68 0 0 0-.44.23L4.05 8l-.37.31c-.11.1-.22.19-.32.3s-.21.25-.31.37-.18.23-.26.36-.16.29-.24.44-.13.25-.18.37a4.17 4.17 0 0 0-.18.57c0 .11-.07.22-.09.33A5.23 5.23 0 0 0 2 12a5.5 5.5 0 0 0 .09.91c0 .1.05.19.07.29a5.58 5.58 0 0 0 .18.58l.12.29a5 5 0 0 0 .3.56l.14.22a.56.56 0 0 0 .05.08L3 15a5 5 0 0 0 4 2 2 2 0 0 1 .59-1.41A2 2 0 0 1 9 15a1.92 1.92 0 0 1 1 .27V12a2 2 0 0 1 4 0v3.37a2 2 0 0 1 1-.27 2.05 2.05 0 0 1 1.44.61A2 2 0 0 1 17 17a5 5 0 0 0 4-2l.05-.05a.56.56 0 0 0 .05-.08l.14-.22a5 5 0 0 0 .3-.56l.12-.29a5.58 5.58 0 0 0 .18-.58c0-.1.05-.19.07-.29A5.5 5.5 0 0 0 22 12a5.23 5.23 0 0 0-.1-1z"/><path d="M14.31 16.38L13 17.64V12a1 1 0 0 0-2 0v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 21a1 1 0 0 0 .69-.28l3-2.9a1 1 0 1 0-1.38-1.44z"/></g></g>',"cloud-upload":'<g data-name="Layer 2"><g data-name="cloud-upload"><rect width="24" height="24" opacity="0"/><path d="M21.9 12c0-.11-.06-.22-.09-.33a4.17 4.17 0 0 0-.18-.57c-.05-.12-.12-.24-.18-.37s-.15-.3-.24-.44S21 10.08 21 10s-.2-.25-.31-.37-.21-.2-.32-.3L20 9l-.36-.24a3.68 3.68 0 0 0-.44-.23l-.39-.18a4.13 4.13 0 0 0-.5-.15 3 3 0 0 0-.41-.09L17.67 8A6 6 0 0 0 6.33 8l-.18.05a3 3 0 0 0-.41.09 4.13 4.13 0 0 0-.5.15l-.39.18a3.68 3.68 0 0 0-.44.23l-.36.3-.37.31c-.11.1-.22.19-.32.3s-.21.25-.31.37-.18.23-.26.36-.16.29-.24.44-.13.25-.18.37a4.17 4.17 0 0 0-.18.57c0 .11-.07.22-.09.33A5.23 5.23 0 0 0 2 13a5.5 5.5 0 0 0 .09.91c0 .1.05.19.07.29a5.58 5.58 0 0 0 .18.58l.12.29a5 5 0 0 0 .3.56l.14.22a.56.56 0 0 0 .05.08L3 16a5 5 0 0 0 4 2h3v-1.37a2 2 0 0 1-1 .27 2.05 2.05 0 0 1-1.44-.61 2 2 0 0 1 .05-2.83l3-2.9A2 2 0 0 1 12 10a2 2 0 0 1 1.41.59l3 3a2 2 0 0 1 0 2.82A2 2 0 0 1 15 17a1.92 1.92 0 0 1-1-.27V18h3a5 5 0 0 0 4-2l.05-.05a.56.56 0 0 0 .05-.08l.14-.22a5 5 0 0 0 .3-.56l.12-.29a5.58 5.58 0 0 0 .18-.58c0-.1.05-.19.07-.29A5.5 5.5 0 0 0 22 13a5.23 5.23 0 0 0-.1-1z"/><path d="M12.71 11.29a1 1 0 0 0-1.4 0l-3 2.9a1 1 0 1 0 1.38 1.44L11 14.36V20a1 1 0 0 0 2 0v-5.59l1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"code-download":'<g data-name="Layer 2"><g data-name="code-download"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M4.29 12l4.48-5.36a1 1 0 1 0-1.54-1.28l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63z"/><path d="M21.78 11.37l-4.78-6a1 1 0 0 0-1.56 1.26L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/><path d="M15.72 11.41a1 1 0 0 0-1.41 0L13 12.64V8a1 1 0 0 0-2 0v4.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .69-.28l3-2.9a1 1 0 0 0 .03-1.41z"/></g></g>',code:'<g data-name="Layer 2"><g data-name="code"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M8.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L4.29 12l4.48-5.36a1 1 0 0 0-.13-1.41z"/><path d="M21.78 11.37l-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/></g></g>',collapse:'<g data-name="Layer 2"><g data-name="collapse"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 9h-2.58l3.29-3.29a1 1 0 1 0-1.42-1.42L15 7.57V5a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2z"/><path d="M10 13H5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L9 16.42V19a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1z"/></g></g>',"color-palette":'<g data-name="Layer 2"><g data-name="color-palette"><rect width="24" height="24" opacity="0"/><path d="M19.54 5.08A10.61 10.61 0 0 0 11.91 2a10 10 0 0 0-.05 20 2.58 2.58 0 0 0 2.53-1.89 2.52 2.52 0 0 0-.57-2.28.5.5 0 0 1 .37-.83h1.65A6.15 6.15 0 0 0 22 11.33a8.48 8.48 0 0 0-2.46-6.25zm-12.7 9.66a1.5 1.5 0 1 1 .4-2.08 1.49 1.49 0 0 1-.4 2.08zM8.3 9.25a1.5 1.5 0 1 1-.55-2 1.5 1.5 0 0 1 .55 2zM11 7a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 11 7zm5.75.8a1.5 1.5 0 1 1 .55-2 1.5 1.5 0 0 1-.55 2z"/></g></g>',"color-picker":'<g data-name="Layer 2"><g data-name="color-picker"><rect width="24" height="24" opacity="0"/><path d="M19.4 7.34L16.66 4.6A1.92 1.92 0 0 0 14 4.53l-2 2-1.29-1.24a1 1 0 0 0-1.42 1.42L10.53 8 5 13.53a2 2 0 0 0-.57 1.21L4 18.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 20h.09l4.17-.38a2 2 0 0 0 1.21-.57l5.58-5.58 1.24 1.24a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42l-1.24-1.24 2-2a1.92 1.92 0 0 0-.07-2.71zm-13 7.6L12 9.36l2.69 2.7-2.79 2.79"/></g></g>',compass:'<g data-name="Layer 2"><g data-name="compass"><rect width="24" height="24" opacity="0"/><polygon points="10.8 13.21 12.49 12.53 13.2 10.79 11.51 11.47 10.8 13.21"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm3.93 7.42l-1.75 4.26a1 1 0 0 1-.55.55l-4.21 1.7A1 1 0 0 1 9 16a1 1 0 0 1-.71-.31h-.05a1 1 0 0 1-.18-1l1.75-4.26a1 1 0 0 1 .55-.55l4.21-1.7a1 1 0 0 1 1.1.25 1 1 0 0 1 .26.99z"/></g></g>',copy:'<g data-name="Layer 2"><g data-name="copy"><rect width="24" height="24" opacity="0"/><path d="M18 9h-3V5.67A2.68 2.68 0 0 0 12.33 3H5.67A2.68 2.68 0 0 0 3 5.67v6.66A2.68 2.68 0 0 0 5.67 15H9v3a3 3 0 0 0 3 3h6a3 3 0 0 0 3-3v-6a3 3 0 0 0-3-3zm-9 3v1H5.67a.67.67 0 0 1-.67-.67V5.67A.67.67 0 0 1 5.67 5h6.66a.67.67 0 0 1 .67.67V9h-1a3 3 0 0 0-3 3z"/></g></g>',"corner-down-left":'<g data-name="Layer 2"><g data-name="corner-down-left"><rect x=".05" y=".05" width="24" height="24" transform="rotate(-89.76 12.05 12.05)" opacity="0"/><path d="M20 6a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 1-.29.71A1 1 0 0 1 17 12H8.08l2.69-3.39a1 1 0 0 0-1.52-1.17l-4 5a1 1 0 0 0 0 1.25l4 5a1 1 0 0 0 .78.37 1 1 0 0 0 .62-.22 1 1 0 0 0 .15-1.41l-2.66-3.36h8.92a3 3 0 0 0 3-3z"/></g></g>',"corner-down-right":'<g data-name="Layer 2"><g data-name="corner-down-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19.78 12.38l-4-5a1 1 0 0 0-1.56 1.24l2.7 3.38H8a1 1 0 0 1-1-1V6a1 1 0 0 0-2 0v5a3 3 0 0 0 3 3h8.92l-2.7 3.38a1 1 0 0 0 .16 1.4A1 1 0 0 0 15 19a1 1 0 0 0 .78-.38l4-5a1 1 0 0 0 0-1.24z"/></g></g>',"corner-left-down":'<g data-name="Layer 2"><g data-name="corner-left-down"><rect width="24" height="24" opacity="0"/><path d="M18 5h-5a3 3 0 0 0-3 3v8.92l-3.38-2.7a1 1 0 0 0-1.24 1.56l5 4a1 1 0 0 0 1.24 0l5-4a1 1 0 1 0-1.24-1.56L12 16.92V8a1 1 0 0 1 1-1h5a1 1 0 0 0 0-2z"/></g></g>',"corner-left-up":'<g data-name="Layer 2"><g data-name="corner-left-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 17h-5a1 1 0 0 1-1-1V7.08l3.38 2.7A1 1 0 0 0 16 10a1 1 0 0 0 .78-.38 1 1 0 0 0-.16-1.4l-5-4a1 1 0 0 0-1.24 0l-5 4a1 1 0 0 0 1.24 1.56L10 7.08V16a3 3 0 0 0 3 3h5a1 1 0 0 0 0-2z"/></g></g>',"corner-right-down":'<g data-name="Layer 2"><g data-name="corner-right-down"><rect width="24" height="24" opacity="0"/><path d="M18.78 14.38a1 1 0 0 0-1.4-.16L14 16.92V8a3 3 0 0 0-3-3H6a1 1 0 0 0 0 2h5a1 1 0 0 1 1 1v8.92l-3.38-2.7a1 1 0 0 0-1.24 1.56l5 4a1 1 0 0 0 1.24 0l5-4a1 1 0 0 0 .16-1.4z"/></g></g>',"corner-right-up":'<g data-name="Layer 2"><g data-name="corner-right-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.62 8.22l-5-4a1 1 0 0 0-1.24 0l-5 4a1 1 0 0 0 1.24 1.56L12 7.08V16a1 1 0 0 1-1 1H6a1 1 0 0 0 0 2h5a3 3 0 0 0 3-3V7.08l3.38 2.7A1 1 0 0 0 18 10a1 1 0 0 0 .78-.38 1 1 0 0 0-.16-1.4z"/></g></g>',"corner-up-left":'<g data-name="Layer 2"><g data-name="corner-up-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M16 10H7.08l2.7-3.38a1 1 0 1 0-1.56-1.24l-4 5a1 1 0 0 0 0 1.24l4 5A1 1 0 0 0 9 17a1 1 0 0 0 .62-.22 1 1 0 0 0 .16-1.4L7.08 12H16a1 1 0 0 1 1 1v5a1 1 0 0 0 2 0v-5a3 3 0 0 0-3-3z"/></g></g>',"corner-up-right":'<g data-name="Layer 2"><g data-name="corner-up-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19.78 10.38l-4-5a1 1 0 0 0-1.56 1.24l2.7 3.38H8a3 3 0 0 0-3 3v5a1 1 0 0 0 2 0v-5a1 1 0 0 1 1-1h8.92l-2.7 3.38a1 1 0 0 0 .16 1.4A1 1 0 0 0 15 17a1 1 0 0 0 .78-.38l4-5a1 1 0 0 0 0-1.24z"/></g></g>',"credit-card":'<g data-name="Layer 2"><g data-name="credit-card"><rect width="24" height="24" opacity="0"/><path d="M19 5H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3zm-8 10H7a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zm6 0h-2a1 1 0 0 1 0-2h2a1 1 0 0 1 0 2zm3-6H4V8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"/></g></g>',crop:'<g data-name="Layer 2"><g data-name="crop"><rect width="24" height="24" opacity="0"/><path d="M21 16h-3V8.56A2.56 2.56 0 0 0 15.44 6H8V3a1 1 0 0 0-2 0v3H3a1 1 0 0 0 0 2h3v7.44A2.56 2.56 0 0 0 8.56 18H16v3a1 1 0 0 0 2 0v-3h3a1 1 0 0 0 0-2zM8.56 16a.56.56 0 0 1-.56-.56V8h7.44a.56.56 0 0 1 .56.56V16z"/></g></g>',cube:'<g data-name="Layer 2"><g data-name="cube"><rect width="24" height="24" opacity="0"/><path d="M11.25 11.83L3 8.36v7.73a1.69 1.69 0 0 0 1 1.52L11.19 21h.06z"/><path d="M12 10.5l8.51-3.57a1.62 1.62 0 0 0-.51-.38l-7.2-3.37a1.87 1.87 0 0 0-1.6 0L4 6.55a1.62 1.62 0 0 0-.51.38z"/><path d="M12.75 11.83V21h.05l7.2-3.39a1.69 1.69 0 0 0 1-1.51V8.36z"/></g></g>',"diagonal-arrow-left-down":'<g data-name="Layer 2"><g data-name="diagonal-arrow-left-down"><rect width="24" height="24" opacity="0"/><path d="M17.71 6.29a1 1 0 0 0-1.42 0L8 14.59V9a1 1 0 0 0-2 0v8a1 1 0 0 0 1 1h8a1 1 0 0 0 0-2H9.41l8.3-8.29a1 1 0 0 0 0-1.42z"/></g></g>',"diagonal-arrow-left-up":'<g data-name="Layer 2"><g data-name="diagonal-arrow-left-up"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17.71 16.29L9.42 8H15a1 1 0 0 0 0-2H7.05a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1H7a1 1 0 0 0 1-1V9.45l8.26 8.26a1 1 0 0 0 1.42 0 1 1 0 0 0 .03-1.42z"/></g></g>',"diagonal-arrow-right-down":'<g data-name="Layer 2"><g data-name="diagonal-arrow-right-down"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M17 8a1 1 0 0 0-1 1v5.59l-8.29-8.3a1 1 0 0 0-1.42 1.42l8.3 8.29H9a1 1 0 0 0 0 2h8a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1z"/></g></g>',"diagonal-arrow-right-up":'<g data-name="Layer 2"><g data-name="diagonal-arrow-right-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 7.05a1 1 0 0 0-1-1L9 6a1 1 0 0 0 0 2h5.56l-8.27 8.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L16 9.42V15a1 1 0 0 0 1 1 1 1 0 0 0 1-1z"/></g></g>',"done-all":'<g data-name="Layer 2"><g data-name="done-all"><rect width="24" height="24" opacity="0"/><path d="M16.62 6.21a1 1 0 0 0-1.41.17l-7 9-3.43-4.18a1 1 0 1 0-1.56 1.25l4.17 5.18a1 1 0 0 0 .78.37 1 1 0 0 0 .83-.38l7.83-10a1 1 0 0 0-.21-1.41z"/><path d="M21.62 6.21a1 1 0 0 0-1.41.17l-7 9-.61-.75-1.26 1.62 1.1 1.37a1 1 0 0 0 .78.37 1 1 0 0 0 .78-.38l7.83-10a1 1 0 0 0-.21-1.4z"/><path d="M8.71 13.06L10 11.44l-.2-.24a1 1 0 0 0-1.43-.2 1 1 0 0 0-.15 1.41z"/></g></g>',download:'<g data-name="Layer 2"><g data-name="download"><rect width="24" height="24" opacity="0"/><rect x="4" y="18" width="16" height="2" rx="1" ry="1"/><rect x="3" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 5 18)"/><rect x="17" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 19 18)"/><path d="M12 15a1 1 0 0 1-.58-.18l-4-2.82a1 1 0 0 1-.24-1.39 1 1 0 0 1 1.4-.24L12 12.76l3.4-2.56a1 1 0 0 1 1.2 1.6l-4 3a1 1 0 0 1-.6.2z"/><path d="M12 13a1 1 0 0 1-1-1V4a1 1 0 0 1 2 0v8a1 1 0 0 1-1 1z"/></g></g>',"droplet-off":'<g data-name="Layer 2"><g data-name="droplet-off"><rect width="24" height="24" opacity="0"/><path d="M19 16.14A7.73 7.73 0 0 0 17.34 8l-4.56-4.69a1 1 0 0 0-.71-.31 1 1 0 0 0-.72.3L8.74 5.92z"/><path d="M6 8.82a7.73 7.73 0 0 0 .64 9.9A7.44 7.44 0 0 0 11.92 21a7.34 7.34 0 0 0 4.64-1.6z"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',droplet:'<g data-name="Layer 2"><g data-name="droplet"><rect x=".1" y=".1" width="24" height="24" transform="rotate(.48 11.987 11.887)" opacity="0"/><path d="M12 21.1a7.4 7.4 0 0 1-5.28-2.28 7.73 7.73 0 0 1 .1-10.77l4.64-4.65a.94.94 0 0 1 .71-.3 1 1 0 0 1 .71.31l4.56 4.72a7.73 7.73 0 0 1-.09 10.77A7.33 7.33 0 0 1 12 21.1z"/></g></g>',"edit-2":'<g data-name="Layer 2"><g data-name="edit-2"><rect width="24" height="24" opacity="0"/><path d="M19 20H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2z"/><path d="M5 18h.09l4.17-.38a2 2 0 0 0 1.21-.57l9-9a1.92 1.92 0 0 0-.07-2.71L16.66 2.6A2 2 0 0 0 14 2.53l-9 9a2 2 0 0 0-.57 1.21L4 16.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 18zM15.27 4L18 6.73l-2 1.95L13.32 6z"/></g></g>',edit:'<g data-name="Layer 2"><g data-name="edit"><rect width="24" height="24" opacity="0"/><path d="M19.4 7.34L16.66 4.6A2 2 0 0 0 14 4.53l-9 9a2 2 0 0 0-.57 1.21L4 18.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 20h.09l4.17-.38a2 2 0 0 0 1.21-.57l9-9a1.92 1.92 0 0 0-.07-2.71zM16 10.68L13.32 8l1.95-2L18 8.73z"/></g></g>',email:'<g data-name="Layer 2"><g data-name="email"><rect width="24" height="24" opacity="0"/><path d="M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm0 2l-6.5 4.47a1 1 0 0 1-1 0L5 6z"/></g></g>',expand:'<g data-name="Layer 2"><g data-name="expand"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 5a1 1 0 0 0-1-1h-5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L18 7.42V10a1 1 0 0 0 1 1 1 1 0 0 0 1-1z"/><path d="M10.71 13.29a1 1 0 0 0-1.42 0L6 16.57V14a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2H7.42l3.29-3.29a1 1 0 0 0 0-1.42z"/></g></g>',"external-link":'<g data-name="Layer 2"><g data-name="external-link"><rect width="24" height="24" opacity="0"/><path d="M20 11a1 1 0 0 0-1 1v6a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h6a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1z"/><path d="M16 5h1.58l-6.29 6.28a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L19 6.42V8a1 1 0 0 0 1 1 1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-4a1 1 0 0 0 0 2z"/></g></g>',"eye-off-2":'<g data-name="Layer 2"><g data-name="eye-off-2"><rect width="24" height="24" opacity="0"/><path d="M17.81 13.39A8.93 8.93 0 0 0 21 7.62a1 1 0 1 0-2-.24 7.07 7.07 0 0 1-14 0 1 1 0 1 0-2 .24 8.93 8.93 0 0 0 3.18 5.77l-2.3 2.32a1 1 0 0 0 1.41 1.41l2.61-2.6a9.06 9.06 0 0 0 3.1.92V19a1 1 0 0 0 2 0v-3.56a9.06 9.06 0 0 0 3.1-.92l2.61 2.6a1 1 0 0 0 1.41-1.41z"/></g></g>',"eye-off":'<g data-name="Layer 2"><g data-name="eye-off"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="12" r="1.5"/><path d="M15.29 18.12L14 16.78l-.07-.07-1.27-1.27a4.07 4.07 0 0 1-.61.06A3.5 3.5 0 0 1 8.5 12a4.07 4.07 0 0 1 .06-.61l-2-2L5 7.87a15.89 15.89 0 0 0-2.87 3.63 1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25a9.48 9.48 0 0 0 3.23-.67z"/><path d="M8.59 5.76l2.8 2.8A4.07 4.07 0 0 1 12 8.5a3.5 3.5 0 0 1 3.5 3.5 4.07 4.07 0 0 1-.06.61l2.68 2.68.84.84a15.89 15.89 0 0 0 2.91-3.63 1 1 0 0 0 0-1c-.64-1.11-4.16-6.68-10.14-6.5a9.48 9.48 0 0 0-3.23.67z"/><path d="M20.71 19.29L19.41 18l-2-2-9.52-9.53L6.42 5 4.71 3.29a1 1 0 0 0-1.42 1.42L5.53 7l1.75 1.7 7.31 7.3.07.07L16 17.41l.59.59 2.7 2.71a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',eye:'<g data-name="Layer 2"><g data-name="eye"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="12" r="1.5"/><path d="M21.87 11.5c-.64-1.11-4.16-6.68-10.14-6.5-5.53.14-8.73 5-9.6 6.5a1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25c5.53-.14 8.74-5 9.6-6.5a1 1 0 0 0 0-1zm-9.87 4a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5z"/></g></g>',facebook:'<g data-name="Layer 2"><g data-name="facebook"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M17 3.5a.5.5 0 0 0-.5-.5H14a4.77 4.77 0 0 0-5 4.5v2.7H6.5a.5.5 0 0 0-.5.5v2.6a.5.5 0 0 0 .5.5H9v6.7a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-6.7h2.62a.5.5 0 0 0 .49-.37l.72-2.6a.5.5 0 0 0-.48-.63H13V7.5a1 1 0 0 1 1-.9h2.5a.5.5 0 0 0 .5-.5z"/></g></g>',"file-add":'<g data-name="Layer 2"><g data-name="file-add"><rect width="24" height="24" opacity="0"/><path d="M19.74 7.33l-4.44-5a1 1 0 0 0-.74-.33h-8A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V8a1 1 0 0 0-.26-.67zM14 15h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 0v1h1a1 1 0 0 1 0 2zm.71-7a.79.79 0 0 1-.71-.85V4l3.74 4z"/></g></g>',"file-remove":'<g data-name="Layer 2"><g data-name="file-remove"><rect width="24" height="24" opacity="0"/><path d="M19.74 7.33l-4.44-5a1 1 0 0 0-.74-.33h-8A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V8a1 1 0 0 0-.26-.67zM14 15h-4a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zm.71-7a.79.79 0 0 1-.71-.85V4l3.74 4z"/></g></g>',"file-text":'<g data-name="Layer 2"><g data-name="file-text"><rect width="24" height="24" opacity="0"/><path d="M19.74 7.33l-4.44-5a1 1 0 0 0-.74-.33h-8A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V8a1 1 0 0 0-.26-.67zM9 12h3a1 1 0 0 1 0 2H9a1 1 0 0 1 0-2zm6 6H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2zm-.29-10a.79.79 0 0 1-.71-.85V4l3.74 4z"/></g></g>',file:'<g data-name="Layer 2"><g data-name="file"><rect width="24" height="24" opacity="0"/><path d="M19.74 7.33l-4.44-5a1 1 0 0 0-.74-.33h-8A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V8a1 1 0 0 0-.26-.67zM14 4l3.74 4h-3a.79.79 0 0 1-.74-.85z"/></g></g>',film:'<g data-name="Layer 2"><g data-name="film"><rect width="24" height="24" opacity="0"/><path d="M18.26 3H5.74A2.74 2.74 0 0 0 3 5.74v12.52A2.74 2.74 0 0 0 5.74 21h12.52A2.74 2.74 0 0 0 21 18.26V5.74A2.74 2.74 0 0 0 18.26 3zM7 11H5V9h2zm-2 2h2v2H5zm14-2h-2V9h2zm-2 2h2v2h-2zm2-7.26V7h-2V5h1.26a.74.74 0 0 1 .74.74zM5.74 5H7v2H5V5.74A.74.74 0 0 1 5.74 5zM5 18.26V17h2v2H5.74a.74.74 0 0 1-.74-.74zm14 0a.74.74 0 0 1-.74.74H17v-2h2z"/></g></g>',flag:'<g data-name="Layer 2"><g data-name="flag"><polyline points="24 24 0 24 0 0" opacity="0"/><path d="M19.27 4.68a1.79 1.79 0 0 0-1.6-.25 7.53 7.53 0 0 1-2.17.28 8.54 8.54 0 0 1-3.13-.78A10.15 10.15 0 0 0 8.5 3c-2.89 0-4 1-4.2 1.14a1 1 0 0 0-.3.72V20a1 1 0 0 0 2 0v-4.3a6.28 6.28 0 0 1 2.5-.41 8.54 8.54 0 0 1 3.13.78 10.15 10.15 0 0 0 3.87.93 7.66 7.66 0 0 0 3.5-.7 1.74 1.74 0 0 0 1-1.55V6.11a1.77 1.77 0 0 0-.73-1.43z"/></g></g>',"flash-off":'<g data-name="Layer 2"><g data-name="flash-off"><rect width="24" height="24" opacity="0"/><path d="M17.33 14.5l2.5-3.74A1 1 0 0 0 19 9.2h-5.89l.77-7.09a1 1 0 0 0-.65-1 1 1 0 0 0-1.17.38L8.94 6.11z"/><path d="M6.67 9.5l-2.5 3.74A1 1 0 0 0 5 14.8h5.89l-.77 7.09a1 1 0 0 0 .65 1.05 1 1 0 0 0 .34.06 1 1 0 0 0 .83-.44l3.12-4.67z"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',flash:'<g data-name="Layer 2"><g data-name="flash"><rect width="24" height="24" opacity="0"/><path d="M11.11 23a1 1 0 0 1-.34-.06 1 1 0 0 1-.65-1.05l.77-7.09H5a1 1 0 0 1-.83-1.56l7.89-11.8a1 1 0 0 1 1.17-.38 1 1 0 0 1 .65 1l-.77 7.14H19a1 1 0 0 1 .83 1.56l-7.89 11.8a1 1 0 0 1-.83.44z"/></g></g>',"flip-2":'<g data-name="Layer 2"><g data-name="flip-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M6.09 19h12l-1.3 1.29a1 1 0 0 0 1.42 1.42l3-3a1 1 0 0 0 0-1.42l-3-3a1 1 0 0 0-1.42 0 1 1 0 0 0 0 1.42l1.3 1.29h-12a1.56 1.56 0 0 1-1.59-1.53V13a1 1 0 0 0-2 0v2.47A3.56 3.56 0 0 0 6.09 19z"/><path d="M5.79 9.71a1 1 0 1 0 1.42-1.42L5.91 7h12a1.56 1.56 0 0 1 1.59 1.53V11a1 1 0 0 0 2 0V8.53A3.56 3.56 0 0 0 17.91 5h-12l1.3-1.29a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-3 3a1 1 0 0 0 0 1.42z"/></g></g>',flip:'<g data-name="Layer 2"><g data-name="flip-in"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M5 6.09v12l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3a1 1 0 0 0 1.42 0l3-3a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0L7 18.09v-12A1.56 1.56 0 0 1 8.53 4.5H11a1 1 0 0 0 0-2H8.53A3.56 3.56 0 0 0 5 6.09z"/><path d="M14.29 5.79a1 1 0 0 0 1.42 1.42L17 5.91v12a1.56 1.56 0 0 1-1.53 1.59H13a1 1 0 0 0 0 2h2.47A3.56 3.56 0 0 0 19 17.91v-12l1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42l-3-3a1 1 0 0 0-1.42 0z"/></g></g>',"folder-add":'<g data-name="Layer 2"><g data-name="folder-add"><rect width="24" height="24" opacity="0"/><path d="M19.5 7.05h-7L9.87 3.87a1 1 0 0 0-.77-.37H4.5A2.47 2.47 0 0 0 2 5.93v12.14a2.47 2.47 0 0 0 2.5 2.43h15a2.47 2.47 0 0 0 2.5-2.43V9.48a2.47 2.47 0 0 0-2.5-2.43zM14 15h-1v1a1 1 0 0 1-2 0v-1h-1a1 1 0 0 1 0-2h1v-1a1 1 0 0 1 2 0v1h1a1 1 0 0 1 0 2z"/></g></g>',"folder-remove":'<g data-name="Layer 2"><g data-name="folder-remove"><rect width="24" height="24" opacity="0"/><path d="M19.5 7.05h-7L9.87 3.87a1 1 0 0 0-.77-.37H4.5A2.47 2.47 0 0 0 2 5.93v12.14a2.47 2.47 0 0 0 2.5 2.43h15a2.47 2.47 0 0 0 2.5-2.43V9.48a2.47 2.47 0 0 0-2.5-2.43zM14 15h-4a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"/></g></g>',folder:'<g data-name="Layer 2"><g data-name="folder"><rect width="24" height="24" opacity="0"/><path d="M19.5 20.5h-15A2.47 2.47 0 0 1 2 18.07V5.93A2.47 2.47 0 0 1 4.5 3.5h4.6a1 1 0 0 1 .77.37l2.6 3.18h7A2.47 2.47 0 0 1 22 9.48v8.59a2.47 2.47 0 0 1-2.5 2.43z"/></g></g>',funnel:'<g data-name="Layer 2"><g data-name="funnel"><rect width="24" height="24" opacity="0"/><path d="M13.9 22a1 1 0 0 1-.6-.2l-4-3.05a1 1 0 0 1-.39-.8v-3.27l-4.8-9.22A1 1 0 0 1 5 4h14a1 1 0 0 1 .86.49 1 1 0 0 1 0 1l-5 9.21V21a1 1 0 0 1-.55.9 1 1 0 0 1-.41.1z"/></g></g>',gift:'<g data-name="Layer 2"><g data-name="gift"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M4.64 15.27v4.82a.92.92 0 0 0 .92.91h5.62v-5.73z"/><path d="M12.82 21h5.62a.92.92 0 0 0 .92-.91v-4.82h-6.54z"/><path d="M20.1 7.09h-1.84a2.82 2.82 0 0 0 .29-1.23A2.87 2.87 0 0 0 15.68 3 4.21 4.21 0 0 0 12 5.57 4.21 4.21 0 0 0 8.32 3a2.87 2.87 0 0 0-2.87 2.86 2.82 2.82 0 0 0 .29 1.23H3.9c-.5 0-.9.59-.9 1.31v3.93c0 .72.4 1.31.9 1.31h7.28V7.09h1.64v6.55h7.28c.5 0 .9-.59.9-1.31V8.4c0-.72-.4-1.31-.9-1.31zm-11.78 0a1.23 1.23 0 1 1 0-2.45c1.4 0 2.19 1.44 2.58 2.45zm7.36 0H13.1c.39-1 1.18-2.45 2.58-2.45a1.23 1.23 0 1 1 0 2.45z"/></g></g>',github:'<g data-name="Layer 2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 1A10.89 10.89 0 0 0 1 11.77 10.79 10.79 0 0 0 8.52 22c.55.1.75-.23.75-.52v-1.83c-3.06.65-3.71-1.44-3.71-1.44a2.86 2.86 0 0 0-1.22-1.58c-1-.66.08-.65.08-.65a2.31 2.31 0 0 1 1.68 1.11 2.37 2.37 0 0 0 3.2.89 2.33 2.33 0 0 1 .7-1.44c-2.44-.27-5-1.19-5-5.32a4.15 4.15 0 0 1 1.11-2.91 3.78 3.78 0 0 1 .11-2.84s.93-.29 3 1.1a10.68 10.68 0 0 1 5.5 0c2.1-1.39 3-1.1 3-1.1a3.78 3.78 0 0 1 .11 2.84A4.15 4.15 0 0 1 19 11.2c0 4.14-2.58 5.05-5 5.32a2.5 2.5 0 0 1 .75 2v2.95c0 .35.2.63.75.52A10.8 10.8 0 0 0 23 11.77 10.89 10.89 0 0 0 12 1" data-name="github"/></g>',"globe-2":'<g data-name="Layer 2"><g data-name="globe-2"><rect width="24" height="24" opacity="0"/><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 2a8.19 8.19 0 0 1 1.79.21 2.61 2.61 0 0 1-.78 1c-.22.17-.46.31-.7.46a4.56 4.56 0 0 0-1.85 1.67 6.49 6.49 0 0 0-.62 3.3c0 1.36 0 2.16-.95 2.87-1.37 1.07-3.46.47-4.76-.07A8.33 8.33 0 0 1 4 12a8 8 0 0 1 8-8zm4.89 14.32a6.79 6.79 0 0 0-.63-1.14c-.11-.16-.22-.32-.32-.49-.39-.68-.25-1 .38-2l.1-.17a4.77 4.77 0 0 0 .58-2.43 5.42 5.42 0 0 1 .09-1c.16-.73 1.71-.93 2.67-1a7.94 7.94 0 0 1-2.86 8.28z"/></g></g>',"globe-3":'<g data-name="Layer 2"><g data-name="globe-3"><rect width="24" height="24" opacity="0"/><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zM5 15.8a8.42 8.42 0 0 0 2 .27 5 5 0 0 0 3.14-1c1.71-1.34 1.71-3.06 1.71-4.44a4.76 4.76 0 0 1 .37-2.34 2.86 2.86 0 0 1 1.12-.91 9.75 9.75 0 0 0 .92-.61 4.55 4.55 0 0 0 1.4-1.87A8 8 0 0 1 19 8.12c-1.43.2-3.46.67-3.86 2.53A7 7 0 0 0 15 12a2.93 2.93 0 0 1-.29 1.47l-.1.17c-.65 1.08-1.38 2.31-.39 4 .12.21.25.41.38.61a2.29 2.29 0 0 1 .52 1.08A7.89 7.89 0 0 1 12 20a8 8 0 0 1-7-4.2z"/></g></g>',globe:'<g data-name="Layer 2"><g data-name="globe"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M22 12A10 10 0 0 0 12 2a10 10 0 0 0 0 20 10 10 0 0 0 10-10zm-2.07-1H17a12.91 12.91 0 0 0-2.33-6.54A8 8 0 0 1 19.93 11zM9.08 13H15a11.44 11.44 0 0 1-3 6.61A11 11 0 0 1 9.08 13zm0-2A11.4 11.4 0 0 1 12 4.4a11.19 11.19 0 0 1 3 6.6zm.36-6.57A13.18 13.18 0 0 0 7.07 11h-3a8 8 0 0 1 5.37-6.57zM4.07 13h3a12.86 12.86 0 0 0 2.35 6.56A8 8 0 0 1 4.07 13zm10.55 6.55A13.14 13.14 0 0 0 17 13h2.95a8 8 0 0 1-5.33 6.55z"/></g></g>',google:'<g data-name="Layer 2"><g data-name="google"><polyline points="0 0 24 0 24 24 0 24" opacity="0"/><path d="M17.5 14a5.51 5.51 0 0 1-4.5 3.93 6.15 6.15 0 0 1-7-5.45A6 6 0 0 1 12 6a6.12 6.12 0 0 1 2.27.44.5.5 0 0 0 .64-.21l1.44-2.65a.52.52 0 0 0-.23-.7A10 10 0 0 0 2 12.29 10.12 10.12 0 0 0 11.57 22 10 10 0 0 0 22 12.52v-2a.51.51 0 0 0-.5-.5h-9a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h5"/></g></g>',grid:'<g data-name="Layer 2"><g data-name="grid"><rect width="24" height="24" opacity="0"/><path d="M9 3H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z"/><path d="M19 3h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2z"/><path d="M9 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2z"/><path d="M19 13h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2z"/></g></g>',"hard-drive":'<g data-name="Layer 2"><g data-name="hard-drive"><rect width="24" height="24" opacity="0"/><path d="M20.79 11.34l-3.34-6.68A3 3 0 0 0 14.76 3H9.24a3 3 0 0 0-2.69 1.66l-3.34 6.68a2 2 0 0 0-.21.9V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-5.76a2 2 0 0 0-.21-.9zM8 17a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm8 0h-4a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2zM5.62 11l2.72-5.45a1 1 0 0 1 .9-.55h5.52a1 1 0 0 1 .9.55L18.38 11z"/></g></g>',hash:'<g data-name="Layer 2"><g data-name="hash"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 14h-4.3l.73-4H20a1 1 0 0 0 0-2h-3.21l.69-3.81A1 1 0 0 0 16.64 3a1 1 0 0 0-1.22.82L14.67 8h-3.88l.69-3.81A1 1 0 0 0 10.64 3a1 1 0 0 0-1.22.82L8.67 8H4a1 1 0 0 0 0 2h4.3l-.73 4H4a1 1 0 0 0 0 2h3.21l-.69 3.81A1 1 0 0 0 7.36 21a1 1 0 0 0 1.22-.82L9.33 16h3.88l-.69 3.81a1 1 0 0 0 .84 1.19 1 1 0 0 0 1.22-.82l.75-4.18H20a1 1 0 0 0 0-2zM9.7 14l.73-4h3.87l-.73 4z"/></g></g>',headphones:'<g data-name="Layer 2"><g data-name="headphones"><rect width="24" height="24" opacity="0"/><path d="M12 2A10.2 10.2 0 0 0 2 12.37V17a4 4 0 1 0 4-4 3.91 3.91 0 0 0-2 .56v-1.19A8.2 8.2 0 0 1 12 4a8.2 8.2 0 0 1 8 8.37v1.19a3.91 3.91 0 0 0-2-.56 4 4 0 1 0 4 4v-4.63A10.2 10.2 0 0 0 12 2z"/></g></g>',heart:'<g data-name="Layer 2"><g data-name="heart"><rect width="24" height="24" opacity="0"/><path d="M12 21a1 1 0 0 1-.71-.29l-7.77-7.78a5.26 5.26 0 0 1 0-7.4 5.24 5.24 0 0 1 7.4 0L12 6.61l1.08-1.08a5.24 5.24 0 0 1 7.4 0 5.26 5.26 0 0 1 0 7.4l-7.77 7.78A1 1 0 0 1 12 21z"/></g></g>',home:'<g data-name="Layer 2"><g data-name="home"><rect width="24" height="24" opacity="0"/><rect x="10" y="14" width="4" height="7"/><path d="M20.42 10.18L12.71 2.3a1 1 0 0 0-1.42 0l-7.71 7.89A2 2 0 0 0 3 11.62V20a2 2 0 0 0 1.89 2H8v-9a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v9h3.11A2 2 0 0 0 21 20v-8.38a2.07 2.07 0 0 0-.58-1.44z"/></g></g>',"image-2":'<g data-name="Layer 2"><g data-name="image-2"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM8 7a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 8 7zm11 10.83A1.09 1.09 0 0 1 18 19H6l7.57-6.82a.69.69 0 0 1 .93 0l4.5 4.48z"/></g></g>',image:'<g data-name="Layer 2"><g data-name="image"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM6 5h12a1 1 0 0 1 1 1v8.36l-3.2-2.73a2.77 2.77 0 0 0-3.52 0L5 17.7V6a1 1 0 0 1 1-1z"/><circle cx="8" cy="8.5" r="1.5"/></g></g>',inbox:'<g data-name="Layer 2"><g data-name="inbox"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.79 11.34l-3.34-6.68A3 3 0 0 0 14.76 3H9.24a3 3 0 0 0-2.69 1.66l-3.34 6.68a2 2 0 0 0-.21.9V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-5.76a2 2 0 0 0-.21-.9zM8.34 5.55a1 1 0 0 1 .9-.55h5.52a1 1 0 0 1 .9.55L18.38 11H16a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1v-2a1 1 0 0 0-1-1H5.62z"/></g></g>',info:'<g data-name="Layer 2"><g data-name="info"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm1 14a1 1 0 0 1-2 0v-5a1 1 0 0 1 2 0zm-1-7a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',keypad:'<g data-name="Layer 2"><g data-name="keypad"><rect width="24" height="24" opacity="0"/><path d="M5 2a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M12 2a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M19 8a3 3 0 1 0-3-3 3 3 0 0 0 3 3z"/><path d="M5 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M12 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M19 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M5 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M12 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/><path d="M19 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3z"/></g></g>',layers:'<g data-name="Layer 2"><g data-name="layers"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M3.24 7.29l8.52 4.63a.51.51 0 0 0 .48 0l8.52-4.63a.44.44 0 0 0-.05-.81L12.19 3a.5.5 0 0 0-.38 0L3.29 6.48a.44.44 0 0 0-.05.81z"/><path d="M20.71 10.66l-1.83-.78-6.64 3.61a.51.51 0 0 1-.48 0L5.12 9.88l-1.83.78a.48.48 0 0 0 0 .85l8.52 4.9a.46.46 0 0 0 .48 0l8.52-4.9a.48.48 0 0 0-.1-.85z"/><path d="M20.71 15.1l-1.56-.68-6.91 3.76a.51.51 0 0 1-.48 0l-6.91-3.76-1.56.68a.49.49 0 0 0 0 .87l8.52 5a.51.51 0 0 0 .48 0l8.52-5a.49.49 0 0 0-.1-.87z"/></g></g>',layout:'<g data-name="Layer 2"><g data-name="layout"><rect width="24" height="24" opacity="0"/><path d="M21 8V6a3 3 0 0 0-3-3H6a3 3 0 0 0-3 3v2z"/><path d="M3 10v8a3 3 0 0 0 3 3h5V10z"/><path d="M13 10v11h5a3 3 0 0 0 3-3v-8z"/></g></g>',"link-2":'<g data-name="Layer 2"><g data-name="link-2"><rect width="24" height="24" opacity="0"/><path d="M13.29 9.29l-4 4a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4-4a1 1 0 0 0-1.42-1.42z"/><path d="M12.28 17.4L11 18.67a4.2 4.2 0 0 1-5.58.4 4 4 0 0 1-.27-5.93l1.42-1.43a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-1.27 1.28a6.15 6.15 0 0 0-.67 8.07 6.06 6.06 0 0 0 9.07.6l1.42-1.42a1 1 0 0 0-1.42-1.42z"/><path d="M19.66 3.22a6.18 6.18 0 0 0-8.13.68L10.45 5a1.09 1.09 0 0 0-.17 1.61 1 1 0 0 0 1.42 0L13 5.3a4.17 4.17 0 0 1 5.57-.4 4 4 0 0 1 .27 5.95l-1.42 1.43a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l1.42-1.42a6.06 6.06 0 0 0-.6-9.06z"/></g></g>',link:'<g data-name="Layer 2"><g data-name="link"><rect width="24" height="24" opacity="0"/><path d="M8 12a1 1 0 0 0 1 1h6a1 1 0 0 0 0-2H9a1 1 0 0 0-1 1z"/><path d="M9 16H7.21A4.13 4.13 0 0 1 3 12.37 4 4 0 0 1 7 8h2a1 1 0 0 0 0-2H7.21a6.15 6.15 0 0 0-6.16 5.21A6 6 0 0 0 7 18h2a1 1 0 0 0 0-2z"/><path d="M23 11.24A6.16 6.16 0 0 0 16.76 6h-1.51C14.44 6 14 6.45 14 7a1 1 0 0 0 1 1h1.79A4.13 4.13 0 0 1 21 11.63 4 4 0 0 1 17 16h-2a1 1 0 0 0 0 2h2a6 6 0 0 0 6-6.76z"/></g></g>',linkedin:'<g data-name="Layer 2"><g data-name="linkedin"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M15.15 8.4a5.83 5.83 0 0 0-5.85 5.82v5.88a.9.9 0 0 0 .9.9h2.1a.9.9 0 0 0 .9-.9v-5.88a1.94 1.94 0 0 1 2.15-1.93 2 2 0 0 1 1.75 2v5.81a.9.9 0 0 0 .9.9h2.1a.9.9 0 0 0 .9-.9v-5.88a5.83 5.83 0 0 0-5.85-5.82z"/><rect x="3" y="9.3" width="4.5" height="11.7" rx=".9" ry=".9"/><circle cx="5.25" cy="5.25" r="2.25"/></g></g>',list:'<g data-name="Layer 2"><g data-name="list"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><circle cx="4" cy="7" r="1"/><circle cx="4" cy="12" r="1"/><circle cx="4" cy="17" r="1"/><rect x="7" y="11" width="14" height="2" rx=".94" ry=".94"/><rect x="7" y="16" width="14" height="2" rx=".94" ry=".94"/><rect x="7" y="6" width="14" height="2" rx=".94" ry=".94"/></g></g>',lock:'<g data-name="Layer 2"><g data-name="lock"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="15" r="1"/><path d="M17 8h-1V6.11a4 4 0 1 0-8 0V8H7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-7-1.89A2.06 2.06 0 0 1 12 4a2.06 2.06 0 0 1 2 2.11V8h-4zM12 18a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"/></g></g>',"log-in":'<g data-name="Layer 2"><g data-name="log-in"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19 4h-2a1 1 0 0 0 0 2h1v12h-1a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"/><path d="M11.8 7.4a1 1 0 0 0-1.6 1.2L12 11H4a1 1 0 0 0 0 2h8.09l-1.72 2.44a1 1 0 0 0 .24 1.4 1 1 0 0 0 .58.18 1 1 0 0 0 .81-.42l2.82-4a1 1 0 0 0 0-1.18z"/></g></g>',"log-out":'<g data-name="Layer 2"><g data-name="log-out"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M7 6a1 1 0 0 0 0-2H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h2a1 1 0 0 0 0-2H6V6z"/><path d="M20.82 11.42l-2.82-4a1 1 0 0 0-1.39-.24 1 1 0 0 0-.24 1.4L18.09 11H10a1 1 0 0 0 0 2h8l-1.8 2.4a1 1 0 0 0 .2 1.4 1 1 0 0 0 .6.2 1 1 0 0 0 .8-.4l3-4a1 1 0 0 0 .02-1.18z"/></g></g>',map:'<g data-name="Layer 2"><g data-name="map"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.41 5.89l-4-1.8H15.59L12 5.7 8.41 4.09h-.05L8.24 4h-.6l-4 1.8a1 1 0 0 0-.64 1V19a1 1 0 0 0 .46.84A1 1 0 0 0 4 20a1 1 0 0 0 .41-.09L8 18.3l3.59 1.61h.05a.85.85 0 0 0 .72 0h.05L16 18.3l3.59 1.61A1 1 0 0 0 20 20a1 1 0 0 0 .54-.16A1 1 0 0 0 21 19V6.8a1 1 0 0 0-.59-.91zM9 6.55l2 .89v10l-2-.89zm10 10.9l-2-.89v-10l2 .89z"/></g></g>',maximize:'<g data-name="Layer 2"><g data-name="maximize"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM13 12h-1v1a1 1 0 0 1-2 0v-1H9a1 1 0 0 1 0-2h1V9a1 1 0 0 1 2 0v1h1a1 1 0 0 1 0 2z"/></g></g>',"menu-2":'<g data-name="Layer 2"><g data-name="menu-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><circle cx="4" cy="12" r="1"/><rect x="7" y="11" width="14" height="2" rx=".94" ry=".94"/><rect x="3" y="16" width="18" height="2" rx=".94" ry=".94"/><rect x="3" y="6" width="18" height="2" rx=".94" ry=".94"/></g></g>',"menu-arrow":'<g data-name="Layer 2"><g data-name="menu-arrow"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.05 11H5.91l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3a1 1 0 0 0 0 1.42l3 3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L5.91 13h14.14a1 1 0 0 0 .95-.95V12a1 1 0 0 0-.95-1z"/><rect x="3" y="17" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="5" width="18" height="2" rx=".95" ry=".95"/></g></g>',menu:'<g data-name="Layer 2"><g data-name="menu"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><rect x="3" y="11" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="16" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="6" width="18" height="2" rx=".95" ry=".95"/></g></g>',"message-circle":'<g data-name="Layer 2"><g data-name="message-circle"><rect width="24" height="24" opacity="0"/><path d="M19.07 4.93a10 10 0 0 0-16.28 11 1.06 1.06 0 0 1 .09.64L2 20.8a1 1 0 0 0 .27.91A1 1 0 0 0 3 22h.2l4.28-.86a1.26 1.26 0 0 1 .64.09 10 10 0 0 0 11-16.28zM8 13a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm4 0a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm4 0a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"message-square":'<g data-name="Layer 2"><g data-name="message-square"><rect width="24" height="24" opacity="0"/><path d="M19 3H5a3 3 0 0 0-3 3v15a1 1 0 0 0 .51.87A1 1 0 0 0 3 22a1 1 0 0 0 .51-.14L8 19.14a1 1 0 0 1 .55-.14H19a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM8 12a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm4 0a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm4 0a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"mic-off":'<g data-name="Layer 2"><g data-name="mic-off"><rect width="24" height="24" opacity="0"/><path d="M15.58 12.75A4 4 0 0 0 16 11V6a4 4 0 0 0-7.92-.75"/><path d="M19 11a1 1 0 0 0-2 0 4.86 4.86 0 0 1-.69 2.48L17.78 15A7 7 0 0 0 19 11z"/><path d="M12 15h.16L8 10.83V11a4 4 0 0 0 4 4z"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M15 20h-2v-2.08a7 7 0 0 0 1.65-.44l-1.6-1.6A4.57 4.57 0 0 1 12 16a5 5 0 0 1-5-5 1 1 0 0 0-2 0 7 7 0 0 0 6 6.92V20H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/></g></g>',mic:'<g data-name="Layer 2"><g data-name="mic"><rect width="24" height="24" opacity="0"/><path d="M12 15a4 4 0 0 0 4-4V6a4 4 0 0 0-8 0v5a4 4 0 0 0 4 4z"/><path d="M19 11a1 1 0 0 0-2 0 5 5 0 0 1-10 0 1 1 0 0 0-2 0 7 7 0 0 0 6 6.92V20H8.89a.89.89 0 0 0-.89.89v.22a.89.89 0 0 0 .89.89h6.22a.89.89 0 0 0 .89-.89v-.22a.89.89 0 0 0-.89-.89H13v-2.08A7 7 0 0 0 19 11z"/></g></g>',minimize:'<g data-name="Layer 2"><g data-name="minimize"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM13 12H9a1 1 0 0 1 0-2h4a1 1 0 0 1 0 2z"/></g></g>',"minus-circle":'<g data-name="Layer 2"><g data-name="minus-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm3 11H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2z"/></g></g>',"minus-square":'<g data-name="Layer 2"><g data-name="minus-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm-3 10H9a1 1 0 0 1 0-2h6a1 1 0 0 1 0 2z"/></g></g>',minus:'<g data-name="Layer 2"><g data-name="minus"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 13H5a1 1 0 0 1 0-2h14a1 1 0 0 1 0 2z"/></g></g>',monitor:'<g data-name="Layer 2"><g data-name="monitor"><rect width="24" height="24" opacity="0"/><path d="M19 3H5a3 3 0 0 0-3 3v5h20V6a3 3 0 0 0-3-3z"/><path d="M2 14a3 3 0 0 0 3 3h6v2H7a1 1 0 0 0 0 2h10a1 1 0 0 0 0-2h-4v-2h6a3 3 0 0 0 3-3v-1H2z"/></g></g>',moon:'<g data-name="Layer 2"><g data-name="moon"><rect width="24" height="24" opacity="0"/><path d="M12.3 22h-.1a10.31 10.31 0 0 1-7.34-3.15 10.46 10.46 0 0 1-.26-14 10.13 10.13 0 0 1 4-2.74 1 1 0 0 1 1.06.22 1 1 0 0 1 .24 1 8.4 8.4 0 0 0 1.94 8.81 8.47 8.47 0 0 0 8.83 1.94 1 1 0 0 1 1.27 1.29A10.16 10.16 0 0 1 19.6 19a10.28 10.28 0 0 1-7.3 3z"/></g></g>',"more-horizontal":'<g data-name="Layer 2"><g data-name="more-horizotnal"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="12" r="2"/><circle cx="19" cy="12" r="2"/><circle cx="5" cy="12" r="2"/></g></g>',"more-vertical":'<g data-name="Layer 2"><g data-name="more-vertical"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><circle cx="12" cy="12" r="2"/><circle cx="12" cy="5" r="2"/><circle cx="12" cy="19" r="2"/></g></g>',move:'<g data-name="Layer 2"><g data-name="move"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M21.71 11.31l-3-3a1 1 0 0 0-1.42 1.42L18.58 11H13V5.41l1.29 1.3A1 1 0 0 0 15 7a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42l-3-3A1 1 0 0 0 12 2a1 1 0 0 0-.7.29l-3 3a1 1 0 0 0 1.41 1.42L11 5.42V11H5.41l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3A1 1 0 0 0 2 12a1 1 0 0 0 .29.71l3 3A1 1 0 0 0 6 16a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42L5.42 13H11v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 22a1 1 0 0 0 .7-.29l3-3a1 1 0 0 0-1.42-1.42L13 18.58V13h5.59l-1.3 1.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 16a1 1 0 0 0 .71-.29l3-3A1 1 0 0 0 22 12a1 1 0 0 0-.29-.69z"/></g></g>',music:'<g data-name="Layer 2"><g data-name="music"><rect width="24" height="24" opacity="0"/><path d="M19 15V4a1 1 0 0 0-.38-.78 1 1 0 0 0-.84-.2l-9 2A1 1 0 0 0 8 6v8.34a3.49 3.49 0 1 0 2 3.18 4.36 4.36 0 0 0 0-.52V6.8l7-1.55v7.09a3.49 3.49 0 1 0 2 3.17 4.57 4.57 0 0 0 0-.51z"/></g></g>',"navigation-2":'<g data-name="Layer 2"><g data-name="navigation-2"><rect width="24" height="24" opacity="0"/><path d="M13.67 22h-.06a1 1 0 0 1-.92-.8l-1.54-7.57a1 1 0 0 0-.78-.78L2.8 11.31a1 1 0 0 1-.12-1.93l16-5.33A1 1 0 0 1 20 5.32l-5.33 16a1 1 0 0 1-1 .68z"/></g></g>',navigation:'<g data-name="Layer 2"><g data-name="navigation"><rect width="24" height="24" opacity="0"/><path d="M20 20a.94.94 0 0 1-.55-.17l-6.9-4.56a1 1 0 0 0-1.1 0l-6.9 4.56a1 1 0 0 1-1.44-1.28l8-16a1 1 0 0 1 1.78 0l8 16a1 1 0 0 1-.23 1.2A1 1 0 0 1 20 20z"/></g></g>',npm:'<g data-name="Layer 2"><g data-name="npm"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h7V11h4v10h1a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3z"/></g></g>',"options-2":'<g data-name="Layer 2"><g data-name="options-2"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M19 9a3 3 0 0 0-2.82 2H3a1 1 0 0 0 0 2h13.18A3 3 0 1 0 19 9z"/><path d="M3 7h1.18a3 3 0 0 0 5.64 0H21a1 1 0 0 0 0-2H9.82a3 3 0 0 0-5.64 0H3a1 1 0 0 0 0 2z"/><path d="M21 17h-7.18a3 3 0 0 0-5.64 0H3a1 1 0 0 0 0 2h5.18a3 3 0 0 0 5.64 0H21a1 1 0 0 0 0-2z"/></g></g>',options:'<g data-name="Layer 2"><g data-name="options"><rect width="24" height="24" opacity="0"/><path d="M7 14.18V3a1 1 0 0 0-2 0v11.18a3 3 0 0 0 0 5.64V21a1 1 0 0 0 2 0v-1.18a3 3 0 0 0 0-5.64z"/><path d="M21 13a3 3 0 0 0-2-2.82V3a1 1 0 0 0-2 0v7.18a3 3 0 0 0 0 5.64V21a1 1 0 0 0 2 0v-5.18A3 3 0 0 0 21 13z"/><path d="M15 5a3 3 0 1 0-4 2.82V21a1 1 0 0 0 2 0V7.82A3 3 0 0 0 15 5z"/></g></g>',pantone:'<g data-name="Layer 2"><g data-name="pantone"><rect width="24" height="24" opacity="0"/><path d="M20 13.18h-2.7l-1.86 2L11.88 19l-1.41 1.52L10 21h10a1 1 0 0 0 1-1v-5.82a1 1 0 0 0-1-1z"/><path d="M18.19 9.3l-4.14-3.86a.89.89 0 0 0-.71-.26 1 1 0 0 0-.7.31l-.82.89v10.71a5.23 5.23 0 0 1-.06.57l6.48-6.95a1 1 0 0 0-.05-1.41z"/><path d="M10.82 4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v13.09a3.91 3.91 0 0 0 7.82 0zm-2 13.09a1.91 1.91 0 0 1-3.82 0V15h3.82zm0-4.09H5v-3h3.82zm0-5H5V5h3.82z"/></g></g>',"paper-plane":'<g data-name="Layer 2"><g data-name="paper-plane"><rect width="24" height="24" opacity="0"/><path d="M21 4a1.31 1.31 0 0 0-.06-.27v-.09a1 1 0 0 0-.2-.3 1 1 0 0 0-.29-.19h-.09a.86.86 0 0 0-.31-.15H20a1 1 0 0 0-.3 0l-18 6a1 1 0 0 0 0 1.9l8.53 2.84 2.84 8.53a1 1 0 0 0 1.9 0l6-18A1 1 0 0 0 21 4zm-4.7 2.29l-5.57 5.57L5.16 10zM14 18.84l-1.86-5.57 5.57-5.57z"/></g></g>',"pause-circle":'<g data-name="Layer 2"><g data-name="pause-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm-2 13a1 1 0 0 1-2 0V9a1 1 0 0 1 2 0zm6 0a1 1 0 0 1-2 0V9a1 1 0 0 1 2 0z"/></g></g>',people:'<g data-name="Layer 2"><g data-name="people"><rect width="24" height="24" opacity="0"/><path d="M9 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M17 13a3 3 0 1 0-3-3 3 3 0 0 0 3 3z"/><path d="M21 20a1 1 0 0 0 1-1 5 5 0 0 0-8.06-3.95A7 7 0 0 0 2 20a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1"/></g></g>',percent:'<g data-name="Layer 2"><g data-name="percent"><rect width="24" height="24" opacity="0"/><path d="M8 11a3.5 3.5 0 1 0-3.5-3.5A3.5 3.5 0 0 0 8 11zm0-5a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 8 6z"/><path d="M16 14a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 16 14zm0 5a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 16 19z"/><path d="M19.74 4.26a.89.89 0 0 0-1.26 0L4.26 18.48a.91.91 0 0 0-.26.63.89.89 0 0 0 1.52.63L19.74 5.52a.89.89 0 0 0 0-1.26z"/></g></g>',"person-add":'<g data-name="Layer 2"><g data-name="person-add"><rect width="24" height="24" opacity="0"/><path d="M21 6h-1V5a1 1 0 0 0-2 0v1h-1a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0V8h1a1 1 0 0 0 0-2z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M16 21a1 1 0 0 0 1-1 7 7 0 0 0-14 0 1 1 0 0 0 1 1"/></g></g>',"person-delete":'<g data-name="Layer 2"><g data-name="person-delete"><rect width="24" height="24" opacity="0"/><path d="M20.47 7.5l.73-.73a1 1 0 0 0-1.47-1.47L19 6l-.73-.73a1 1 0 0 0-1.47 1.5l.73.73-.73.73a1 1 0 0 0 1.47 1.47L19 9l.73.73a1 1 0 0 0 1.47-1.5z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M16 21a1 1 0 0 0 1-1 7 7 0 0 0-14 0 1 1 0 0 0 1 1z"/></g></g>',"person-done":'<g data-name="Layer 2"><g data-name="person-done"><rect width="24" height="24" opacity="0"/><path d="M21.66 4.25a1 1 0 0 0-1.41.09l-1.87 2.15-.63-.71a1 1 0 0 0-1.5 1.33l1.39 1.56a1 1 0 0 0 .75.33 1 1 0 0 0 .74-.34l2.61-3a1 1 0 0 0-.08-1.41z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M16 21a1 1 0 0 0 1-1 7 7 0 0 0-14 0 1 1 0 0 0 1 1"/></g></g>',"person-remove":'<g data-name="Layer 2"><g data-name="person-remove"><rect width="24" height="24" opacity="0"/><path d="M21 6h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M16 21a1 1 0 0 0 1-1 7 7 0 0 0-14 0 1 1 0 0 0 1 1"/></g></g>',person:'<g data-name="Layer 2"><g data-name="person"><rect width="24" height="24" opacity="0"/><path d="M12 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z"/><path d="M18 21a1 1 0 0 0 1-1 7 7 0 0 0-14 0 1 1 0 0 0 1 1z"/></g></g>',"phone-call":'<g data-name="Layer 2"><g data-name="phone-call"><rect width="24" height="24" opacity="0"/><path d="M13 8a3 3 0 0 1 3 3 1 1 0 0 0 2 0 5 5 0 0 0-5-5 1 1 0 0 0 0 2z"/><path d="M13 4a7 7 0 0 1 7 7 1 1 0 0 0 2 0 9 9 0 0 0-9-9 1 1 0 0 0 0 2z"/><path d="M21.75 15.91a1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a9.91 9.91 0 0 1-4.87-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76 4.34 4.34 0 0 0-.19-.73z"/></g></g>',"phone-missed":'<g data-name="Layer 2"><g data-name="phone-missed"><rect width="24" height="24" opacity="0"/><path d="M21.94 16.64a4.34 4.34 0 0 0-.19-.73 1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a10 10 0 0 1-4.88-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76z"/><path d="M15.8 8.7a1.05 1.05 0 0 0 1.47 0L18 8l.73.73a1 1 0 0 0 1.47-1.5l-.73-.73.73-.73a1 1 0 0 0-1.47-1.47L18 5l-.73-.73a1 1 0 0 0-1.47 1.5l.73.73-.73.73a1.05 1.05 0 0 0 0 1.47z"/></g></g>',"phone-off":'<g data-name="Layer 2"><g data-name="phone-off"><rect width="24" height="24" opacity="0"/><path d="M9.27 12.06a10.37 10.37 0 0 1-.8-1.42C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6a15.33 15.33 0 0 0 3.27 9.46z"/><path d="M21.94 16.64a4.34 4.34 0 0 0-.19-.73 1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a10.88 10.88 0 0 1-1.41-.8l-4 4A15.33 15.33 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76z"/><path d="M19.74 4.26a.89.89 0 0 0-1.26 0L4.26 18.48a.91.91 0 0 0-.26.63.89.89 0 0 0 1.52.63L19.74 5.52a.89.89 0 0 0 0-1.26z"/></g></g>',phone:'<g data-name="Layer 2"><g data-name="phone"><rect width="24" height="24" opacity="0"/><path d="M17.4 22A15.42 15.42 0 0 1 2 6.6 4.6 4.6 0 0 1 6.6 2a3.94 3.94 0 0 1 .77.07 3.79 3.79 0 0 1 .72.18 1 1 0 0 1 .65.75l1.37 6a1 1 0 0 1-.26.92c-.13.14-.14.15-1.37.79a9.91 9.91 0 0 0 4.87 4.89c.65-1.24.66-1.25.8-1.38a1 1 0 0 1 .92-.26l6 1.37a1 1 0 0 1 .72.65 4.34 4.34 0 0 1 .19.73 4.77 4.77 0 0 1 .06.76A4.6 4.6 0 0 1 17.4 22z"/></g></g>',"pie-chart-2":'<g data-name="Layer 2"><g data-name="pie-chart-2"><rect width="24" height="24" opacity="0"/><path d="M14.5 10.33h6.67A.83.83 0 0 0 22 9.5 7.5 7.5 0 0 0 14.5 2a.83.83 0 0 0-.83.83V9.5a.83.83 0 0 0 .83.83zm.83-6.6a5.83 5.83 0 0 1 4.94 4.94h-4.94z"/><path d="M21.08 12h-8.15a.91.91 0 0 1-.91-.91V2.92A.92.92 0 0 0 11 2a10 10 0 1 0 11 11 .92.92 0 0 0-.92-1z"/></g></g>',"pie-chart":'<g data-name="Layer 2"><g data-name="pie-chart"><rect width="24" height="24" opacity="0"/><path d="M14.5 10.33h6.67A.83.83 0 0 0 22 9.5 7.5 7.5 0 0 0 14.5 2a.83.83 0 0 0-.83.83V9.5a.83.83 0 0 0 .83.83z"/><path d="M21.08 12h-8.15a.91.91 0 0 1-.91-.91V2.92A.92.92 0 0 0 11 2a10 10 0 1 0 11 11 .92.92 0 0 0-.92-1z"/></g></g>',pin:'<g data-name="Layer 2"><g data-name="pin"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="9.5" r="1.5"/><path d="M12 2a8 8 0 0 0-8 7.92c0 5.48 7.05 11.58 7.35 11.84a1 1 0 0 0 1.3 0C13 21.5 20 15.4 20 9.92A8 8 0 0 0 12 2zm0 11a3.5 3.5 0 1 1 3.5-3.5A3.5 3.5 0 0 1 12 13z"/></g></g>',"play-circle":'<g data-name="Layer 2"><g data-name="play-circle"><rect width="24" height="24" opacity="0"/><polygon points="11.5 14.6 14.31 12 11.5 9.4 11.5 14.6"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm4 11.18l-3.64 3.37a1.74 1.74 0 0 1-1.16.45 1.68 1.68 0 0 1-.69-.15 1.6 1.6 0 0 1-1-1.48V8.63a1.6 1.6 0 0 1 1-1.48 1.7 1.7 0 0 1 1.85.3L16 10.82a1.6 1.6 0 0 1 0 2.36z"/></g></g>',"plus-circle":'<g data-name="Layer 2"><g data-name="plus-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm3 11h-2v2a1 1 0 0 1-2 0v-2H9a1 1 0 0 1 0-2h2V9a1 1 0 0 1 2 0v2h2a1 1 0 0 1 0 2z"/></g></g>',"plus-square":'<g data-name="Layer 2"><g data-name="plus-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm-3 10h-2v2a1 1 0 0 1-2 0v-2H9a1 1 0 0 1 0-2h2V9a1 1 0 0 1 2 0v2h2a1 1 0 0 1 0 2z"/></g></g>',plus:'<g data-name="Layer 2"><g data-name="plus"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 11h-6V5a1 1 0 0 0-2 0v6H5a1 1 0 0 0 0 2h6v6a1 1 0 0 0 2 0v-6h6a1 1 0 0 0 0-2z"/></g></g>',power:'<g data-name="Layer 2"><g data-name="power"><rect width="24" height="24" opacity="0"/><path d="M12 13a1 1 0 0 0 1-1V2a1 1 0 0 0-2 0v10a1 1 0 0 0 1 1z"/><path d="M16.59 3.11a1 1 0 0 0-.92 1.78 8 8 0 1 1-7.34 0 1 1 0 1 0-.92-1.78 10 10 0 1 0 9.18 0z"/></g></g>',pricetags:'<g data-name="Layer 2"><g data-name="pricetags"><rect width="24" height="24" opacity="0"/><path d="M21.47 11.58l-6.42-6.41a1 1 0 0 0-.61-.29L5.09 4a1 1 0 0 0-.8.29 1 1 0 0 0-.29.8l.88 9.35a1 1 0 0 0 .29.61l6.41 6.42a1.84 1.84 0 0 0 1.29.53 1.82 1.82 0 0 0 1.28-.53l7.32-7.32a1.82 1.82 0 0 0 0-2.57zm-9.91 0a1.5 1.5 0 1 1 0-2.12 1.49 1.49 0 0 1 0 2.1z"/></g></g>',printer:'<g data-name="Layer 2"><g data-name="printer"><rect width="24" height="24" opacity="0"/><path d="M19.36 7H18V5a1.92 1.92 0 0 0-1.83-2H7.83A1.92 1.92 0 0 0 6 5v2H4.64A2.66 2.66 0 0 0 2 9.67v6.66A2.66 2.66 0 0 0 4.64 19h.86a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2h.86A2.66 2.66 0 0 0 22 16.33V9.67A2.66 2.66 0 0 0 19.36 7zM8 5h8v2H8zm-.5 14v-4h9v4z"/></g></g>',"question-mark-circle":'<g data-name="Layer 2"><g data-name="menu-arrow-circle"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 16a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm1-5.16V14a1 1 0 0 1-2 0v-2a1 1 0 0 1 1-1 1.5 1.5 0 1 0-1.5-1.5 1 1 0 0 1-2 0 3.5 3.5 0 1 1 4.5 3.34z"/></g></g>',"question-mark":'<g data-name="Layer 2"><g data-name="menu-arrow"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M17 9A5 5 0 0 0 7 9a1 1 0 0 0 2 0 3 3 0 1 1 3 3 1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-1.1A5 5 0 0 0 17 9z"/><circle cx="12" cy="19" r="1"/></g></g>',"radio-button-off":'<g data-name="Layer 2"><g data-name="radio-button-off"><rect width="24" height="24" opacity="0"/><path d="M12 22a10 10 0 1 1 10-10 10 10 0 0 1-10 10zm0-18a8 8 0 1 0 8 8 8 8 0 0 0-8-8z"/></g></g>',"radio-button-on":'<g data-name="Layer 2"><g data-name="radio-button-on"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12 7a5 5 0 1 0 5 5 5 5 0 0 0-5-5z"/></g></g>',radio:'<g data-name="Layer 2"><g data-name="radio"><rect width="24" height="24" opacity="0"/><path d="M12 8a3 3 0 0 0-1 5.83 1 1 0 0 0 0 .17v6a1 1 0 0 0 2 0v-6a1 1 0 0 0 0-.17A3 3 0 0 0 12 8z"/><path d="M3.5 11a6.87 6.87 0 0 1 2.64-5.23 1 1 0 1 0-1.28-1.54A8.84 8.84 0 0 0 1.5 11a8.84 8.84 0 0 0 3.36 6.77 1 1 0 1 0 1.28-1.54A6.87 6.87 0 0 1 3.5 11z"/><path d="M16.64 6.24a1 1 0 0 0-1.28 1.52A4.28 4.28 0 0 1 17 11a4.28 4.28 0 0 1-1.64 3.24A1 1 0 0 0 16 16a1 1 0 0 0 .64-.24A6.2 6.2 0 0 0 19 11a6.2 6.2 0 0 0-2.36-4.76z"/><path d="M8.76 6.36a1 1 0 0 0-1.4-.12A6.2 6.2 0 0 0 5 11a6.2 6.2 0 0 0 2.36 4.76 1 1 0 0 0 1.4-.12 1 1 0 0 0-.12-1.4A4.28 4.28 0 0 1 7 11a4.28 4.28 0 0 1 1.64-3.24 1 1 0 0 0 .12-1.4z"/><path d="M19.14 4.23a1 1 0 1 0-1.28 1.54A6.87 6.87 0 0 1 20.5 11a6.87 6.87 0 0 1-2.64 5.23 1 1 0 0 0 1.28 1.54A8.84 8.84 0 0 0 22.5 11a8.84 8.84 0 0 0-3.36-6.77z"/></g></g>',recording:'<g data-name="Layer 2"><g data-name="recording"><rect width="24" height="24" opacity="0"/><path d="M18 8a4 4 0 0 0-4 4 3.91 3.91 0 0 0 .56 2H9.44a3.91 3.91 0 0 0 .56-2 4 4 0 1 0-4 4h12a4 4 0 0 0 0-8z"/></g></g>',refresh:'<g data-name="Layer 2"><g data-name="refresh"><rect width="24" height="24" opacity="0"/><path d="M20.3 13.43a1 1 0 0 0-1.25.65A7.14 7.14 0 0 1 12.18 19 7.1 7.1 0 0 1 5 12a7.1 7.1 0 0 1 7.18-7 7.26 7.26 0 0 1 4.65 1.67l-2.17-.36a1 1 0 0 0-1.15.83 1 1 0 0 0 .83 1.15l4.24.7h.17a1 1 0 0 0 .34-.06.33.33 0 0 0 .1-.06.78.78 0 0 0 .2-.11l.09-.11c0-.05.09-.09.13-.15s0-.1.05-.14a1.34 1.34 0 0 0 .07-.18l.75-4a1 1 0 0 0-2-.38l-.27 1.45A9.21 9.21 0 0 0 12.18 3 9.1 9.1 0 0 0 3 12a9.1 9.1 0 0 0 9.18 9A9.12 9.12 0 0 0 21 14.68a1 1 0 0 0-.7-1.25z"/></g></g>',repeat:'<g data-name="Layer 2"><g data-name="repeat"><rect width="24" height="24" opacity="0"/><path d="M17.91 5h-12l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3a1 1 0 0 0 0 1.42l3 3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L5.91 7h12a1.56 1.56 0 0 1 1.59 1.53V11a1 1 0 0 0 2 0V8.53A3.56 3.56 0 0 0 17.91 5z"/><path d="M18.21 14.29a1 1 0 0 0-1.42 1.42l1.3 1.29h-12a1.56 1.56 0 0 1-1.59-1.53V13a1 1 0 0 0-2 0v2.47A3.56 3.56 0 0 0 6.09 19h12l-1.3 1.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3-3a1 1 0 0 0 0-1.42z"/></g></g>',"rewind-left":'<g data-name="Layer 2"><g data-name="rewind-left"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.45 6.2a2.1 2.1 0 0 0-2.21.26l-4.74 3.92V7.79a1.76 1.76 0 0 0-1.05-1.59 2.1 2.1 0 0 0-2.21.26l-5.1 4.21a1.7 1.7 0 0 0 0 2.66l5.1 4.21a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59v-2.59l4.74 3.92a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59V7.79a1.76 1.76 0 0 0-1.05-1.59z"/></g></g>',"rewind-right":'<g data-name="Layer 2"><g data-name="rewind-right"><rect width="24" height="24" opacity="0"/><path d="M20.86 10.67l-5.1-4.21a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1.05 1.59v2.59L7.76 6.46a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1 1.59v8.42a1.76 1.76 0 0 0 1 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l4.74-3.92v2.59a1.76 1.76 0 0 0 1.05 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l5.1-4.21a1.7 1.7 0 0 0 0-2.66z"/></g></g>',save:'<g data-name="Layer 2"><g data-name="save"><rect width="24" height="24" opacity="0"/><rect x="10" y="17" width="4" height="4"/><path d="M20.12 8.71l-4.83-4.83A3 3 0 0 0 13.17 3H10v6h5a1 1 0 0 1 0 2H9a1 1 0 0 1-1-1V3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h2v-4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v4h2a3 3 0 0 0 3-3v-7.17a3 3 0 0 0-.88-2.12z"/></g></g>',scissors:'<g data-name="Layer 2"><g data-name="scissors"><rect width="24" height="24" opacity="0"/><path d="M20.21 5.71a1 1 0 1 0-1.42-1.42l-6.28 6.31-3.3-3.31A3 3 0 0 0 9.5 6a3 3 0 1 0-3 3 3 3 0 0 0 1.29-.3L11.1 12l-3.29 3.3A3 3 0 0 0 6.5 15a3 3 0 1 0 3 3 3 3 0 0 0-.29-1.26zM6.5 7a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm0 12a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M15.21 13.29a1 1 0 0 0-1.42 1.42l5 5a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',search:'<g data-name="Layer 2"><g data-name="search"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z"/></g></g>',"settings-2":'<g data-name="Layer 2"><g data-name="settings-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><circle cx="12" cy="12" r="1.5"/><path d="M20.32 9.37h-1.09c-.14 0-.24-.11-.3-.26a.34.34 0 0 1 0-.37l.81-.74a1.63 1.63 0 0 0 .5-1.18 1.67 1.67 0 0 0-.5-1.19L18.4 4.26a1.67 1.67 0 0 0-2.37 0l-.77.74a.38.38 0 0 1-.41 0 .34.34 0 0 1-.22-.29V3.68A1.68 1.68 0 0 0 13 2h-1.94a1.69 1.69 0 0 0-1.69 1.68v1.09c0 .14-.11.24-.26.3a.34.34 0 0 1-.37 0L8 4.26a1.72 1.72 0 0 0-1.19-.5 1.65 1.65 0 0 0-1.18.5L4.26 5.6a1.67 1.67 0 0 0 0 2.4l.74.74a.38.38 0 0 1 0 .41.34.34 0 0 1-.29.22H3.68A1.68 1.68 0 0 0 2 11.05v1.89a1.69 1.69 0 0 0 1.68 1.69h1.09c.14 0 .24.11.3.26a.34.34 0 0 1 0 .37l-.81.74a1.72 1.72 0 0 0-.5 1.19 1.66 1.66 0 0 0 .5 1.19l1.34 1.36a1.67 1.67 0 0 0 2.37 0l.77-.74a.38.38 0 0 1 .41 0 .34.34 0 0 1 .22.29v1.09A1.68 1.68 0 0 0 11.05 22h1.89a1.69 1.69 0 0 0 1.69-1.68v-1.09c0-.14.11-.24.26-.3a.34.34 0 0 1 .37 0l.76.77a1.72 1.72 0 0 0 1.19.5 1.65 1.65 0 0 0 1.18-.5l1.34-1.34a1.67 1.67 0 0 0 0-2.37l-.73-.73a.34.34 0 0 1 0-.37.34.34 0 0 1 .29-.22h1.09A1.68 1.68 0 0 0 22 13v-1.94a1.69 1.69 0 0 0-1.68-1.69zM12 15.5a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5z"/></g></g>',settings:'<g data-name="Layer 2"><g data-name="settings"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="12" r="1.5"/><path d="M21.89 10.32L21.1 7.8a2.26 2.26 0 0 0-2.88-1.51l-.34.11a1.74 1.74 0 0 1-1.59-.26l-.11-.08a1.76 1.76 0 0 1-.69-1.43v-.28a2.37 2.37 0 0 0-.68-1.68 2.26 2.26 0 0 0-1.6-.67h-2.55a2.32 2.32 0 0 0-2.29 2.33v.24a1.94 1.94 0 0 1-.73 1.51l-.13.1a1.93 1.93 0 0 1-1.78.29 2.14 2.14 0 0 0-1.68.12 2.18 2.18 0 0 0-1.12 1.33l-.82 2.6a2.34 2.34 0 0 0 1.48 2.94h.16a1.83 1.83 0 0 1 1.12 1.22l.06.16a2.06 2.06 0 0 1-.23 1.86 2.37 2.37 0 0 0 .49 3.3l2.07 1.57a2.25 2.25 0 0 0 1.35.43A2 2 0 0 0 9 22a2.25 2.25 0 0 0 1.47-1l.23-.33a1.8 1.8 0 0 1 1.43-.77 1.75 1.75 0 0 1 1.5.78l.12.17a2.24 2.24 0 0 0 3.22.53L19 19.86a2.38 2.38 0 0 0 .5-3.23l-.26-.38A2 2 0 0 1 19 14.6a1.89 1.89 0 0 1 1.21-1.28l.2-.07a2.36 2.36 0 0 0 1.48-2.93zM12 15.5a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5z"/></g></g>',shake:'<g data-name="Layer 2"><g data-name="shake"><rect width="24" height="24" opacity="0"/><path d="M5.5 18a1 1 0 0 1-.64-.24A8.81 8.81 0 0 1 1.5 11a8.81 8.81 0 0 1 3.36-6.76 1 1 0 1 1 1.28 1.52A6.9 6.9 0 0 0 3.5 11a6.9 6.9 0 0 0 2.64 5.24 1 1 0 0 1 .13 1.4 1 1 0 0 1-.77.36z"/><path d="M12 7a4.09 4.09 0 0 1 1 .14V3a1 1 0 0 0-2 0v4.14A4.09 4.09 0 0 1 12 7z"/><path d="M12 15a4.09 4.09 0 0 1-1-.14V20a1 1 0 0 0 2 0v-5.14a4.09 4.09 0 0 1-1 .14z"/><path d="M16 16a1 1 0 0 1-.77-.36 1 1 0 0 1 .13-1.4A4.28 4.28 0 0 0 17 11a4.28 4.28 0 0 0-1.64-3.24 1 1 0 1 1 1.28-1.52A6.2 6.2 0 0 1 19 11a6.2 6.2 0 0 1-2.36 4.76A1 1 0 0 1 16 16z"/><path d="M8 16a1 1 0 0 1-.64-.24A6.2 6.2 0 0 1 5 11a6.2 6.2 0 0 1 2.36-4.76 1 1 0 1 1 1.28 1.52A4.28 4.28 0 0 0 7 11a4.28 4.28 0 0 0 1.64 3.24 1 1 0 0 1 .13 1.4A1 1 0 0 1 8 16z"/><path d="M18.5 18a1 1 0 0 1-.77-.36 1 1 0 0 1 .13-1.4A6.9 6.9 0 0 0 20.5 11a6.9 6.9 0 0 0-2.64-5.24 1 1 0 1 1 1.28-1.52A8.81 8.81 0 0 1 22.5 11a8.81 8.81 0 0 1-3.36 6.76 1 1 0 0 1-.64.24z"/><path d="M12 12a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm0-1zm0 0zm0 0zm0 0zm0 0zm0 0zm0 0z"/></g></g>',share:'<g data-name="Layer 2"><g data-name="share"><rect width="24" height="24" opacity="0"/><path d="M18 15a3 3 0 0 0-2.1.86L8 12.34V12v-.33l7.9-3.53A3 3 0 1 0 15 6v.34L7.1 9.86a3 3 0 1 0 0 4.28l7.9 3.53V18a3 3 0 1 0 3-3z"/></g></g>',"shield-off":'<g data-name="Layer 2"><g data-name="shield-off"><rect width="24" height="24" opacity="0"/><path d="M3.73 6.56A2 2 0 0 0 3 8.09v.14a15.17 15.17 0 0 0 7.72 13.2l.3.17a2 2 0 0 0 2 0l.3-.17a15.22 15.22 0 0 0 3-2.27z"/><path d="M18.84 16A15.08 15.08 0 0 0 21 8.23v-.14a2 2 0 0 0-1-1.75L13 2.4a2 2 0 0 0-2 0L7.32 4.49z"/><path d="M4.71 3.29a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',shield:'<g data-name="Layer 2"><g data-name="shield"><rect width="24" height="24" opacity="0"/><path d="M12 21.85a2 2 0 0 1-1-.25l-.3-.17A15.17 15.17 0 0 1 3 8.23v-.14a2 2 0 0 1 1-1.75l7-3.94a2 2 0 0 1 2 0l7 3.94a2 2 0 0 1 1 1.75v.14a15.17 15.17 0 0 1-7.72 13.2l-.3.17a2 2 0 0 1-.98.25z"/></g></g>',"shopping-bag":'<g data-name="Layer 2"><g data-name="shopping-bag"><rect width="24" height="24" opacity="0"/><path d="M20.12 6.71l-2.83-2.83A3 3 0 0 0 15.17 3H8.83a3 3 0 0 0-2.12.88L3.88 6.71A3 3 0 0 0 3 8.83V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V8.83a3 3 0 0 0-.88-2.12zM12 16a4 4 0 0 1-4-4 1 1 0 0 1 2 0 2 2 0 0 0 4 0 1 1 0 0 1 2 0 4 4 0 0 1-4 4zM6.41 7l1.71-1.71A1.05 1.05 0 0 1 8.83 5h6.34a1.05 1.05 0 0 1 .71.29L17.59 7z"/></g></g>',"shopping-cart":'<g data-name="Layer 2"><g data-name="shopping-cart"><rect width="24" height="24" opacity="0"/><path d="M21.08 7a2 2 0 0 0-1.7-1H6.58L6 3.74A1 1 0 0 0 5 3H3a1 1 0 0 0 0 2h1.24L7 15.26A1 1 0 0 0 8 16h9a1 1 0 0 0 .89-.55l3.28-6.56A2 2 0 0 0 21.08 7z"/><circle cx="7.5" cy="19.5" r="1.5"/><circle cx="17.5" cy="19.5" r="1.5"/></g></g>',"shuffle-2":'<g data-name="Layer 2"><g data-name="shuffle-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.71 14.29a1 1 0 0 0-1.42 1.42l.29.29H16a4 4 0 0 1 0-8h1.59l-.3.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 10a1 1 0 0 0 .71-.29l2-2A1 1 0 0 0 21 7a1 1 0 0 0-.29-.71l-2-2a1 1 0 0 0-1.42 1.42l.29.29H16a6 6 0 0 0-5 2.69A6 6 0 0 0 6 6H4a1 1 0 0 0 0 2h2a4 4 0 0 1 0 8H4a1 1 0 0 0 0 2h2a6 6 0 0 0 5-2.69A6 6 0 0 0 16 18h1.59l-.3.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 20a1 1 0 0 0 .71-.29l2-2A1 1 0 0 0 21 17a1 1 0 0 0-.29-.71z"/></g></g>',shuffle:'<g data-name="Layer 2"><g data-name="shuffle"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 9.31a1 1 0 0 0 1 1 1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-4.3a1 1 0 0 0-1 1 1 1 0 0 0 1 1h1.89L12 10.59 6.16 4.76a1 1 0 0 0-1.41 1.41L10.58 12l-6.29 6.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L18 7.42z"/><path d="M19 13.68a1 1 0 0 0-1 1v1.91l-2.78-2.79a1 1 0 0 0-1.42 1.42L16.57 18h-1.88a1 1 0 0 0 0 2H19a1 1 0 0 0 1-1.11v-4.21a1 1 0 0 0-1-1z"/></g></g>',"skip-back":'<g data-name="Layer 2"><g data-name="skip-back"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M16.45 6.2a2.1 2.1 0 0 0-2.21.26l-5.1 4.21-.14.15V7a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-3.82l.14.15 5.1 4.21a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59V7.79a1.76 1.76 0 0 0-1.05-1.59z"/></g></g>',"skip-forward":'<g data-name="Layer 2"><g data-name="skip-forward"><rect width="24" height="24" opacity="0"/><path d="M16 6a1 1 0 0 0-1 1v3.82l-.14-.15-5.1-4.21a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1 1.59v8.42a1.76 1.76 0 0 0 1 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l5.1-4.21.14-.15V17a1 1 0 0 0 2 0V7a1 1 0 0 0-1-1z"/></g></g>',slash:'<g data-name="Layer 2"><g data-name="slash"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm8 10a7.92 7.92 0 0 1-1.69 4.9L7.1 5.69A7.92 7.92 0 0 1 12 4a8 8 0 0 1 8 8zM4 12a7.92 7.92 0 0 1 1.69-4.9L16.9 18.31A7.92 7.92 0 0 1 12 20a8 8 0 0 1-8-8z"/></g></g>',smartphone:'<g data-name="Layer 2"><g data-name="smartphone"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17 2H7a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm-5 16a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 12 18zm2.5-10h-5a1 1 0 0 1 0-2h5a1 1 0 0 1 0 2z"/></g></g>',"smiling-face":'<defs><style/></defs><g id="Layer_2" data-name="Layer 2"><g id="smiling-face"><g id="smiling-face" data-name="smiling-face"><rect width="24" height="24" opacity="0"/><path d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm5 9a5 5 0 0 1-10 0z" id="🎨-Icon-Сolor"/></g></g></g>',speaker:'<g data-name="Layer 2"><g data-name="speaker"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><circle cx="12" cy="15.5" r="1.5"/><circle cx="12" cy="8" r="1"/><path d="M17 2H7a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm-5 3a3 3 0 1 1-3 3 3 3 0 0 1 3-3zm0 14a3.5 3.5 0 1 1 3.5-3.5A3.5 3.5 0 0 1 12 19z"/></g></g>',square:'<g data-name="Layer 2"><g data-name="square"><rect width="24" height="24" opacity="0"/><path d="M18 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3zM6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z"/></g></g>',star:'<g data-name="Layer 2"><g data-name="star"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17.56 21a1 1 0 0 1-.46-.11L12 18.22l-5.1 2.67a1 1 0 0 1-1.45-1.06l1-5.63-4.12-4a1 1 0 0 1-.25-1 1 1 0 0 1 .81-.68l5.7-.83 2.51-5.13a1 1 0 0 1 1.8 0l2.54 5.12 5.7.83a1 1 0 0 1 .81.68 1 1 0 0 1-.25 1l-4.12 4 1 5.63a1 1 0 0 1-.4 1 1 1 0 0 1-.62.18z"/></g></g>',"stop-circle":'<g data-name="Layer 2"><g data-name="stop-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm4 12.75A1.25 1.25 0 0 1 14.75 16h-5.5A1.25 1.25 0 0 1 8 14.75v-5.5A1.25 1.25 0 0 1 9.25 8h5.5A1.25 1.25 0 0 1 16 9.25z"/><rect x="10" y="10" width="4" height="4"/></g></g>',sun:'<g data-name="Layer 2"><g data-name="sun"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 6a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v2a1 1 0 0 0 1 1z"/><path d="M21 11h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M6 12a1 1 0 0 0-1-1H3a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1z"/><path d="M6.22 5a1 1 0 0 0-1.39 1.47l1.44 1.39a1 1 0 0 0 .73.28 1 1 0 0 0 .72-.31 1 1 0 0 0 0-1.41z"/><path d="M17 8.14a1 1 0 0 0 .69-.28l1.44-1.39A1 1 0 0 0 17.78 5l-1.44 1.42a1 1 0 0 0 0 1.41 1 1 0 0 0 .66.31z"/><path d="M12 18a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1z"/><path d="M17.73 16.14a1 1 0 0 0-1.39 1.44L17.78 19a1 1 0 0 0 .69.28 1 1 0 0 0 .72-.3 1 1 0 0 0 0-1.42z"/><path d="M6.27 16.14l-1.44 1.39a1 1 0 0 0 0 1.42 1 1 0 0 0 .72.3 1 1 0 0 0 .67-.25l1.44-1.39a1 1 0 0 0-1.39-1.44z"/><path d="M12 8a4 4 0 1 0 4 4 4 4 0 0 0-4-4z"/></g></g>',swap:'<g data-name="Layer 2"><g data-name="swap"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M4 9h13l-1.6 1.2a1 1 0 0 0-.2 1.4 1 1 0 0 0 .8.4 1 1 0 0 0 .6-.2l4-3a1 1 0 0 0 0-1.59l-3.86-3a1 1 0 0 0-1.23 1.58L17.08 7H4a1 1 0 0 0 0 2z"/><path d="M20 16H7l1.6-1.2a1 1 0 0 0-1.2-1.6l-4 3a1 1 0 0 0 0 1.59l3.86 3a1 1 0 0 0 .61.21 1 1 0 0 0 .79-.39 1 1 0 0 0-.17-1.4L6.92 18H20a1 1 0 0 0 0-2z"/></g></g>',sync:'<g data-name="Layer 2"><g data-name="sync"><rect width="24" height="24" opacity="0"/><path d="M21.66 10.37a.62.62 0 0 0 .07-.19l.75-4a1 1 0 0 0-2-.36l-.37 2a9.22 9.22 0 0 0-16.58.84 1 1 0 0 0 .55 1.3 1 1 0 0 0 1.31-.55A7.08 7.08 0 0 1 12.07 5a7.17 7.17 0 0 1 6.24 3.58l-1.65-.27a1 1 0 1 0-.32 2l4.25.71h.16a.93.93 0 0 0 .34-.06.33.33 0 0 0 .1-.06.78.78 0 0 0 .2-.11l.08-.1a1.07 1.07 0 0 0 .14-.16.58.58 0 0 0 .05-.16z"/><path d="M19.88 14.07a1 1 0 0 0-1.31.56A7.08 7.08 0 0 1 11.93 19a7.17 7.17 0 0 1-6.24-3.58l1.65.27h.16a1 1 0 0 0 .16-2L3.41 13a.91.91 0 0 0-.33 0H3a1.15 1.15 0 0 0-.32.14 1 1 0 0 0-.18.18l-.09.1a.84.84 0 0 0-.07.19.44.44 0 0 0-.07.17l-.75 4a1 1 0 0 0 .8 1.22h.18a1 1 0 0 0 1-.82l.37-2a9.22 9.22 0 0 0 16.58-.83 1 1 0 0 0-.57-1.28z"/></g></g>',text:'<g data-name="Layer 2"><g data-name="text"><rect width="24" height="24" opacity="0"/><path d="M20 4H4a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V6h6v13H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2h-2V6h6v2a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/></g></g>',"thermometer-minus":'<g data-name="Layer 2"><g data-name="thermometer-minus"><rect width="24" height="24" opacity="0"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1"/><path d="M14 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm1-12.46V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 14 4a1 1 0 0 0-1 1v4.54z"/></g></g>',"thermometer-plus":'<g data-name="Layer 2"><g data-name="thermometer-plus"><rect width="24" height="24" opacity="0"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1" transform="rotate(-90 5 6)"/><path d="M14 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm1-12.46V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 14 4a1 1 0 0 0-1 1v4.54z"/></g></g>',thermometer:'<g data-name="Layer 2"><g data-name="thermometer"><rect width="24" height="24" opacity="0"/><path d="M12 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm1-12.46V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 12 4a1 1 0 0 0-1 1v4.54z"/></g></g>',"toggle-left":'<g data-name="Layer 2"><g data-name="toggle-left"><rect x=".02" y=".02" width="23.97" height="23.97" transform="rotate(179.92 12.002 11.998)" opacity="0"/><path d="M15 5H9a7 7 0 0 0 0 14h6a7 7 0 0 0 0-14zM9 15a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"/><path d="M9 11a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"/></g></g>',"toggle-right":'<g data-name="Layer 2"><g data-name="toggle-right"><rect width="24" height="24" opacity="0"/><circle cx="15" cy="12" r="1"/><path d="M15 5H9a7 7 0 0 0 0 14h6a7 7 0 0 0 0-14zm0 10a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"/></g></g>',"trash-2":'<g data-name="Layer 2"><g data-name="trash-2"><rect width="24" height="24" opacity="0"/><path d="M21 6h-5V4.33A2.42 2.42 0 0 0 13.5 2h-3A2.42 2.42 0 0 0 8 4.33V6H3a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2zM10 16a1 1 0 0 1-2 0v-4a1 1 0 0 1 2 0zm0-11.67c0-.16.21-.33.5-.33h3c.29 0 .5.17.5.33V6h-4zM16 16a1 1 0 0 1-2 0v-4a1 1 0 0 1 2 0z"/></g></g>',trash:'<g data-name="Layer 2"><g data-name="trash"><rect width="24" height="24" opacity="0"/><path d="M21 6h-5V4.33A2.42 2.42 0 0 0 13.5 2h-3A2.42 2.42 0 0 0 8 4.33V6H3a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2zM10 4.33c0-.16.21-.33.5-.33h3c.29 0 .5.17.5.33V6h-4z"/></g></g>',"trending-down":'<g data-name="Layer 2"><g data-name="trending-down"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M21 12a1 1 0 0 0-2 0v2.3l-4.24-5a1 1 0 0 0-1.27-.21L9.22 11.7 4.77 6.36a1 1 0 1 0-1.54 1.28l5 6a1 1 0 0 0 1.28.22l4.28-2.57 4 4.71H15a1 1 0 0 0 0 2h5a1.1 1.1 0 0 0 .36-.07l.14-.08a1.19 1.19 0 0 0 .15-.09.75.75 0 0 0 .14-.17 1.1 1.1 0 0 0 .09-.14.64.64 0 0 0 .05-.17A.78.78 0 0 0 21 17z"/></g></g>',"trending-up":'<g data-name="Layer 2"><g data-name="trending-up"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M21 7a.78.78 0 0 0 0-.21.64.64 0 0 0-.05-.17 1.1 1.1 0 0 0-.09-.14.75.75 0 0 0-.14-.17l-.12-.07a.69.69 0 0 0-.19-.1h-.2A.7.7 0 0 0 20 6h-5a1 1 0 0 0 0 2h2.83l-4 4.71-4.32-2.57a1 1 0 0 0-1.28.22l-5 6a1 1 0 0 0 .13 1.41A1 1 0 0 0 4 18a1 1 0 0 0 .77-.36l4.45-5.34 4.27 2.56a1 1 0 0 0 1.27-.21L19 9.7V12a1 1 0 0 0 2 0V7z"/></g></g>',tv:'<g data-name="Layer 2"><g data-name="tv"><rect width="24" height="24" opacity="0"/><path d="M18 6h-3.59l2.3-2.29a1 1 0 1 0-1.42-1.42L12 5.59l-3.29-3.3a1 1 0 1 0-1.42 1.42L9.59 6H6a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3zm1 13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-7a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/></g></g>',twitter:'<g data-name="Layer 2"><g data-name="twitter"><polyline points="0 0 24 0 24 24 0 24" opacity="0"/><path d="M8.08 20A11.07 11.07 0 0 0 19.52 9 8.09 8.09 0 0 0 21 6.16a.44.44 0 0 0-.62-.51 1.88 1.88 0 0 1-2.16-.38 3.89 3.89 0 0 0-5.58-.17A4.13 4.13 0 0 0 11.49 9C8.14 9.2 5.84 7.61 4 5.43a.43.43 0 0 0-.75.24 9.68 9.68 0 0 0 4.6 10.05A6.73 6.73 0 0 1 3.38 18a.45.45 0 0 0-.14.84A11 11 0 0 0 8.08 20"/></g></g>',umbrella:'<g data-name="Layer 2"><g data-name="umbrella"><rect width="24" height="24" opacity="0"/><path d="M12 2A10 10 0 0 0 2 12a1 1 0 0 0 1 1h8v6a3 3 0 0 0 6 0 1 1 0 0 0-2 0 1 1 0 0 1-2 0v-6h8a1 1 0 0 0 1-1A10 10 0 0 0 12 2z"/></g></g>',undo:'<g data-name="Layer 2"><g data-name="undo"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M20.22 21a1 1 0 0 1-1-.76 8.91 8.91 0 0 0-7.8-6.69v1.12a1.78 1.78 0 0 1-1.09 1.64A2 2 0 0 1 8.18 16l-5.06-4.41a1.76 1.76 0 0 1 0-2.68l5.06-4.42a2 2 0 0 1 2.18-.3 1.78 1.78 0 0 1 1.09 1.64V7A10.89 10.89 0 0 1 21.5 17.75a10.29 10.29 0 0 1-.31 2.49 1 1 0 0 1-1 .76z"/></g></g>',unlock:'<g data-name="Layer 2"><g data-name="unlock"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="15" r="1"/><path d="M17 8h-7V6a2 2 0 0 1 4 0 1 1 0 0 0 2 0 4 4 0 0 0-8 0v2H7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-5 10a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"/></g></g>',upload:'<g data-name="Layer 2"><g data-name="upload"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><rect x="4" y="4" width="16" height="2" rx="1" ry="1" transform="rotate(180 12 5)"/><rect x="17" y="5" width="4" height="2" rx="1" ry="1" transform="rotate(90 19 6)"/><rect x="3" y="5" width="4" height="2" rx="1" ry="1" transform="rotate(90 5 6)"/><path d="M8 14a1 1 0 0 1-.8-.4 1 1 0 0 1 .2-1.4l4-3a1 1 0 0 1 1.18 0l4 2.82a1 1 0 0 1 .24 1.39 1 1 0 0 1-1.4.24L12 11.24 8.6 13.8a1 1 0 0 1-.6.2z"/><path d="M12 21a1 1 0 0 1-1-1v-8a1 1 0 0 1 2 0v8a1 1 0 0 1-1 1z"/></g></g>',"video-off":'<g data-name="Layer 2"><g data-name="video-off"><rect width="24" height="24" opacity="0"/><path d="M14.22 17.05L4.88 7.71 3.12 6 3 5.8A3 3 0 0 0 2 8v8a3 3 0 0 0 3 3h9a2.94 2.94 0 0 0 1.66-.51z"/><path d="M21 7.15a1.7 1.7 0 0 0-1.85.3l-2.15 2V8a3 3 0 0 0-3-3H7.83l1.29 1.29 6.59 6.59 2 2 2 2a1.73 1.73 0 0 0 .6.11 1.68 1.68 0 0 0 .69-.15 1.6 1.6 0 0 0 1-1.48V8.63a1.6 1.6 0 0 0-1-1.48z"/><path d="M17 15.59l-2-2L8.41 7l-2-2-1.7-1.71a1 1 0 0 0-1.42 1.42l.54.53L5.59 7l9.34 9.34 1.46 1.46 2.9 2.91a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',video:'<g data-name="Layer 2"><g data-name="video"><rect width="24" height="24" opacity="0"/><path d="M21 7.15a1.7 1.7 0 0 0-1.85.3l-2.15 2V8a3 3 0 0 0-3-3H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h9a3 3 0 0 0 3-3v-1.45l2.16 2a1.74 1.74 0 0 0 1.16.45 1.68 1.68 0 0 0 .69-.15 1.6 1.6 0 0 0 1-1.48V8.63A1.6 1.6 0 0 0 21 7.15z"/></g></g>',"volume-down":'<g data-name="Layer 2"><g data-name="volume-down"><rect width="24" height="24" opacity="0"/><path d="M20.78 8.37a1 1 0 1 0-1.56 1.26 4 4 0 0 1 0 4.74A1 1 0 0 0 20 16a1 1 0 0 0 .78-.37 6 6 0 0 0 0-7.26z"/><path d="M16.47 3.12a1 1 0 0 0-1 0L9 7.57H4a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4A1.06 1.06 0 0 0 16 21a1 1 0 0 0 1-1V4a1 1 0 0 0-.53-.88z"/></g></g>',"volume-mute":'<g data-name="Layer 2"><g data-name="volume-mute"><rect width="24" height="24" opacity="0"/><path d="M17 21a1.06 1.06 0 0 1-.57-.17L10 16.43H5a1 1 0 0 1-1-1V8.57a1 1 0 0 1 1-1h5l6.41-4.4A1 1 0 0 1 18 4v16a1 1 0 0 1-1 1z"/></g></g>',"volume-off":'<g data-name="Layer 2"><g data-name="volume-off"><rect width="24" height="24" opacity="0"/><path d="M16.91 14.08l1.44 1.44a6 6 0 0 0-.07-7.15 1 1 0 1 0-1.56 1.26 4 4 0 0 1 .19 4.45z"/><path d="M21 12a6.51 6.51 0 0 1-1.78 4.39l1.42 1.42A8.53 8.53 0 0 0 23 12a8.75 8.75 0 0 0-3.36-6.77 1 1 0 1 0-1.28 1.54A6.8 6.8 0 0 1 21 12z"/><path d="M15 12.17V4a1 1 0 0 0-1.57-.83L9 6.2z"/><path d="M4.74 7.57H2a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4A1.06 1.06 0 0 0 14 21a1 1 0 0 0 1-1v-2.17z"/><path d="M4.71 3.29a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"volume-up":'<g data-name="Layer 2"><g data-name="volume-up"><rect width="24" height="24" opacity="0"/><path d="M18.28 8.37a1 1 0 1 0-1.56 1.26 4 4 0 0 1 0 4.74A1 1 0 0 0 17.5 16a1 1 0 0 0 .78-.37 6 6 0 0 0 0-7.26z"/><path d="M19.64 5.23a1 1 0 1 0-1.28 1.54A6.8 6.8 0 0 1 21 12a6.8 6.8 0 0 1-2.64 5.23 1 1 0 0 0-.13 1.41A1 1 0 0 0 19 19a1 1 0 0 0 .64-.23A8.75 8.75 0 0 0 23 12a8.75 8.75 0 0 0-3.36-6.77z"/><path d="M14.47 3.12a1 1 0 0 0-1 0L7 7.57H2a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4A1.06 1.06 0 0 0 14 21a1 1 0 0 0 1-1V4a1 1 0 0 0-.53-.88z"/></g></g>',"wifi-off":'<g data-name="Layer 2"><g data-name="wifi-off"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="19" r="1"/><path d="M12.44 11l-1.9-1.89-2.46-2.44-1.55-1.55-1.82-1.83a1 1 0 0 0-1.42 1.42l1.38 1.37 1.46 1.46 2.23 2.24 1.55 1.54 2.74 2.74 2.79 2.8 3.85 3.85a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M21.72 7.93A13.93 13.93 0 0 0 12 4a14.1 14.1 0 0 0-4.44.73l1.62 1.62a11.89 11.89 0 0 1 11.16 3 1 1 0 0 0 .69.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.03-1.39z"/><path d="M3.82 6.65a14.32 14.32 0 0 0-1.54 1.28 1 1 0 0 0 1.38 1.44 13.09 13.09 0 0 1 1.6-1.29z"/><path d="M17 13.14a1 1 0 0 0 .71.3 1 1 0 0 0 .72-1.69A9 9 0 0 0 12 9h-.16l2.35 2.35A7 7 0 0 1 17 13.14z"/><path d="M7.43 10.26a8.8 8.8 0 0 0-1.9 1.49A1 1 0 0 0 7 13.14a7.3 7.3 0 0 1 2-1.41z"/><path d="M8.53 15.4a1 1 0 1 0 1.39 1.44 3.06 3.06 0 0 1 3.84-.25l-2.52-2.52a5 5 0 0 0-2.71 1.33z"/></g></g>',wifi:'<g data-name="Layer 2"><g data-name="wifi"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="19" r="1"/><path d="M12 14a5 5 0 0 0-3.47 1.4 1 1 0 1 0 1.39 1.44 3.08 3.08 0 0 1 4.16 0 1 1 0 1 0 1.39-1.44A5 5 0 0 0 12 14z"/><path d="M12 9a9 9 0 0 0-6.47 2.75A1 1 0 0 0 7 13.14a7 7 0 0 1 10.08 0 1 1 0 0 0 .71.3 1 1 0 0 0 .72-1.69A9 9 0 0 0 12 9z"/><path d="M21.72 7.93a14 14 0 0 0-19.44 0 1 1 0 0 0 1.38 1.44 12 12 0 0 1 16.68 0 1 1 0 0 0 .69.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.03-1.41z"/></g></g>',"activity-outline":'<g data-name="Layer 2"><g data-name="activity"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M14.33 20h-.21a2 2 0 0 1-1.76-1.58L9.68 6l-2.76 6.4A1 1 0 0 1 6 13H3a1 1 0 0 1 0-2h2.34l2.51-5.79a2 2 0 0 1 3.79.38L14.32 18l2.76-6.38A1 1 0 0 1 18 11h3a1 1 0 0 1 0 2h-2.34l-2.51 5.79A2 2 0 0 1 14.33 20z"/></g></g>',"alert-circle-outline":'<g data-name="Layer 2"><g data-name="alert-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><circle cx="12" cy="16" r="1"/><path d="M12 7a1 1 0 0 0-1 1v5a1 1 0 0 0 2 0V8a1 1 0 0 0-1-1z"/></g></g>',"alert-triangle-outline":'<g data-name="Layer 2"><g data-name="alert-triangle"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M22.56 16.3L14.89 3.58a3.43 3.43 0 0 0-5.78 0L1.44 16.3a3 3 0 0 0-.05 3A3.37 3.37 0 0 0 4.33 21h15.34a3.37 3.37 0 0 0 2.94-1.66 3 3 0 0 0-.05-3.04zm-1.7 2.05a1.31 1.31 0 0 1-1.19.65H4.33a1.31 1.31 0 0 1-1.19-.65 1 1 0 0 1 0-1l7.68-12.73a1.48 1.48 0 0 1 2.36 0l7.67 12.72a1 1 0 0 1 .01 1.01z"/><circle cx="12" cy="16" r="1"/><path d="M12 8a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/></g></g>',"archive-outline":'<g data-name="Layer 2"><g data-name="archive"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M21 6a3 3 0 0 0-3-3H6a3 3 0 0 0-2 5.22V18a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8.22A3 3 0 0 0 21 6zM6 5h12a1 1 0 0 1 0 2H6a1 1 0 0 1 0-2zm12 13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9h12z"/><rect x="9" y="12" width="6" height="2" rx=".87" ry=".87"/></g></g>',"arrow-back-outline":'<g data-name="Layer 2"><g data-name="arrow-back"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M19 11H7.14l3.63-4.36a1 1 0 1 0-1.54-1.28l-5 6a1.19 1.19 0 0 0-.09.15c0 .05 0 .08-.07.13A1 1 0 0 0 4 12a1 1 0 0 0 .07.36c0 .05 0 .08.07.13a1.19 1.19 0 0 0 .09.15l5 6A1 1 0 0 0 10 19a1 1 0 0 0 .64-.23 1 1 0 0 0 .13-1.41L7.14 13H19a1 1 0 0 0 0-2z"/></g></g>',"arrow-circle-down-outline":'<g data-name="Layer 2"><g data-name="arrow-circle-down"><rect width="24" height="24" opacity="0"/><path d="M14.31 12.41L13 13.66V8a1 1 0 0 0-2 0v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3a1 1 0 0 0 .33.21.94.94 0 0 0 .76 0 .54.54 0 0 0 .16-.1.49.49 0 0 0 .15-.1l3-2.86a1 1 0 0 0-1.38-1.45z"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/></g></g>',"arrow-circle-left-outline":'<g data-name="Layer 2"><g data-name="arrow-circle-left"><rect width="24" height="24" opacity="0"/><path d="M16 11h-5.66l1.25-1.31a1 1 0 0 0-1.45-1.38l-2.86 3a1 1 0 0 0-.09.13.72.72 0 0 0-.11.19.88.88 0 0 0-.06.28L7 12a1 1 0 0 0 .08.38 1 1 0 0 0 .21.32l3 3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L10.41 13H16a1 1 0 0 0 0-2z"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/></g></g>',"arrow-circle-right-outline":'<g data-name="Layer 2"><g data-name="arrow-circle-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M17 12v-.09a.88.88 0 0 0-.06-.28.72.72 0 0 0-.11-.19 1 1 0 0 0-.09-.13l-2.86-3a1 1 0 0 0-1.45 1.38L13.66 11H8a1 1 0 0 0 0 2h5.59l-1.3 1.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3-3a1 1 0 0 0 .21-.32A1 1 0 0 0 17 12z"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/></g></g>',"arrow-circle-up-outline":'<g data-name="Layer 2"><g data-name="arrow-circle-up"><rect width="24" height="24" opacity="0"/><path d="M12.71 7.29a1 1 0 0 0-.32-.21A1 1 0 0 0 12 7h-.1a.82.82 0 0 0-.27.06.72.72 0 0 0-.19.11 1 1 0 0 0-.13.09l-3 2.86a1 1 0 0 0 1.38 1.45L11 10.34V16a1 1 0 0 0 2 0v-5.59l1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/></g></g>',"arrow-down-outline":'<g data-name="Layer 2"><g data-name="arrow-down"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M12 17a1.72 1.72 0 0 1-1.33-.64l-4.21-5.1a2.1 2.1 0 0 1-.26-2.21A1.76 1.76 0 0 1 7.79 8h8.42a1.76 1.76 0 0 1 1.59 1.05 2.1 2.1 0 0 1-.26 2.21l-4.21 5.1A1.72 1.72 0 0 1 12 17zm-3.91-7L12 14.82 16 10z"/></g></g>',"arrow-downward-outline":'<g data-name="Layer 2"><g data-name="arrow-downward"><rect width="24" height="24" opacity="0"/><path d="M18.77 13.36a1 1 0 0 0-1.41-.13L13 16.86V5a1 1 0 0 0-2 0v11.86l-4.36-3.63a1 1 0 1 0-1.28 1.54l6 5 .15.09.13.07a1 1 0 0 0 .72 0l.13-.07.15-.09 6-5a1 1 0 0 0 .13-1.41z"/></g></g>',"arrow-forward-outline":'<g data-name="Layer 2"><g data-name="arrow-forward"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M5 13h11.86l-3.63 4.36a1 1 0 0 0 1.54 1.28l5-6a1.19 1.19 0 0 0 .09-.15c0-.05.05-.08.07-.13A1 1 0 0 0 20 12a1 1 0 0 0-.07-.36c0-.05-.05-.08-.07-.13a1.19 1.19 0 0 0-.09-.15l-5-6A1 1 0 0 0 14 5a1 1 0 0 0-.64.23 1 1 0 0 0-.13 1.41L16.86 11H5a1 1 0 0 0 0 2z"/></g></g>',"arrow-ios-back-outline":'<g data-name="Layer 2"><g data-name="arrow-ios-back"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.83 19a1 1 0 0 1-.78-.37l-4.83-6a1 1 0 0 1 0-1.27l5-6a1 1 0 0 1 1.54 1.28L10.29 12l4.32 5.36a1 1 0 0 1-.78 1.64z"/></g></g>',"arrow-ios-downward-outline":'<g data-name="Layer 2"><g data-name="arrow-ios-downward"><rect width="24" height="24" opacity="0"/><path d="M12 16a1 1 0 0 1-.64-.23l-6-5a1 1 0 1 1 1.28-1.54L12 13.71l5.36-4.32a1 1 0 0 1 1.41.15 1 1 0 0 1-.14 1.46l-6 4.83A1 1 0 0 1 12 16z"/></g></g>',"arrow-ios-forward-outline":'<g data-name="Layer 2"><g data-name="arrow-ios-forward"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M10 19a1 1 0 0 1-.64-.23 1 1 0 0 1-.13-1.41L13.71 12 9.39 6.63a1 1 0 0 1 .15-1.41 1 1 0 0 1 1.46.15l4.83 6a1 1 0 0 1 0 1.27l-5 6A1 1 0 0 1 10 19z"/></g></g>',"arrow-ios-upward-outline":'<g data-name="Layer 2"><g data-name="arrow-ios-upward"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 15a1 1 0 0 1-.64-.23L12 10.29l-5.37 4.32a1 1 0 0 1-1.41-.15 1 1 0 0 1 .15-1.41l6-4.83a1 1 0 0 1 1.27 0l6 5a1 1 0 0 1 .13 1.41A1 1 0 0 1 18 15z"/></g></g>',"arrow-left-outline":'<g data-name="Layer 2"><g data-name="arrow-left"><rect width="24" height="24" opacity="0"/><path d="M13.54 18a2.06 2.06 0 0 1-1.3-.46l-5.1-4.21a1.7 1.7 0 0 1 0-2.66l5.1-4.21a2.1 2.1 0 0 1 2.21-.26 1.76 1.76 0 0 1 1.05 1.59v8.42a1.76 1.76 0 0 1-1.05 1.59 2.23 2.23 0 0 1-.91.2zm-4.86-6l4.82 4V8.09z"/></g></g>',"arrow-right-outline":'<g data-name="Layer 2"><g data-name="arrow-right"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M10.46 18a2.23 2.23 0 0 1-.91-.2 1.76 1.76 0 0 1-1.05-1.59V7.79A1.76 1.76 0 0 1 9.55 6.2a2.1 2.1 0 0 1 2.21.26l5.1 4.21a1.7 1.7 0 0 1 0 2.66l-5.1 4.21a2.06 2.06 0 0 1-1.3.46zm0-10v7.9l4.86-3.9z"/></g></g>',"arrow-up-outline":'<g data-name="Layer 2"><g data-name="arrow-up"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M16.21 16H7.79a1.76 1.76 0 0 1-1.59-1 2.1 2.1 0 0 1 .26-2.21l4.21-5.1a1.76 1.76 0 0 1 2.66 0l4.21 5.1A2.1 2.1 0 0 1 17.8 15a1.76 1.76 0 0 1-1.59 1zM8 14h7.9L12 9.18z"/></g></g>',"arrow-upward-outline":'<g data-name="Layer 2"><g data-name="arrow-upward"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M5.23 10.64a1 1 0 0 0 1.41.13L11 7.14V19a1 1 0 0 0 2 0V7.14l4.36 3.63a1 1 0 1 0 1.28-1.54l-6-5-.15-.09-.13-.07a1 1 0 0 0-.72 0l-.13.07-.15.09-6 5a1 1 0 0 0-.13 1.41z"/></g></g>',"arrowhead-down-outline":'<g data-name="Layer 2"><g data-name="arrowhead-down"><rect width="24" height="24" opacity="0"/><path d="M17.37 12.39L12 16.71l-5.36-4.48a1 1 0 1 0-1.28 1.54l6 5a1 1 0 0 0 1.27 0l6-4.83a1 1 0 0 0 .15-1.41 1 1 0 0 0-1.41-.14z"/><path d="M11.36 11.77a1 1 0 0 0 1.27 0l6-4.83a1 1 0 0 0 .15-1.41 1 1 0 0 0-1.41-.15L12 9.71 6.64 5.23a1 1 0 0 0-1.28 1.54z"/></g></g>',"arrowhead-left-outline":'<g data-name="Layer 2"><g data-name="arrowhead-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M11.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L7.29 12l4.48-5.37a1 1 0 0 0-.13-1.4z"/><path d="M14.29 12l4.48-5.37a1 1 0 0 0-1.54-1.28l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63z"/></g></g>',"arrowhead-right-outline":'<g data-name="Layer 2"><g data-name="arrowhead-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M18.78 11.37l-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L16.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 13 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/><path d="M7 5.37a1 1 0 0 0-1.61 1.26L9.71 12l-4.48 5.36a1 1 0 0 0 .13 1.41A1 1 0 0 0 6 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 0-1.27z"/></g></g>',"arrowhead-up-outline":'<g data-name="Layer 2"><g data-name="arrowhead-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M6.63 11.61L12 7.29l5.37 4.48A1 1 0 0 0 18 12a1 1 0 0 0 .77-.36 1 1 0 0 0-.13-1.41l-6-5a1 1 0 0 0-1.27 0l-6 4.83a1 1 0 0 0-.15 1.41 1 1 0 0 0 1.41.14z"/><path d="M12.64 12.23a1 1 0 0 0-1.27 0l-6 4.83a1 1 0 0 0-.15 1.41 1 1 0 0 0 1.41.15L12 14.29l5.37 4.48A1 1 0 0 0 18 19a1 1 0 0 0 .77-.36 1 1 0 0 0-.13-1.41z"/></g></g>',"at-outline":'<g data-name="Layer 2"><g data-name="at"><rect width="24" height="24" opacity="0"/><path d="M13 2a10 10 0 0 0-5 19.1 10.15 10.15 0 0 0 4 .9 10 10 0 0 0 6.08-2.06 1 1 0 0 0 .19-1.4 1 1 0 0 0-1.41-.19A8 8 0 1 1 12.77 4 8.17 8.17 0 0 1 20 12.22v.68a1.71 1.71 0 0 1-1.78 1.7 1.82 1.82 0 0 1-1.62-1.88V8.4a1 1 0 0 0-1-1 1 1 0 0 0-1 .87 5 5 0 0 0-3.44-1.36A5.09 5.09 0 1 0 15.31 15a3.6 3.6 0 0 0 5.55.61A3.67 3.67 0 0 0 22 12.9v-.68A10.2 10.2 0 0 0 13 2zm-1.82 13.09A3.09 3.09 0 1 1 14.27 12a3.1 3.1 0 0 1-3.09 3.09z"/></g></g>',"attach-2-outline":'<g data-name="Layer 2"><g data-name="attach-2"><rect width="24" height="24" opacity="0"/><path d="M12 22a5.86 5.86 0 0 1-6-5.7V6.13A4.24 4.24 0 0 1 10.33 2a4.24 4.24 0 0 1 4.34 4.13v10.18a2.67 2.67 0 0 1-5.33 0V6.92a1 1 0 0 1 1-1 1 1 0 0 1 1 1v9.39a.67.67 0 0 0 1.33 0V6.13A2.25 2.25 0 0 0 10.33 4 2.25 2.25 0 0 0 8 6.13V16.3a3.86 3.86 0 0 0 4 3.7 3.86 3.86 0 0 0 4-3.7V6.13a1 1 0 1 1 2 0V16.3a5.86 5.86 0 0 1-6 5.7z"/></g></g>',"attach-outline":'<g data-name="Layer 2"><g data-name="attach"><rect width="24" height="24" opacity="0"/><path d="M9.29 21a6.23 6.23 0 0 1-4.43-1.88 6 6 0 0 1-.22-8.49L12 3.2A4.11 4.11 0 0 1 15 2a4.48 4.48 0 0 1 3.19 1.35 4.36 4.36 0 0 1 .15 6.13l-7.4 7.43a2.54 2.54 0 0 1-1.81.75 2.72 2.72 0 0 1-1.95-.82 2.68 2.68 0 0 1-.08-3.77l6.83-6.86a1 1 0 0 1 1.37 1.41l-6.83 6.86a.68.68 0 0 0 .08.95.78.78 0 0 0 .53.23.56.56 0 0 0 .4-.16l7.39-7.43a2.36 2.36 0 0 0-.15-3.31 2.38 2.38 0 0 0-3.27-.15L6.06 12a4 4 0 0 0 .22 5.67 4.22 4.22 0 0 0 3 1.29 3.67 3.67 0 0 0 2.61-1.06l7.39-7.43a1 1 0 1 1 1.42 1.41l-7.39 7.43A5.65 5.65 0 0 1 9.29 21z"/></g></g>',"award-outline":'<g data-name="Layer 2"><g data-name="award"><rect width="24" height="24" opacity="0"/><path d="M19 20.75l-2.31-9A5.94 5.94 0 0 0 18 8 6 6 0 0 0 6 8a5.94 5.94 0 0 0 1.34 3.77L5 20.75a1 1 0 0 0 1.48 1.11l5.33-3.13 5.68 3.14A.91.91 0 0 0 18 22a1 1 0 0 0 1-1.25zM12 4a4 4 0 1 1-4 4 4 4 0 0 1 4-4zm.31 12.71a1 1 0 0 0-1 0l-3.75 2.2L9 13.21a5.94 5.94 0 0 0 5.92 0L16.45 19z"/></g></g>',"backspace-outline":'<g data-name="Layer 2"><g data-name="backspace"><rect width="24" height="24" opacity="0"/><path d="M20.14 4h-9.77a3 3 0 0 0-2 .78l-.1.11-6 7.48a1 1 0 0 0 .11 1.37l6 5.48a3 3 0 0 0 2 .78h9.77A1.84 1.84 0 0 0 22 18.18V5.82A1.84 1.84 0 0 0 20.14 4zM20 18h-9.63a1 1 0 0 1-.67-.26l-5.33-4.85 5.38-6.67a1 1 0 0 1 .62-.22H20z"/><path d="M11.29 14.71a1 1 0 0 0 1.42 0l1.29-1.3 1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L15.41 12l1.3-1.29a1 1 0 0 0-1.42-1.42L14 10.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l1.3 1.29-1.3 1.29a1 1 0 0 0 0 1.42z"/></g></g>',"bar-chart-2-outline":'<g data-name="Layer 2"><g data-name="bar-chart-2"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M12 8a1 1 0 0 0-1 1v11a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/><path d="M19 4a1 1 0 0 0-1 1v15a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/><path d="M5 12a1 1 0 0 0-1 1v7a1 1 0 0 0 2 0v-7a1 1 0 0 0-1-1z"/></g></g>',"bar-chart-outline":'<g data-name="Layer 2"><g data-name="bar-chart"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M12 4a1 1 0 0 0-1 1v15a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/><path d="M19 12a1 1 0 0 0-1 1v7a1 1 0 0 0 2 0v-7a1 1 0 0 0-1-1z"/><path d="M5 8a1 1 0 0 0-1 1v11a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/></g></g>',"battery-outline":'<g data-name="Layer 2"><g data-name="battery"><rect width="24" height="24" opacity="0"/><path d="M15.83 6H4.17A2.31 2.31 0 0 0 2 8.43v7.14A2.31 2.31 0 0 0 4.17 18h11.66A2.31 2.31 0 0 0 18 15.57V8.43A2.31 2.31 0 0 0 15.83 6zm.17 9.57a.52.52 0 0 1-.17.43H4.18a.5.5 0 0 1-.18-.43V8.43A.53.53 0 0 1 4.17 8h11.65a.5.5 0 0 1 .18.43z"/><path d="M21 9a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1z"/></g></g>',"behance-outline":'<g data-name="Layer 2"><g data-name="behance"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M10.52 11.78a1.4 1.4 0 0 0 1.12-1.43c0-1-.77-1.6-1.94-1.6H7v6.5h2.7c1.3-.05 2.3-.72 2.3-1.88a1.52 1.52 0 0 0-1.48-1.59zM8.26 9.67h1.15c.6 0 .95.32.95.85s-.38.89-1.25.89h-.85zm1 4.57h-1V12.3h1.23c.75 0 1.17.38 1.17 1s-.42.94-1.44.94z"/><path d="M14.75 10.3a2.11 2.11 0 0 0-2.28 2.25V13a2.15 2.15 0 0 0 2.34 2.31A2 2 0 0 0 17 13.75h-1.21a.9.9 0 0 1-1 .63 1.07 1.07 0 0 1-1.09-1.19v-.14H17v-.47a2.12 2.12 0 0 0-2.25-2.28zm1 2h-2.02a1 1 0 0 1 1-1.09 1 1 0 0 1 1 1.09z"/><rect x="13.25" y="9.2" width="3" height=".5"/></g></g>',"bell-off-outline":'<g data-name="Layer 2"><g data-name="bell-off"><rect width="24" height="24" opacity="0"/><path d="M8.9 5.17A4.67 4.67 0 0 1 12.64 4a4.86 4.86 0 0 1 4.08 4.9v4.5a1.92 1.92 0 0 0 .1.59l3.6 3.6a1.58 1.58 0 0 0 .45-.6 1.62 1.62 0 0 0-.35-1.78l-1.8-1.81V8.94a6.86 6.86 0 0 0-5.82-6.88 6.71 6.71 0 0 0-5.32 1.61 6.88 6.88 0 0 0-.58.54l1.47 1.43a4.79 4.79 0 0 1 .43-.47z"/><path d="M14 16.86l-.83-.86H5.51l1.18-1.18a2 2 0 0 0 .59-1.42v-3.29l-2-2a5.68 5.68 0 0 0 0 .59v4.7l-1.8 1.81A1.63 1.63 0 0 0 4.64 18H8v.34A3.84 3.84 0 0 0 12 22a3.88 3.88 0 0 0 4-3.22l-.83-.78zM12 20a1.88 1.88 0 0 1-2-1.66V18h4v.34A1.88 1.88 0 0 1 12 20z"/><path d="M20.71 19.29L19.41 18l-2-2-9.52-9.53L6.42 5 4.71 3.29a1 1 0 0 0-1.42 1.42L5.53 7l1.75 1.7 7.31 7.3.07.07L16 17.41l.59.59 2.7 2.71a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"bell-outline":'<g data-name="Layer 2"><g data-name="bell"><rect width="24" height="24" opacity="0"/><path d="M20.52 15.21l-1.8-1.81V8.94a6.86 6.86 0 0 0-5.82-6.88 6.74 6.74 0 0 0-7.62 6.67v4.67l-1.8 1.81A1.64 1.64 0 0 0 4.64 18H8v.34A3.84 3.84 0 0 0 12 22a3.84 3.84 0 0 0 4-3.66V18h3.36a1.64 1.64 0 0 0 1.16-2.79zM14 18.34A1.88 1.88 0 0 1 12 20a1.88 1.88 0 0 1-2-1.66V18h4zM5.51 16l1.18-1.18a2 2 0 0 0 .59-1.42V8.73A4.73 4.73 0 0 1 8.9 5.17 4.67 4.67 0 0 1 12.64 4a4.86 4.86 0 0 1 4.08 4.9v4.5a2 2 0 0 0 .58 1.42L18.49 16z"/></g></g>',"bluetooth-outline":'<g data-name="Layer 2"><g data-name="bluetooth"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.63 12l4-3.79a1.14 1.14 0 0 0-.13-1.77l-4.67-3.23a1.17 1.17 0 0 0-1.21-.08 1.15 1.15 0 0 0-.62 1v6.2l-3.19-4a1 1 0 0 0-1.56 1.3L9.72 12l-3.5 4.43a1 1 0 0 0 .16 1.4A1 1 0 0 0 7 18a1 1 0 0 0 .78-.38L11 13.56v6.29A1.16 1.16 0 0 0 12.16 21a1.16 1.16 0 0 0 .67-.21l4.64-3.18a1.17 1.17 0 0 0 .49-.85 1.15 1.15 0 0 0-.34-.91zM13 5.76l2.5 1.73L13 9.85zm0 12.49v-4.07l2.47 2.38z"/></g></g>',"book-open-outline":'<g data-name="Layer 2"><g data-name="book-open"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.62 4.22a1 1 0 0 0-.84-.2L12 5.77 4.22 4A1 1 0 0 0 3 5v12.2a1 1 0 0 0 .78 1l8 1.8h.44l8-1.8a1 1 0 0 0 .78-1V5a1 1 0 0 0-.38-.78zM5 6.25l6 1.35v10.15L5 16.4zM19 16.4l-6 1.35V7.6l6-1.35z"/></g></g>',"book-outline":'<g data-name="Layer 2"><g data-name="book"><rect width="24" height="24" opacity="0"/><path d="M19 3H7a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1zM7 5h11v10H7a3 3 0 0 0-1 .18V6a1 1 0 0 1 1-1zm0 14a1 1 0 0 1 0-2h11v2z"/></g></g>',"bookmark-outline":'<g data-name="Layer 2"><g data-name="bookmark"><rect width="24" height="24" opacity="0"/><path d="M6.09 21.06a1 1 0 0 1-1-1L4.94 5.4a2.26 2.26 0 0 1 2.18-2.35L16.71 3a2.27 2.27 0 0 1 2.23 2.31l.14 14.66a1 1 0 0 1-.49.87 1 1 0 0 1-1 0l-5.7-3.16-5.29 3.23a1.2 1.2 0 0 1-.51.15zm5.76-5.55a1.11 1.11 0 0 1 .5.12l4.71 2.61-.12-12.95c0-.2-.13-.34-.21-.33l-9.6.09c-.08 0-.19.13-.19.33l.12 12.9 4.28-2.63a1.06 1.06 0 0 1 .51-.14z"/></g></g>',"briefcase-outline":'<g data-name="Layer 2"><g data-name="briefcase"><rect width="24" height="24" opacity="0"/><path d="M19 7h-3V5.5A2.5 2.5 0 0 0 13.5 3h-3A2.5 2.5 0 0 0 8 5.5V7H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-4 2v10H9V9zm-5-3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V7h-4zM4 18v-8a1 1 0 0 1 1-1h2v10H5a1 1 0 0 1-1-1zm16 0a1 1 0 0 1-1 1h-2V9h2a1 1 0 0 1 1 1z"/></g></g>',"browser-outline":'<g data-name="Layer 2"><g data-name="browser"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1v-7h14zM5 9V6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3z"/><circle cx="8" cy="7.03" r="1"/><circle cx="12" cy="7.03" r="1"/></g></g>',"brush-outline":'<g data-name="Layer 2"><g data-name="brush"><rect width="24" height="24" opacity="0"/><path d="M20 6.83a2.76 2.76 0 0 0-.82-2 2.89 2.89 0 0 0-4 0l-6.6 6.6h-.22a4.42 4.42 0 0 0-4.3 4.31L4 19a1 1 0 0 0 .29.73A1.05 1.05 0 0 0 5 20l3.26-.06a4.42 4.42 0 0 0 4.31-4.3v-.23l6.61-6.6A2.74 2.74 0 0 0 20 6.83zM8.25 17.94L6 18v-2.23a2.4 2.4 0 0 1 2.4-2.36 2.15 2.15 0 0 1 2.15 2.19 2.4 2.4 0 0 1-2.3 2.34zm9.52-10.55l-5.87 5.87a4.55 4.55 0 0 0-.52-.64 3.94 3.94 0 0 0-.64-.52l5.87-5.86a.84.84 0 0 1 1.16 0 .81.81 0 0 1 .23.59.79.79 0 0 1-.23.56z"/></g></g>',"bulb-outline":'<g data-name="Layer 2"><g data-name="bulb"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 7a5 5 0 0 0-3 9v4a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-4a5 5 0 0 0-3-9zm1.5 7.59a1 1 0 0 0-.5.87V20h-2v-4.54a1 1 0 0 0-.5-.87A3 3 0 0 1 9 12a3 3 0 0 1 6 0 3 3 0 0 1-1.5 2.59z"/><path d="M12 6a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v2a1 1 0 0 0 1 1z"/><path d="M21 11h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M5 11H3a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M7.66 6.42L6.22 5a1 1 0 0 0-1.39 1.47l1.44 1.39a1 1 0 0 0 .73.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.06-1.41z"/><path d="M19.19 5.05a1 1 0 0 0-1.41 0l-1.44 1.37a1 1 0 0 0 0 1.41 1 1 0 0 0 .72.31 1 1 0 0 0 .69-.28l1.44-1.39a1 1 0 0 0 0-1.42z"/></g></g>',"calendar-outline":'<g data-name="Layer 2"><g data-name="calendar"><rect width="24" height="24" opacity="0"/><path d="M18 4h-1V3a1 1 0 0 0-2 0v1H9V3a1 1 0 0 0-2 0v1H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zM6 6h1v1a1 1 0 0 0 2 0V6h6v1a1 1 0 0 0 2 0V6h1a1 1 0 0 1 1 1v4H5V7a1 1 0 0 1 1-1zm12 14H6a1 1 0 0 1-1-1v-6h14v6a1 1 0 0 1-1 1z"/><circle cx="8" cy="16" r="1"/><path d="M16 15h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/></g></g>',"camera-outline":'<g data-name="Layer 2"><g data-name="camera"><rect width="24" height="24" opacity="0"/><path d="M19 7h-3V5.5A2.5 2.5 0 0 0 13.5 3h-3A2.5 2.5 0 0 0 8 5.5V7H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-9-1.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V7h-4zM20 18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"/><path d="M12 10.5a3.5 3.5 0 1 0 3.5 3.5 3.5 3.5 0 0 0-3.5-3.5zm0 5a1.5 1.5 0 1 1 1.5-1.5 1.5 1.5 0 0 1-1.5 1.5z"/></g></g>',"car-outline":'<g data-name="Layer 2"><g data-name="car"><rect width="24" height="24" opacity="0"/><path d="M21.6 11.22L17 7.52V5a1.91 1.91 0 0 0-1.81-2H3.79A1.91 1.91 0 0 0 2 5v10a2 2 0 0 0 1.2 1.88 3 3 0 1 0 5.6.12h6.36a3 3 0 1 0 5.64 0h.2a1 1 0 0 0 1-1v-4a1 1 0 0 0-.4-.78zM20 12.48V15h-3v-4.92zM7 18a1 1 0 1 1-1-1 1 1 0 0 1 1 1zm5-3H4V5h11v10zm7 3a1 1 0 1 1-1-1 1 1 0 0 1 1 1z"/></g></g>',"cast-outline":'<g data-name="Layer 2"><g data-name="cast"><polyline points="24 24 0 24 0 0" opacity="0"/><path d="M18.4 3H5.6A2.7 2.7 0 0 0 3 5.78V7a1 1 0 0 0 2 0V5.78A.72.72 0 0 1 5.6 5h12.8a.72.72 0 0 1 .6.78v12.44a.72.72 0 0 1-.6.78H17a1 1 0 0 0 0 2h1.4a2.7 2.7 0 0 0 2.6-2.78V5.78A2.7 2.7 0 0 0 18.4 3z"/><path d="M3.86 14A1 1 0 0 0 3 15.17a1 1 0 0 0 1.14.83 2.49 2.49 0 0 1 2.12.72 2.52 2.52 0 0 1 .51 2.84 1 1 0 0 0 .48 1.33 1.06 1.06 0 0 0 .42.09 1 1 0 0 0 .91-.58A4.52 4.52 0 0 0 3.86 14z"/><path d="M3.86 10.08a1 1 0 0 0 .28 2 6 6 0 0 1 5.09 1.71 6 6 0 0 1 1.53 5.95 1 1 0 0 0 .68 1.26.9.9 0 0 0 .28 0 1 1 0 0 0 1-.72 8 8 0 0 0-8.82-10.2z"/><circle cx="4" cy="19" r="1"/></g></g>',"charging-outline":'<g data-name="Layer 2"><g data-name="charging"><rect width="24" height="24" opacity="0"/><path d="M21 9a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-4a1 1 0 0 0-1-1z"/><path d="M15.83 6h-3.1l-1.14 2h4.23a.5.5 0 0 1 .18.43v7.14a.52.52 0 0 1-.17.43H13l-1.15 2h4A2.31 2.31 0 0 0 18 15.57V8.43A2.31 2.31 0 0 0 15.83 6z"/><path d="M4 15.57V8.43A.53.53 0 0 1 4.17 8H7l1.13-2h-4A2.31 2.31 0 0 0 2 8.43v7.14A2.31 2.31 0 0 0 4.17 18h3.1l1.14-2H4.18a.5.5 0 0 1-.18-.43z"/><path d="M9 20a1 1 0 0 1-.87-1.5l3.15-5.5H7a1 1 0 0 1-.86-.5 1 1 0 0 1 0-1l4-7a1 1 0 0 1 1.74 1L8.72 11H13a1 1 0 0 1 .86.5 1 1 0 0 1 0 1l-4 7A1 1 0 0 1 9 20z"/></g></g>',"checkmark-circle-2-outline":'<g data-name="Layer 2"><g data-name="checkmark-circle-2"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M14.7 8.39l-3.78 5-1.63-2.11a1 1 0 0 0-1.58 1.23l2.43 3.11a1 1 0 0 0 .79.38 1 1 0 0 0 .79-.39l4.57-6a1 1 0 1 0-1.6-1.22z"/></g></g>',"checkmark-circle-outline":'<g data-name="Layer 2"><g data-name="checkmark-circle"><rect width="24" height="24" opacity="0"/><path d="M9.71 11.29a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .72-.34l7-8a1 1 0 0 0-1.5-1.32L12 13.54z"/><path d="M21 11a1 1 0 0 0-1 1 8 8 0 0 1-8 8A8 8 0 0 1 6.33 6.36 7.93 7.93 0 0 1 12 4a8.79 8.79 0 0 1 1.9.22 1 1 0 1 0 .47-1.94A10.54 10.54 0 0 0 12 2a10 10 0 0 0-7 17.09A9.93 9.93 0 0 0 12 22a10 10 0 0 0 10-10 1 1 0 0 0-1-1z"/></g></g>',"checkmark-outline":'<g data-name="Layer 2"><g data-name="checkmark"><rect width="24" height="24" opacity="0"/><path d="M9.86 18a1 1 0 0 1-.73-.32l-4.86-5.17a1 1 0 1 1 1.46-1.37l4.12 4.39 8.41-9.2a1 1 0 1 1 1.48 1.34l-9.14 10a1 1 0 0 1-.73.33z"/></g></g>',"checkmark-square-2-outline":'<g data-name="Layer 2"><g data-name="checkmark-square-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/><path d="M14.7 8.39l-3.78 5-1.63-2.11a1 1 0 0 0-1.58 1.23l2.43 3.11a1 1 0 0 0 .79.38 1 1 0 0 0 .79-.39l4.57-6a1 1 0 1 0-1.6-1.22z"/></g></g>',"checkmark-square-outline":'<g data-name="Layer 2"><g data-name="checkmark-square"><rect width="24" height="24" opacity="0"/><path d="M20 11.83a1 1 0 0 0-1 1v5.57a.6.6 0 0 1-.6.6H5.6a.6.6 0 0 1-.6-.6V5.6a.6.6 0 0 1 .6-.6h9.57a1 1 0 1 0 0-2H5.6A2.61 2.61 0 0 0 3 5.6v12.8A2.61 2.61 0 0 0 5.6 21h12.8a2.61 2.61 0 0 0 2.6-2.6v-5.57a1 1 0 0 0-1-1z"/><path d="M10.72 11a1 1 0 0 0-1.44 1.38l2.22 2.33a1 1 0 0 0 .72.31 1 1 0 0 0 .72-.3l6.78-7a1 1 0 1 0-1.44-1.4l-6.05 6.26z"/></g></g>',"chevron-down-outline":'<g data-name="Layer 2"><g data-name="chevron-down"><rect width="24" height="24" opacity="0"/><path d="M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.1l3.3-3.18a1 1 0 1 1 1.38 1.44l-4 3.86a1 1 0 0 1-.68.28z"/></g></g>',"chevron-left-outline":'<g data-name="Layer 2"><g data-name="chevron-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.36 17a1 1 0 0 1-.72-.31l-3.86-4a1 1 0 0 1 0-1.4l4-4a1 1 0 1 1 1.42 1.42L10.9 12l3.18 3.3a1 1 0 0 1 0 1.41 1 1 0 0 1-.72.29z"/></g></g>',"chevron-right-outline":'<g data-name="Layer 2"><g data-name="chevron-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M10.5 17a1 1 0 0 1-.71-.29 1 1 0 0 1 0-1.42L13.1 12 9.92 8.69a1 1 0 0 1 0-1.41 1 1 0 0 1 1.42 0l3.86 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 0 1-.7.32z"/></g></g>',"chevron-up-outline":'<g data-name="Layer 2"><g data-name="chevron-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M16 14.5a1 1 0 0 1-.71-.29L12 10.9l-3.3 3.18a1 1 0 0 1-1.41 0 1 1 0 0 1 0-1.42l4-3.86a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.42 1 1 0 0 1-.69.28z"/></g></g>',"clipboard-outline":'<g data-name="Layer 2"><g data-name="clipboard"><rect width="24" height="24" opacity="0"/><path d="M18 5V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v1a3 3 0 0 0-3 3v11a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3zM8 4h8v4H8V4zm11 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1v1a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V7a1 1 0 0 1 1 1z"/></g></g>',"clock-outline":'<g data-name="Layer 2"><g data-name="clock"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M16 11h-3V8a1 1 0 0 0-2 0v4a1 1 0 0 0 1 1h4a1 1 0 0 0 0-2z"/></g></g>',"close-circle-outline":'<g data-name="Layer 2"><g data-name="close-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M14.71 9.29a1 1 0 0 0-1.42 0L12 10.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l1.3 1.29-1.3 1.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l1.29-1.3 1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L13.41 12l1.3-1.29a1 1 0 0 0 0-1.42z"/></g></g>',"close-outline":'<g data-name="Layer 2"><g data-name="close"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29-4.3 4.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4.29-4.3 4.29 4.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"close-square-outline":'<g data-name="Layer 2"><g data-name="close-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/><path d="M14.71 9.29a1 1 0 0 0-1.42 0L12 10.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l1.3 1.29-1.3 1.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l1.29-1.3 1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L13.41 12l1.3-1.29a1 1 0 0 0 0-1.42z"/></g></g>',"cloud-download-outline":'<g data-name="Layer 2"><g data-name="cloud-download"><rect width="24" height="24" opacity="0"/><path d="M14.31 16.38L13 17.64V12a1 1 0 0 0-2 0v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 21a1 1 0 0 0 .69-.28l3-2.9a1 1 0 1 0-1.38-1.44z"/><path d="M17.67 7A6 6 0 0 0 6.33 7a5 5 0 0 0-3.08 8.27A1 1 0 1 0 4.75 14 3 3 0 0 1 7 9h.1a1 1 0 0 0 1-.8 4 4 0 0 1 7.84 0 1 1 0 0 0 1 .8H17a3 3 0 0 1 2.25 5 1 1 0 0 0 .09 1.42 1 1 0 0 0 .66.25 1 1 0 0 0 .75-.34A5 5 0 0 0 17.67 7z"/></g></g>',"cloud-upload-outline":'<g data-name="Layer 2"><g data-name="cloud-upload"><rect width="24" height="24" opacity="0"/><path d="M12.71 11.29a1 1 0 0 0-1.4 0l-3 2.9a1 1 0 1 0 1.38 1.44L11 14.36V20a1 1 0 0 0 2 0v-5.59l1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M17.67 7A6 6 0 0 0 6.33 7a5 5 0 0 0-3.08 8.27A1 1 0 1 0 4.75 14 3 3 0 0 1 7 9h.1a1 1 0 0 0 1-.8 4 4 0 0 1 7.84 0 1 1 0 0 0 1 .8H17a3 3 0 0 1 2.25 5 1 1 0 0 0 .09 1.42 1 1 0 0 0 .66.25 1 1 0 0 0 .75-.34A5 5 0 0 0 17.67 7z"/></g></g>',"code-download-outline":'<g data-name="Layer 2"><g data-name="code-download"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M4.29 12l4.48-5.36a1 1 0 1 0-1.54-1.28l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63z"/><path d="M21.78 11.37l-4.78-6a1 1 0 0 0-1.56 1.26L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/><path d="M15.72 11.41a1 1 0 0 0-1.41 0L13 12.64V8a1 1 0 0 0-2 0v4.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 16a1 1 0 0 0 .69-.28l3-2.9a1 1 0 0 0 .03-1.41z"/></g></g>',"code-outline":'<g data-name="Layer 2"><g data-name="code"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M8.64 5.23a1 1 0 0 0-1.41.13l-5 6a1 1 0 0 0 0 1.27l4.83 6a1 1 0 0 0 .78.37 1 1 0 0 0 .78-1.63L4.29 12l4.48-5.36a1 1 0 0 0-.13-1.41z"/><path d="M21.78 11.37l-4.78-6a1 1 0 0 0-1.41-.15 1 1 0 0 0-.15 1.41L19.71 12l-4.48 5.37a1 1 0 0 0 .13 1.41A1 1 0 0 0 16 19a1 1 0 0 0 .77-.36l5-6a1 1 0 0 0 .01-1.27z"/></g></g>',"collapse-outline":'<g data-name="Layer 2"><g data-name="collapse"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 9h-2.58l3.29-3.29a1 1 0 1 0-1.42-1.42L15 7.57V5a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2z"/><path d="M10 13H5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L9 16.42V19a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1z"/></g></g>',"color-palette-outline":'<g data-name="Layer 2"><g data-name="color-palette"><rect width="24" height="24" opacity="0"/><path d="M19.54 5.08A10.61 10.61 0 0 0 11.91 2a10 10 0 0 0-.05 20 2.58 2.58 0 0 0 2.53-1.89 2.52 2.52 0 0 0-.57-2.28.5.5 0 0 1 .37-.83h1.65A6.15 6.15 0 0 0 22 11.33a8.48 8.48 0 0 0-2.46-6.25zM15.88 15h-1.65a2.49 2.49 0 0 0-1.87 4.15.49.49 0 0 1 .12.49c-.05.21-.28.34-.59.36a8 8 0 0 1-7.82-9.11A8.1 8.1 0 0 1 11.92 4H12a8.47 8.47 0 0 1 6.1 2.48 6.5 6.5 0 0 1 1.9 4.77A4.17 4.17 0 0 1 15.88 15z"/><circle cx="12" cy="6.5" r="1.5"/><path d="M15.25 7.2a1.5 1.5 0 1 0 2.05.55 1.5 1.5 0 0 0-2.05-.55z"/><path d="M8.75 7.2a1.5 1.5 0 1 0 .55 2.05 1.5 1.5 0 0 0-.55-2.05z"/><path d="M6.16 11.26a1.5 1.5 0 1 0 2.08.4 1.49 1.49 0 0 0-2.08-.4z"/></g></g>',"color-picker-outline":'<g data-name="Layer 2"><g data-name="color-picker"><rect width="24" height="24" opacity="0"/><path d="M19.4 7.34L16.66 4.6A1.92 1.92 0 0 0 14 4.53l-2 2-1.29-1.24a1 1 0 0 0-1.42 1.42L10.53 8 5 13.53a2 2 0 0 0-.57 1.21L4 18.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 20h.09l4.17-.38a2 2 0 0 0 1.21-.57l5.58-5.58 1.24 1.24a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42l-1.24-1.24 2-2a1.92 1.92 0 0 0-.07-2.71zM9.08 17.62l-3 .28.27-3L12 9.36l2.69 2.7zm7-7L13.36 8l1.91-2L18 8.73z"/></g></g>',"compass-outline":'<g data-name="Layer 2"><g data-name="compass"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M15.68 8.32a1 1 0 0 0-1.1-.25l-4.21 1.7a1 1 0 0 0-.55.55l-1.75 4.26a1 1 0 0 0 .18 1h.05A1 1 0 0 0 9 16a1 1 0 0 0 .38-.07l4.21-1.7a1 1 0 0 0 .55-.55l1.75-4.26a1 1 0 0 0-.21-1.1zm-4.88 4.89l.71-1.74 1.69-.68-.71 1.74z"/></g></g>',"copy-outline":'<g data-name="Layer 2"><g data-name="copy"><rect width="24" height="24" opacity="0"/><path d="M18 21h-6a3 3 0 0 1-3-3v-6a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3zm-6-10a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-6a1 1 0 0 0-1-1z"/><path d="M9.73 15H5.67A2.68 2.68 0 0 1 3 12.33V5.67A2.68 2.68 0 0 1 5.67 3h6.66A2.68 2.68 0 0 1 15 5.67V9.4h-2V5.67a.67.67 0 0 0-.67-.67H5.67a.67.67 0 0 0-.67.67v6.66a.67.67 0 0 0 .67.67h4.06z"/></g></g>',"corner-down-left-outline":'<g data-name="Layer 2"><g data-name="corner-down-left"><rect x=".05" y=".05" width="24" height="24" transform="rotate(-89.76 12.05 12.05)" opacity="0"/><path d="M20 6a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 1-.29.71A1 1 0 0 1 17 12H8.08l2.69-3.39a1 1 0 0 0-1.52-1.17l-4 5a1 1 0 0 0 0 1.25l4 5a1 1 0 0 0 .78.37 1 1 0 0 0 .62-.22 1 1 0 0 0 .15-1.41l-2.66-3.36h8.92a3 3 0 0 0 3-3z"/></g></g>',"corner-down-right-outline":'<g data-name="Layer 2"><g data-name="corner-down-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19.78 12.38l-4-5a1 1 0 0 0-1.56 1.24l2.7 3.38H8a1 1 0 0 1-1-1V6a1 1 0 0 0-2 0v5a3 3 0 0 0 3 3h8.92l-2.7 3.38a1 1 0 0 0 .16 1.4A1 1 0 0 0 15 19a1 1 0 0 0 .78-.38l4-5a1 1 0 0 0 0-1.24z"/></g></g>',"corner-left-down-outline":'<g data-name="Layer 2"><g data-name="corner-left-down"><rect width="24" height="24" opacity="0"/><path d="M18 5h-5a3 3 0 0 0-3 3v8.92l-3.38-2.7a1 1 0 0 0-1.24 1.56l5 4a1 1 0 0 0 1.24 0l5-4a1 1 0 1 0-1.24-1.56L12 16.92V8a1 1 0 0 1 1-1h5a1 1 0 0 0 0-2z"/></g></g>',"corner-left-up-outline":'<g data-name="Layer 2"><g data-name="corner-left-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 17h-5a1 1 0 0 1-1-1V7.08l3.38 2.7A1 1 0 0 0 16 10a1 1 0 0 0 .78-.38 1 1 0 0 0-.16-1.4l-5-4a1 1 0 0 0-1.24 0l-5 4a1 1 0 0 0 1.24 1.56L10 7.08V16a3 3 0 0 0 3 3h5a1 1 0 0 0 0-2z"/></g></g>',"corner-right-down-outline":'<g data-name="Layer 2"><g data-name="corner-right-down"><rect width="24" height="24" opacity="0"/><path d="M18.78 14.38a1 1 0 0 0-1.4-.16L14 16.92V8a3 3 0 0 0-3-3H6a1 1 0 0 0 0 2h5a1 1 0 0 1 1 1v8.92l-3.38-2.7a1 1 0 0 0-1.24 1.56l5 4a1 1 0 0 0 1.24 0l5-4a1 1 0 0 0 .16-1.4z"/></g></g>',"corner-right-up-outline":'<g data-name="Layer 2"><g data-name="corner-right-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.62 8.22l-5-4a1 1 0 0 0-1.24 0l-5 4a1 1 0 0 0 1.24 1.56L12 7.08V16a1 1 0 0 1-1 1H6a1 1 0 0 0 0 2h5a3 3 0 0 0 3-3V7.08l3.38 2.7A1 1 0 0 0 18 10a1 1 0 0 0 .78-.38 1 1 0 0 0-.16-1.4z"/></g></g>',"corner-up-left-outline":'<g data-name="Layer 2"><g data-name="corner-up-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M16 10H7.08l2.7-3.38a1 1 0 1 0-1.56-1.24l-4 5a1 1 0 0 0 0 1.24l4 5A1 1 0 0 0 9 17a1 1 0 0 0 .62-.22 1 1 0 0 0 .16-1.4L7.08 12H16a1 1 0 0 1 1 1v5a1 1 0 0 0 2 0v-5a3 3 0 0 0-3-3z"/></g></g>',"corner-up-right-outline":'<g data-name="Layer 2"><g data-name="corner-up-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19.78 10.38l-4-5a1 1 0 0 0-1.56 1.24l2.7 3.38H8a3 3 0 0 0-3 3v5a1 1 0 0 0 2 0v-5a1 1 0 0 1 1-1h8.92l-2.7 3.38a1 1 0 0 0 .16 1.4A1 1 0 0 0 15 17a1 1 0 0 0 .78-.38l4-5a1 1 0 0 0 0-1.24z"/></g></g>',"credit-card-outline":'<g data-name="Layer 2"><g data-name="credit-card"><rect width="24" height="24" opacity="0"/><path d="M19 5H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3zM4 8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v1H4zm16 8a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-5h16z"/><path d="M7 15h4a1 1 0 0 0 0-2H7a1 1 0 0 0 0 2z"/><path d="M15 15h2a1 1 0 0 0 0-2h-2a1 1 0 0 0 0 2z"/></g></g>',"crop-outline":'<g data-name="Layer 2"><g data-name="crop"><rect width="24" height="24" opacity="0"/><path d="M21 16h-3V8.56A2.56 2.56 0 0 0 15.44 6H8V3a1 1 0 0 0-2 0v3H3a1 1 0 0 0 0 2h3v7.44A2.56 2.56 0 0 0 8.56 18H16v3a1 1 0 0 0 2 0v-3h3a1 1 0 0 0 0-2zM8.56 16a.56.56 0 0 1-.56-.56V8h7.44a.56.56 0 0 1 .56.56V16z"/></g></g>',"cube-outline":'<g data-name="Layer 2"><g data-name="cube"><rect width="24" height="24" opacity="0"/><path d="M20.66 7.26c0-.07-.1-.14-.15-.21l-.09-.1a2.5 2.5 0 0 0-.86-.68l-6.4-3a2.7 2.7 0 0 0-2.26 0l-6.4 3a2.6 2.6 0 0 0-.86.68L3.52 7a1 1 0 0 0-.15.2A2.39 2.39 0 0 0 3 8.46v7.06a2.49 2.49 0 0 0 1.46 2.26l6.4 3a2.7 2.7 0 0 0 2.27 0l6.4-3A2.49 2.49 0 0 0 21 15.54V8.46a2.39 2.39 0 0 0-.34-1.2zm-8.95-2.2a.73.73 0 0 1 .58 0l5.33 2.48L12 10.15 6.38 7.54zM5.3 16a.47.47 0 0 1-.3-.43V9.1l6 2.79v6.72zm13.39 0L13 18.61v-6.72l6-2.79v6.44a.48.48 0 0 1-.31.46z"/></g></g>',"diagonal-arrow-left-down-outline":'<g data-name="Layer 2"><g data-name="diagonal-arrow-left-down"><rect width="24" height="24" opacity="0"/><path d="M17.71 6.29a1 1 0 0 0-1.42 0L8 14.59V9a1 1 0 0 0-2 0v8a1 1 0 0 0 1 1h8a1 1 0 0 0 0-2H9.41l8.3-8.29a1 1 0 0 0 0-1.42z"/></g></g>',"diagonal-arrow-left-up-outline":'<g data-name="Layer 2"><g data-name="diagonal-arrow-left-up"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17.71 16.29L9.42 8H15a1 1 0 0 0 0-2H7.05a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1H7a1 1 0 0 0 1-1V9.45l8.26 8.26a1 1 0 0 0 1.42 0 1 1 0 0 0 .03-1.42z"/></g></g>',"diagonal-arrow-right-down-outline":'<g data-name="Layer 2"><g data-name="diagonal-arrow-right-down"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M17 8a1 1 0 0 0-1 1v5.59l-8.29-8.3a1 1 0 0 0-1.42 1.42l8.3 8.29H9a1 1 0 0 0 0 2h8a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1z"/></g></g>',"diagonal-arrow-right-up-outline":'<g data-name="Layer 2"><g data-name="diagonal-arrow-right-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 7.05a1 1 0 0 0-1-1L9 6a1 1 0 0 0 0 2h5.56l-8.27 8.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L16 9.42V15a1 1 0 0 0 1 1 1 1 0 0 0 1-1z"/></g></g>',"done-all-outline":'<g data-name="Layer 2"><g data-name="done-all"><rect width="24" height="24" opacity="0"/><path d="M16.62 6.21a1 1 0 0 0-1.41.17l-7 9-3.43-4.18a1 1 0 1 0-1.56 1.25l4.17 5.18a1 1 0 0 0 .78.37 1 1 0 0 0 .83-.38l7.83-10a1 1 0 0 0-.21-1.41z"/><path d="M21.62 6.21a1 1 0 0 0-1.41.17l-7 9-.61-.75-1.26 1.62 1.1 1.37a1 1 0 0 0 .78.37 1 1 0 0 0 .78-.38l7.83-10a1 1 0 0 0-.21-1.4z"/><path d="M8.71 13.06L10 11.44l-.2-.24a1 1 0 0 0-1.43-.2 1 1 0 0 0-.15 1.41z"/></g></g>',"download-outline":'<g data-name="Layer 2"><g data-name="download"><rect width="24" height="24" opacity="0"/><rect x="4" y="18" width="16" height="2" rx="1" ry="1"/><rect x="3" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 5 18)"/><rect x="17" y="17" width="4" height="2" rx="1" ry="1" transform="rotate(-90 19 18)"/><path d="M12 15a1 1 0 0 1-.58-.18l-4-2.82a1 1 0 0 1-.24-1.39 1 1 0 0 1 1.4-.24L12 12.76l3.4-2.56a1 1 0 0 1 1.2 1.6l-4 3a1 1 0 0 1-.6.2z"/><path d="M12 13a1 1 0 0 1-1-1V4a1 1 0 0 1 2 0v8a1 1 0 0 1-1 1z"/></g></g>',"droplet-off-outline":'<g data-name="Layer 2"><g data-name="droplet-off-outline"><rect width="24" height="24" opacity="0"/><path d="M12 19a5.4 5.4 0 0 1-3.88-1.64 5.73 5.73 0 0 1-.69-7.11L6 8.82a7.74 7.74 0 0 0 .7 9.94A7.37 7.37 0 0 0 12 21a7.36 7.36 0 0 0 4.58-1.59L15.15 18A5.43 5.43 0 0 1 12 19z"/><path d="M12 5.43l3.88 4a5.71 5.71 0 0 1 1.49 5.15L19 16.15A7.72 7.72 0 0 0 17.31 8l-4.6-4.7A1 1 0 0 0 12 3a1 1 0 0 0-.72.3L8.73 5.9l1.42 1.42z"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"droplet-outline":'<g data-name="Layer 2"><g data-name="droplet-outline"><rect x=".1" y=".1" width="24" height="24" transform="rotate(.48 11.987 11.887)" opacity="0"/><path d="M12 21.1a7.4 7.4 0 0 1-5.28-2.28 7.73 7.73 0 0 1 .1-10.77l4.64-4.65a.94.94 0 0 1 .71-.3 1 1 0 0 1 .71.31l4.56 4.72a7.73 7.73 0 0 1-.09 10.77A7.33 7.33 0 0 1 12 21.1zm.13-15.57L8.24 9.45a5.74 5.74 0 0 0-.07 8A5.43 5.43 0 0 0 12 19.1a5.42 5.42 0 0 0 3.9-1.61 5.72 5.72 0 0 0 .06-8z"/></g></g>',"edit-2-outline":'<g data-name="Layer 2"><g data-name="edit-2"><rect width="24" height="24" opacity="0"/><path d="M19 20H5a1 1 0 0 0 0 2h14a1 1 0 0 0 0-2z"/><path d="M5 18h.09l4.17-.38a2 2 0 0 0 1.21-.57l9-9a1.92 1.92 0 0 0-.07-2.71L16.66 2.6A2 2 0 0 0 14 2.53l-9 9a2 2 0 0 0-.57 1.21L4 16.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 18zM15.27 4L18 6.73l-2 1.95L13.32 6zm-8.9 8.91L12 7.32l2.7 2.7-5.6 5.6-3 .28z"/></g></g>',"edit-outline":'<g data-name="Layer 2"><g data-name="edit"><rect width="24" height="24" opacity="0"/><path d="M19.4 7.34L16.66 4.6A2 2 0 0 0 14 4.53l-9 9a2 2 0 0 0-.57 1.21L4 18.91a1 1 0 0 0 .29.8A1 1 0 0 0 5 20h.09l4.17-.38a2 2 0 0 0 1.21-.57l9-9a1.92 1.92 0 0 0-.07-2.71zM9.08 17.62l-3 .28.27-3L12 9.32l2.7 2.7zM16 10.68L13.32 8l1.95-2L18 8.73z"/></g></g>',"email-outline":'<g data-name="Layer 2"><g data-name="email"><rect width="24" height="24" opacity="0"/><path d="M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm-.67 2L12 10.75 5.67 6zM19 18H5a1 1 0 0 1-1-1V7.25l7.4 5.55a1 1 0 0 0 .6.2 1 1 0 0 0 .6-.2L20 7.25V17a1 1 0 0 1-1 1z"/></g></g>',"expand-outline":'<g data-name="Layer 2"><g data-name="expand"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 5a1 1 0 0 0-1-1h-5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L18 7.42V10a1 1 0 0 0 1 1 1 1 0 0 0 1-1z"/><path d="M10.71 13.29a1 1 0 0 0-1.42 0L6 16.57V14a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2H7.42l3.29-3.29a1 1 0 0 0 0-1.42z"/></g></g>',"external-link-outline":'<g data-name="Layer 2"><g data-name="external-link"><rect width="24" height="24" opacity="0"/><path d="M20 11a1 1 0 0 0-1 1v6a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h6a1 1 0 0 0 0-2H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-6a1 1 0 0 0-1-1z"/><path d="M16 5h1.58l-6.29 6.28a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L19 6.42V8a1 1 0 0 0 1 1 1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-4a1 1 0 0 0 0 2z"/></g></g>',"eye-off-2-outline":'<g data-name="Layer 2"><g data-name="eye-off-2"><rect width="24" height="24" opacity="0"/><path d="M17.81 13.39A8.93 8.93 0 0 0 21 7.62a1 1 0 1 0-2-.24 7.07 7.07 0 0 1-14 0 1 1 0 1 0-2 .24 8.93 8.93 0 0 0 3.18 5.77l-2.3 2.32a1 1 0 0 0 1.41 1.41l2.61-2.6a9.06 9.06 0 0 0 3.1.92V19a1 1 0 0 0 2 0v-3.56a9.06 9.06 0 0 0 3.1-.92l2.61 2.6a1 1 0 0 0 1.41-1.41z"/></g></g>',"eye-off-outline":'<g data-name="Layer 2"><g data-name="eye-off"><rect width="24" height="24" opacity="0"/><path d="M4.71 3.29a1 1 0 0 0-1.42 1.42l5.63 5.63a3.5 3.5 0 0 0 4.74 4.74l5.63 5.63a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM12 13.5a1.5 1.5 0 0 1-1.5-1.5v-.07l1.56 1.56z"/><path d="M12.22 17c-4.3.1-7.12-3.59-8-5a13.7 13.7 0 0 1 2.24-2.72L5 7.87a15.89 15.89 0 0 0-2.87 3.63 1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25a9.48 9.48 0 0 0 3.23-.67l-1.58-1.58a7.74 7.74 0 0 1-1.7.25z"/><path d="M21.87 11.5c-.64-1.11-4.17-6.68-10.14-6.5a9.48 9.48 0 0 0-3.23.67l1.58 1.58a7.74 7.74 0 0 1 1.7-.25c4.29-.11 7.11 3.59 8 5a13.7 13.7 0 0 1-2.29 2.72L19 16.13a15.89 15.89 0 0 0 2.91-3.63 1 1 0 0 0-.04-1z"/></g></g>',"eye-outline":'<g data-name="Layer 2"><g data-name="eye"><rect width="24" height="24" opacity="0"/><path d="M21.87 11.5c-.64-1.11-4.16-6.68-10.14-6.5-5.53.14-8.73 5-9.6 6.5a1 1 0 0 0 0 1c.63 1.09 4 6.5 9.89 6.5h.25c5.53-.14 8.74-5 9.6-6.5a1 1 0 0 0 0-1zM12.22 17c-4.31.1-7.12-3.59-8-5 1-1.61 3.61-4.9 7.61-5 4.29-.11 7.11 3.59 8 5-1.03 1.61-3.61 4.9-7.61 5z"/><path d="M12 8.5a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 12 8.5zm0 5a1.5 1.5 0 1 1 1.5-1.5 1.5 1.5 0 0 1-1.5 1.5z"/></g></g>',"facebook-outline":'<g data-name="Layer 2"><g data-name="facebook"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M13 22H9a1 1 0 0 1-1-1v-6.2H6a1 1 0 0 1-1-1v-3.6a1 1 0 0 1 1-1h2V7.5A5.77 5.77 0 0 1 14 2h3a1 1 0 0 1 1 1v3.6a1 1 0 0 1-1 1h-3v1.6h3a1 1 0 0 1 .8.39 1 1 0 0 1 .16.88l-1 3.6a1 1 0 0 1-1 .73H14V21a1 1 0 0 1-1 1zm-3-2h2v-6.2a1 1 0 0 1 1-1h2.24l.44-1.6H13a1 1 0 0 1-1-1V7.5a2 2 0 0 1 2-1.9h2V4h-2a3.78 3.78 0 0 0-4 3.5v2.7a1 1 0 0 1-1 1H7v1.6h2a1 1 0 0 1 1 1z"/></g></g>',"file-add-outline":'<g data-name="Layer 2"><g data-name="file-add"><rect width="24" height="24" opacity="0"/><path d="M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM14 5l2.74 3h-2a.79.79 0 0 1-.74-.85zm3.44 15H6.56a.53.53 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H12v3.15A2.79 2.79 0 0 0 14.71 10H18v9.5a.53.53 0 0 1-.56.5z"/><path d="M14 13h-1v-1a1 1 0 0 0-2 0v1h-1a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0v-1h1a1 1 0 0 0 0-2z"/></g></g>',"file-outline":'<g data-name="Layer 2"><g data-name="file"><rect width="24" height="24" opacity="0"/><path d="M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM17.65 9h-3.94a.79.79 0 0 1-.71-.85V4h.11zm-.21 11H6.56a.53.53 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H11v4.15A2.79 2.79 0 0 0 13.71 11H18v8.5a.53.53 0 0 1-.56.5z"/></g></g>',"file-remove-outline":'<g data-name="Layer 2"><g data-name="file-remove"><rect width="24" height="24" opacity="0"/><path d="M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM14 5l2.74 3h-2a.79.79 0 0 1-.74-.85zm3.44 15H6.56a.53.53 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H12v3.15A2.79 2.79 0 0 0 14.71 10H18v9.5a.53.53 0 0 1-.56.5z"/><path d="M14 13h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/></g></g>',"file-text-outline":'<g data-name="Layer 2"><g data-name="file-text"><rect width="24" height="24" opacity="0"/><path d="M15 16H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/><path d="M9 14h3a1 1 0 0 0 0-2H9a1 1 0 0 0 0 2z"/><path d="M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM14 5l2.74 3h-2a.79.79 0 0 1-.74-.85zm3.44 15H6.56a.53.53 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H12v3.15A2.79 2.79 0 0 0 14.71 10H18v9.5a.53.53 0 0 1-.56.5z"/></g></g>',"film-outline":'<g data-name="Layer 2"><g data-name="film"><rect width="24" height="24" opacity="0"/><path d="M18.26 3H5.74A2.74 2.74 0 0 0 3 5.74v12.52A2.74 2.74 0 0 0 5.74 21h12.52A2.74 2.74 0 0 0 21 18.26V5.74A2.74 2.74 0 0 0 18.26 3zM7 11H5V9h2zm-2 2h2v2H5zm4-8h6v14H9zm10 6h-2V9h2zm-2 2h2v2h-2zm2-7.26V7h-2V5h1.26a.74.74 0 0 1 .74.74zM5.74 5H7v2H5V5.74A.74.74 0 0 1 5.74 5zM5 18.26V17h2v2H5.74a.74.74 0 0 1-.74-.74zm14 0a.74.74 0 0 1-.74.74H17v-2h2z"/></g></g>',"flag-outline":'<g data-name="Layer 2"><g data-name="flag"><polyline points="24 24 0 24 0 0" opacity="0"/><path d="M19.27 4.68a1.79 1.79 0 0 0-1.6-.25 7.53 7.53 0 0 1-2.17.28 8.54 8.54 0 0 1-3.13-.78A10.15 10.15 0 0 0 8.5 3c-2.89 0-4 1-4.2 1.14a1 1 0 0 0-.3.72V20a1 1 0 0 0 2 0v-4.3a6.28 6.28 0 0 1 2.5-.41 8.54 8.54 0 0 1 3.13.78 10.15 10.15 0 0 0 3.87.93 7.66 7.66 0 0 0 3.5-.7 1.74 1.74 0 0 0 1-1.55V6.11a1.77 1.77 0 0 0-.73-1.43zM18 14.59a6.32 6.32 0 0 1-2.5.41 8.36 8.36 0 0 1-3.13-.79 10.34 10.34 0 0 0-3.87-.92 9.51 9.51 0 0 0-2.5.29V5.42A6.13 6.13 0 0 1 8.5 5a8.36 8.36 0 0 1 3.13.79 10.34 10.34 0 0 0 3.87.92 9.41 9.41 0 0 0 2.5-.3z"/></g></g>',"flash-off-outline":'<g data-name="Layer 2"><g data-name="flash-off"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M12.54 18.06l.27-2.42L10 12.8H6.87l1.24-1.86L6.67 9.5l-2.5 3.74A1 1 0 0 0 5 14.8h5.89l-.77 7.09a1 1 0 0 0 .65 1.05 1 1 0 0 0 .34.06 1 1 0 0 0 .83-.44l3.12-4.67-1.44-1.44z"/><path d="M11.46 5.94l-.27 2.42L14 11.2h3.1l-1.24 1.86 1.44 1.44 2.5-3.74A1 1 0 0 0 19 9.2h-5.89l.77-7.09a1 1 0 0 0-.65-1 1 1 0 0 0-1.17.38L8.94 6.11l1.44 1.44z"/></g></g>',"flash-outline":'<g data-name="Layer 2"><g data-name="flash"><rect width="24" height="24" opacity="0"/><path d="M11.11 23a1 1 0 0 1-.34-.06 1 1 0 0 1-.65-1.05l.77-7.09H5a1 1 0 0 1-.83-1.56l7.89-11.8a1 1 0 0 1 1.17-.38 1 1 0 0 1 .65 1l-.77 7.14H19a1 1 0 0 1 .83 1.56l-7.89 11.8a1 1 0 0 1-.83.44zM6.87 12.8H12a1 1 0 0 1 .74.33 1 1 0 0 1 .25.78l-.45 4.15 4.59-6.86H12a1 1 0 0 1-1-1.11l.45-4.15z"/></g></g>',"flip-2-outline":'<g data-name="Layer 2"><g data-name="flip-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M6.09 19h12l-1.3 1.29a1 1 0 0 0 1.42 1.42l3-3a1 1 0 0 0 0-1.42l-3-3a1 1 0 0 0-1.42 0 1 1 0 0 0 0 1.42l1.3 1.29h-12a1.56 1.56 0 0 1-1.59-1.53V13a1 1 0 0 0-2 0v2.47A3.56 3.56 0 0 0 6.09 19z"/><path d="M5.79 9.71a1 1 0 1 0 1.42-1.42L5.91 7h12a1.56 1.56 0 0 1 1.59 1.53V11a1 1 0 0 0 2 0V8.53A3.56 3.56 0 0 0 17.91 5h-12l1.3-1.29a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-3 3a1 1 0 0 0 0 1.42z"/></g></g>',"flip-outline":'<g data-name="Layer 2"><g data-name="flip-in"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M5 6.09v12l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3a1 1 0 0 0 1.42 0l3-3a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0L7 18.09v-12A1.56 1.56 0 0 1 8.53 4.5H11a1 1 0 0 0 0-2H8.53A3.56 3.56 0 0 0 5 6.09z"/><path d="M14.29 5.79a1 1 0 0 0 1.42 1.42L17 5.91v12a1.56 1.56 0 0 1-1.53 1.59H13a1 1 0 0 0 0 2h2.47A3.56 3.56 0 0 0 19 17.91v-12l1.29 1.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42l-3-3a1 1 0 0 0-1.42 0z"/></g></g>',"folder-add-outline":'<g data-name="Layer 2"><g data-name="folder-add"><rect width="24" height="24" opacity="0"/><path d="M14 13h-1v-1a1 1 0 0 0-2 0v1h-1a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0v-1h1a1 1 0 0 0 0-2z"/><path d="M19.5 7.05h-7L9.87 3.87a1 1 0 0 0-.77-.37H4.5A2.47 2.47 0 0 0 2 5.93v12.14a2.47 2.47 0 0 0 2.5 2.43h15a2.47 2.47 0 0 0 2.5-2.43V9.48a2.47 2.47 0 0 0-2.5-2.43zm.5 11a.46.46 0 0 1-.5.43h-15a.46.46 0 0 1-.5-.43V5.93a.46.46 0 0 1 .5-.43h4.13l2.6 3.18a1 1 0 0 0 .77.37h7.5a.46.46 0 0 1 .5.43z"/></g></g>',"folder-outline":'<g data-name="Layer 2"><g data-name="folder"><rect width="24" height="24" opacity="0"/><path d="M19.5 20.5h-15A2.47 2.47 0 0 1 2 18.07V5.93A2.47 2.47 0 0 1 4.5 3.5h4.6a1 1 0 0 1 .77.37l2.6 3.18h7A2.47 2.47 0 0 1 22 9.48v8.59a2.47 2.47 0 0 1-2.5 2.43zM4 13.76v4.31a.46.46 0 0 0 .5.43h15a.46.46 0 0 0 .5-.43V9.48a.46.46 0 0 0-.5-.43H12a1 1 0 0 1-.77-.37L8.63 5.5H4.5a.46.46 0 0 0-.5.43z"/></g></g>',"folder-remove-outline":'<g data-name="Layer 2"><g data-name="folder-remove"><rect width="24" height="24" opacity="0"/><path d="M14 13h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/><path d="M19.5 7.05h-7L9.87 3.87a1 1 0 0 0-.77-.37H4.5A2.47 2.47 0 0 0 2 5.93v12.14a2.47 2.47 0 0 0 2.5 2.43h15a2.47 2.47 0 0 0 2.5-2.43V9.48a2.47 2.47 0 0 0-2.5-2.43zm.5 11a.46.46 0 0 1-.5.43h-15a.46.46 0 0 1-.5-.43V5.93a.46.46 0 0 1 .5-.43h4.13l2.6 3.18a1 1 0 0 0 .77.37h7.5a.46.46 0 0 1 .5.43z"/></g></g>',"funnel-outline":'<g data-name="Layer 2"><g data-name="funnel"><rect width="24" height="24" opacity="0"/><path d="M13.9 22a1 1 0 0 1-.6-.2l-4-3.05a1 1 0 0 1-.39-.8v-3.27l-4.8-9.22A1 1 0 0 1 5 4h14a1 1 0 0 1 .86.49 1 1 0 0 1 0 1l-5 9.21V21a1 1 0 0 1-.55.9 1 1 0 0 1-.41.1zm-3-4.54l2 1.53v-4.55A1 1 0 0 1 13 14l4.3-8H6.64l4.13 8a1 1 0 0 1 .11.46z"/></g></g>',"gift-outline":'<g data-name="Layer 2"><g data-name="gift"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19.2 7h-.39A3 3 0 0 0 19 6a3.08 3.08 0 0 0-3.14-3A4.46 4.46 0 0 0 12 5.4 4.46 4.46 0 0 0 8.14 3 3.08 3.08 0 0 0 5 6a3 3 0 0 0 .19 1H4.8A2 2 0 0 0 3 9.2v3.6A2.08 2.08 0 0 0 4.5 15v4.37A1.75 1.75 0 0 0 6.31 21h11.38a1.75 1.75 0 0 0 1.81-1.67V15a2.08 2.08 0 0 0 1.5-2.2V9.2A2 2 0 0 0 19.2 7zM19 9.2v3.6a.56.56 0 0 1 0 .2h-6V9h6a.56.56 0 0 1 0 .2zM15.86 5A1.08 1.08 0 0 1 17 6a1.08 1.08 0 0 1-1.14 1H13.4a2.93 2.93 0 0 1 2.46-2zM7 6a1.08 1.08 0 0 1 1.14-1 2.93 2.93 0 0 1 2.45 2H8.14A1.08 1.08 0 0 1 7 6zM5 9.2A.56.56 0 0 1 5 9h6v4H5a.56.56 0 0 1 0-.2zM6.5 15H11v4H6.5zm6.5 4v-4h4.5v4z"/></g></g>',"github-outline":'<g data-name="Layer 2"><rect width="24" height="24" opacity="0"/><path d="M16.24 22a1 1 0 0 1-1-1v-2.6a2.15 2.15 0 0 0-.54-1.66 1 1 0 0 1 .61-1.67C17.75 14.78 20 14 20 9.77a4 4 0 0 0-.67-2.22 2.75 2.75 0 0 1-.41-2.06 3.71 3.71 0 0 0 0-1.41 7.65 7.65 0 0 0-2.09 1.09 1 1 0 0 1-.84.15 10.15 10.15 0 0 0-5.52 0 1 1 0 0 1-.84-.15 7.4 7.4 0 0 0-2.11-1.09 3.52 3.52 0 0 0 0 1.41 2.84 2.84 0 0 1-.43 2.08 4.07 4.07 0 0 0-.67 2.23c0 3.89 1.88 4.93 4.7 5.29a1 1 0 0 1 .82.66 1 1 0 0 1-.21 1 2.06 2.06 0 0 0-.55 1.56V21a1 1 0 0 1-2 0v-.57a6 6 0 0 1-5.27-2.09 3.9 3.9 0 0 0-1.16-.88 1 1 0 1 1 .5-1.94 4.93 4.93 0 0 1 2 1.36c1 1 2 1.88 3.9 1.52a3.89 3.89 0 0 1 .23-1.58c-2.06-.52-5-2-5-7a6 6 0 0 1 1-3.33.85.85 0 0 0 .13-.62 5.69 5.69 0 0 1 .33-3.21 1 1 0 0 1 .63-.57c.34-.1 1.56-.3 3.87 1.2a12.16 12.16 0 0 1 5.69 0c2.31-1.5 3.53-1.31 3.86-1.2a1 1 0 0 1 .63.57 5.71 5.71 0 0 1 .33 3.22.75.75 0 0 0 .11.57 6 6 0 0 1 1 3.34c0 5.07-2.92 6.54-5 7a4.28 4.28 0 0 1 .22 1.67V21a1 1 0 0 1-.94 1z"/></g>',"globe-2-outline":'<g data-name="Layer 2"><g data-name="globe-2"><rect width="24" height="24" opacity="0"/><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 2a8.19 8.19 0 0 1 1.79.21 2.61 2.61 0 0 1-.78 1c-.22.17-.46.31-.7.46a4.56 4.56 0 0 0-1.85 1.67 6.49 6.49 0 0 0-.62 3.3c0 1.36 0 2.16-.95 2.87-1.37 1.07-3.46.47-4.76-.07A8.33 8.33 0 0 1 4 12a8 8 0 0 1 8-8zM5 15.8a8.42 8.42 0 0 0 2 .27 5 5 0 0 0 3.14-1c1.71-1.34 1.71-3.06 1.71-4.44a4.76 4.76 0 0 1 .37-2.34 2.86 2.86 0 0 1 1.12-.91 9.75 9.75 0 0 0 .92-.61 4.55 4.55 0 0 0 1.4-1.87A8 8 0 0 1 19 8.12c-1.43.2-3.46.67-3.86 2.53A7 7 0 0 0 15 12a2.93 2.93 0 0 1-.29 1.47l-.1.17c-.65 1.08-1.38 2.31-.39 4 .12.21.25.41.38.61a2.29 2.29 0 0 1 .52 1.08A7.89 7.89 0 0 1 12 20a8 8 0 0 1-7-4.2zm11.93 2.52a6.79 6.79 0 0 0-.63-1.14c-.11-.16-.22-.32-.32-.49-.39-.68-.25-1 .38-2l.1-.17a4.77 4.77 0 0 0 .54-2.43 5.42 5.42 0 0 1 .09-1c.16-.73 1.71-.93 2.67-1a7.94 7.94 0 0 1-2.86 8.28z"/></g></g>',"globe-outline":'<g data-name="Layer 2"><g data-name="globe"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M22 12A10 10 0 0 0 12 2a10 10 0 0 0 0 20 10 10 0 0 0 10-10zm-2.07-1H17a12.91 12.91 0 0 0-2.33-6.54A8 8 0 0 1 19.93 11zM9.08 13H15a11.44 11.44 0 0 1-3 6.61A11 11 0 0 1 9.08 13zm0-2A11.4 11.4 0 0 1 12 4.4a11.19 11.19 0 0 1 3 6.6zm.36-6.57A13.18 13.18 0 0 0 7.07 11h-3a8 8 0 0 1 5.37-6.57zM4.07 13h3a12.86 12.86 0 0 0 2.35 6.56A8 8 0 0 1 4.07 13zm10.55 6.55A13.14 13.14 0 0 0 17 13h2.95a8 8 0 0 1-5.33 6.55z"/></g></g>',"google-outline":'<g data-name="Layer 2"><g data-name="google"><polyline points="0 0 24 0 24 24 0 24" opacity="0"/><path d="M12 22h-.43A10.16 10.16 0 0 1 2 12.29a10 10 0 0 1 14.12-9.41 1.48 1.48 0 0 1 .77.86 1.47 1.47 0 0 1-.1 1.16L15.5 7.28a1.44 1.44 0 0 1-1.83.64A4.5 4.5 0 0 0 8.77 9a4.41 4.41 0 0 0-1.16 3.34 4.36 4.36 0 0 0 1.66 3 4.52 4.52 0 0 0 3.45 1 3.89 3.89 0 0 0 2.63-1.57h-2.9A1.45 1.45 0 0 1 11 13.33v-2.68a1.45 1.45 0 0 1 1.45-1.45h8.1A1.46 1.46 0 0 1 22 10.64v1.88A10 10 0 0 1 12 22zm0-18a8 8 0 0 0-8 8.24A8.12 8.12 0 0 0 11.65 20 8 8 0 0 0 20 12.42V11.2h-7v1.58h5.31l-.41 1.3a6 6 0 0 1-4.9 4.25A6.58 6.58 0 0 1 8 17a6.33 6.33 0 0 1-.72-9.3A6.52 6.52 0 0 1 14 5.91l.77-1.43A7.9 7.9 0 0 0 12 4z"/></g></g>',"grid-outline":'<g data-name="Layer 2"><g data-name="grid"><rect width="24" height="24" opacity="0"/><path d="M9 3H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zM5 9V5h4v4z"/><path d="M19 3h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-4 6V5h4v4z"/><path d="M9 13H5a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm-4 6v-4h4v4z"/><path d="M19 13h-4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm-4 6v-4h4v4z"/></g></g>',"hard-drive-outline":'<g data-name="Layer 2"><g data-name="hard-drive"><rect width="24" height="24" opacity="0"/><path d="M20.79 11.34l-3.34-6.68A3 3 0 0 0 14.76 3H9.24a3 3 0 0 0-2.69 1.66l-3.34 6.68a2 2 0 0 0-.21.9V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-5.76a2 2 0 0 0-.21-.9zM8.34 5.55a1 1 0 0 1 .9-.55h5.52a1 1 0 0 1 .9.55L18.38 11H5.62zM18 19H6a1 1 0 0 1-1-1v-5h14v5a1 1 0 0 1-1 1z"/><path d="M16 15h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/><circle cx="8" cy="16" r="1"/></g></g>',"hash-outline":'<g data-name="Layer 2"><g data-name="hash"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 14h-4.3l.73-4H20a1 1 0 0 0 0-2h-3.21l.69-3.81A1 1 0 0 0 16.64 3a1 1 0 0 0-1.22.82L14.67 8h-3.88l.69-3.81A1 1 0 0 0 10.64 3a1 1 0 0 0-1.22.82L8.67 8H4a1 1 0 0 0 0 2h4.3l-.73 4H4a1 1 0 0 0 0 2h3.21l-.69 3.81A1 1 0 0 0 7.36 21a1 1 0 0 0 1.22-.82L9.33 16h3.88l-.69 3.81a1 1 0 0 0 .84 1.19 1 1 0 0 0 1.22-.82l.75-4.18H20a1 1 0 0 0 0-2zM9.7 14l.73-4h3.87l-.73 4z"/></g></g>',"headphones-outline":'<g data-name="Layer 2"><g data-name="headphones"><rect width="24" height="24" opacity="0"/><path d="M12 2A10.2 10.2 0 0 0 2 12.37V17a4 4 0 1 0 4-4 3.91 3.91 0 0 0-2 .56v-1.19A8.2 8.2 0 0 1 12 4a8.2 8.2 0 0 1 8 8.37v1.19a3.91 3.91 0 0 0-2-.56 4 4 0 1 0 4 4v-4.63A10.2 10.2 0 0 0 12 2zM6 15a2 2 0 1 1-2 2 2 2 0 0 1 2-2zm12 4a2 2 0 1 1 2-2 2 2 0 0 1-2 2z"/></g></g>',"heart-outline":'<g data-name="Layer 2"><g data-name="heart"><rect width="24" height="24" opacity="0"/><path d="M12 21a1 1 0 0 1-.71-.29l-7.77-7.78a5.26 5.26 0 0 1 0-7.4 5.24 5.24 0 0 1 7.4 0L12 6.61l1.08-1.08a5.24 5.24 0 0 1 7.4 0 5.26 5.26 0 0 1 0 7.4l-7.77 7.78A1 1 0 0 1 12 21zM7.22 6a3.2 3.2 0 0 0-2.28.94 3.24 3.24 0 0 0 0 4.57L12 18.58l7.06-7.07a3.24 3.24 0 0 0 0-4.57 3.32 3.32 0 0 0-4.56 0l-1.79 1.8a1 1 0 0 1-1.42 0L9.5 6.94A3.2 3.2 0 0 0 7.22 6z"/></g></g>',"home-outline":'<g data-name="Layer 2"><g data-name="home"><rect width="24" height="24" opacity="0"/><path d="M20.42 10.18L12.71 2.3a1 1 0 0 0-1.42 0l-7.71 7.89A2 2 0 0 0 3 11.62V20a2 2 0 0 0 1.89 2h14.22A2 2 0 0 0 21 20v-8.38a2.07 2.07 0 0 0-.58-1.44zM10 20v-6h4v6zm9 0h-3v-7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v7H5v-8.42l7-7.15 7 7.19z"/></g></g>',"image-outline":'<g data-name="Layer 2"><g data-name="image"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM6 5h12a1 1 0 0 1 1 1v8.36l-3.2-2.73a2.77 2.77 0 0 0-3.52 0L5 17.7V6a1 1 0 0 1 1-1zm12 14H6.56l7-5.84a.78.78 0 0 1 .93 0L19 17v1a1 1 0 0 1-1 1z"/><circle cx="8" cy="8.5" r="1.5"/></g></g>',"inbox-outline":'<g data-name="Layer 2"><g data-name="inbox"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.79 11.34l-3.34-6.68A3 3 0 0 0 14.76 3H9.24a3 3 0 0 0-2.69 1.66l-3.34 6.68a2 2 0 0 0-.21.9V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-5.76a2 2 0 0 0-.21-.9zM8.34 5.55a1 1 0 0 1 .9-.55h5.52a1 1 0 0 1 .9.55L18.38 11H16a1 1 0 0 0-1 1v3H9v-3a1 1 0 0 0-1-1H5.62zM18 19H6a1 1 0 0 1-1-1v-5h2v3a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-3h2v5a1 1 0 0 1-1 1z"/></g></g>',"info-outline":'<g data-name="Layer 2"><g data-name="info"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><circle cx="12" cy="8" r="1"/><path d="M12 10a1 1 0 0 0-1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0-1-1z"/></g></g>',"keypad-outline":'<g data-name="Layer 2"><g data-name="keypad"><rect width="24" height="24" opacity="0"/><path d="M5 2a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M12 2a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M19 8a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0-4a1 1 0 1 1-1 1 1 1 0 0 1 1-1z"/><path d="M5 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M12 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M19 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M5 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M12 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M19 16a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"layers-outline":'<g data-name="Layer 2"><g data-name="layers"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M21 11.35a1 1 0 0 0-.61-.86l-2.15-.92 2.26-1.3a1 1 0 0 0 .5-.92 1 1 0 0 0-.61-.86l-8-3.41a1 1 0 0 0-.78 0l-8 3.41a1 1 0 0 0-.61.86 1 1 0 0 0 .5.92l2.26 1.3-2.15.92a1 1 0 0 0-.61.86 1 1 0 0 0 .5.92l2.26 1.3-2.15.92a1 1 0 0 0-.61.86 1 1 0 0 0 .5.92l8 4.6a1 1 0 0 0 1 0l8-4.6a1 1 0 0 0 .5-.92 1 1 0 0 0-.61-.86l-2.15-.92 2.26-1.3a1 1 0 0 0 .5-.92zm-9-6.26l5.76 2.45L12 10.85 6.24 7.54zm-.5 7.78a1 1 0 0 0 1 0l3.57-2 1.69.72L12 14.85l-5.76-3.31 1.69-.72zm6.26 2.67L12 18.85l-5.76-3.31 1.69-.72 3.57 2.05a1 1 0 0 0 1 0l3.57-2.05z"/></g></g>',"layout-outline":'<g data-name="Layer 2"><g data-name="layout"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zM6 5h12a1 1 0 0 1 1 1v2H5V6a1 1 0 0 1 1-1zM5 18v-8h6v9H6a1 1 0 0 1-1-1zm13 1h-5v-9h6v8a1 1 0 0 1-1 1z"/></g></g>',"link-2-outline":'<g data-name="Layer 2"><g data-name="link-2"><rect width="24" height="24" opacity="0"/><path d="M13.29 9.29l-4 4a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4-4a1 1 0 0 0-1.42-1.42z"/><path d="M12.28 17.4L11 18.67a4.2 4.2 0 0 1-5.58.4 4 4 0 0 1-.27-5.93l1.42-1.43a1 1 0 0 0 0-1.42 1 1 0 0 0-1.42 0l-1.27 1.28a6.15 6.15 0 0 0-.67 8.07 6.06 6.06 0 0 0 9.07.6l1.42-1.42a1 1 0 0 0-1.42-1.42z"/><path d="M19.66 3.22a6.18 6.18 0 0 0-8.13.68L10.45 5a1.09 1.09 0 0 0-.17 1.61 1 1 0 0 0 1.42 0L13 5.3a4.17 4.17 0 0 1 5.57-.4 4 4 0 0 1 .27 5.95l-1.42 1.43a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l1.42-1.42a6.06 6.06 0 0 0-.6-9.06z"/></g></g>',"link-outline":'<g data-name="Layer 2"><g data-name="link"><rect width="24" height="24" opacity="0"/><path d="M8 12a1 1 0 0 0 1 1h6a1 1 0 0 0 0-2H9a1 1 0 0 0-1 1z"/><path d="M9 16H7.21A4.13 4.13 0 0 1 3 12.37 4 4 0 0 1 7 8h2a1 1 0 0 0 0-2H7.21a6.15 6.15 0 0 0-6.16 5.21A6 6 0 0 0 7 18h2a1 1 0 0 0 0-2z"/><path d="M23 11.24A6.16 6.16 0 0 0 16.76 6h-1.51C14.44 6 14 6.45 14 7a1 1 0 0 0 1 1h1.79A4.13 4.13 0 0 1 21 11.63 4 4 0 0 1 17 16h-2a1 1 0 0 0 0 2h2a6 6 0 0 0 6-6.76z"/></g></g>',"linkedin-outline":'<g data-name="Layer 2"><g data-name="linkedin"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 22h-1.67a2 2 0 0 1-2-2v-5.37a.92.92 0 0 0-.69-.93.84.84 0 0 0-.67.19.85.85 0 0 0-.3.65V20a2 2 0 0 1-2 2H11a2 2 0 0 1-2-2v-5.46a6.5 6.5 0 1 1 13 0V20a2 2 0 0 1-2 2zm-4.5-10.31a3.73 3.73 0 0 1 .47 0 2.91 2.91 0 0 1 2.36 2.9V20H20v-5.46a4.5 4.5 0 1 0-9 0V20h1.67v-5.46a2.85 2.85 0 0 1 2.83-2.85z"/><path d="M6 22H4a2 2 0 0 1-2-2V10a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2zM4 10v10h2V10z"/><path d="M5 7a3 3 0 1 1 3-3 3 3 0 0 1-3 3zm0-4a1 1 0 1 0 1 1 1 1 0 0 0-1-1z"/></g></g>',"list-outline":'<g data-name="Layer 2"><g data-name="list"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><circle cx="4" cy="7" r="1"/><circle cx="4" cy="12" r="1"/><circle cx="4" cy="17" r="1"/><rect x="7" y="11" width="14" height="2" rx=".94" ry=".94"/><rect x="7" y="16" width="14" height="2" rx=".94" ry=".94"/><rect x="7" y="6" width="14" height="2" rx=".94" ry=".94"/></g></g>',"loader-outline":'<g data-name="Layer 2"><g data-name="loader"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0V3a1 1 0 0 0-1-1z"/><path d="M21 11h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M6 12a1 1 0 0 0-1-1H3a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1z"/><path d="M6.22 5a1 1 0 0 0-1.39 1.47l1.44 1.39a1 1 0 0 0 .73.28 1 1 0 0 0 .72-.31 1 1 0 0 0 0-1.41z"/><path d="M17 8.14a1 1 0 0 0 .69-.28l1.44-1.39A1 1 0 0 0 17.78 5l-1.44 1.42a1 1 0 0 0 0 1.41 1 1 0 0 0 .66.31z"/><path d="M12 18a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1z"/><path d="M17.73 16.14a1 1 0 0 0-1.39 1.44L17.78 19a1 1 0 0 0 .69.28 1 1 0 0 0 .72-.3 1 1 0 0 0 0-1.42z"/><path d="M6.27 16.14l-1.44 1.39a1 1 0 0 0 0 1.42 1 1 0 0 0 .72.3 1 1 0 0 0 .67-.25l1.44-1.39a1 1 0 0 0-1.39-1.44z"/></g></g>',"lock-outline":'<g data-name="Layer 2"><g data-name="lock"><rect width="24" height="24" opacity="0"/><path d="M17 8h-1V6.11a4 4 0 1 0-8 0V8H7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm-7-1.89A2.06 2.06 0 0 1 12 4a2.06 2.06 0 0 1 2 2.11V8h-4zM18 19a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z"/><path d="M12 12a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"log-in-outline":'<g data-name="Layer 2"><g data-name="log-in"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M19 4h-2a1 1 0 0 0 0 2h1v12h-1a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1z"/><path d="M11.8 7.4a1 1 0 0 0-1.6 1.2L12 11H4a1 1 0 0 0 0 2h8.09l-1.72 2.44a1 1 0 0 0 .24 1.4 1 1 0 0 0 .58.18 1 1 0 0 0 .81-.42l2.82-4a1 1 0 0 0 0-1.18z"/></g></g>',"log-out-outline":'<g data-name="Layer 2"><g data-name="log-out"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M7 6a1 1 0 0 0 0-2H5a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h2a1 1 0 0 0 0-2H6V6z"/><path d="M20.82 11.42l-2.82-4a1 1 0 0 0-1.39-.24 1 1 0 0 0-.24 1.4L18.09 11H10a1 1 0 0 0 0 2h8l-1.8 2.4a1 1 0 0 0 .2 1.4 1 1 0 0 0 .6.2 1 1 0 0 0 .8-.4l3-4a1 1 0 0 0 .02-1.18z"/></g></g>',"map-outline":'<g data-name="Layer 2"><g data-name="map"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.41 5.89l-4-1.8H15.59L12 5.7 8.41 4.09h-.05L8.24 4h-.6l-4 1.8a1 1 0 0 0-.64 1V19a1 1 0 0 0 .46.84A1 1 0 0 0 4 20a1 1 0 0 0 .41-.09L8 18.3l3.59 1.61h.05a.85.85 0 0 0 .72 0h.05L16 18.3l3.59 1.61A1 1 0 0 0 20 20a1 1 0 0 0 .54-.16A1 1 0 0 0 21 19V6.8a1 1 0 0 0-.59-.91zM5 7.44l2-.89v10l-2 .89zm4-.89l2 .89v10l-2-.89zm4 .89l2-.89v10l-2 .89zm6 10l-2-.89v-10l2 .89z"/></g></g>',"maximize-outline":'<g data-name="Layer 2"><g data-name="maximize"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z"/><path d="M13 10h-1V9a1 1 0 0 0-2 0v1H9a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0v-1h1a1 1 0 0 0 0-2z"/></g></g>',"menu-2-outline":'<g data-name="Layer 2"><g data-name="menu-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><circle cx="4" cy="12" r="1"/><rect x="7" y="11" width="14" height="2" rx=".94" ry=".94"/><rect x="3" y="16" width="18" height="2" rx=".94" ry=".94"/><rect x="3" y="6" width="18" height="2" rx=".94" ry=".94"/></g></g>',"menu-arrow-outline":'<g data-name="Layer 2"><g data-name="menu-arrow"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20.05 11H5.91l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3a1 1 0 0 0 0 1.42l3 3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L5.91 13h14.14a1 1 0 0 0 .95-.95V12a1 1 0 0 0-.95-1z"/><rect x="3" y="17" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="5" width="18" height="2" rx=".95" ry=".95"/></g></g>',"menu-outline":'<g data-name="Layer 2"><g data-name="menu"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><rect x="3" y="11" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="16" width="18" height="2" rx=".95" ry=".95"/><rect x="3" y="6" width="18" height="2" rx=".95" ry=".95"/></g></g>',"message-circle-outline":'<g data-name="Layer 2"><g data-name="message-circle"><circle cx="12" cy="12" r="1"/><circle cx="16" cy="12" r="1"/><circle cx="8" cy="12" r="1"/><path d="M19.07 4.93a10 10 0 0 0-16.28 11 1.06 1.06 0 0 1 .09.64L2 20.8a1 1 0 0 0 .27.91A1 1 0 0 0 3 22h.2l4.28-.86a1.26 1.26 0 0 1 .64.09 10 10 0 0 0 11-16.28zm.83 8.36a8 8 0 0 1-11 6.08 3.26 3.26 0 0 0-1.25-.26 3.43 3.43 0 0 0-.56.05l-2.82.57.57-2.82a3.09 3.09 0 0 0-.21-1.81 8 8 0 0 1 6.08-11 8 8 0 0 1 9.19 9.19z"/><rect width="24" height="24" opacity="0"/></g></g>',"message-square-outline":'<g data-name="Layer 2"><g data-name="message-square"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="11" r="1"/><circle cx="16" cy="11" r="1"/><circle cx="8" cy="11" r="1"/><path d="M19 3H5a3 3 0 0 0-3 3v15a1 1 0 0 0 .51.87A1 1 0 0 0 3 22a1 1 0 0 0 .51-.14L8 19.14a1 1 0 0 1 .55-.14H19a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 13a1 1 0 0 1-1 1H8.55a3 3 0 0 0-1.55.43l-3 1.8V6a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"/></g></g>',"mic-off-outline":'<g data-name="Layer 2"><g data-name="mic-off"><rect width="24" height="24" opacity="0"/><path d="M10 6a2 2 0 0 1 4 0v5a1 1 0 0 1 0 .16l1.6 1.59A4 4 0 0 0 16 11V6a4 4 0 0 0-7.92-.75L10 7.17z"/><path d="M19 11a1 1 0 0 0-2 0 4.86 4.86 0 0 1-.69 2.48L17.78 15A7 7 0 0 0 19 11z"/><path d="M12 15h.16L8 10.83V11a4 4 0 0 0 4 4z"/><path d="M20.71 19.29l-16-16a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M15 20h-2v-2.08a7 7 0 0 0 1.65-.44l-1.6-1.6A4.57 4.57 0 0 1 12 16a5 5 0 0 1-5-5 1 1 0 0 0-2 0 7 7 0 0 0 6 6.92V20H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/></g></g>',"mic-outline":'<g data-name="Layer 2"><g data-name="mic"><rect width="24" height="24" opacity="0"/><path d="M12 15a4 4 0 0 0 4-4V6a4 4 0 0 0-8 0v5a4 4 0 0 0 4 4zm-2-9a2 2 0 0 1 4 0v5a2 2 0 0 1-4 0z"/><path d="M19 11a1 1 0 0 0-2 0 5 5 0 0 1-10 0 1 1 0 0 0-2 0 7 7 0 0 0 6 6.92V20H8.89a.89.89 0 0 0-.89.89v.22a.89.89 0 0 0 .89.89h6.22a.89.89 0 0 0 .89-.89v-.22a.89.89 0 0 0-.89-.89H13v-2.08A7 7 0 0 0 19 11z"/></g></g>',"minimize-outline":'<g data-name="Layer 2"><g data-name="minimize"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z"/><path d="M13 10H9a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/></g></g>',"minus-circle-outline":'<g data-name="Layer 2"><g data-name="minus-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M15 11H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/></g></g>',"minus-outline":'<g data-name="Layer 2"><g data-name="minus"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 13H5a1 1 0 0 1 0-2h14a1 1 0 0 1 0 2z"/></g></g>',"minus-square-outline":'<g data-name="Layer 2"><g data-name="minus-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/><path d="M15 11H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/></g></g>',"monitor-outline":'<g data-name="Layer 2"><g data-name="monitor"><rect width="24" height="24" opacity="0"/><path d="M19 3H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h6v2H7a1 1 0 0 0 0 2h10a1 1 0 0 0 0-2h-4v-2h6a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 11a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"/></g></g>',"moon-outline":'<g data-name="Layer 2"><g data-name="moon"><rect width="24" height="24" opacity="0"/><path d="M12.3 22h-.1a10.31 10.31 0 0 1-7.34-3.15 10.46 10.46 0 0 1-.26-14 10.13 10.13 0 0 1 4-2.74 1 1 0 0 1 1.06.22 1 1 0 0 1 .24 1 8.4 8.4 0 0 0 1.94 8.81 8.47 8.47 0 0 0 8.83 1.94 1 1 0 0 1 1.27 1.29A10.16 10.16 0 0 1 19.6 19a10.28 10.28 0 0 1-7.3 3zM7.46 4.92a7.93 7.93 0 0 0-1.37 1.22 8.44 8.44 0 0 0 .2 11.32A8.29 8.29 0 0 0 12.22 20h.08a8.34 8.34 0 0 0 6.78-3.49A10.37 10.37 0 0 1 7.46 4.92z"/></g></g>',"more-horizontal-outline":'<g data-name="Layer 2"><g data-name="more-horizotnal"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="12" r="2"/><circle cx="19" cy="12" r="2"/><circle cx="5" cy="12" r="2"/></g></g>',"more-vertical-outline":'<g data-name="Layer 2"><g data-name="more-vertical"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><circle cx="12" cy="12" r="2"/><circle cx="12" cy="5" r="2"/><circle cx="12" cy="19" r="2"/></g></g>',"move-outline":'<g data-name="Layer 2"><g data-name="move"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M21.71 11.31l-3-3a1 1 0 0 0-1.42 1.42L18.58 11H13V5.41l1.29 1.3A1 1 0 0 0 15 7a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42l-3-3A1 1 0 0 0 12 2a1 1 0 0 0-.7.29l-3 3a1 1 0 0 0 1.41 1.42L11 5.42V11H5.41l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3A1 1 0 0 0 2 12a1 1 0 0 0 .29.71l3 3A1 1 0 0 0 6 16a1 1 0 0 0 .71-.29 1 1 0 0 0 0-1.42L5.42 13H11v5.59l-1.29-1.3a1 1 0 0 0-1.42 1.42l3 3A1 1 0 0 0 12 22a1 1 0 0 0 .7-.29l3-3a1 1 0 0 0-1.42-1.42L13 18.58V13h5.59l-1.3 1.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 16a1 1 0 0 0 .71-.29l3-3A1 1 0 0 0 22 12a1 1 0 0 0-.29-.69z"/></g></g>',"music-outline":'<g data-name="Layer 2"><g data-name="music"><rect width="24" height="24" opacity="0"/><path d="M19 15V4a1 1 0 0 0-.38-.78 1 1 0 0 0-.84-.2l-9 2A1 1 0 0 0 8 6v8.34a3.49 3.49 0 1 0 2 3.18 4.36 4.36 0 0 0 0-.52V6.8l7-1.55v7.09a3.49 3.49 0 1 0 2 3.17 4.57 4.57 0 0 0 0-.51zM6.54 19A1.49 1.49 0 1 1 8 17.21a1.53 1.53 0 0 1 0 .3A1.49 1.49 0 0 1 6.54 19zm9-2A1.5 1.5 0 1 1 17 15.21a1.53 1.53 0 0 1 0 .3A1.5 1.5 0 0 1 15.51 17z"/></g></g>',"navigation-2-outline":'<g data-name="Layer 2"><g data-name="navigation-2"><rect width="24" height="24" opacity="0"/><path d="M13.67 22h-.06a1 1 0 0 1-.92-.8L11 13l-8.2-1.69a1 1 0 0 1-.12-1.93l16-5.33A1 1 0 0 1 20 5.32l-5.33 16a1 1 0 0 1-1 .68zm-6.8-11.9l5.19 1.06a1 1 0 0 1 .79.78l1.05 5.19 3.52-10.55z"/></g></g>',"navigation-outline":'<g data-name="Layer 2"><g data-name="navigation"><rect width="24" height="24" opacity="0"/><path d="M20 20a.94.94 0 0 1-.55-.17L12 14.9l-7.45 4.93a1 1 0 0 1-1.44-1.28l8-16a1 1 0 0 1 1.78 0l8 16a1 1 0 0 1-.23 1.2A1 1 0 0 1 20 20zm-8-7.3a1 1 0 0 1 .55.17l4.88 3.23L12 5.24 6.57 16.1l4.88-3.23a1 1 0 0 1 .55-.17z"/></g></g>',"npm-outline":'<g data-name="Layer 2"><g data-name="npm"><rect width="24" height="24" opacity="0"/><path d="M18 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3zM6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z"/><rect x="12" y="9" width="4" height="10"/></g></g>',"options-2-outline":'<g data-name="Layer 2"><g data-name="options-2"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M19 9a3 3 0 0 0-2.82 2H3a1 1 0 0 0 0 2h13.18A3 3 0 1 0 19 9zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M3 7h1.18a3 3 0 0 0 5.64 0H21a1 1 0 0 0 0-2H9.82a3 3 0 0 0-5.64 0H3a1 1 0 0 0 0 2zm4-2a1 1 0 1 1-1 1 1 1 0 0 1 1-1z"/><path d="M21 17h-7.18a3 3 0 0 0-5.64 0H3a1 1 0 0 0 0 2h5.18a3 3 0 0 0 5.64 0H21a1 1 0 0 0 0-2zm-10 2a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"options-outline":'<g data-name="Layer 2"><g data-name="options"><rect width="24" height="24" opacity="0"/><path d="M7 14.18V3a1 1 0 0 0-2 0v11.18a3 3 0 0 0 0 5.64V21a1 1 0 0 0 2 0v-1.18a3 3 0 0 0 0-5.64zM6 18a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M21 13a3 3 0 0 0-2-2.82V3a1 1 0 0 0-2 0v7.18a3 3 0 0 0 0 5.64V21a1 1 0 0 0 2 0v-5.18A3 3 0 0 0 21 13zm-3 1a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M15 5a3 3 0 1 0-4 2.82V21a1 1 0 0 0 2 0V7.82A3 3 0 0 0 15 5zm-3 1a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"pantone-outline":'<g data-name="Layer 2"><g data-name="pantone"><rect width="24" height="24" opacity="0"/><path d="M20 13.18h-4.06l2.3-2.47a1 1 0 0 0 0-1.41l-4.19-3.86a.93.93 0 0 0-.71-.26 1 1 0 0 0-.7.31l-1.82 2V4a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v13.09A3.91 3.91 0 0 0 6.91 21H20a1 1 0 0 0 1-1v-5.82a1 1 0 0 0-1-1zm-6.58-5.59l2.67 2.49-5.27 5.66v-5.36zM8.82 10v3H5v-3zm0-5v3H5V5zM5 17.09V15h3.82v2.09a1.91 1.91 0 0 1-3.82 0zM19 19h-8.49l3.56-3.82H19z"/></g></g>',"paper-plane-outline":'<g data-name="Layer 2"><g data-name="paper-plane"><rect width="24" height="24" opacity="0"/><path d="M21 4a1.31 1.31 0 0 0-.06-.27v-.09a1 1 0 0 0-.2-.3 1 1 0 0 0-.29-.19h-.09a.86.86 0 0 0-.31-.15H20a1 1 0 0 0-.3 0l-18 6a1 1 0 0 0 0 1.9l8.53 2.84 2.84 8.53a1 1 0 0 0 1.9 0l6-18A1 1 0 0 0 21 4zm-4.7 2.29l-5.57 5.57L5.16 10zM14 18.84l-1.86-5.57 5.57-5.57z"/></g></g>',"pause-circle-outline":'<g data-name="Layer 2"><g data-name="pause-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M15 8a1 1 0 0 0-1 1v6a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/><path d="M9 8a1 1 0 0 0-1 1v6a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/></g></g>',"people-outline":'<g data-name="Layer 2"><g data-name="people"><rect width="24" height="24" opacity="0"/><path d="M9 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M17 13a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0-4a1 1 0 1 1-1 1 1 1 0 0 1 1-1z"/><path d="M17 14a5 5 0 0 0-3.06 1.05A7 7 0 0 0 2 20a1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 6.9 6.9 0 0 0-.86-3.35A3 3 0 0 1 20 19a1 1 0 0 0 2 0 5 5 0 0 0-5-5z"/></g></g>',"percent-outline":'<g data-name="Layer 2"><g data-name="percent"><rect width="24" height="24" opacity="0"/><path d="M8 11a3.5 3.5 0 1 0-3.5-3.5A3.5 3.5 0 0 0 8 11zm0-5a1.5 1.5 0 1 1-1.5 1.5A1.5 1.5 0 0 1 8 6z"/><path d="M16 14a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 16 14zm0 5a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 16 19z"/><path d="M19.74 4.26a.89.89 0 0 0-1.26 0L4.26 18.48a.91.91 0 0 0-.26.63.89.89 0 0 0 1.52.63L19.74 5.52a.89.89 0 0 0 0-1.26z"/></g></g>',"person-add-outline":'<g data-name="Layer 2"><g data-name="person-add"><rect width="24" height="24" opacity="0"/><path d="M21 6h-1V5a1 1 0 0 0-2 0v1h-1a1 1 0 0 0 0 2h1v1a1 1 0 0 0 2 0V8h1a1 1 0 0 0 0-2z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M10 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"/></g></g>',"person-delete-outline":'<g data-name="Layer 2"><g data-name="person-delete"><rect width="24" height="24" opacity="0"/><path d="M20.47 7.5l.73-.73a1 1 0 0 0-1.47-1.47L19 6l-.73-.73a1 1 0 0 0-1.47 1.5l.73.73-.73.73a1 1 0 0 0 1.47 1.47L19 9l.73.73a1 1 0 0 0 1.47-1.5z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M10 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"/></g></g>',"person-done-outline":'<g data-name="Layer 2"><g data-name="person-done"><rect width="24" height="24" opacity="0"/><path d="M21.66 4.25a1 1 0 0 0-1.41.09l-1.87 2.15-.63-.71a1 1 0 0 0-1.5 1.33l1.39 1.56a1 1 0 0 0 .75.33 1 1 0 0 0 .74-.34l2.61-3a1 1 0 0 0-.08-1.41z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M10 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"/></g></g>',"person-outline":'<g data-name="Layer 2"><g data-name="person"><rect width="24" height="24" opacity="0"/><path d="M12 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M12 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"/></g></g>',"person-remove-outline":'<g data-name="Layer 2"><g data-name="person-remove"><rect width="24" height="24" opacity="0"/><path d="M21 6h-4a1 1 0 0 0 0 2h4a1 1 0 0 0 0-2z"/><path d="M10 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2z"/><path d="M10 13a7 7 0 0 0-7 7 1 1 0 0 0 2 0 5 5 0 0 1 10 0 1 1 0 0 0 2 0 7 7 0 0 0-7-7z"/></g></g>',"phone-call-outline":'<g data-name="Layer 2"><g data-name="phone-call"><rect width="24" height="24" opacity="0"/><path d="M13 8a3 3 0 0 1 3 3 1 1 0 0 0 2 0 5 5 0 0 0-5-5 1 1 0 0 0 0 2z"/><path d="M13 4a7 7 0 0 1 7 7 1 1 0 0 0 2 0 9 9 0 0 0-9-9 1 1 0 0 0 0 2z"/><path d="M21.75 15.91a1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a9.91 9.91 0 0 1-4.87-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76 4.34 4.34 0 0 0-.19-.73zM17.4 20A13.41 13.41 0 0 1 4 6.6 2.61 2.61 0 0 1 6.6 4h.33L8 8.64l-.54.28c-.86.45-1.54.81-1.18 1.59a11.85 11.85 0 0 0 7.18 7.21c.84.34 1.17-.29 1.62-1.16l.29-.55L20 17.07v.33a2.61 2.61 0 0 1-2.6 2.6z"/></g></g>',"phone-missed-outline":'<g data-name="Layer 2"><g data-name="phone-missed"><rect width="24" height="24" opacity="0"/><path d="M21.94 16.64a4.34 4.34 0 0 0-.19-.73 1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a10 10 0 0 1-4.88-4.89C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6 15.42 15.42 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76zM17.4 20A13.41 13.41 0 0 1 4 6.6 2.61 2.61 0 0 1 6.6 4h.33L8 8.64l-.55.29c-.87.45-1.5.78-1.17 1.58a11.85 11.85 0 0 0 7.18 7.21c.84.34 1.17-.29 1.62-1.16l.29-.55L20 17.07v.33a2.61 2.61 0 0 1-2.6 2.6z"/><path d="M15.8 8.7a1.05 1.05 0 0 0 1.47 0L18 8l.73.73a1 1 0 0 0 1.47-1.5l-.73-.73.73-.73a1 1 0 0 0-1.47-1.47L18 5l-.73-.73a1 1 0 0 0-1.47 1.5l.73.73-.73.73a1.05 1.05 0 0 0 0 1.47z"/></g></g>',"phone-off-outline":'<g data-name="Layer 2"><g data-name="phone-off"><rect width="24" height="24" opacity="0"/><path d="M19.74 4.26a.89.89 0 0 0-1.26 0L4.26 18.48a.91.91 0 0 0-.26.63.89.89 0 0 0 1.52.63L19.74 5.52a.89.89 0 0 0 0-1.26z"/><path d="M6.7 14.63A13.29 13.29 0 0 1 4 6.6 2.61 2.61 0 0 1 6.6 4h.33L8 8.64l-.55.29c-.87.45-1.5.78-1.17 1.58a11.57 11.57 0 0 0 1.57 3l1.43-1.42a10.37 10.37 0 0 1-.8-1.42C9.71 10 9.72 10 9.85 9.85a1 1 0 0 0 .26-.92L8.74 3a1 1 0 0 0-.65-.72 3.79 3.79 0 0 0-.72-.18A3.94 3.94 0 0 0 6.6 2 4.6 4.6 0 0 0 2 6.6a15.33 15.33 0 0 0 3.27 9.46z"/><path d="M21.94 16.64a4.34 4.34 0 0 0-.19-.73 1 1 0 0 0-.72-.65l-6-1.37a1 1 0 0 0-.92.26c-.14.13-.15.14-.8 1.38a10.88 10.88 0 0 1-1.41-.8l-1.43 1.43a11.52 11.52 0 0 0 2.94 1.56c.84.34 1.17-.29 1.62-1.16l.29-.55L20 17.07v.33a2.61 2.61 0 0 1-2.6 2.6 13.29 13.29 0 0 1-8-2.7l-1.46 1.43A15.33 15.33 0 0 0 17.4 22a4.6 4.6 0 0 0 4.6-4.6 4.77 4.77 0 0 0-.06-.76z"/></g></g>',"phone-outline":'<g data-name="Layer 2"><g data-name="phone"><rect width="24" height="24" opacity="0"/><path d="M17.4 22A15.42 15.42 0 0 1 2 6.6 4.6 4.6 0 0 1 6.6 2a3.94 3.94 0 0 1 .77.07 3.79 3.79 0 0 1 .72.18 1 1 0 0 1 .65.75l1.37 6a1 1 0 0 1-.26.92c-.13.14-.14.15-1.37.79a9.91 9.91 0 0 0 4.87 4.89c.65-1.24.66-1.25.8-1.38a1 1 0 0 1 .92-.26l6 1.37a1 1 0 0 1 .72.65 4.34 4.34 0 0 1 .19.73 4.77 4.77 0 0 1 .06.76A4.6 4.6 0 0 1 17.4 22zM6.6 4A2.61 2.61 0 0 0 4 6.6 13.41 13.41 0 0 0 17.4 20a2.61 2.61 0 0 0 2.6-2.6v-.33L15.36 16l-.29.55c-.45.87-.78 1.5-1.62 1.16a11.85 11.85 0 0 1-7.18-7.21c-.36-.78.32-1.14 1.18-1.59L8 8.64 6.93 4z"/></g></g>',"pie-chart-outline":'<g data-name="Layer 2"><g data-name="pie-chart"><rect width="24" height="24" opacity="0"/><path d="M13 2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1 9 9 0 0 0-9-9zm1 8V4.07A7 7 0 0 1 19.93 10z"/><path d="M20.82 14.06a1 1 0 0 0-1.28.61A8 8 0 1 1 9.33 4.46a1 1 0 0 0-.66-1.89 10 10 0 1 0 12.76 12.76 1 1 0 0 0-.61-1.27z"/></g></g>',"pin-outline":'<g data-name="Layer 2"><g data-name="pin"><rect width="24" height="24" opacity="0"/><path d="M12 2a8 8 0 0 0-8 7.92c0 5.48 7.05 11.58 7.35 11.84a1 1 0 0 0 1.3 0C13 21.5 20 15.4 20 9.92A8 8 0 0 0 12 2zm0 17.65c-1.67-1.59-6-6-6-9.73a6 6 0 0 1 12 0c0 3.7-4.33 8.14-6 9.73z"/><path d="M12 6a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 12 6zm0 5a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 12 11z"/></g></g>',"play-circle-outline":'<g data-name="Layer 2"><g data-name="play-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12.34 7.45a1.7 1.7 0 0 0-1.85-.3 1.6 1.6 0 0 0-1 1.48v6.74a1.6 1.6 0 0 0 1 1.48 1.68 1.68 0 0 0 .69.15 1.74 1.74 0 0 0 1.16-.45L16 13.18a1.6 1.6 0 0 0 0-2.36zm-.84 7.15V9.4l2.81 2.6z"/></g></g>',"plus-circle-outline":'<g data-name="Layer 2"><g data-name="plus-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M15 11h-2V9a1 1 0 0 0-2 0v2H9a1 1 0 0 0 0 2h2v2a1 1 0 0 0 2 0v-2h2a1 1 0 0 0 0-2z"/></g></g>',"plus-outline":'<g data-name="Layer 2"><g data-name="plus"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 11h-6V5a1 1 0 0 0-2 0v6H5a1 1 0 0 0 0 2h6v6a1 1 0 0 0 2 0v-6h6a1 1 0 0 0 0-2z"/></g></g>',"plus-square-outline":'<g data-name="Layer 2"><g data-name="plus-square"><rect width="24" height="24" opacity="0"/><path d="M18 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm1 15a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/><path d="M15 11h-2V9a1 1 0 0 0-2 0v2H9a1 1 0 0 0 0 2h2v2a1 1 0 0 0 2 0v-2h2a1 1 0 0 0 0-2z"/></g></g>',"power-outline":'<g data-name="Layer 2"><g data-name="power"><rect width="24" height="24" opacity="0"/><path d="M12 13a1 1 0 0 0 1-1V2a1 1 0 0 0-2 0v10a1 1 0 0 0 1 1z"/><path d="M16.59 3.11a1 1 0 0 0-.92 1.78 8 8 0 1 1-7.34 0 1 1 0 1 0-.92-1.78 10 10 0 1 0 9.18 0z"/></g></g>',"pricetags-outline":'<g data-name="Layer 2"><g data-name="pricetags"><rect width="24" height="24" opacity="0"/><path d="M12.87 22a1.84 1.84 0 0 1-1.29-.53l-6.41-6.42a1 1 0 0 1-.29-.61L4 5.09a1 1 0 0 1 .29-.8 1 1 0 0 1 .8-.29l9.35.88a1 1 0 0 1 .61.29l6.42 6.41a1.82 1.82 0 0 1 0 2.57l-7.32 7.32a1.82 1.82 0 0 1-1.28.53zm-6-8.11l6 6 7.05-7.05-6-6-7.81-.73z"/><circle cx="10.5" cy="10.5" r="1.5"/></g></g>',"printer-outline":'<g data-name="Layer 2"><g data-name="printer"><rect width="24" height="24" opacity="0"/><path d="M19.36 7H18V5a1.92 1.92 0 0 0-1.83-2H7.83A1.92 1.92 0 0 0 6 5v2H4.64A2.66 2.66 0 0 0 2 9.67v6.66A2.66 2.66 0 0 0 4.64 19h.86a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2h.86A2.66 2.66 0 0 0 22 16.33V9.67A2.66 2.66 0 0 0 19.36 7zM8 5h8v2H8zm-.5 14v-4h9v4zM20 16.33a.66.66 0 0 1-.64.67h-.86v-2a2 2 0 0 0-2-2h-9a2 2 0 0 0-2 2v2h-.86a.66.66 0 0 1-.64-.67V9.67A.66.66 0 0 1 4.64 9h14.72a.66.66 0 0 1 .64.67z"/></g></g>',"question-mark-circle-outline":'<g data-name="Layer 2"><g data-name="menu-arrow-circle"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12 6a3.5 3.5 0 0 0-3.5 3.5 1 1 0 0 0 2 0A1.5 1.5 0 1 1 12 11a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-1.16A3.49 3.49 0 0 0 12 6z"/><circle cx="12" cy="17" r="1"/></g></g>',"question-mark-outline":'<g data-name="Layer 2"><g data-name="question-mark"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M17 9A5 5 0 0 0 7 9a1 1 0 0 0 2 0 3 3 0 1 1 3 3 1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-1.1A5 5 0 0 0 17 9z"/><circle cx="12" cy="19" r="1"/></g></g>',"radio-button-off-outline":'<g data-name="Layer 2"><g data-name="radio-button-off"><rect width="24" height="24" opacity="0"/><path d="M12 22a10 10 0 1 1 10-10 10 10 0 0 1-10 10zm0-18a8 8 0 1 0 8 8 8 8 0 0 0-8-8z"/></g></g>',"radio-button-on-outline":'<g data-name="Layer 2"><g data-name="radio-button-on"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M12 7a5 5 0 1 0 5 5 5 5 0 0 0-5-5zm0 8a3 3 0 1 1 3-3 3 3 0 0 1-3 3z"/></g></g>',"radio-outline":'<g data-name="Layer 2"><g data-name="radio"><rect width="24" height="24" opacity="0"/><path d="M12 8a3 3 0 0 0-1 5.83 1 1 0 0 0 0 .17v6a1 1 0 0 0 2 0v-6a1 1 0 0 0 0-.17A3 3 0 0 0 12 8zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M3.5 11a6.87 6.87 0 0 1 2.64-5.23 1 1 0 1 0-1.28-1.54A8.84 8.84 0 0 0 1.5 11a8.84 8.84 0 0 0 3.36 6.77 1 1 0 1 0 1.28-1.54A6.87 6.87 0 0 1 3.5 11z"/><path d="M16.64 6.24a1 1 0 0 0-1.28 1.52A4.28 4.28 0 0 1 17 11a4.28 4.28 0 0 1-1.64 3.24A1 1 0 0 0 16 16a1 1 0 0 0 .64-.24A6.2 6.2 0 0 0 19 11a6.2 6.2 0 0 0-2.36-4.76z"/><path d="M8.76 6.36a1 1 0 0 0-1.4-.12A6.2 6.2 0 0 0 5 11a6.2 6.2 0 0 0 2.36 4.76 1 1 0 0 0 1.4-.12 1 1 0 0 0-.12-1.4A4.28 4.28 0 0 1 7 11a4.28 4.28 0 0 1 1.64-3.24 1 1 0 0 0 .12-1.4z"/><path d="M19.14 4.23a1 1 0 1 0-1.28 1.54A6.87 6.87 0 0 1 20.5 11a6.87 6.87 0 0 1-2.64 5.23 1 1 0 0 0 1.28 1.54A8.84 8.84 0 0 0 22.5 11a8.84 8.84 0 0 0-3.36-6.77z"/></g></g>',"recording-outline":'<g data-name="Layer 2"><g data-name="recording"><rect width="24" height="24" opacity="0"/><path d="M18 8a4 4 0 0 0-4 4 3.91 3.91 0 0 0 .56 2H9.44a3.91 3.91 0 0 0 .56-2 4 4 0 1 0-4 4h12a4 4 0 0 0 0-8zM4 12a2 2 0 1 1 2 2 2 2 0 0 1-2-2zm14 2a2 2 0 1 1 2-2 2 2 0 0 1-2 2z"/></g></g>',"refresh-outline":'<g data-name="Layer 2"><g data-name="refresh"><rect width="24" height="24" opacity="0"/><path d="M20.3 13.43a1 1 0 0 0-1.25.65A7.14 7.14 0 0 1 12.18 19 7.1 7.1 0 0 1 5 12a7.1 7.1 0 0 1 7.18-7 7.26 7.26 0 0 1 4.65 1.67l-2.17-.36a1 1 0 0 0-1.15.83 1 1 0 0 0 .83 1.15l4.24.7h.17a1 1 0 0 0 .34-.06.33.33 0 0 0 .1-.06.78.78 0 0 0 .2-.11l.09-.11c0-.05.09-.09.13-.15s0-.1.05-.14a1.34 1.34 0 0 0 .07-.18l.75-4a1 1 0 0 0-2-.38l-.27 1.45A9.21 9.21 0 0 0 12.18 3 9.1 9.1 0 0 0 3 12a9.1 9.1 0 0 0 9.18 9A9.12 9.12 0 0 0 21 14.68a1 1 0 0 0-.7-1.25z"/></g></g>',"repeat-outline":'<g data-name="Layer 2"><g data-name="repeat"><rect width="24" height="24" opacity="0"/><path d="M17.91 5h-12l1.3-1.29a1 1 0 0 0-1.42-1.42l-3 3a1 1 0 0 0 0 1.42l3 3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42L5.91 7h12a1.56 1.56 0 0 1 1.59 1.53V11a1 1 0 0 0 2 0V8.53A3.56 3.56 0 0 0 17.91 5z"/><path d="M18.21 14.29a1 1 0 0 0-1.42 1.42l1.3 1.29h-12a1.56 1.56 0 0 1-1.59-1.53V13a1 1 0 0 0-2 0v2.47A3.56 3.56 0 0 0 6.09 19h12l-1.3 1.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l3-3a1 1 0 0 0 0-1.42z"/></g></g>',"rewind-left-outline":'<g data-name="Layer 2"><g data-name="rewind-left"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.45 6.2a2.1 2.1 0 0 0-2.21.26l-4.74 3.92V7.79a1.76 1.76 0 0 0-1.05-1.59 2.1 2.1 0 0 0-2.21.26l-5.1 4.21a1.7 1.7 0 0 0 0 2.66l5.1 4.21a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59v-2.59l4.74 3.92a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59V7.79a1.76 1.76 0 0 0-1.05-1.59zM9.5 16l-4.82-4L9.5 8.09zm8 0l-4.82-4 4.82-3.91z"/></g></g>',"rewind-right-outline":'<g data-name="Layer 2"><g data-name="rewind-right"><rect width="24" height="24" opacity="0"/><path d="M20.86 10.67l-5.1-4.21a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1.05 1.59v2.59L7.76 6.46a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1 1.59v8.42a1.76 1.76 0 0 0 1 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l4.74-3.92v2.59a1.76 1.76 0 0 0 1.05 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l5.1-4.21a1.7 1.7 0 0 0 0-2.66zM6.5 15.91V8l4.82 4zm8 0V8l4.82 4z"/></g></g>',"save-outline":'<g data-name="Layer 2"><g data-name="save"><rect width="24" height="24" opacity="0"/><path d="M20.12 8.71l-4.83-4.83A3 3 0 0 0 13.17 3H6a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3v-7.17a3 3 0 0 0-.88-2.12zM10 19v-2h4v2zm9-1a1 1 0 0 1-1 1h-2v-3a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v3H6a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2v5a1 1 0 0 0 1 1h4a1 1 0 0 0 0-2h-3V5h3.17a1.05 1.05 0 0 1 .71.29l4.83 4.83a1 1 0 0 1 .29.71z"/></g></g>',"scissors-outline":'<g data-name="Layer 2"><g data-name="scissors"><rect width="24" height="24" opacity="0"/><path d="M20.21 5.71a1 1 0 1 0-1.42-1.42l-6.28 6.31-3.3-3.31A3 3 0 0 0 9.5 6a3 3 0 1 0-3 3 3 3 0 0 0 1.29-.3L11.1 12l-3.29 3.3A3 3 0 0 0 6.5 15a3 3 0 1 0 3 3 3 3 0 0 0-.29-1.26zM6.5 7a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm0 12a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/><path d="M15.21 13.29a1 1 0 0 0-1.42 1.42l5 5a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g>',"search-outline":'<g data-name="Layer 2"><g data-name="search"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z"/></g></g>',"settings-2-outline":'<g data-name="Layer 2"><g data-name="settings-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12.94 22h-1.89a1.68 1.68 0 0 1-1.68-1.68v-1.09a.34.34 0 0 0-.22-.29.38.38 0 0 0-.41 0l-.74.8a1.67 1.67 0 0 1-2.37 0L4.26 18.4a1.66 1.66 0 0 1-.5-1.19 1.72 1.72 0 0 1 .5-1.21l.74-.74a.34.34 0 0 0 0-.37c-.06-.15-.16-.26-.3-.26H3.68A1.69 1.69 0 0 1 2 12.94v-1.89a1.68 1.68 0 0 1 1.68-1.68h1.09a.34.34 0 0 0 .29-.22.38.38 0 0 0 0-.41L4.26 8a1.67 1.67 0 0 1 0-2.37L5.6 4.26a1.65 1.65 0 0 1 1.18-.5 1.72 1.72 0 0 1 1.22.5l.74.74a.34.34 0 0 0 .37 0c.15-.06.26-.16.26-.3V3.68A1.69 1.69 0 0 1 11.06 2H13a1.68 1.68 0 0 1 1.68 1.68v1.09a.34.34 0 0 0 .22.29.38.38 0 0 0 .41 0l.69-.8a1.67 1.67 0 0 1 2.37 0l1.37 1.34a1.67 1.67 0 0 1 .5 1.19 1.63 1.63 0 0 1-.5 1.21l-.74.74a.34.34 0 0 0 0 .37c.06.15.16.26.3.26h1.09A1.69 1.69 0 0 1 22 11.06V13a1.68 1.68 0 0 1-1.68 1.68h-1.09a.34.34 0 0 0-.29.22.34.34 0 0 0 0 .37l.77.77a1.67 1.67 0 0 1 0 2.37l-1.31 1.33a1.65 1.65 0 0 1-1.18.5 1.72 1.72 0 0 1-1.19-.5l-.77-.74a.34.34 0 0 0-.37 0c-.15.06-.26.16-.26.3v1.09A1.69 1.69 0 0 1 12.94 22zm-1.57-2h1.26v-.77a2.33 2.33 0 0 1 1.46-2.14 2.36 2.36 0 0 1 2.59.47l.54.54.88-.88-.54-.55a2.34 2.34 0 0 1-.48-2.56 2.33 2.33 0 0 1 2.14-1.45H20v-1.29h-.77a2.33 2.33 0 0 1-2.14-1.46 2.36 2.36 0 0 1 .47-2.59l.54-.54-.88-.88-.55.54a2.39 2.39 0 0 1-4-1.67V4h-1.3v.77a2.33 2.33 0 0 1-1.46 2.14 2.36 2.36 0 0 1-2.59-.47l-.54-.54-.88.88.54.55a2.39 2.39 0 0 1-1.67 4H4v1.26h.77a2.33 2.33 0 0 1 2.14 1.46 2.36 2.36 0 0 1-.47 2.59l-.54.54.88.88.55-.54a2.39 2.39 0 0 1 4 1.67z" data-name="<Group>"/><path d="M12 15.5a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5zm0-5a1.5 1.5 0 1 0 1.5 1.5 1.5 1.5 0 0 0-1.5-1.5z"/></g></g>',"settings-outline":'<g data-name="Layer 2"><g data-name="settings"><rect width="24" height="24" opacity="0"/><path d="M8.61 22a2.25 2.25 0 0 1-1.35-.46L5.19 20a2.37 2.37 0 0 1-.49-3.22 2.06 2.06 0 0 0 .23-1.86l-.06-.16a1.83 1.83 0 0 0-1.12-1.22h-.16a2.34 2.34 0 0 1-1.48-2.94L2.93 8a2.18 2.18 0 0 1 1.12-1.41 2.14 2.14 0 0 1 1.68-.12 1.93 1.93 0 0 0 1.78-.29l.13-.1a1.94 1.94 0 0 0 .73-1.51v-.24A2.32 2.32 0 0 1 10.66 2h2.55a2.26 2.26 0 0 1 1.6.67 2.37 2.37 0 0 1 .68 1.68v.28a1.76 1.76 0 0 0 .69 1.43l.11.08a1.74 1.74 0 0 0 1.59.26l.34-.11A2.26 2.26 0 0 1 21.1 7.8l.79 2.52a2.36 2.36 0 0 1-1.46 2.93l-.2.07A1.89 1.89 0 0 0 19 14.6a2 2 0 0 0 .25 1.65l.26.38a2.38 2.38 0 0 1-.5 3.23L17 21.41a2.24 2.24 0 0 1-3.22-.53l-.12-.17a1.75 1.75 0 0 0-1.5-.78 1.8 1.8 0 0 0-1.43.77l-.23.33A2.25 2.25 0 0 1 9 22a2 2 0 0 1-.39 0zM4.4 11.62a3.83 3.83 0 0 1 2.38 2.5v.12a4 4 0 0 1-.46 3.62.38.38 0 0 0 0 .51L8.47 20a.25.25 0 0 0 .37-.07l.23-.33a3.77 3.77 0 0 1 6.2 0l.12.18a.3.3 0 0 0 .18.12.25.25 0 0 0 .19-.05l2.06-1.56a.36.36 0 0 0 .07-.49l-.26-.38A4 4 0 0 1 17.1 14a3.92 3.92 0 0 1 2.49-2.61l.2-.07a.34.34 0 0 0 .19-.44l-.78-2.49a.35.35 0 0 0-.2-.19.21.21 0 0 0-.19 0l-.34.11a3.74 3.74 0 0 1-3.43-.57L15 7.65a3.76 3.76 0 0 1-1.49-3v-.31a.37.37 0 0 0-.1-.26.31.31 0 0 0-.21-.08h-2.54a.31.31 0 0 0-.29.33v.25a3.9 3.9 0 0 1-1.52 3.09l-.13.1a3.91 3.91 0 0 1-3.63.59.22.22 0 0 0-.14 0 .28.28 0 0 0-.12.15L4 11.12a.36.36 0 0 0 .22.45z" data-name="<Group>"/><path d="M12 15.5a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5zm0-5a1.5 1.5 0 1 0 1.5 1.5 1.5 1.5 0 0 0-1.5-1.5z"/></g></g>',"shake-outline":'<g data-name="Layer 2"><g data-name="shake"><rect width="24" height="24" opacity="0"/><path d="M5.5 18a1 1 0 0 1-.64-.24A8.81 8.81 0 0 1 1.5 11a8.81 8.81 0 0 1 3.36-6.76 1 1 0 1 1 1.28 1.52A6.9 6.9 0 0 0 3.5 11a6.9 6.9 0 0 0 2.64 5.24 1 1 0 0 1 .13 1.4 1 1 0 0 1-.77.36z"/><path d="M12 7a4.09 4.09 0 0 1 1 .14V3a1 1 0 0 0-2 0v4.14A4.09 4.09 0 0 1 12 7z"/><path d="M12 15a4.09 4.09 0 0 1-1-.14V20a1 1 0 0 0 2 0v-5.14a4.09 4.09 0 0 1-1 .14z"/><path d="M16 16a1 1 0 0 1-.77-.36 1 1 0 0 1 .13-1.4A4.28 4.28 0 0 0 17 11a4.28 4.28 0 0 0-1.64-3.24 1 1 0 1 1 1.28-1.52A6.2 6.2 0 0 1 19 11a6.2 6.2 0 0 1-2.36 4.76A1 1 0 0 1 16 16z"/><path d="M8 16a1 1 0 0 1-.64-.24A6.2 6.2 0 0 1 5 11a6.2 6.2 0 0 1 2.36-4.76 1 1 0 1 1 1.28 1.52A4.28 4.28 0 0 0 7 11a4.28 4.28 0 0 0 1.64 3.24 1 1 0 0 1 .13 1.4A1 1 0 0 1 8 16z"/><path d="M18.5 18a1 1 0 0 1-.77-.36 1 1 0 0 1 .13-1.4A6.9 6.9 0 0 0 20.5 11a6.9 6.9 0 0 0-2.64-5.24 1 1 0 1 1 1.28-1.52A8.81 8.81 0 0 1 22.5 11a8.81 8.81 0 0 1-3.36 6.76 1 1 0 0 1-.64.24z"/><path d="M12 12a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm0-1zm0 0zm0 0zm0 0zm0 0zm0 0zm0 0z"/></g></g>',"share-outline":'<g data-name="Layer 2"><g data-name="share"><rect width="24" height="24" opacity="0"/><path d="M18 15a3 3 0 0 0-2.1.86L8 12.34V12v-.33l7.9-3.53A3 3 0 1 0 15 6v.34L7.1 9.86a3 3 0 1 0 0 4.28l7.9 3.53V18a3 3 0 1 0 3-3zm0-10a1 1 0 1 1-1 1 1 1 0 0 1 1-1zM5 13a1 1 0 1 1 1-1 1 1 0 0 1-1 1zm13 6a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"shield-off-outline":'<g data-name="Layer 2"><g data-name="shield-off"><rect width="24" height="24" opacity="0"/><path d="M4.71 3.29a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M12.3 19.68l-.3.17-.3-.17A13.15 13.15 0 0 1 5 8.23v-.14L5.16 8 3.73 6.56A2 2 0 0 0 3 8.09v.14a15.17 15.17 0 0 0 7.72 13.2l.3.17a2 2 0 0 0 2 0l.3-.17a15.22 15.22 0 0 0 3-2.27l-1.42-1.42a12.56 12.56 0 0 1-2.6 1.94z"/><path d="M20 6.34L13 2.4a2 2 0 0 0-2 0L7.32 4.49 8.78 6 12 4.15l7 3.94v.14a13 13 0 0 1-1.63 6.31L18.84 16A15.08 15.08 0 0 0 21 8.23v-.14a2 2 0 0 0-1-1.75z"/></g></g>',"shield-outline":'<g data-name="Layer 2"><g data-name="shield"><rect width="24" height="24" opacity="0"/><path d="M12 21.85a2 2 0 0 1-1-.25l-.3-.17A15.17 15.17 0 0 1 3 8.23v-.14a2 2 0 0 1 1-1.75l7-3.94a2 2 0 0 1 2 0l7 3.94a2 2 0 0 1 1 1.75v.14a15.17 15.17 0 0 1-7.72 13.2l-.3.17a2 2 0 0 1-.98.25zm0-17.7L5 8.09v.14a13.15 13.15 0 0 0 6.7 11.45l.3.17.3-.17A13.15 13.15 0 0 0 19 8.23v-.14z"/></g></g>',"shopping-bag-outline":'<g data-name="Layer 2"><g data-name="shopping-bag"><rect width="24" height="24" opacity="0"/><path d="M20.12 6.71l-2.83-2.83A3 3 0 0 0 15.17 3H8.83a3 3 0 0 0-2.12.88L3.88 6.71A3 3 0 0 0 3 8.83V18a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V8.83a3 3 0 0 0-.88-2.12zm-12-1.42A1.05 1.05 0 0 1 8.83 5h6.34a1.05 1.05 0 0 1 .71.29L17.59 7H6.41zM18 19H6a1 1 0 0 1-1-1V9h14v9a1 1 0 0 1-1 1z"/><path d="M15 11a1 1 0 0 0-1 1 2 2 0 0 1-4 0 1 1 0 0 0-2 0 4 4 0 0 0 8 0 1 1 0 0 0-1-1z"/></g></g>',"shopping-cart-outline":'<g data-name="Layer 2"><g data-name="shopping-cart"><rect width="24" height="24" opacity="0"/><path d="M21.08 7a2 2 0 0 0-1.7-1H6.58L6 3.74A1 1 0 0 0 5 3H3a1 1 0 0 0 0 2h1.24L7 15.26A1 1 0 0 0 8 16h9a1 1 0 0 0 .89-.55l3.28-6.56A2 2 0 0 0 21.08 7zm-4.7 7H8.76L7.13 8h12.25z"/><circle cx="7.5" cy="19.5" r="1.5"/><circle cx="17.5" cy="19.5" r="1.5"/></g></g>',"shuffle-2-outline":'<g data-name="Layer 2"><g data-name="shuffle-2"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18.71 14.29a1 1 0 0 0-1.42 1.42l.29.29H16a4 4 0 0 1 0-8h1.59l-.3.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 10a1 1 0 0 0 .71-.29l2-2A1 1 0 0 0 21 7a1 1 0 0 0-.29-.71l-2-2a1 1 0 0 0-1.42 1.42l.29.29H16a6 6 0 0 0-5 2.69A6 6 0 0 0 6 6H4a1 1 0 0 0 0 2h2a4 4 0 0 1 0 8H4a1 1 0 0 0 0 2h2a6 6 0 0 0 5-2.69A6 6 0 0 0 16 18h1.59l-.3.29a1 1 0 0 0 0 1.42A1 1 0 0 0 18 20a1 1 0 0 0 .71-.29l2-2A1 1 0 0 0 21 17a1 1 0 0 0-.29-.71z"/></g></g>',"shuffle-outline":'<g data-name="Layer 2"><g data-name="shuffle"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M18 9.31a1 1 0 0 0 1 1 1 1 0 0 0 1-1V5a1 1 0 0 0-1-1h-4.3a1 1 0 0 0-1 1 1 1 0 0 0 1 1h1.89L12 10.59 6.16 4.76a1 1 0 0 0-1.41 1.41L10.58 12l-6.29 6.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L18 7.42z"/><path d="M19 13.68a1 1 0 0 0-1 1v1.91l-2.78-2.79a1 1 0 0 0-1.42 1.42L16.57 18h-1.88a1 1 0 0 0 0 2H19a1 1 0 0 0 1-1.11v-4.21a1 1 0 0 0-1-1z"/></g></g>',"skip-back-outline":'<g data-name="Layer 2"><g data-name="skip-back"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M16.45 6.2a2.1 2.1 0 0 0-2.21.26l-5.1 4.21-.14.15V7a1 1 0 0 0-2 0v10a1 1 0 0 0 2 0v-3.82l.14.15 5.1 4.21a2.06 2.06 0 0 0 1.3.46 2.23 2.23 0 0 0 .91-.2 1.76 1.76 0 0 0 1.05-1.59V7.79a1.76 1.76 0 0 0-1.05-1.59zM15.5 16l-4.82-4 4.82-3.91z"/></g></g>',"skip-forward-outline":'<g data-name="Layer 2"><g data-name="skip-forward"><rect width="24" height="24" opacity="0"/><path d="M16 6a1 1 0 0 0-1 1v3.82l-.14-.15-5.1-4.21a2.1 2.1 0 0 0-2.21-.26 1.76 1.76 0 0 0-1 1.59v8.42a1.76 1.76 0 0 0 1 1.59 2.23 2.23 0 0 0 .91.2 2.06 2.06 0 0 0 1.3-.46l5.1-4.21.14-.15V17a1 1 0 0 0 2 0V7a1 1 0 0 0-1-1zm-7.5 9.91V8l4.82 4z"/></g></g>',"slash-outline":'<g data-name="Layer 2"><g data-name="slash"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm8 10a7.92 7.92 0 0 1-1.69 4.9L7.1 5.69A7.92 7.92 0 0 1 12 4a8 8 0 0 1 8 8zM4 12a7.92 7.92 0 0 1 1.69-4.9L16.9 18.31A7.92 7.92 0 0 1 12 20a8 8 0 0 1-8-8z"/></g></g>',"smartphone-outline":'<g data-name="Layer 2"><g data-name="smartphone"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17 2H7a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm1 17a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z"/><circle cx="12" cy="16.5" r="1.5"/><path d="M14.5 6h-5a1 1 0 0 0 0 2h5a1 1 0 0 0 0-2z"/></g></g>',"smiling-face-outline":'<defs><style/></defs><g id="Layer_2" data-name="Layer 2"><g id="smiling-face"><g id="smiling-face" data-name="smiling-face"><rect width="24" height="24" opacity="0"/><path d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm5 9a5 5 0 0 1-10 0z" id="🎨-Icon-Сolor"/></g></g></g>',"speaker-outline":'<g data-name="Layer 2"><g data-name="speaker"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M12 11a3 3 0 1 0-3-3 3 3 0 0 0 3 3zm0-4a1 1 0 1 1-1 1 1 1 0 0 1 1-1z"/><path d="M12 12a3.5 3.5 0 1 0 3.5 3.5A3.5 3.5 0 0 0 12 12zm0 5a1.5 1.5 0 1 1 1.5-1.5A1.5 1.5 0 0 1 12 17z"/><path d="M17 2H7a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3zm1 17a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z"/></g></g>',"square-outline":'<g data-name="Layer 2"><g data-name="square"><rect width="24" height="24" opacity="0"/><path d="M18 21H6a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3h12a3 3 0 0 1 3 3v12a3 3 0 0 1-3 3zM6 5a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1z"/></g></g>',"star-outline":'<g data-name="Layer 2"><g data-name="star"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M17.56 21a1 1 0 0 1-.46-.11L12 18.22l-5.1 2.67a1 1 0 0 1-1.45-1.06l1-5.63-4.12-4a1 1 0 0 1-.25-1 1 1 0 0 1 .81-.68l5.7-.83 2.51-5.13a1 1 0 0 1 1.8 0l2.54 5.12 5.7.83a1 1 0 0 1 .81.68 1 1 0 0 1-.25 1l-4.12 4 1 5.63a1 1 0 0 1-.4 1 1 1 0 0 1-.62.18zM12 16.1a.92.92 0 0 1 .46.11l3.77 2-.72-4.21a1 1 0 0 1 .29-.89l3-2.93-4.2-.62a1 1 0 0 1-.71-.56L12 5.25 10.11 9a1 1 0 0 1-.75.54l-4.2.62 3 2.93a1 1 0 0 1 .29.89l-.72 4.16 3.77-2a.92.92 0 0 1 .5-.04z"/></g></g>',"stop-circle-outline":'<g data-name="Layer 2"><g data-name="stop-circle"><rect width="24" height="24" opacity="0"/><path d="M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8z"/><path d="M14.75 8h-5.5A1.25 1.25 0 0 0 8 9.25v5.5A1.25 1.25 0 0 0 9.25 16h5.5A1.25 1.25 0 0 0 16 14.75v-5.5A1.25 1.25 0 0 0 14.75 8zM14 14h-4v-4h4z"/></g></g>',"sun-outline":'<g data-name="Layer 2"><g data-name="sun"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M12 6a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v2a1 1 0 0 0 1 1z"/><path d="M21 11h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 0-2z"/><path d="M6 12a1 1 0 0 0-1-1H3a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1z"/><path d="M6.22 5a1 1 0 0 0-1.39 1.47l1.44 1.39a1 1 0 0 0 .73.28 1 1 0 0 0 .72-.31 1 1 0 0 0 0-1.41z"/><path d="M17 8.14a1 1 0 0 0 .69-.28l1.44-1.39A1 1 0 0 0 17.78 5l-1.44 1.42a1 1 0 0 0 0 1.41 1 1 0 0 0 .66.31z"/><path d="M12 18a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1z"/><path d="M17.73 16.14a1 1 0 0 0-1.39 1.44L17.78 19a1 1 0 0 0 .69.28 1 1 0 0 0 .72-.3 1 1 0 0 0 0-1.42z"/><path d="M6.27 16.14l-1.44 1.39a1 1 0 0 0 0 1.42 1 1 0 0 0 .72.3 1 1 0 0 0 .67-.25l1.44-1.39a1 1 0 0 0-1.39-1.44z"/><path d="M12 8a4 4 0 1 0 4 4 4 4 0 0 0-4-4zm0 6a2 2 0 1 1 2-2 2 2 0 0 1-2 2z"/></g></g>',"swap-outline":'<g data-name="Layer 2"><g data-name="swap"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M4 9h13l-1.6 1.2a1 1 0 0 0-.2 1.4 1 1 0 0 0 .8.4 1 1 0 0 0 .6-.2l4-3a1 1 0 0 0 0-1.59l-3.86-3a1 1 0 0 0-1.23 1.58L17.08 7H4a1 1 0 0 0 0 2z"/><path d="M20 16H7l1.6-1.2a1 1 0 0 0-1.2-1.6l-4 3a1 1 0 0 0 0 1.59l3.86 3a1 1 0 0 0 .61.21 1 1 0 0 0 .79-.39 1 1 0 0 0-.17-1.4L6.92 18H20a1 1 0 0 0 0-2z"/></g></g>',"sync-outline":'<g data-name="Layer 2"><g data-name="sync"><rect width="24" height="24" opacity="0"/><path d="M21.66 10.37a.62.62 0 0 0 .07-.19l.75-4a1 1 0 0 0-2-.36l-.37 2a9.22 9.22 0 0 0-16.58.84 1 1 0 0 0 .55 1.3 1 1 0 0 0 1.31-.55A7.08 7.08 0 0 1 12.07 5a7.17 7.17 0 0 1 6.24 3.58l-1.65-.27a1 1 0 1 0-.32 2l4.25.71h.16a.93.93 0 0 0 .34-.06.33.33 0 0 0 .1-.06.78.78 0 0 0 .2-.11l.08-.1a1.07 1.07 0 0 0 .14-.16.58.58 0 0 0 .05-.16z"/><path d="M19.88 14.07a1 1 0 0 0-1.31.56A7.08 7.08 0 0 1 11.93 19a7.17 7.17 0 0 1-6.24-3.58l1.65.27h.16a1 1 0 0 0 .16-2L3.41 13a.91.91 0 0 0-.33 0H3a1.15 1.15 0 0 0-.32.14 1 1 0 0 0-.18.18l-.09.1a.84.84 0 0 0-.07.19.44.44 0 0 0-.07.17l-.75 4a1 1 0 0 0 .8 1.22h.18a1 1 0 0 0 1-.82l.37-2a9.22 9.22 0 0 0 16.58-.83 1 1 0 0 0-.57-1.28z"/></g></g>',"text-outline":'<g data-name="Layer 2"><g data-name="text"><rect width="24" height="24" opacity="0"/><path d="M20 4H4a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V6h6v13H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2h-2V6h6v2a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1z"/></g></g>',"thermometer-minus-outline":'<g data-name="Layer 2"><g data-name="thermometer-minus"><rect width="24" height="24" opacity="0"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1"/><path d="M14 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm0-18a1 1 0 0 0-1 1v8.54a1 1 0 0 1-.5.87A3 3 0 0 0 11 17a3 3 0 0 0 6 0 3 3 0 0 0-1.5-2.59 1 1 0 0 1-.5-.87V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 14 4z"/></g></g>',"thermometer-outline":'<g data-name="Layer 2"><g data-name="thermometer"><rect width="24" height="24" opacity="0"/><path d="M12 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm0-18a1 1 0 0 0-1 1v8.54a1 1 0 0 1-.5.87A3 3 0 0 0 9 17a3 3 0 0 0 6 0 3 3 0 0 0-1.5-2.59 1 1 0 0 1-.5-.87V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 12 4z"/></g></g>',"thermometer-plus-outline":'<g data-name="Layer 2"><g data-name="thermometer-plus"><rect width="24" height="24" opacity="0"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1"/><rect x="2" y="5" width="6" height="2" rx="1" ry="1" transform="rotate(-90 5 6)"/><path d="M14 22a5 5 0 0 1-3-9V5a3 3 0 0 1 3-3 3 3 0 0 1 3 3v8a5 5 0 0 1-3 9zm0-18a1 1 0 0 0-1 1v8.54a1 1 0 0 1-.5.87A3 3 0 0 0 11 17a3 3 0 0 0 6 0 3 3 0 0 0-1.5-2.59 1 1 0 0 1-.5-.87V5a.93.93 0 0 0-.29-.69A1 1 0 0 0 14 4z"/></g></g>',"toggle-left-outline":'<g data-name="Layer 2"><g data-name="toggle-left"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M15 5H9a7 7 0 0 0 0 14h6a7 7 0 0 0 0-14zm0 12H9A5 5 0 0 1 9 7h6a5 5 0 0 1 0 10z"/><path d="M9 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"toggle-right-outline":'<g data-name="Layer 2"><g data-name="toggle-right"><rect width="24" height="24" opacity="0"/><path d="M15 5H9a7 7 0 0 0 0 14h6a7 7 0 0 0 0-14zm0 12H9A5 5 0 0 1 9 7h6a5 5 0 0 1 0 10z"/><path d="M15 9a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"trash-2-outline":'<g data-name="Layer 2"><g data-name="trash-2"><rect width="24" height="24" opacity="0"/><path d="M21 6h-5V4.33A2.42 2.42 0 0 0 13.5 2h-3A2.42 2.42 0 0 0 8 4.33V6H3a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2zM10 4.33c0-.16.21-.33.5-.33h3c.29 0 .5.17.5.33V6h-4zM18 19a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8h12z"/><path d="M9 17a1 1 0 0 0 1-1v-4a1 1 0 0 0-2 0v4a1 1 0 0 0 1 1z"/><path d="M15 17a1 1 0 0 0 1-1v-4a1 1 0 0 0-2 0v4a1 1 0 0 0 1 1z"/></g></g>',"trash-outline":'<g data-name="Layer 2"><g data-name="trash"><rect width="24" height="24" opacity="0"/><path d="M21 6h-5V4.33A2.42 2.42 0 0 0 13.5 2h-3A2.42 2.42 0 0 0 8 4.33V6H3a1 1 0 0 0 0 2h1v11a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3V8h1a1 1 0 0 0 0-2zM10 4.33c0-.16.21-.33.5-.33h3c.29 0 .5.17.5.33V6h-4zM18 19a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8h12z"/></g></g>',"trending-down-outline":'<g data-name="Layer 2"><g data-name="trending-down"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M21 12a1 1 0 0 0-2 0v2.3l-4.24-5a1 1 0 0 0-1.27-.21L9.22 11.7 4.77 6.36a1 1 0 1 0-1.54 1.28l5 6a1 1 0 0 0 1.28.22l4.28-2.57 4 4.71H15a1 1 0 0 0 0 2h5a1.1 1.1 0 0 0 .36-.07l.14-.08a1.19 1.19 0 0 0 .15-.09.75.75 0 0 0 .14-.17 1.1 1.1 0 0 0 .09-.14.64.64 0 0 0 .05-.17A.78.78 0 0 0 21 17z"/></g></g>',"trending-up-outline":'<g data-name="Layer 2"><g data-name="trending-up"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M21 7a.78.78 0 0 0 0-.21.64.64 0 0 0-.05-.17 1.1 1.1 0 0 0-.09-.14.75.75 0 0 0-.14-.17l-.12-.07a.69.69 0 0 0-.19-.1h-.2A.7.7 0 0 0 20 6h-5a1 1 0 0 0 0 2h2.83l-4 4.71-4.32-2.57a1 1 0 0 0-1.28.22l-5 6a1 1 0 0 0 .13 1.41A1 1 0 0 0 4 18a1 1 0 0 0 .77-.36l4.45-5.34 4.27 2.56a1 1 0 0 0 1.27-.21L19 9.7V12a1 1 0 0 0 2 0V7z"/></g></g>',"tv-outline":'<g data-name="Layer 2"><g data-name="tv"><rect width="24" height="24" opacity="0"/><path d="M18 6h-3.59l2.3-2.29a1 1 0 1 0-1.42-1.42L12 5.59l-3.29-3.3a1 1 0 1 0-1.42 1.42L9.59 6H6a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h12a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3zm1 13a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1z"/></g></g>',"twitter-outline":'<g data-name="Layer 2"><g data-name="twitter"><polyline points="0 0 24 0 24 24 0 24" opacity="0"/><path d="M8.51 20h-.08a10.87 10.87 0 0 1-4.65-1.09A1.38 1.38 0 0 1 3 17.47a1.41 1.41 0 0 1 1.16-1.18 6.63 6.63 0 0 0 2.54-.89 9.49 9.49 0 0 1-3.51-9.07 1.41 1.41 0 0 1 1-1.15 1.35 1.35 0 0 1 1.43.41 7.09 7.09 0 0 0 4.88 2.75 4.5 4.5 0 0 1 1.41-3.1 4.47 4.47 0 0 1 6.37.19.7.7 0 0 0 .78.1A1.39 1.39 0 0 1 21 7.13a6.66 6.66 0 0 1-1.28 2.6A10.79 10.79 0 0 1 8.51 20zm0-2h.08a8.79 8.79 0 0 0 9.09-8.59 1.32 1.32 0 0 1 .37-.85 5.19 5.19 0 0 0 .62-1 2.56 2.56 0 0 1-1.91-.85A2.45 2.45 0 0 0 15 6a2.5 2.5 0 0 0-1.79.69 2.53 2.53 0 0 0-.72 2.42l.26 1.14-1.17.08a8.3 8.3 0 0 1-6.54-2.4 7.12 7.12 0 0 0 3.73 6.46l.95.54-.63.9a5.62 5.62 0 0 1-2.68 1.92A8.34 8.34 0 0 0 8.5 18zM19 6.65z"/></g></g>',"umbrella-outline":'<g data-name="Layer 2"><g data-name="umbrella"><rect width="24" height="24" opacity="0"/><path d="M12 2A10 10 0 0 0 2 12a1 1 0 0 0 1 1h8v6a3 3 0 0 0 6 0 1 1 0 0 0-2 0 1 1 0 0 1-2 0v-6h8a1 1 0 0 0 1-1A10 10 0 0 0 12 2zm-7.94 9a8 8 0 0 1 15.88 0z"/></g></g>',"undo-outline":'<g data-name="Layer 2"><g data-name="undo"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M20.22 21a1 1 0 0 1-1-.76 8.91 8.91 0 0 0-7.8-6.69v1.12a1.78 1.78 0 0 1-1.09 1.64A2 2 0 0 1 8.18 16l-5.06-4.41a1.76 1.76 0 0 1 0-2.68l5.06-4.42a2 2 0 0 1 2.18-.3 1.78 1.78 0 0 1 1.09 1.64V7A10.89 10.89 0 0 1 21.5 17.75a10.29 10.29 0 0 1-.31 2.49 1 1 0 0 1-1 .76zm-9.77-9.5a11.07 11.07 0 0 1 8.81 4.26A9 9 0 0 0 10.45 9a1 1 0 0 1-1-1V6.08l-4.82 4.17 4.82 4.21v-2a1 1 0 0 1 1-.96z"/></g></g>',"unlock-outline":'<g data-name="Layer 2"><g data-name="unlock"><rect width="24" height="24" opacity="0"/><path d="M17 8h-7V6a2 2 0 0 1 4 0 1 1 0 0 0 2 0 4 4 0 0 0-8 0v2H7a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h10a3 3 0 0 0 3-3v-8a3 3 0 0 0-3-3zm1 11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-8a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1z"/><path d="M12 12a3 3 0 1 0 3 3 3 3 0 0 0-3-3zm0 4a1 1 0 1 1 1-1 1 1 0 0 1-1 1z"/></g></g>',"upload-outline":'<g data-name="Layer 2"><g data-name="upload"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><rect x="4" y="4" width="16" height="2" rx="1" ry="1" transform="rotate(180 12 5)"/><rect x="17" y="5" width="4" height="2" rx="1" ry="1" transform="rotate(90 19 6)"/><rect x="3" y="5" width="4" height="2" rx="1" ry="1" transform="rotate(90 5 6)"/><path d="M8 14a1 1 0 0 1-.8-.4 1 1 0 0 1 .2-1.4l4-3a1 1 0 0 1 1.18 0l4 2.82a1 1 0 0 1 .24 1.39 1 1 0 0 1-1.4.24L12 11.24 8.6 13.8a1 1 0 0 1-.6.2z"/><path d="M12 21a1 1 0 0 1-1-1v-8a1 1 0 0 1 2 0v8a1 1 0 0 1-1 1z"/></g></g>',"video-off-outline":'<g data-name="Layer 2"><g data-name="video-off"><rect width="24" height="24" opacity="0"/><path d="M17 15.59l-2-2L8.41 7l-2-2-1.7-1.71a1 1 0 0 0-1.42 1.42l.54.53L5.59 7l9.34 9.34 1.46 1.46 2.9 2.91a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M14 17H5a1 1 0 0 1-1-1V8a1 1 0 0 1 .4-.78L3 5.8A3 3 0 0 0 2 8v8a3 3 0 0 0 3 3h9a2.94 2.94 0 0 0 1.66-.51L14.14 17a.7.7 0 0 1-.14 0z"/><path d="M21 7.15a1.7 1.7 0 0 0-1.85.3l-2.15 2V8a3 3 0 0 0-3-3H7.83l2 2H14a1 1 0 0 1 1 1v4.17l4.72 4.72a1.73 1.73 0 0 0 .6.11 1.68 1.68 0 0 0 .69-.15 1.6 1.6 0 0 0 1-1.48V8.63A1.6 1.6 0 0 0 21 7.15zm-1 7.45L17.19 12 20 9.4z"/></g></g>',"video-outline":'<g data-name="Layer 2"><g data-name="video"><rect width="24" height="24" opacity="0"/><path d="M21 7.15a1.7 1.7 0 0 0-1.85.3l-2.15 2V8a3 3 0 0 0-3-3H5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h9a3 3 0 0 0 3-3v-1.45l2.16 2a1.74 1.74 0 0 0 1.16.45 1.68 1.68 0 0 0 .69-.15 1.6 1.6 0 0 0 1-1.48V8.63A1.6 1.6 0 0 0 21 7.15zM15 16a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1zm5-1.4L17.19 12 20 9.4z"/></g></g>',"volume-down-outline":'<g data-name="Layer 2"><g data-name="volume-down"><rect width="24" height="24" opacity="0"/><path d="M20.78 8.37a1 1 0 1 0-1.56 1.26 4 4 0 0 1 0 4.74A1 1 0 0 0 20 16a1 1 0 0 0 .78-.37 6 6 0 0 0 0-7.26z"/><path d="M16.47 3.12a1 1 0 0 0-1 0L9 7.57H4a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4A1.06 1.06 0 0 0 16 21a1 1 0 0 0 1-1V4a1 1 0 0 0-.53-.88zM15 18.1l-5.1-3.5a1 1 0 0 0-.57-.17H5V9.57h4.33a1 1 0 0 0 .57-.17L15 5.9z"/></g></g>',"volume-mute-outline":'<g data-name="Layer 2"><g data-name="volume-mute"><rect width="24" height="24" opacity="0"/><path d="M17 21a1.06 1.06 0 0 1-.57-.17L10 16.43H5a1 1 0 0 1-1-1V8.57a1 1 0 0 1 1-1h5l6.41-4.4A1 1 0 0 1 18 4v16a1 1 0 0 1-1 1zM6 14.43h4.33a1 1 0 0 1 .57.17l5.1 3.5V5.9l-5.1 3.5a1 1 0 0 1-.57.17H6z"/></g></g>',"volume-off-outline":'<g data-name="Layer 2"><g data-name="volume-off"><rect width="24" height="24" opacity="0"/><path d="M4.71 3.29a1 1 0 0 0-1.42 1.42l16 16a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M16.91 14.08l1.44 1.44a6 6 0 0 0-.07-7.15 1 1 0 1 0-1.56 1.26 4 4 0 0 1 .19 4.45z"/><path d="M21 12a6.51 6.51 0 0 1-1.78 4.39l1.42 1.42A8.53 8.53 0 0 0 23 12a8.75 8.75 0 0 0-3.36-6.77 1 1 0 1 0-1.28 1.54A6.8 6.8 0 0 1 21 12z"/><path d="M13.5 18.1l-5.1-3.5a1 1 0 0 0-.57-.17H3.5V9.57h3.24l-2-2H2.5a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4a1.06 1.06 0 0 0 .57.17 1 1 0 0 0 1-1v-1.67l-2-2z"/><path d="M13.5 5.9v4.77l2 2V4a1 1 0 0 0-1.57-.83L9.23 6.4l1.44 1.44z"/></g></g>',"volume-up-outline":'<g data-name="Layer 2"><g data-name="volume-up"><rect width="24" height="24" opacity="0"/><path d="M18.28 8.37a1 1 0 1 0-1.56 1.26 4 4 0 0 1 0 4.74A1 1 0 0 0 17.5 16a1 1 0 0 0 .78-.37 6 6 0 0 0 0-7.26z"/><path d="M19.64 5.23a1 1 0 1 0-1.28 1.54A6.8 6.8 0 0 1 21 12a6.8 6.8 0 0 1-2.64 5.23 1 1 0 0 0-.13 1.41A1 1 0 0 0 19 19a1 1 0 0 0 .64-.23A8.75 8.75 0 0 0 23 12a8.75 8.75 0 0 0-3.36-6.77z"/><path d="M15 3.12a1 1 0 0 0-1 0L7.52 7.57h-5a1 1 0 0 0-1 1v6.86a1 1 0 0 0 1 1h5l6.41 4.4a1.06 1.06 0 0 0 .57.17 1 1 0 0 0 1-1V4a1 1 0 0 0-.5-.88zm-1.47 15L8.4 14.6a1 1 0 0 0-.57-.17H3.5V9.57h4.33a1 1 0 0 0 .57-.17l5.1-3.5z"/></g></g>',"wifi-off-outline":'<g data-name="Layer 2"><g data-name="wifi-off"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="19" r="1"/><path d="M12.44 11l-1.9-1.89-2.46-2.44-1.55-1.55-1.82-1.83a1 1 0 0 0-1.42 1.42l1.38 1.37 1.46 1.46 2.23 2.24 1.55 1.54 2.74 2.74 2.79 2.8 3.85 3.85a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/><path d="M21.72 7.93A13.93 13.93 0 0 0 12 4a14.1 14.1 0 0 0-4.44.73l1.62 1.62a11.89 11.89 0 0 1 11.16 3 1 1 0 0 0 .69.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.03-1.39z"/><path d="M3.82 6.65a14.32 14.32 0 0 0-1.54 1.28 1 1 0 0 0 1.38 1.44 13.09 13.09 0 0 1 1.6-1.29z"/><path d="M17 13.14a1 1 0 0 0 .71.3 1 1 0 0 0 .72-1.69A9 9 0 0 0 12 9h-.16l2.35 2.35A7 7 0 0 1 17 13.14z"/><path d="M7.43 10.26a8.8 8.8 0 0 0-1.9 1.49A1 1 0 0 0 7 13.14a7.3 7.3 0 0 1 2-1.41z"/><path d="M8.53 15.4a1 1 0 1 0 1.39 1.44 3.06 3.06 0 0 1 3.84-.25l-2.52-2.52a5 5 0 0 0-2.71 1.33z"/></g></g>',"wifi-outline":'<g data-name="Layer 2"><g data-name="wifi"><rect width="24" height="24" opacity="0"/><circle cx="12" cy="19" r="1"/><path d="M12 14a5 5 0 0 0-3.47 1.4 1 1 0 1 0 1.39 1.44 3.08 3.08 0 0 1 4.16 0 1 1 0 1 0 1.39-1.44A5 5 0 0 0 12 14z"/><path d="M12 9a9 9 0 0 0-6.47 2.75A1 1 0 0 0 7 13.14a7 7 0 0 1 10.08 0 1 1 0 0 0 .71.3 1 1 0 0 0 .72-1.69A9 9 0 0 0 12 9z"/><path d="M21.72 7.93a14 14 0 0 0-19.44 0 1 1 0 0 0 1.38 1.44 12 12 0 0 1 16.68 0 1 1 0 0 0 .69.28 1 1 0 0 0 .72-.31 1 1 0 0 0-.03-1.41z"/></g></g>'}},"./package/src/animation.scss":
1function(t,e,n){var r=n("./node_modules/css-loader/index.js!./node_modules/sass-loader/lib/loader.js!./package/src/animation.scss"),i=n("./node_modules/isomorphic-style-loader/insertCss.js"),a="string"==typeof r?[[t.i,r,""]]:r;(e=t.exports=r.locals||{})._getContent=function(){return a},e._getCss=function(){return""+r},e._insertCss=function(t){return i(a,t)}},
1"./package/src/default-attrs.json":function(t){t.exports={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"}},
1"./package/src/icon.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/classnames/dedupe.js"),i=n.n(r),a=n("./package/src/default-attrs.json");function o(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)e.indexOf(n=a[r])>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)e.indexOf(n=a[r])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){u(t,e,n[e])}))}return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c={hover:!0},l=function(t){return"string"==typeof t||t instanceof String};function h(t){if(!t)return null;t.hover&&(t.hover=l(t.hover)?JSON.parse(t.hover):t.hover);var e=s({},c,t),n=e.hover?"eva-icon-hover-".concat(e.type):"eva-icon-".concat(e.type);return e.class=i()({"eva-animation":!0,"eva-infinite":l(t.infinite)?JSON.parse(t.infinite):t.infinite},n),e}function f(t){return Object.keys(t).map((function(e){return"".concat(e,'="').concat(t[e],'"')})).join(" ")}e.default=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.name=e,this.contents=n,this.attrs=s({},a,{class:"eva eva-".concat(e)})}var e;return(e=[{key:"toSvg",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.animation,n=o(t,["animation"]),r=h(e),a=r?r.class:"",u=s({},this.attrs,n,{class:i()(this.attrs.class,t.class,a)}),c="<svg ".concat(f(u),">").concat(this.contents,"</svg>");return r&&r.hover?'<i class="eva-hover">'.concat(c,"</i>"):c}},{key:"toString",value:function(){return this.contents}}])&&function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(t.prototype,e),t}()},
1"./package/src/icons.js":function(t,e,n){"use strict";n.r(e);var r=n("./package/src/icon.js"),i=n("./package-build/eva-icons.json");e.default=Object.keys(i).map((function(t){return new r.default(t,i[t])})).reduce((function(t,e){return t[e.name]=e,t}),{})},
1"./package/src/index.js":function(t,e,n){"use strict";n.r(e);var r=n("./package/src/icons.js");n.d(e,"icons",(function(){return r.default}));var i=n("./package/src/replace.js");n.d(e,"replace",(function(){return i.default}));var a=n("./package/src/animation.scss");"undefined"!=typeof window&&n.n(a).a._insertCss()},
1"./package/src/replace.js":function(t,e,n){"use strict";n.r(e);var r=n("./node_modules/classnames/dedupe.js"),i=n.n(r),a=n("./package/src/icons.js");function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),r.forEach((function(e){s(t,e,n[e])}))}return t}function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)e.indexOf(n=a[r])>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(r=0;r<a.length;r++)e.indexOf(n=a[r])>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var c={"data-eva-animation":"type","data-eva-hover":"hover","data-eva-infinite":"infinite"},l={"data-eva":"name","data-eva-width":"width","data-eva-height":"height","data-eva-fill":"fill"};function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=f(t),r=n.name,s=u(n,["name"]),c=a.default[r].toSvg(o({},e,s,{animation:d(e.animation,s.animation)},{class:i()(e.class,s.class)})),l=(new DOMParser).parseFromString(c,"text/html"),h=l.querySelector(".eva-hover")||l.querySelector("svg");t.parentNode.replaceChild(h,t)}function f(t){return Array.from(t.attributes).reduce((function(t,e){return c[e.name]?t.animation=o({},t.animation,s({},c[e.name],e.value)):t=o({},t,function(t){return s({},l[t.name]?l[t.name]:t.name,t.value)}(e)),t}),{})}function d(t,e){return t||e?o({},t,e):null}e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if("undefined"==typeof document)throw new Error("`eva.replace()` only works in a browser environment.");var e=document.querySelectorAll("[data-eva]");Array.from(e).forEach((function(e){return h(e,t)}))}}
1})},t.exports=r()},Zy1z:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(){return function(t){return t.lift(new a)}}var a=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new o(t))}}]),t}(),o=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this,t)).hasPrev=!1,r}return _createClass(n,[{key:"_next",value:function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)}}]),n}(r.a)},aceb:function(t,e,n){"use strict";var r,i=n("fXoL"),a=n("ofXK"),o=n("jtHE"),s=n("XNiG"),u=n("HDdC"),c=n("xgIS"),l=n("VRyK"),h=n("EY2u"),f=n("2Vo4"),d=n("LRne"),p=n("D0XW"),g=n("Y7HM"),y=n("z+Ro");function v(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)}}n("cp0P"),n("itXk");var m=n("lJxs"),b=n("JX91"),_=n("Zy1z"),w=n("pLZG"),k=n("/uUt"),C=n("w1tV"),O=n("l7GE"),S=n("ZUHj");function E(t){return function(e){return e.lift(new A(t))}}var A=function(){function t(e){_classCallCheck(this,t),this.notifier=e}return _createClass(t,[{key:"call",value:function(t,e){var n=new T(t),r=Object(S.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n}}]),t}(),T=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}(O.a),M=n("3E0/"),I=n("7o/Q");function x(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;return function(e){return 0===t?Object(h.b)():e.lift(new j(t<0?-1:t-1,e))}}var j=function(){function t(e,n){_classCallCheck(this,t),this.count=e,this.source=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new L(t,this.count,this.source))}}]),t}(),L=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).count=r,a.source=i,a}return _createClass(n,[{key:"complete",value:function(){if(!this.isStopped){var t=this.source,e=this.count;if(0===e)return _get(_getPrototypeOf(n.prototype),"complete",this).call(this);e>-1&&(this.count=e-1),t.subscribe(this._unsubscribeAndRecycle())}}}]),n}(I.a),P=n("eIep"),R=n("Kj3r");function D(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new N(t,e))}}var z,N=function(){function t(e,n){_classCallCheck(this,t),this.predicate=e,this.inclusive=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new V(t,this.predicate,this.inclusive))}}]),t}(),V=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).predicate=r,a.inclusive=i,a.index=0,a}return _createClass(n,[{key:"_next",value:function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(r){return void n.error(r)}this.nextOrComplete(t,e)}},{key:"nextOrComplete",value:function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}]),n}(I.a),F=n("IzEk"),H=n("vkgz"),B=n("3Pt+"),U=n("tyNb"),q=n("quSY");try{z="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(hu){z=!1}var W,G,K=((G=_createClass((function t(e){_classCallCheck(this,t),this._platformId=e,this.isBrowser=this._platformId?Object(a.x)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!z)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}))).\u0275fac=function(t){return new(t||G)(i.mc(i.J,8))},G.\u0275prov=i.Yb({token:G,factory:G.\u0275fac,providedIn:"root"}),G.ngInjectableDef=Object(i.Yb)({factory:function(){return new G(Object(i.mc)(i.J,8))},token:G,providedIn:"root"}),G),Y=((W=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:W}),W.\u0275inj=i.Zb({factory:function(t){return new(t||W)}}),W);function Q(t){return Array.isArray(t)?t:[t]}function X(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}var Z,$=((Z=function(){function t(e){_classCallCheck(this,t),this._platform=e}return _createClass(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(hu){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var r=n&&n.nodeName.toLowerCase();if(-1===tt(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===r)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var i=t.nodeName.toLowerCase(),a=tt(t);if(t.hasAttribute("contenteditable"))return-1!==a;if("iframe"===i)return!1;if("audio"===i){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}
1if("video"===i){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0}},{key:"isFocusable",value:function(t){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")||J(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)}}]),t}()).\u0275fac=function(t){return new(t||Z)(i.mc(K))},Z.\u0275prov=i.Yb({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z.ngInjectableDef=Object(i.Yb)({factory:function(){return new Z(Object(i.mc)(K))},token:Z,providedIn:"root"}),Z);function J(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 tt(t){if(!J(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var et,nt=function(){function t(e,n,r,i){var a=this,o=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 a.focusLastTabbableElement()},this.endAnchorListener=function(){return a.focusFirstTabbableElement()},this._enabled=!0,o||this.attachAnchors()}return _createClass(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))}},{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}},{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<e.length;n++)e[n].hasAttribute("cdk-focus-".concat(t))?console.warn("Found use of deprecated attribute 'cdk-focus-".concat(t,"', ")+"use 'cdkFocusRegion".concat(t,"' instead. The deprecated ")+"attribute will be removed in 8.0.0.",e[n]):e[n].hasAttribute("cdk-focus-region-".concat(t))&&console.warn("Found use of deprecated attribute 'cdk-focus-region-".concat(t,"', ")+"use 'cdkFocusRegion".concat(t,"' instead. The deprecated attribute ")+"will be removed in 8.0.0.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",t),Object(i.ib)()&&!this._checker.isFocusable(t)&&console.warn("Element matching '[cdkFocusInitial]' is not focusable.",t),t.focu
1s(),!0):this.focusFirstTabbableElement()}},{key:"focusFirstTabbableElement",value:function(){var t=this._getRegionBoundary("start");return t&&t.focus(),!!t}},{key:"focusLastTabbableElement",value:function(){var t=this._getRegionBoundary("end");return t&&t.focus(),!!t}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=0;n<e.length;n++){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(r)return r}return null}},{key:"_getLastTabbableElement",value:function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=e.length-1;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:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Object(F.a)(1)).subscribe(t)}}]),t}(),rt=((et=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 nt(t,this._checker,this._ngZone,this._document,e)}}]),t}()).\u0275fac=function(t){return new(t||et)(i.mc($),i.mc(i.G),i.mc(a.c))},et.\u0275prov=i.Yb({token:et,factory:et.\u0275fac,providedIn:"root"}),et.ngInjectableDef=Object(i.Yb)({factory:function(){return new et(Object(i.mc)($),Object(i.mc)(i.G),Object(i.mc)(a.c))},token:et,providedIn:"root"}),et),it=n("6KbF");n("3N8a"),n("IjjT"),n("7Hc7");var at=function(){function t(e){_classCallCheck(this,t),this.durationSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new ot(t,this.durationSelector))}}]),t}(),ot=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=Object(S.a)(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}(O.a);function st(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p.a;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 Object(g.a)(e)?r=Number(e)<1?1:Number(e):Object(y.a)(e)&&(n=e),Object(y.a)(n)||(n=p.a),new u.a((function(e){var i=Object(g.a)(t)?t:+t-n.now();return n.schedule(v,i,{index:0,period:r,subscriber:e})}))}(t,n)},function(t){return t.lift(new at(e))}}n("UXun");var ut,ct,lt,ht,ft,dt=new i.w("cdk-dir-doc",{providedIn:"root",factory:function(){return Object(i.hb)(a.c)}}),pt=((ft=function(){function t(e){if(_classCallCheck(this,t),this.value="ltr",this.change=new i.q,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||ft)(i.mc(dt,8))},ft.\u0275prov=i.Yb({token:ft,factory:ft.\u0275fac,providedIn:"root"}),ft.ngInjectableDef=Object(i.Yb)({factory:function(){return new ft(Object(i.mc)(dt,8))},token:ft,providedIn:"root"}),ft),gt=((ht=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:ht}),ht.\u0275inj=i.Zb({factory:function(t){return new(t||ht)}}),ht),yt=((lt=function(){function t(e,n){_classCallCheck(this,t),this._ngZone=e,this._platform=n,this._scrolled=new s.a,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}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 u.a((function(n){t._globalSubscription||t._addGlobalListener();var r=e>0?t._scrolled.pipe(st(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){r.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}})):Object(d.a)()}},{key:"ngOnDestroy",value:function(){var t=this;
1this._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(Object(w.a)((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:"_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 Object(c.a)(window.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||lt)(i.mc(i.G),i.mc(K))},lt.\u0275prov=i.Yb({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt.ngInjectableDef=Object(i.Yb)({factory:function(){return new lt(Object(i.mc)(i.G),Object(i.mc)(K))},token:lt,providedIn:"root"}),lt),vt=((ct=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:ct}),ct.\u0275inj=i.Zb({factory:function(t){return new(t||ct)}
1,imports:[[gt,Y],gt]}),ct),mt=((ut=function(){function t(e,n){var r=this;_classCallCheck(this,t),this._platform=e,n.runOutsideAngular((function(){r._change=e.isBrowser?Object(l.a)(Object(c.a)(window,"resize"),Object(c.a)(window,"orientationchange")):Object(d.a)(),r._invalidateCache=r.change().subscribe((function(){return r._updateViewportSize()}))}))}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._invalidateCache.unsubscribe()}},{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=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(st(t)):this._change}},{key:"_updateViewportSize",value:function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}}}]),t}()).\u0275fac=function(t){return new(t||ut)(i.mc(K),i.mc(i.G))},ut.\u0275prov=i.Yb({token:ut,factory:ut.\u0275fac,providedIn:"root"}),ut.ngInjectableDef=Object(i.Yb)({factory:function(){return new ut(Object(i.mc)(K),Object(i.mc)(i.G))},token:ut,providedIn:"root"}),ut),bt=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=X(-this._previousScrollPosition.left),t.style.top=X(-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 _t(){return Error("Scroll strategy has already been attached.")}var wt=function(){function t(e,n,r,i){var a=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=r,this._config=i,this._scrollSubscription=null,this._detach=function(){a.disable(),a._overlayRef.hasAttached()&&a._ngZone.run((function(){return a._overlayRef.detach()}))}}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw _t();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}(),kt=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function Ct(t,e){return e.some((function(e){return t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right}))}function Ot(t,e){return e.some((function(e){return t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right}))}var St,Et=function(){function t(e,n,r,i){_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler
1=n,this._ngZone=r,this._config=i,this._scrollSubscription=null}return _createClass(t,[{key:"attach",value:function(t){if(this._overlayRef)throw _t();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;Ct(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}(),At=((St=_createClass((function t(e,n,r,i){var a=this;_classCallCheck(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=r,this.noop=function(){return new kt},this.close=function(t){return new wt(a._scrollDispatcher,a._ngZone,a._viewportRuler,t)},this.block=function(){return new bt(a._viewportRuler,a._document)},this.reposition=function(t){return new Et(a._scrollDispatcher,a._viewportRuler,a._ngZone,t)},this._document=i}))).\u0275fac=function(t){return new(t||St)(i.mc(yt),i.mc(mt),i.mc(i.G),i.mc(a.c))},St.\u0275prov=i.Yb({token:St,factory:St.\u0275fac,providedIn:"root"}),St.ngInjectableDef=Object(i.Yb)({factory:function(){return new St(Object(i.mc)(yt),Object(i.mc)(mt),Object(i.mc)(i.G),Object(i.mc)(a.c))},token:St,providedIn:"root"}),St),Tt=_createClass((function t(e){if(_classCallCheck(this,t),this.scrollStrategy=new kt,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];void 0!==e[i]&&(this[i]=e[i])}})),Mt=_createClass((function t(e,n,r,i,a){_classCallCheck(this,t),this.offsetX=r,this.offsetY=i,this.panelClass=a,this.originX=e.originX,this.originY=e.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY})),It=_createClass((function t(e,n){_classCallCheck(this,t),this.connectionPair=e,this.scrollableViewProperties=n}));function xt(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid ".concat(t,' "').concat(e,'". ')+'Expected "top", "bottom" or "center".')}function jt(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid ".concat(t,' "').concat(e,'". ')+'Expected "start", "end" or "center".')}var Lt,Pt,Rt=((Pt=function(){function t(e){var n=this;_classCallCheck(this,t),this._attachedOverlays=[],this._keydownListener=function(t){for(var e=n._attachedOverlays,r=e.length-1;r>-1;r--)if(e[r]._keydownEventSubscriptions>0){e[r]._keydownEvents.next(t);break}},this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._detach()}},{key:"add",value:function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)}},{key:"remove",value:function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()}},{key:"_detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),t}()).\u0275fac=function(t){return new(t||Pt)(i.mc(a.c))},Pt.\u0275prov=i.Yb({token:Pt,factory:Pt.\u0275fac,providedIn:"root"}),Pt.ngInjectableDef=Object(i.Yb)({factory:function(){return new Pt(Object(i.mc)(a.c))},token:Pt,providedIn:"root"}),Pt),Dt=((Lt=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"ngOnDestroy",value:function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){for(var t=this._document.getElementsByClassName("cdk-overlay-container"),e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e]);var n=this._document.createElement("div");n.classList.add("cdk-overlay-container"),this._document.body.appendChild(n),this._containerElement=n}}]),t}()).\u0275fac=function(t){return new(t||Lt)(i.mc(a.c))},Lt.\u0275prov=i.Yb({token:Lt,factory:Lt.\u0275fac,providedIn:"root"}),Lt.ngInjectableDef=Object(i.Yb)({factory:function(){return new Lt(Object(i.mc)(a.c))},token:Lt,providedIn:"root"}),Lt),zt=function(){function t(e,n,r,i,a,o,c,l){var h=this;_classCallCheck(this,t),this._portalOutlet=e,this._host=n,this._pane=r,this._config=i,this._ngZone=a,this._keyboardDispatcher=o,this._document=c,this._location=l,this._backdropElement=null,this._backdropClick=new s.a,this._attachments=new s.a,this._detachments=new s.a,this._locationChanges=q.a.EMPTY,this._backdropClickHandler=function(t){return h._backdropClick.next(t)}
1,this._keydownEventsObservable=new u.a((function(t){var e=h._keydownEvents.subscribe(t);return h._keydownEventSubscriptions++,function(){e.unsubscribe(),h._keydownEventSubscriptions--}})),this._keydownEvents=new s.a,this._keydownEventSubscriptions=0,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}return _createClass(t,[{key:"overlayElement",get:function(){return this._pane}},{key:"backdropElement",get:function(){return this._backdropElement}},{key:"hostElement",get:function(){return this._host}},{key:"attach",value:function(t){var e=this,n=this._portalOutlet.attach(t);return this._positionStrategy&&this._positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Object(F.a)(1)).subscribe((function(){e.hasAttached()&&e.updatePosition()})),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe((function(){return e.dispose()}))),n}},{key:"detach",value:function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),t}}},{key:"dispose",value:function(){var t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}},{key:"hasAttached",value:function(){return this._portalOutlet.hasAttached()}},{key:"backdropClick",value:function(){return this._backdropClick.asObservable()}},{key:"attachments",value:function(){return this._attachments.asObservable()}},{key:"detachments",value:function(){return this._detachments.asObservable()}},{key:"keydownEvents",value:function(){return this._keydownEventsObservable}},{key:"getConfig",value:function(){return this._config}},{key:"updatePosition",value:function(){this._positionStrategy&&this._positionStrategy.apply()}},{key:"updatePositionStrategy",value:function(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}},{key:"updateSize",value:function(t){this._config=Object.assign({},this._config,t),this._updateElementSize()}},{key:"setDirection",value:function(t){this._config=Object.assign({},this._config,{direction:t}),this._updateElementDirection()}},{key:"addPanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!0)}},{key:"removePanelClass",value:function(t){this._pane&&this._toggleClasses(this._pane,t,!1)}},{key:"getDirection",value:function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}},{key:"updateScrollStrategy",value:function(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}},{key:"_updateElementDirection",value:function(){this._host.setAttribute("dir",this.getDirection())}},{key:"_updateElementSize",value:function(){if(this._pane){var t=this._pane.style;t.width=X(this._config.width),t.height=X(this._config.height),t.minWidth=X(this._config.minWidth),t.minHeight=X(this._config.minHeight),t.maxWidth=X(this._config.maxWidth),t.maxHeight=X(this._config.maxHeight)}}},{key:"_togglePointerEvents",value:function(t){this._pane.style.pointerEvents=t?"auto":"none"}},{key:"_attachBackdrop",value:function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")}))})):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")}},{key:"_updateStackingOrder",value:function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}},{key:"detachBackdrop",value:function(){var t,e=this,n=this._backdropElement;if(n){var r=function r(){n&&(n.removeEventListener("click",e._backdropClickHandler),n.removeEventListener("transitionend",r),n.parentNode&&n.parentNode.removeChild(n)),e._backdropElement==n&&(e._backdropElement=null),e._config.backdropClass&&e._toggleClasses(n,e._config.backdropClass,!1),clearTimeout(t)};n.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular((function(){n.addEventListener("transitionend",r)})),n.style.pointerEvents="none",t=this._ngZone.runOutsideAngular((function(){return setTimeout(r,500)}))}}},{key:"_toggleClasses",value:function(t,e,n){var r=t.classList;Q(e).forEach((function(t){t&&(n?r.add(t):r.remove(t))}))}},{key:"_detachContentWhenStable",value:function(){var t=this;this._ngZone.runOutsideAngular((function(){var e=t._ngZone.onStable.asObservable().pipe(E(Object(l.a)(t._attachments,t._detachments))).subscribe((function(){t._pane&&t._host&&0!==t._pane.children.length||(t._pane&&t._config.panelClass&&t._toggleClasses(t._pane,t._config.panelClass,!1),t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),e.unsubscribe())}))}))}},{key:"_disposeScrollStrategy",value:function(){var t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}]),t}(),Nt=function(){function t(e,n,r,i,a){_classCallCheck(this,t),this._viewportRuler
1=n,this._document=r,this._platform=i,this._overlayContainer=a,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new s.a,this._resizeSubscription=q.a.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(e)}return _createClass(t,[{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(t){var e=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe((function(){e._isInitialRender=!0,e.apply()}))}},{key:"apply",value:function(){if(!this._isDisposed&&this._platform.isBrowser)if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();var t,e,n=this._originRect,r=this._overlayRect,i=this._viewportRect,a=[],o=_createForOfIteratorHelper(this._preferredPositions);try{for(o.s();!(e=o.n()).done;){var s=e.value,u=this._getOriginPoint(n,s),c=this._getOverlayPoint(u,r,s),l=this._getOverlayFit(c,r,i,s);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(s,u);this._canFitWithFlexibleDimensions(l,c,i)?a.push({position:s,origin:u,overlayRect:r,boundingBoxRect:this._calculateBoundingBoxRect(u,s)}):(!t||t.overlayFit.visibleArea<l.visibleArea)&&(t={overlayFit:l,overlayPoint:c,originPoint:u,position:s,overlayRect:r})}}catch(v){o.e(v)}finally{o.f()}if(a.length){var h,f=null,d=-1,p=_createForOfIteratorHelper(a);try{for(p.s();!(h=p.n()).done;){var g=h.value,y=g.boundingBoxRect.width*g.boundingBoxRect.height*(g.position.weight||1);y>d&&(d=y,f=g)}}catch(v){p.e(v)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(f.position,f.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&&Vt(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}
1return{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,a=t.y,o=this._getOffset(r,"x"),s=this._getOffset(r,"y");o&&(i+=o),s&&(a+=s);var u=0-a,c=a+e.height-n.height,l=this._subtractOverflows(e.width,0-i,i+e.width-n.width),h=this._subtractOverflows(e.height,u,c),f=l*h;return{visibleArea:f,isCompletelyWithinViewport:e.width*e.height===f,fitsInViewportVertically:h===e.height,fitsInViewportHorizontally:l==e.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var r=n.bottom-e.y,i=n.right-e.x,a=this._overlayRef.getConfig().minHeight,o=this._overlayRef.getConfig().minWidth,s=t.fitsInViewportHorizontally||null!=o&&o<=i;return(t.fitsInViewportVertically||null!=a&&a<=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,a=this._viewportRect,o=Math.max(t.x+e.width-a.right,0),s=Math.max(t.y+e.height-a.bottom,0),u=Math.max(a.top-n.top-t.y,0),c=Math.max(a.left-n.left-t.x,0);return r=e.width<=a.width?c||-o:t.x<this._viewportMargin?a.left-n.left-t.x:0,i=e.height<=a.height?u||-s:t.y<this._viewportMargin?a.top-n.top-t.y:0,this._previousPushAmount={x:r,y:i},{x:t.x+r,y:t.y+i}}},{key:"_applyPosition",value:function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){var n=this._getScrollVisibility(),r=new It(t,n);this._positionChanges.next(r)}this._isInitialRender=!1}},{key:"_setTransformOrigin",value:function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var i=0;i<n.length;i++)n[i].style.transformOrigin="".concat(e," ").concat(r)}}},{key:"_calculateBoundingBoxRect",value:function(t,e){var n,r,i,a,o,s,u=this._viewportRect,c=this._isRtl();if("top"===e.overlayY)r=t.y,n=u.height-r+this._viewportMargin;else if("bottom"===e.overlayY)i=u.height-t.y+2*this._viewportMargin,n=u.height-i+this._viewportMargin;else{var l=Math.min(u.bottom-t.y+u.top,t.y),h=this._lastBoundingBoxSize.height;n=2*l,r=t.y-l,n>h&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-h/2)}if("end"===e.overlayX&&!c||"start"===e.overlayX&&c)s=u.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!c||"end"===e.overlayX&&c)o=t.x,a=u.right-t.x;else{var f=Math.min(u.right-t.x+u.left,t.x),d=this._lastBoundingBoxSize.width;a=2*f,o=t.x-f,a>d&&!this._isInitialRender&&!this._growAfterOpen&&(o=t.x-d/2)}return{top:r,left:o,bottom:i,right:s,width:a,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.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;r.height=X(n.height),r.top=X(n.top),r.bottom=X(n.bottom),r.width=X(n.width),r.left=X(n.left),r.right=X(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=X(i)),a&&(r.maxWidth=X(a))}this._lastBoundingBoxSize=n,Vt(this._boundingBox.style,r)}},{key:"_resetBoundingBoxStyles",value:function(){Vt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Vt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={};if(this._hasExactPosition()){var r=this._viewportRuler.getViewportScrollPosition();Vt(n,this._getExactOverlayY(e,t,r)),Vt(n,this._getExactOverlayX(e,t,r))}else n.position="static";var i="",a=this._getOffset(e,"x"),o=this._getOffset(e,"y");a&&(i+="translateX(".concat(a,"px) ")),o&&(i+="translateY(".concat(o,"px)")),n.transform=i.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),Vt(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var r={top:null,bottom:null},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));var a=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=a,"bottom"===t.overlayY?r.bottom="".concat(this._document.documentElement.clientHeight-(i.y+this._overlayRect.height),"px"):r.top=X(i.y),r}},{key:"_getExactOverlayX",value:function(t,e,n){var r={left:null,right:null},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="".concat(this._document.documentElement.clientWidth-(i.x+this._overlayRect.width),"px"):r.left=X(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:Ot(t,n),isOriginOutsideView:Ct(t,n),isOverlayClipped:Ot(e,n),isOverlayOutsideView:Ct(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce((function(t,e){return t-Math.max(e,0)}),t)}},{key:"_getNarrowedViewportRect",value:function(){var t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}},{key:"_isRtl",value:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"_hasExactPosition",value:function(){return!this._hasFlexibleDimensions||this._isPushed}},{key:"_getOffset",value:function(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}},{key:"_validatePositions",value:function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach((function(t){jt("originX",t.originX),xt("originY",t.originY),jt("overlayX",t.overlayX),xt("overlayY",t.overlayY)}))}},{key:"_addPanelClasses",value:function(t){var e=this;this._pane&&Q(t).forEach((function(t){""!==t&&-1===e._appliedPanelClasses.indexOf(t)&&(e._appliedPanelClasses.push(t),e._pane.classList.add(t))}))}},{key:"_clearPanelClasses",value:function(){var t=this;
1this._pane&&(this._appliedPanelClasses.forEach((function(e){t._pane.classList.remove(e)})),this._appliedPanelClasses=[])}},{key:"_getOriginRect",value:function(){var t=this._origin;if(t instanceof i.o)return t.nativeElement.getBoundingClientRect();if(t instanceof HTMLElement)return t.getBoundingClientRect();var e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}]),t}();function Vt(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var Ft,Ht,Bt,Ut=function(){function t(e,n,r,i,a,o,s){_classCallCheck(this,t),this._preferredPositions=[],this._positionStrategy=new Nt(r,i,a,o,s).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(e,n)}return _createClass(t,[{key:"_isRtl",get:function(){return"rtl"===this._overlayRef.getDirection()}},{key:"onPositionChange",get:function(){return this._positionStrategy.positionChanges}},{key:"positions",get:function(){return this._preferredPositions}},{key:"attach",value:function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}},{key:"dispose",value:function(){this._positionStrategy.dispose()}},{key:"detach",value:function(){this._positionStrategy.detach()}},{key:"apply",value:function(){this._positionStrategy.apply()}},{key:"recalculateLastPosition",value:function(){this._positionStrategy.reapplyLastPosition()}},{key:"withScrollableContainers",value:function(t){this._positionStrategy.withScrollableContainers(t)}},{key:"withFallbackPosition",value:function(t,e,n,r){var i=new Mt(t,e,n,r);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"withDirection",value:function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}},{key:"withOffsetX",value:function(t){return this._positionStrategy.withDefaultOffsetX(t),this}},{key:"withOffsetY",value:function(t){return this._positionStrategy.withDefaultOffsetY(t),this}},{key:"withLockedPosition",value:function(t){return this._positionStrategy.withLockedPosition(t),this}},{key:"withPositions",value:function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}},{key:"setOrigin",value:function(t){return this._positionStrategy.setOrigin(t),this}}]),t}(),qt=function(){function t(){_classCallCheck(this,t),this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return _createClass(t,[{key:"attach",value:function(t){var e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper"),this._isDisposed=!1}},{key:"top",value:function(){var t=arguments.length>0&&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();t.position=this._cssPosition,t.marginLeft="100%"===n.width?"0":this._leftOffset,t.marginTop="100%"===n.height?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,"100%"===n.width?e.
1justifyContent="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="100%"===n.height?"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}(),Wt=((Ht=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 qt}},{key:"connectedTo",value:function(t,e,n){return new Ut(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new Nt(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}()).\u0275fac=function(t){return new(t||Ht)(i.mc(mt),i.mc(a.c),i.mc(K),i.mc(Dt))},Ht.\u0275prov=i.Yb({token:Ht,factory:Ht.\u0275fac,providedIn:"root"}),Ht.ngInjectableDef=Object(i.Yb)({factory:function(){return new Ht(Object(i.mc)(mt),Object(i.mc)(a.c),Object(i.mc)(K),Object(i.mc)(Dt))},token:Ht,providedIn:"root"}),Ht),Gt=0,Kt=((Ft=function(){function t(e,n,r,i,a,o,s,u,c,l){_classCallCheck(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=r,this._positionBuilder=i,this._keyboardDispatcher=a,this._injector=o,this._ngZone=s,this._document=u,this._directionality=c,this._location=l}return _createClass(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),r=this._createPortalOutlet(n),i=new Tt(t);return i.direction=i.direction||this._directionality.value,new zt(r,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(Gt++),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(i.g)),new it.e(t,this._componentFactoryResolver,this._appRef,this._injector)}}]),t}()).\u0275fac=function(t){return new(t||Ft)(i.mc(At),i.mc(Dt),i.mc(i.k),i.mc(Wt),i.mc(Rt),i.mc(i.x),i.mc(i.G),i.mc(a.c),i.mc(pt),i.mc(a.h,8))},Ft.\u0275prov=i.Yb({token:Ft,factory:Ft.\u0275fac}),Ft),Yt={provide:new i.w("cdk-connected-overlay-scroll-strategy"),deps:[Kt],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Qt=((Bt=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:Bt}),Bt.\u0275inj=i.Zb({factory:function(t){return new(t||Bt)},providers:[Kt,Yt],imports:[[gt,it.g,vt],vt]}),Bt),Xt=n("jhN1"),Zt=n("R0Ic");function $t(t,e){if(1&t&&(i.ic(0,"div",2),i.Sc(1),i.hc()),2&t){var n=i.uc();i.Pb(1),i.Tc(n.content)}}function Jt(t,e){}n("Wr5T"),n.d(e,"x",(function(){return Ga})),n.d(e,"i",(function(){return na})),n.d(e,"D",(function(){return Kr})),n.d(e,"h",(function(){return bi})),n.d(e,"g",(function(){return gi})),n.d(e,"d",(function(){return yi})),n.d(e,"f",(function(){return vi})),n.d(e,"e",(function(){return mi})),n.d(e,"u",(function(){return Zo})),n.d(e,"s",(function(){return Yo})),n.d(e,"r",(function(){return Qo})),n.d(e,"t",(function(){return Xo})),n.d(e,"w",(function(){return vs})),n.d(e,"v",(function(){return gs})),n.d(e,"z",(function(){return Cs})),n.d(e,"y",(function(){return ws})),n.d(e,"A",(function(){return Ls})),n.d(e,"B",(function(){return Ps})),n.d(e,"b",(function(){return ta})),n.d(e,"c",(function(){return ea})),n.d(e,"p",(function(){return Es})),n.d(e,"q",(function(){return As})),n.d(e,"l",(function(){return nu})),n.d(e,"a",(function(){return Hs})),n.d(e,"k",(function(){return Bs})),n.d(e,"j",(function(){return Xs})),n.d(e,"o",(function(){return fi})),n.d(e,"m",(function(){return li})),n.d(e,"C",(function(){return Xr})),n.d(e,"n",(function(){return si}
1));var te=["*"],ee=[[["nb-card-header"]],[["nb-card-body"]],"*",[["nb-card-footer"]]],ne=["nb-card-header","nb-card-body","*","nb-card-footer"],re=["nbButton",""];function ie(t,e){if(1&t&&i.dc(0,"nb-calendar-week-numbers",3),2&t){var n=i.uc();i.Bc("weeks",n.weeks)("size",n.size)("weekNumberSymbol",n.weekNumberSymbol)}}function ae(t,e){if(1&t&&(i.ic(0,"div",1),i.Sc(1),i.hc()),2&t){var n=e.$implicit;i.Tb("holiday",n.isHoliday),i.Pb(1),i.Tc(n.name)}}var oe=function(t,e){return{"nb-arrow-dropright":t,"nb-arrow-dropleft":e}};function se(t,e){if(1&t){var n=i.jc();i.ic(0,"nb-calendar-picker-row",1),i.qc("select",(function(t){return i.Kc(n),i.uc().select.emit(t)})),i.hc()}if(2&t){var r=e.$implicit,a=i.uc();i.Bc("row",r)("visibleDate",a.visibleDate)("selectedValue",a.selectedValue)("component",a.cellComponent)("min",a.min)("max",a.max)("filter",a.filter)}}function ue(t,e){}function ce(t,e){if(1&t&&(i.ic(0,"div",2),i.Sc(1),i.hc()),2&t){var n=e.$implicit;i.Pb(1),i.Tc(n)}}function le(t,e){if(1&t){var n=i.jc();i.ic(0,"nb-card-header"),i.ic(1,"nb-calendar-header",3),i.qc("navigateToday",(function(){return i.Kc(n),i.uc().navigateToday()})),i.hc(),i.hc()}}function he(t,e){if(1&t){var n=i.jc();i.ic(0,"nb-calendar-pageable-navigation",6),i.qc("next",(function(){return i.Kc(n),i.uc(2).nextMonth()}))("prev",(function(){return i.Kc(n),i.uc(2).prevMonth()}))("changeMode",(function(){i.Kc(n);var t=i.uc(2);return t.setViewMode(t.ViewMode.YEAR)})),i.hc()}if(2&t){var r=i.uc(2);i.Bc("date",r.visibleDate)}}function fe(t,e){if(1&t){var n=i.jc();i.gc(0),i.Qc(1,he,1,1,"nb-calendar-pageable-navigation",4),i.ic(2,"nb-calendar-day-picker",5),i.qc("dateChange",(function(t){return i.Kc(n),i.uc().dateChange.emit(t)})),i.hc(),i.fc()}if(2&t){var r=i.uc();i.Pb(1),i.Bc("ngSwitchCase",r.ViewMode.DATE),i.Pb(1),i.Bc("boundingMonths",r.boundingMonth)("cellComponent",r.dayCellComponent)("min",r.min)("max",r.max)("filter",r.filter)("visibleDate",r.visibleDate)("size",r.size)("date",r.date)("showWeekNumber",r.showWeekNumber)("weekNumberSymbol",r.weekNumberSymbol)}}function de(t,e){if(1&t){var n=i.jc();i.gc(0),i.ic(1,"nb-calendar-pageable-navigation",6),i.qc("next",(function(){return i.Kc(n),i.uc().nextYears()}))("prev",(function(){return i.Kc(n),i.uc().prevYears()}))("changeMode",(function(){i.Kc(n);var t=i.uc();return t.setViewMode(t.ViewMode.DATE)})),i.hc(),i.ic(2,"nb-calendar-year-picker",7),i.qc("yearChange",(function(t){i.Kc(n);var e=i.uc();return e.setVisibleDate(t),e.setViewMode(e.ViewMode.MONTH)})),i.hc(),i.fc()}if(2&t){var r=i.uc();i.Pb(1),i.Bc("date",r.visibleDate),i.Pb(1),i.Bc("cellComponent",r.yearCellComponent)("date",r.date)("min",r.min)("max",r.max)("filter",r.filter)("size",r.size)("year",r.visibleDate)}}function pe(t,e){if(1&t){var n=i.jc();i.gc(0),i.ic(1,"nb-calendar-navigation",8),i.qc("changeMode",(function(){i.Kc(n);var t=i.uc();return t.setViewMode(t.ViewMode.DATE)})),i.hc(),i.ic(2,"nb-calendar-month-picker",9),i.qc("monthChange",(function(t){i.Kc(n);var e=i.uc();return e.setVisibleDate(t),e.setViewMode(e.ViewMode.DATE)})),i.hc(),i.fc()}if(2&t){var r=i.uc();i.Pb(1),i.Bc("date",r.visibleDate),i.Pb(1),i.Bc("cellComponent",r.monthCellComponent)("min",r.min)("max",r.max)("filter",r.filter)("size",r.size)("month",r.visibleDate)}}var ge=["layoutTopDynamicArea"],ye=["scrollableContainer"],ve=["layoutContainer"],me=[[["nb-layout-header",3,"subheader",""]],[["nb-sidebar"]],[["nb-layout-header","subheader",""]],[["nb-layout-column"]],[["nb-layout-footer"]]],be=["nb-layout-header:not([subheader])","nb-sidebar","nb-layout-header[subheader]","nb-layout-column","nb-layout-footer"],_e=["nbMenuItem",""];function we(t,e){if(1&t&&i.dc(0,"nb-icon",6),2&t){var n=i.uc(2);i.Bc("config",n.menuItem.icon)}}function ke(t,e){if(1&t&&(i.ic(0,"span"),i.Qc(1,we,1,1,"nb-icon",5),i.Sc(2),i.hc()),2&t){var n=i.uc();i.Pb(1),i.Bc("ngIf",n.menuItem.icon),i.Pb(1),i.Uc(" ",n.menuItem.title,"\n")}}function Ce(t,e){if(1&t&&i.dc(0,"nb-icon",6),2&t){var n=i.uc(2);i.Bc("config",n.menuItem.icon)}}function Oe(t,e){if(1&t){var n=i.jc();i.ic(0,"a",7),i.qc("mouseenter",(function(){i.Kc(n);var t=i.uc();return t.onHoverItem(t.menuItem)}))("click",(function(){i.Kc(n);var t=i.uc();return t.onItemClick(t.menuItem)})),i.Qc(1,Ce,1,1,"nb-icon",5),i.ic(2,"span",8),i.Sc(3),i.hc(),i.hc()}if(2&t){var r=i.uc();i.Tb("active",r.menuItem.selected),i.Bc("routerLink",r.menuItem.link)("queryParams",r.menuItem.queryParams)("fragment",r.menuItem.fragment)("skipLocationChange",r.menuItem.skipLocationChange),i.Qb("target",r.menuItem.target)("title",r.menuItem.title),i.Pb(1),i.Bc("ngIf",r.menuItem.icon),i.Pb(2),i.Tc(r.menuItem.title)}}function Se(t,e){if(1&t&&i.dc(0,"nb-icon",6),2&t){var n=i.uc(2);i.Bc("config",n.menuItem.icon)}}function Ee(t,e){if(1&t){var n=i.jc();i.ic(0,"a",9),i.qc("mouseenter",(function(){i.Kc(n);var t=i.uc();return t.onHoverItem(t.menuItem)}))("click",(function(){i.Kc(n);var t=i.uc();return t.onSelectItem(t.menuItem)})),i.Qc(1,Se,1,1,"nb-icon",5),i.ic(2,"span",8),i.Sc(3),i.hc(),i.hc()}if(2&t){var r=i.uc();i.Tb("active",r.menuItem.selected),i.Qb("href",r.menuItem.url,i.Mc)("target",r.menuItem.target)("title",r.menuItem.title),i.Pb(1),i.Bc("ngIf",r.menuItem.icon),i.Pb(2),i.Tc(r.menuItem.title)}}function Ae(t,e){if(1&t&&i.dc(0,"nb-icon",6),2&t){var n=i.uc(2);i.Bc("config",n.menuItem.icon)}}function Te(t,e){if(1&t){var n=i.jc();i.ic(0,"a",9),i.qc("mouseenter",(function(){i.Kc(n);var t=i.uc();return t.onHoverItem(t.menuItem)}))("click",(function(t){i.Kc(n);var e=i.uc();return t.preventDefault(),e.onItemClick(e.menuItem)})),i.Qc(1,Ae,1,1,"nb-icon",5),i.ic(2,"span",8),i.Sc(3),i.hc(),i.hc()}if(2&t){var r=i.uc();i.Tb("active",r.menuItem.selected),i.Qb("target",r.menuItem.target)("title",r.menuItem.title),i.Pb(1),i.Bc("ngIf",r.menuItem.icon),i.Pb(2),i.Tc(r.menuItem.title)}}function Me(t,e){if(1&t&&i.dc(0,"nb-icon",6),2&t){var n=i.uc(2);i.Bc("config",n.menuItem.icon)}}function Ie(t,e){if(1&t){var n=i.jc();i.ic(0,"a",10),i.qc("click",(function(t){i.Kc(n);var e=i.uc();return t.preventDefault(),e.onToggleSubMenu(e.menuItem)}))("mouseenter",(function(){i.Kc(n);var t=i.uc();return t.onHoverItem(t.menuItem)})),i.Qc(1,Me,1,1,"nb-icon",5),i.ic(2,"span",8),i.Sc(3),i.hc(),i.dc(4,"nb-icon",11),i.hc()}if(2&t){var r=i.uc();i.Tb("active",r.menuItem.selected),i.Qb("target",r.menuItem.target)("title",r.menuItem.title),i.Pb(1),i.Bc("ngIf",r.menuItem.icon),i.Pb(2),i.Tc(r.menuItem.title),i.Pb(1),i.Bc("icon",r.getExpandStateIcon())}}function xe(t,e){if(1&t){var n=i.jc();
1i.ic(0,"li",15),i.qc("hoverItem",(function(t){return i.Kc(n),i.uc(3).onHoverItem(t)}))("toggleSubMenu",(function(t){return i.Kc(n),i.uc(3).onToggleSubMenu(t)}))("selectItem",(function(t){return i.Kc(n),i.uc(3).onSelectItem(t)}))("itemClick",(function(t){return i.Kc(n),i.uc(3).onItemClick(t)})),i.hc()}if(2&t){var r=i.uc().$implicit;i.Tb("menu-group",r.group),i.Bc("menuItem",r)}}function je(t,e){if(1&t&&(i.gc(0),i.Qc(1,xe,1,3,"li",14),i.fc()),2&t){var n=e.$implicit;i.Pb(1),i.Bc("ngIf",!n.hidden)}}function Le(t,e){if(1&t&&(i.ic(0,"ul",12),i.Qc(1,je,2,1,"ng-container",13),i.hc()),2&t){var n=i.uc();i.Tb("collapsed",!(n.menuItem.children&&n.menuItem.expanded))("expanded",n.menuItem.expanded),i.Bc("@toggle",n.toggleState),i.Pb(1),i.Bc("ngForOf",n.menuItem.children)}}function Pe(t,e){if(1&t){var n=i.jc();i.ic(0,"li",3),i.qc("hoverItem",(function(t){return i.Kc(n),i.uc(2).onHoverItem(t)}))("toggleSubMenu",(function(t){return i.Kc(n),i.uc(2).onToggleSubMenu(t)}))("selectItem",(function(t){return i.Kc(n),i.uc(2).onSelectItem(t)}))("itemClick",(function(t){return i.Kc(n),i.uc(2).onItemClick(t)})),i.hc()}if(2&t){var r=i.uc().$implicit;i.Tb("menu-group",r.group),i.Bc("menuItem",r)}}function Re(t,e){if(1&t&&(i.gc(0),i.Qc(1,Pe,1,3,"li",2),i.fc()),2&t){var n=e.$implicit;i.Pb(1),i.Bc("ngIf",!n.hidden)}}var De=[[["nb-sidebar-header"]],"*",[["nb-sidebar-footer"]]],ze=["nb-sidebar-header","*","nb-sidebar-footer"];function Ne(t,e){if(1&t&&(i.ic(0,"span",2),i.Sc(1),i.hc()),2&t){var n=i.uc();i.Pb(1),i.Tc(n.message)}}var Ve,Fe,He,Be,Ue,qe,We,Ge,Ke,Ye,Qe,Xe,Ze,$e,Je,tn,en,nn,rn,an,on,sn,un,cn,ln,hn,fn,dn,pn,gn,yn=new i.w("Nebular Theme Options"),vn=new i.w("Nebular Media Breakpoints"),mn=new i.w("Nebular Built-in JS Themes"),bn=new i.w("Nebular JS Themes"),_n=new i.w("Window"),wn=new i.w("Document"),kn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Cn=function(t,e){return function(n,r){e(n,r,t)}},On=[{name:"default",variables:{fontMain:"Open Sans, sans-serif",fontSecondary:"Raleway, sans-serif",bg:"#ffffff",bg2:"#f7f9fc",bg3:"#edf1f7",bg4:"#e4e9f2",border:"#ffffff",border2:"#f7f9fc",border3:"#edf1f7",border4:"#e4e9f2",border5:"#c5cee0",fg:"#8f9bb3",fgHeading:"#1a2138",fgText:"#1a2138",fgHighlight:"#3366ff",layoutBg:"#f7f9fc",separator:"#edf1f7",primary:"#3366ff",success:"#00d68f",info:"#0095ff",warning:"#ffaa00",danger:"#ff3d71",primaryLight:"#598bff",successLight:"#2ce69b",infoLight:"#42aaff",warningLight:"#ffc94d",dangerLight:"#ff708d"}},{name:"cosmic",variables:{fontMain:"Open Sans, sans-serif",fontSecondary:"Raleway, sans-serif",bg:"#323259",bg2:"#252547",bg3:"#1b1b38",bg4:"#13132b",border:"#323259",border2:"#252547",border3:"#1b1b38",border4:"#13132b",border5:"#13132b",fg:"#b4b4db",fgHeading:"#ffffff",fgText:"#ffffff",fgHighlight:"#a16eff",layoutBg:"#151a30",separator:"#151a30",primary:"#a16eff",success:"#00d68f",info:"#0095ff",warning:"#ffaa00",danger:"#ff3d71",primaryLight:"#b18aff",successLight:"#2ce69b",infoLight:"#42aaff",warningLight:"#ffc94d",dangerLight:"#ff708d"}},{name:"corporate",base:"default",variables:{fontMain:"Open Sans, sans-serif",fontSecondary:"Raleway, sans-serif",bg:"#ffffff",bg2:"#f7f9fc",bg3:"#edf1f7",bg4:"#e4e9f2",border:"#ffffff",border2:"#f7f9fc",border3:"#edf1f7",border4:"#e4e9f2",border5:"#c5cee0",fg:"#8f9bb3",fgHeading:"#1a2138",fgText:"#1a2138",fgHighlight:"#73a1ff",layoutBg:"#f7f9fc",separator:"#edf1f7",primary:"#73a1ff",success:"#5dcfe3",info:"#ba7fec",warning:"#ffa36b",danger:"#ff6b83",primaryLight:"#598bff",successLight:"#2ce69b",infoLight:"#42aaff",warningLight:"#ffc94d",dangerLight:"#ff708d"}},{name:"dark",variables:{fontMain:"Open Sans, sans-serif",fontSecondary:"Raleway, sans-serif",bg:"#222b45",bg2:"#1a2138",bg3:"#151a30",bg4:"#101426",border:"#222b45",border2:"#1a2138",border3:"#151a30",border4:"#101426",border5:"#101426",fg:"#8f9bb3",fgHeading:"#ffffff",fgText:"#ffffff",fgHighlight:"#3366ff",layoutBg:"#1b1b38",separator:"#1b1b38",primary:"#3366ff",success:"#00d68f",info:"#0095ff",warning:"#ffaa00",danger:"#ff3d71",primaryLight:"#598bff",successLight:"#2ce69b",infoLight:"#42aaff",warningLight:"#ffc94d",dangerLight:"#ff708d"}}],Sn=((Ve=function(){function t(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];_classCallCheck(this,t),this.themes={},this.combineByNames(r,e).forEach((function(t){n.register(t,t.name,t.base)}))}return _createClass(t,[{key:"register",value:function(t,e,n){var r=this.has(n)?this.get(n):{};this.themes[e]=this.mergeDeep({},r,t)}},{key:"has",value:function(t){return!!this.themes[t]}},{key:"get",value:function(t){if(!this.themes[t])throw Error("NbThemeConfig: no theme '".concat(t,"' found registered."));return JSON.parse(JSON.stringify(this.themes[t]))}},{key:"combineByNames",value:function(t,e){var n=this;if(t){var r=[];return t.forEach((function(t){var i=e.find((function(e){return e.name===t.name}))||{},a=n.mergeDeep({},i,t);r.push(a)})),e.forEach((function(t){r.find((function(e){return e.name===t.name}))||r.push(t)})),r}return e}},{key:"isObject",value:function(t){return t&&"object"==typeof t&&!Array.isArray(t)}},{key:"mergeDeep",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(!n.length)return t;var i=n.shift();if(this.isObject(t)&&this.isObject(i))for(var a in i)this.isObject(i[a])?(t[a]||Object.assign(t,_defineProperty2({},a,{})),this.mergeDeep(t[a],i[a])):Object.assign(t,_defineProperty2({},a,i[a]));return this.mergeDeep.apply(this,[t].concat(n))}}]),t}()).\u0275fac=function(t){return new(t||Ve)(i.mc(mn),i.mc(bn))},Ve.\u0275prov=i.Yb({token:Ve,factory:Ve.\u0275fac}),Ve=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Cn(0,Object(i.v)(mn)),Cn(1,Object(i.v)(bn)),kn("design:paramtypes",[Array,Array])],Ve)),En=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},An=[{name:"xs",width:0},{name:"is",width:400},{name:"sm",width:576},{name:"md",width:768},{name:"lg",width:992},{name:"xl",width:1200},{name:"xxl",width:1400},{name:"xxxl",width:1600}],Tn=((He=function(){function t(e){_classCallCheck(this,t),this.breakpoints=e,this.breakpointsMap=this.breakpoints.reduce((function(t,e){return t[e.name]=e.width,t}),{})}return _createClass(t,[{key:"getByWidth",value:function(t){var e={name:"unknown",width:t}
1,n=this.getBreakpoints();return n.find((function(e,r){var i=n[r+1];return t>=e.width&&(!i||t<i.width)}))||e}},{key:"getByName",value:function(t){return this.getBreakpoints().find((function(e){return t===e.name}))||{name:"unknown",width:NaN}}},{key:"getBreakpoints",value:function(){return this.breakpoints}},{key:"getBreakpointsMap",value:function(){return this.breakpointsMap}}]),t}()).\u0275fac=function(t){return new(t||He)(i.mc(vn))},He.\u0275prov=i.Yb({token:He,factory:He.\u0275fac}),He=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([(Fe=Object(i.v)(vn),function(t,e){Fe(t,e,0)}),En("design:paramtypes",[Object])],He)),Mn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},In=function(){var t,e=function(){function t(e,n,r){_classCallCheck(this,t),this.options=e,this.breakpointService=n,this.jsThemesRegistry=r,this.themeChanges$=new o.a(1),this.appendLayoutClass$=new s.a,this.removeLayoutClass$=new s.a,this.changeWindowWidth$=new o.a(2),e&&e.name&&this.changeTheme(e.name)}return _createClass(t,[{key:"changeTheme",value:function(t){this.themeChanges$.next({name:t,previous:this.currentTheme}),this.currentTheme=t}},{key:"changeWindowWidth",value:function(t){this.changeWindowWidth$.next(t)}},{key:"getJsTheme",value:function(){var t=this;return this.onThemeChange().pipe(Object(m.a)((function(e){return t.jsThemesRegistry.get(e.name)})))}},{key:"onMediaQueryChange",value:function(){var t=this;return this.changeWindowWidth$.pipe(Object(b.a)(void 0),Object(_.a)(),Object(m.a)((function(e){var n=_slicedToArray(e,2),r=n[0],i=n[1];return[t.breakpointService.getByWidth(r),t.breakpointService.getByWidth(i)]})),Object(w.a)((function(t){var e=_slicedToArray(t,2),n=e[0],r=e[1];return n.name!==r.name})),Object(k.a)(null,(function(t){return t[0].name+t[1].name})),Object(C.a)())}},{key:"onThemeChange",value:function(){return this.themeChanges$.pipe(Object(C.a)())}},{key:"appendLayoutClass",value:function(t){this.appendLayoutClass$.next(t)}},{key:"onAppendLayoutClass",value:function(){return this.appendLayoutClass$.pipe(Object(C.a)())}},{key:"removeLayoutClass",value:function(t){this.removeLayoutClass$.next(t)}},{key:"onRemoveLayoutClass",value:function(){return this.removeLayoutClass$.pipe(Object(C.a)())}}]),t}();return e.\u0275fac=function(t){return new(t||e)(i.mc(yn),i.mc(Tn),i.mc(Sn))},e.\u0275prov=i.Yb({token:e,factory:e.\u0275fac}),e=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([(t=Object(i.v)(yn),function(e,n){t(e,n,0)}),Mn("design:paramtypes",[Object,Tn,Sn])],e)}(),xn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},jn=function(){var t,e=function(){function t(e){_classCallCheck(this,t),this.document=e,this.loaders=[],this.selector="nb-global-spinner"}return _createClass(t,[{key:"registerLoader",value:function(t){this.loaders.push(t)}},{key:"clear",value:function(){this.loaders=[]}},{key:"load",value:function(){this.showSpinner(),this.executeAll()}},{key:"executeAll",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){};Promise.all(this.loaders).then((function(n){t.hideSpinner(),e.call(null,n)})).catch((function(t){console.error(t)}))}},{key:"showSpinner",value:function(){var t=this.getSpinnerElement();t&&(t.style.display="block")}},{key:"hideSpinner",value:function(){var t=this.getSpinnerElement();t&&(t.style.display="none")}},{key:"getSpinnerElement",value:function(){return this.document.getElementById(this.selector)}}]),t}();return e.\u0275fac=function(t){return new(t||e)(i.mc(wn))},e.\u0275prov=i.Yb({token:e,factory:e.\u0275fac}),e=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([(t=Object(i.v)(wn),function(e,n){t(e,n,0)}),xn("design:paramtypes",[Object])],e)}(),Ln=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Pn=function(t,e){return function(n,r){e(n,r,t)}},Rn=function(t){return t.LTR="ltr",t.RTL="rtl",t}({}),Dn=new i.w("Layout direction"),zn=((We=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Rn.LTR;_classCallCheck(this,t),this.direction=e,this.$directionChange=new o.a(1),this.setDirection(e)}return _createClass(t,[{key:"isLtr",value:function(){return this.direction===Rn.LTR}},{key:"isRtl",value:function(){return this.direction===Rn.RTL}},{key:"getDirection",value:function(){return this.direction}},{key:"setDirection",value:function(t){this.direction=t,this.$directionChange.next(t)}},{key:"onDirectionChange",value:function(){return this.$directionChange.pipe(Object(C.a)())}}]),t}()).\u0275fac=function(t){return new(t||We)(i.mc(Dn,8))},We.\u0275prov=i.Yb({token:We,factory:We.\u0275fac}),We=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Pn(0,Object(i.H)()),Pn(0,Object(i.v)(Dn)),Ln("design:paramtypes",[Object])],We)),Nn=((qe=function(){function t(){_classCallCheck(this,t),this.scrollPositionReq$=new s.a,this.manualScroll$=new s.a,this.scroll$=new s.a,this.scrollable$=new s.a}return _createClass(t,[{key:"getPosition",value:function(){var t=this;return u.a.create((function(e){var n=new s.a;return n.subscribe(e),t.scrollPositionReq$.next({listener:n}),function(){return n.complete()}}))}},{key:"scrollTo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.manualScroll$.next({x:t,y:e})}},{key:"onScroll",value:function(){return this.scroll$.pipe(Object(C.a)())}},{key:"onManualScroll",value:function(){return this.manualScroll$.pipe(Object(C.a)())}},{key:"onGetPosition",value:function(){return this.scrollPositionReq$}},{key:"onScrollableChange",value:function(){return this.scrollable$.pipe(Object(C.a)())}},{key:"fireScrollChange",value:function(t){this.scroll$.next(t)}},{key:"scrollable",value:function(t){this.scrollable$.next(t)}}]),t}()).\u0275fac=function(t){return new(t||qe)},qe.\u0275prov=i.Yb({token:qe,factory:qe.\u0275fac}),qe),Vn=((Ue=function(){function t(){_classCallCheck(this,t),this.contentDimensionsReq$=new s.a}return _createClass(t,[{key:"getDimensions",value:function(){var t=this;return u.a.create((function(e){var n=new s.a;return n.subscribe(e),t.contentDimensionsReq$.next({listener:n}),function(){return n.complete()}}))}},{key:"onGetDimensions",value:function(){return this.contentDimensionsReq$}}
1]),t}()).\u0275fac=function(t){return new(t||Ue)},Ue.\u0275prov=i.Yb({token:Ue,factory:Ue.\u0275fac}),Ue),Fn=((Be=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:Be}),Be.\u0275inj=i.Zb({factory:function(t){return new(t||Be)},imports:[a.b,B.c,U.g]}),Be),Hn=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Bn=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a,o){var s;return _classCallCheck(this,n),(s=e.call(this,t,r,i,a,o)).element=t,s.checker=r,s.ngZone=i,s.document=a,s.savePreviouslyFocusedElement(),s}return _createClass(n,[{key:"restoreFocus",value:function(){this.previouslyFocusedElement.focus(),this.destroy()}},{key:"blurPreviouslyFocusedElement",value:function(){this.previouslyFocusedElement.blur()}},{key:"savePreviouslyFocusedElement",value:function(){this.previouslyFocusedElement=this.document.activeElement}}]),n}(nt),Un=function(){var t,e=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t,r,i)).checker=t,a.ngZone=r,a.document=i,a}return _createClass(n,[{key:"create",value:function(t,e){return new Bn(t,this.checker,this.ngZone,this.document,e)}}]),n}(rt);return e.\u0275fac=function(t){return new(t||e)(i.mc($),i.mc(i.G),i.mc(wn))},e.\u0275prov=i.Yb({token:e,factory:e.\u0275fac}),e=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([(t=Object(i.v)(wn),function(e,n){t(e,n,2)}),Hn("design:paramtypes",[$,i.G,Object])],e)}(),qn=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._origin="program",t}return _createClass(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){_get(_getPrototypeOf(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(function(){function t(e){var n=this;_classCallCheck(this,t),this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new s.a,this._typeaheadSubscription=q.a.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._skipPredicateFn=function(t){return t.disabled},this._pressedLetters=[],this.tabOut=new s.a,this.change=new s.a,e instanceof i.L&&e.changes.subscribe((function(t){if(n._activeItem){var e=t.toArray().indexOf(n._activeItem);e>-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}}))}return _createClass(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;if(this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Object(H.a)((function(e){return t._pressedLetters.push(e)})),Object(R.a)(e),Object(w.a)((function(){return t._pressedLetters.length>0})),Object(m.a)((function(){return t._pressedLetters.join("")}))).subscribe((function(e){for(var n=t._getItemsArray(),r=1;r<n.length+1;r++){var i=(t._activeItemIndex+r)%n.length,a=n[i];if(!t._skipPredicateFn(a)&&0===a.getLabel().toUpperCase().trim().indexOf(e)){t.setActiveItem(i);break}}t._pressedLetters=[]})),this}},{key:"setActiveItem",value:function(t){var e=this._activeItemIndex;this.updateActiveItem(t),this._activeItemIndex!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every((function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((r||function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.length?n.some((function(e){return t[e]})):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),r=e[n];this._activeItem=null==r?null:r,this._activeItemIndex=n}},{key:"updateActiveItemIndex",value:function(t){this.updateActiveItem(t)}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof i.L?this._items.toArray():this._items}}]),t}())),Wn=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"create",value:function(t){return new qn(t)}}]),t}(),Gn=((Ke=Ge=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:Ge,providers:[Un,Wn]}}}]),t}()).\u0275mod=i.ac({type:Ke}),Ke.\u0275inj=i.Zb({factory:function(t){return new(t||Ke)}}),Ke),Kn=((Qe=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(it.b)).\u0275fac=function(t){return ru(t||Qe)},Qe.\u0275dir=i.Xb({type:Qe,selectors:[["","nbPortalOutlet",""]],features:[i.Mb]}),Qe),Yn=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(it.c),Qn=((Je=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(Kt)).\u0275fac=function(t){return iu(t||Je)},Je.\u0275prov=i.Yb({token:Je,factory:Je.\u0275fac}),Je),Xn=(($e=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(K)).\u0275fac=function(t){return au(t||$e)},$e.\u0275prov=i.Yb({token:$e,factory:$e.\u0275fac}),$e),Zn=((Ze=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(Wt)).\u0275fac=function(t){return ou(t||Ze)},Ze.\u0275prov=i.Yb({token:Ze,factory:Ze.\u0275fac}),Ze),$n=((Xe=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(Dt)).ngInjectableDef=Object(i.Yb)({factory:function(){return new Xe(Object(i.mc)(a.c))},token:Xe,providedIn:"root"}),Xe),Jn=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(Nt),tr=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}
1(it.f),er=[Qt,it.g],nr=((en=Ye=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:Ye,providers:[Qn,Xn,Zn]}}}]),t}()).\u0275mod=i.ac({type:en}),en.\u0275inj=i.Zb({factory:function(t){return new(t||en)},imports:[[].concat(er),Qt,it.g]}),en),rr=((tn=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"setContainer",value:function(t){this.container=t}},{key:"clearContainer",value:function(){this.container=null,this._containerElement=null}},{key:"_createContainer",value:function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this.container.appendChild(t),this._containerElement=t}}]),n}($n)).\u0275fac=function(t){return su(t||tn)},tn.\u0275prov=i.Yb({token:tn,factory:tn.\u0275fac}),tn),ir=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ar=((nn=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;return _classCallCheck(this,n),(o=e.call(this,t,r)).ruler=i,o.scroll=a,o}return _createClass(n,[{key:"getViewportSize",value:function(){var t;return this.ruler.getDimensions().pipe(Object(m.a)((function(t){return{width:t.clientWidth,height:t.clientHeight}}))).subscribe((function(e){return t=e})),t}},{key:"getViewportScrollPosition",value:function(){var t;return this.scroll.getPosition().pipe(Object(m.a)((function(t){return{top:t.y,left:t.x}}))).subscribe((function(e){return t=e})),t}}]),n}(mt)).\u0275fac=function(t){return new(t||nn)(i.mc(Xn),i.mc(i.G),i.mc(Vn),i.mc(Nn))},nn.\u0275prov=i.Yb({token:nn,factory:nn.\u0275fac}),nn=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([ir("design:paramtypes",[Xn,i.G,Vn,Nn])],nn)),or=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},sr=function(t){return t.TOP_START="top-start",t.TOP_END="top-end",t.BOTTOM_START="bottom-start",t.BOTTOM_END="bottom-end",t}({}),ur=function(t){return t.TOP_RIGHT="top-right",t.TOP_LEFT="top-left",t.BOTTOM_RIGHT="bottom-right",t.BOTTOM_LEFT="bottom-left",t}({}),cr=((rn=function(){function t(e){_classCallCheck(this,t),this.layoutDirection=e}return _createClass(t,[{key:"toLogicalPosition",value:function(t){return Object.values(sr).includes(t)?t:this.layoutDirection.isLtr()?this.toLogicalPositionWhenLtr(t):this.toLogicalPositionWhenRtl(t)}},{key:"toPhysicalPosition",value:function(t){return Object.values(ur).includes(t)?t:this.layoutDirection.isLtr()?this.toPhysicalPositionWhenLtr(t):this.toPhysicalPositionWhenRtl(t)}},{key:"isTopPosition",value:function(t){var e=this.toLogicalPosition(t);return e===sr.TOP_END||e===sr.TOP_START}},{key:"isRightPosition",value:function(t){var e=this.toPhysicalPosition(t);return e===ur.TOP_RIGHT||e===ur.BOTTOM_RIGHT}},{key:"toLogicalPositionWhenLtr",value:function(t){switch(t){case ur.TOP_RIGHT:return sr.TOP_END;case ur.TOP_LEFT:return sr.TOP_START;case ur.BOTTOM_RIGHT:return sr.BOTTOM_END;case ur.BOTTOM_LEFT:return sr.BOTTOM_START}}},{key:"toLogicalPositionWhenRtl",value:function(t){switch(t){case ur.TOP_RIGHT:return sr.TOP_START;case ur.TOP_LEFT:return sr.TOP_END;case ur.BOTTOM_RIGHT:return sr.BOTTOM_START;case ur.BOTTOM_LEFT:return sr.BOTTOM_END}}},{key:"toPhysicalPositionWhenLtr",value:function(t){switch(t){case sr.TOP_START:return ur.TOP_LEFT;case sr.TOP_END:return ur.TOP_RIGHT;case sr.BOTTOM_START:return ur.BOTTOM_LEFT;case sr.BOTTOM_END:return ur.BOTTOM_RIGHT}}},{key:"toPhysicalPositionWhenRtl",value:function(t){switch(t){case sr.TOP_START:return ur.TOP_RIGHT;case sr.TOP_END:return ur.TOP_LEFT;case sr.BOTTOM_START:return ur.BOTTOM_RIGHT;case sr.BOTTOM_END:return ur.BOTTOM_LEFT}}}]),t}()).\u0275fac=function(t){return new(t||rn)(i.mc(zn))},rn.\u0275prov=i.Yb({token:rn,factory:rn.\u0275fac}),rn=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([or("design:paramtypes",[zn])],rn)),lr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},hr=function(t){return t.NOOP="noop",t.CLOCKWISE="clockwise",t.COUNTERCLOCKWISE="counterclockwise",t.VERTICAL="vertical",t.HORIZONTAL="horizontal",t}({}),fr=function(t){return t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t.START="start",t.END="end",t.TOP_END="top-end",t.TOP_START="top-start",t.BOTTOM_END="bottom-end",t.BOTTOM_START="bottom-start",t.END_TOP="end-top",t.END_BOTTOM="end-bottom",t.START_TOP="start-top",t.START_BOTTOM="start-bottom",t}({}),dr=(_defineProperty2(r={},fr.RIGHT,(function(t){return{originX:"end",originY:"center",overlayX:"start",overlayY:"center",offsetX:t}})),_defineProperty2(r,fr.BOTTOM,(function(t){return{originX:"center",originY:"bottom",overlayX:"center",overlayY:"top",offsetY:t}})),_defineProperty2(r,fr.LEFT,(function(t){return{originX:"start",originY:"center",overlayX:"end",overlayY:"center",offsetX:-t}})),_defineProperty2(r,fr.TOP,(function(t){return{originX:"center",originY:"top",overlayX:"center",overlayY:"bottom",offsetY:-t}}
1)),_defineProperty2(r,fr.START,(function(t){return this[fr.LEFT](t)})),_defineProperty2(r,fr.END,(function(t){return this[fr.RIGHT](t)})),_defineProperty2(r,fr.END_TOP,(function(t){return{originX:"end",originY:"bottom",overlayX:"start",overlayY:"bottom",offsetX:t}})),_defineProperty2(r,fr.END_BOTTOM,(function(t){return{originX:"end",originY:"top",overlayX:"start",overlayY:"top",offsetX:t}})),_defineProperty2(r,fr.BOTTOM_START,(function(t){return{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetY:t}})),_defineProperty2(r,fr.BOTTOM_END,(function(t){return{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:t}})),_defineProperty2(r,fr.START_TOP,(function(t){return{originX:"start",originY:"bottom",overlayX:"end",overlayY:"bottom",offsetX:-t}})),_defineProperty2(r,fr.START_BOTTOM,(function(t){return{originX:"start",originY:"top",overlayX:"end",overlayY:"top",offsetX:-t}})),_defineProperty2(r,fr.TOP_START,(function(t){return{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",offsetY:-t}})),_defineProperty2(r,fr.TOP_END,(function(t){return{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-t}})),r),pr=[fr.TOP,fr.TOP_END,fr.TOP_START,fr.START,fr.START_TOP,fr.START_BOTTOM,fr.BOTTOM,fr.BOTTOM_START,fr.BOTTOM_END,fr.END,fr.END_BOTTOM,fr.END_TOP],gr=[fr.TOP,fr.TOP_START,fr.TOP_END,fr.END,fr.END_TOP,fr.END_BOTTOM,fr.BOTTOM,fr.BOTTOM_END,fr.BOTTOM_START,fr.START,fr.START_BOTTOM,fr.START_TOP],yr=[fr.BOTTOM,fr.TOP],vr=[fr.START,fr.END],mr=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments))._offset=15,t.positionChange=t.positionChanges.pipe(Object(m.a)((function(t){return t.connectionPair})),Object(m.a)((function(e){return t.appliedPositions.find((function(t){var n,r;return(n=t.connectedPosition).originX===(r=e).originX&&n.originY===r.originY&&n.overlayX===r.overlayX&&n.overlayY===r.overlayY})).key}))),t}return _createClass(n,[{key:"attach",value:function(t){this.applyPositions(),_get(_getPrototypeOf(n.prototype),"attach",this).call(this,t)}},{key:"apply",value:function(){this.applyPositions(),_get(_getPrototypeOf(n.prototype),"apply",this).call(this)}},{key:"position",value:function(t){return this._position=t,this}},{key:"adjustment",value:function(t){return this._adjustment=t,this}},{key:"offset",value:function(t){return this._offset=t,this}},{key:"applyPositions",value:function(){var t=this.createPositions();this.persistChosenPositions(t),this.withPositions(this.appliedPositions.map((function(t){return t.connectedPosition})))}},{key:"createPositions",value:function(){switch(this._adjustment){case hr.NOOP:return[this._position];case hr.CLOCKWISE:return this.reorderPreferredPositions(gr);case hr.COUNTERCLOCKWISE:return this.reorderPreferredPositions(pr);case hr.HORIZONTAL:return this.reorderPreferredPositions(vr);case hr.VERTICAL:return this.reorderPreferredPositions(yr)}}},{key:"persistChosenPositions",value:function(t){var e=this;this.appliedPositions=t.map((function(t){return{key:t,connectedPosition:dr[t](e._offset)}}))}},{key:"reorderPreferredPositions",value:function(t){var e=t.indexOf(this.mapToLogicalPosition(this._position)),n=t.slice(e),r=t.slice(0,e);return n.concat(r)}},{key:"mapToLogicalPosition",value:function(t){return t===fr.LEFT?fr.START:t===fr.RIGHT?fr.END:t}}]),n}(Jn),br=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"position",value:function(t){switch(t){case sr.TOP_START:return this.top().left();case sr.TOP_END:return this.top().right();case sr.BOTTOM_START:return this.bottom().left();case sr.BOTTOM_END:return this.bottom().right()}}}]),n}(qt),_r=function(){var t,e=function(){function t(e,n,r,i,a){_classCallCheck(this,t),this.document=e,this.viewportRuler=n,this.platform=r,this.positionBuilder=i,this.overlayContainer=a}return _createClass(t,[{key:"global",value:function(){return new br}},{key:"connectedTo",value:function(t){return new mr(t,this.viewportRuler,this.document,this.platform,this.overlayContainer).withFlexibleDimensions(!1).withPush(!1)}}]),t}();return e.\u0275fac=function(t){return new(t||e)(i.mc(wn),i.mc(ar),i.mc(Xn),i.mc(Zn),i.mc(rr))},e.\u0275prov=i.Yb({token:e,factory:e.\u0275fac}),e=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([(t=Object(i.v)(wn),function(e,n){t(e,n,0)}),lr("design:paramtypes",[Object,ar,Xn,Zn,rr])],e)}(),wr=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},kr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Cr=((on=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"top",get:function(){return this.position===fr.TOP}},{key:"topStart",get:function(){return this.position===fr.TOP_START}},{key:"topEnd",get:function(){return this.position===fr.TOP_END}},{key:"right",get:function(){return this.position===fr.RIGHT||this.position===fr.END}},{key:"endTop",get:function(){return this.position===fr.END_TOP}},{key:"endBottom",get:function(){return this.position===fr.END_BOTTOM}},{key:"bottom",get:function(){return this.position===fr.BOTTOM}},{key:"bottomStart",get:function(){return this.position===fr.BOTTOM_START}},{key:"bottomEnd",get:function(){return this.position===fr.BOTTOM_END}},{key:"left",get:function(){return this.position===fr.LEFT||this.position===fr.START}},{key:"startTop",get:function(){return this.position===fr.START_TOP}},{key:"startBottom",get:function(){return this.position===fr.START_BOTTOM}}]),t}()).\u0275fac=function(t){return new(t||on)},on.\u0275cmp=i.Wb({type:on,selectors:[["ng-component"]],hostVars:24,hostBindings:function(t,e){2&t&&i.Tb("nb-overlay-top",e.top)("nb-overlay-top-start",e.topStart)("nb-overlay-top-end",e.topEnd)("nb-overlay-right",e.right)("nb-overlay-end-top",e.endTop)("nb-overlay-end-bottom",e.endBottom)("nb-overlay-bottom",e.bottom)("nb-overlay-bottom-start",e.bottomStart)("nb-overlay-bottom-end",e.bottomEnd)("nb-overlay-left",e.left)("nb-overlay-start-top",e.startTop)("nb-overlay-start-bottom",e.startBottom)},inputs:{position:"position"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),wr([Object(i.y)(),kr("design:type",String)],on.prototype,"position",void 0),wr([Object(i.s)("class.nb-overlay-top"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"top",null),wr([Object(i.s)("class.nb-overlay-top-start"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"topStart",null),wr([Object(i.s)("class.nb-overlay-top-end"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"topEnd",null),wr([Object(i.s)("class.nb-overlay-right"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"right",null),wr([Object(i.s)("class.nb-overlay-end-top"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"endTop",null),wr([Object(i.s)("class.nb-overlay-end-bottom"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"endBottom",null),wr([Object(i.s)("class.nb-overlay-bottom"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"bottom",null),wr([Object(i.s)("class.nb-overlay-bottom-start"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"bottomStart",null),wr([Object(i.s)("class.nb-overlay-bottom-end"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"bottomEnd",null),wr([Object(i.s)("class.nb-overlay-left"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"left",null),wr([Object(i.s)("class.nb-overlay-start-top"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"startTop",null),wr([Object(i.s)("class.nb-overlay-start-bottom"),kr("design:type",Boolean),kr("design:paramtypes",[])],on.prototype,"startBottom",null),on),Or=((an=function(){function t(e,n,r){_classCallCheck(this,t),this.vcr=e,this.injector=n,this.changeDetectorRef=r,this.isAttached=!1}return _createClass(t,[{key:"isStringContent",get:function(){return!!this.content}},{key:"attachComponentPortal",value:function(t,e){t.injector=this.createChildInjector(t.componentFactoryResolver);var n=this.portalOutlet.attachComponentPortal(t);return e&&Object.assign(n.instance,e),n.changeDetectorRef.markForCheck(),n.changeDetectorRef.detectChanges(),this.isAttached=!0,n}},{key:"attachTemplatePortal",value:function(t){var e=this.portalOutlet.attachTemplatePortal(t);return e.detectChanges(),this.isAttached=!0,e}},{key:"attachStringContent",value:function(t){this.content=t,this.changeDetectorRef.markForCheck(),this.changeDetectorRef.detectChanges(),this.isAttached=!0}},{key:"detach",value:function(){this.portalOutlet.hasAttached()&&this.portalOutlet.detach(),this.attachStringContent(null),this.isAttached=!1}},{key:"createChildInjector",value:function(t){return new tr(this.injector,new WeakMap([[i.
1k,t]]))}}]),t}()).\u0275fac=function(t){return new(t||an)(i.cc(i.bb),i.cc(i.x),i.cc(i.i))},an.\u0275cmp=i.Wb({type:an,selectors:[["nb-overlay-container"]],viewQuery:function(t,e){var n;1&t&&i.Oc(Kn,!0),2&t&&i.Hc(n=i.rc())&&(e.portalOutlet=n.first)},decls:2,vars:1,consts:[["class","primitive-overlay",4,"ngIf"],["nbPortalOutlet",""],[1,"primitive-overlay"]],template:function(t,e){1&t&&(i.Qc(0,$t,2,1,"div",0),i.Qc(1,Jt,0,0,"ng-template",1)),2&t&&i.Bc("ngIf",e.isStringContent)},directives:[a.l,Kn],encapsulation:2}),wr([Object(i.Z)(Kn,{static:!0}),kr("design:type",Kn)],an.prototype,"portalOutlet",void 0),an=wr([kr("design:paramtypes",[i.bb,i.x,i.i])],an)),Sr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Er=((sn=function(){function t(e,n){_classCallCheck(this,t),this.overlay=e,this.layoutDirection=n}return _createClass(t,[{key:"scrollStrategies",get:function(){return this.overlay.scrollStrategies}},{key:"create",value:function(t){var e=this.overlay.create(t);return this.layoutDirection.onDirectionChange().subscribe((function(t){return e.setDirection(t)})),e}}]),t}()).\u0275fac=function(t){return new(t||sn)(i.mc(Qn),i.mc(zn))},sn.\u0275prov=i.Yb({token:sn,factory:sn.\u0275fac}),sn=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Sr("design:paramtypes",[Qn,zn])],sn)),Ar=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Tr=((un=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t,r)).scrollService=i,a}return _createClass(n,[{key:"scrolled",value:function(t){return this.scrollService.onScroll()}}]),n}(yt)).\u0275fac=function(t){return new(t||un)(i.mc(i.G),i.mc(Xn),i.mc(Nn))},un.\u0275prov=i.Yb({token:un,factory:un.\u0275fac}),un=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Ar("design:paramtypes",[i.G,Xn,Nn])],un)),Mr=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Ir=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},xr=function(t,e){return function(n,r){e(n,r,t)}},jr=((ln=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,r,t)).scrollService=i,a}return _createClass(n,[{key:"enable",value:function(){_get(_getPrototypeOf(n.prototype),"enable",this).call(this),this.scrollService.scrollable(!1)}},{key:"disable",value:function(){_get(_getPrototypeOf(n.prototype),"disable",this).call(this),this.scrollService.scrollable(!0)}}]),n}(bt)).\u0275fac=function(t){return new(t||ln)(i.mc(wn),i.mc(ar),i.mc(Nn))},ln.\u0275prov=i.Yb({token:ln,factory:ln.\u0275fac}),ln=Mr([xr(0,Object(i.v)(wn)),Ir("design:paramtypes",[Object,ar,Nn])],ln)),Lr=((cn=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a,o){var s;return _classCallCheck(this,n),(s=e.call(this,r,i,a,o)).scrollService=t,s.scrollDispatcher=r,s.viewportRuler=i,s.ngZone=a,s.document=o,s.block=function(){return new jr(s.document,s.viewportRuler,s.scrollService)},s}return _createClass(n)}(At)).\u0275fac=function(t){return new(t||cn)(i.mc(Nn),i.mc(yt),i.mc(ar),i.mc(i.G),i.mc(wn))},cn.\u0275prov=i.Yb({token:cn,factory:cn.\u0275fac}),cn=Mr([xr(4,Object(i.v)(wn)),Ir("design:paramtypes",[Nn,yt,ar,i.G,Object])],cn)),Pr=((fn=hn=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:hn,providers:[ar,rr,jr,{provide:Dt,useExisting:rr},{provide:$n,useExisting:rr},{provide:yt,useClass:Tr},{provide:At,useClass:Lr}]}}}]),t}()).\u0275mod=i.ac({type:fn}),fn.\u0275inj=i.Zb({factory:function(t){return new(t||fn)}}),fn),Rr=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Dr=function(t){return t.NOOP="noop",t.CLICK="click",t.HOVER="hover",t.HINT="hint",t.FOCUS="focus",t}({}),zr=function(){function t(e,n,r){_classCallCheck(this,t),this.document=e,this.host=n,this.container=r,this.destroyed$=new s.a}return _createClass(t,[{key:"destroy",value:function(){this.destroyed$.next()}},{key:"isNotOnHostOrContainer",value:function(t){return!this.isOnHost(t)&&!this.isOnContainer(t)}},{key:"isOnHostOrContainer",value:function(t){return this.isOnHost(t)||this.isOnContainer(t)}},{key:"isOnHost",value:function(t){var e=t.target;return this.host.contains(e)}},{key:"isOnContainer",value:function(t){var e=t.target;return this.container()&&this.container().location.nativeElement.contains(e)}}]),t}(),Nr=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).click$=Object(c.a)(t.document,"click").pipe(Object(m.a)((function(e){return[!t.container()&&t.isOnHost(e),e]})),Object(C.a)(),E(t.destroyed$)),t.show$=t.click$.pipe(Object(w.a)((function(t){return _slicedToArray(t,1)[0]})),Object(m.a)((function(t){return _slicedToArray(t,2)[1]})),E(t.destroyed$)),t.hide$=t.click$.pipe(Object(w.a)((function(e){var n=_slicedToArray(e,2),r=n[0],i=n[1];return!r&&!t.isOnContainer(i)})),Object(m.a)((function(t){return _slicedToArray(t,2)[1]})),E(t.destroyed$)),t}return _createClass(n)}(zr),Vr=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).show$=Object(c.a)(t.host,"mouseenter").pipe(Object(w.a)((function(){return!t.container()})),Object(M.a)(100),E(Object(c.a)(t.host,"mouseleave")),x(),E(t.destroyed$)),t.hide$=Object(c.a)(t.host,"mouseleave").pipe(Object(P.a)((function(){return Object(c.a)(t.document,"mousemove").pipe(Object(R.a)(100),D((function(){return!!t.container()})),Object(w.a)((function(e){return t.isNotOnHostOrContainer(e)})))}
1)),E(t.destroyed$)),t}return _createClass(n)}(zr),Fr=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).show$=Object(c.a)(t.host,"mouseenter").pipe(Object(M.a)(100),E(Object(l.a)(Object(c.a)(t.host,"mouseleave"),t.destroyed$)),x()),t.hide$=Object(c.a)(t.host,"mouseleave").pipe(E(t.destroyed$)),t}return _createClass(n)}(zr),Hr=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).focusOut$=Object(c.a)(t.host,"focusout").pipe(Object(P.a)((function(){return Object(c.a)(t.document,"focusin").pipe(D((function(){return!!t.container()})),Object(w.a)((function(e){return t.isNotOnHostOrContainer(e)})))})),E(t.destroyed$)),t.clickIn$=Object(c.a)(t.host,"click").pipe(Object(w.a)((function(){return!t.container()})),E(t.destroyed$)),t.clickOut$=Object(c.a)(t.document,"click").pipe(Object(w.a)((function(){return!!t.container()})),Object(w.a)((function(e){return t.isNotOnHostOrContainer(e)})),E(t.destroyed$)),t.tabKeyPress$=Object(c.a)(t.document,"keydown").pipe(Object(w.a)((function(t){return 9===t.keyCode})),Object(w.a)((function(){return!!t.container()})),E(t.destroyed$)),t.show$=Object(l.a)(Object(c.a)(t.host,"focusin"),t.clickIn$).pipe(Object(w.a)((function(){return!t.container()})),Object(R.a)(100),E(Object(l.a)(Object(c.a)(t.host,"focusout"),t.destroyed$)),x()),t.hide$=Object(l.a)(t.focusOut$,t.tabKeyPress$,t.clickOut$).pipe(E(t.destroyed$)),t}return _createClass(n)}(zr),Br=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).show$=h.a,t.hide$=h.a,t}return _createClass(n)}(zr),Ur=function(){var t,e=function(){function t(e){_classCallCheck(this,t),this._document=e}return _createClass(t,[{key:"trigger",value:function(t){return this._trigger=t,this}},{key:"host",value:function(t){return this._host=t,this}},{key:"container",value:function(t){return this._container=t,this}},{key:"build",value:function(){switch(this._trigger){case Dr.CLICK:return new Nr(this._document,this._host,this._container);case Dr.HINT:return new Fr(this._document,this._host,this._container);case Dr.HOVER:return new Vr(this._document,this._host,this._container);case Dr.FOCUS:return new Hr(this._document,this._host,this._container);case Dr.NOOP:return new Br(this._document,this._host,this._container);default:throw new Error("Trigger have to be provided")}}}]),t}();return e.\u0275fac=function(t){return new(t||e)(i.mc(wn))},e.\u0275prov=i.Yb({token:e,factory:e.\u0275fac}),e=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([(t=Object(i.v)(wn),function(e,n){t(e,n,0)}),Rr("design:paramtypes",[Object])],e)}(),qr=((pn=dn=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:dn,providers:[_r,Ur,Er,cr].concat(_toConsumableArray(nr.forRoot().providers),_toConsumableArray(Pr.forRoot().providers),_toConsumableArray(Gn.forRoot().providers))}}}]),t}()).\u0275mod=i.ac({type:pn}),pn.\u0275inj=i.Zb({factory:function(t){return new(t||pn)},imports:[[nr,Fn],nr,Pr]}),pn);function Wr(t){if(Object(a.x)(t))return window}var Gr,Kr=((Gr=gn=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{name:"default"},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return{ngModule:gn,providers:[{provide:yn,useValue:t||{}},{provide:mn,useValue:On},{provide:bn,useValue:e||[]},{provide:vn,useValue:n||An},{provide:wn,useExisting:a.c},{provide:_n,useFactory:Wr,deps:[i.J]},Sn,In,Tn,jn,{provide:Dn,useValue:r||Rn.LTR},zn,Nn,Vn].concat(_toConsumableArray(qr.forRoot().providers))}}}]),t}()).\u0275mod=i.ac({type:Gr}),Gr.\u0275inj=i.Zb({factory:function(t){return new(t||Gr)},imports:[[a.b]]}),Gr),Yr=function(t){return t.SVG="svg",t.FONT="font",t}({}),Qr=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.name=e,this.content=n,this.params=r}return _createClass(t,[{key:"getClasses",value:function(t){var e=[];return this.params.packClass&&e.push(this.params.packClass),e.push(this.params.iconClassPrefix?"".concat(this.params.iconClassPrefix,"-").concat(this.name):this.name),e}},{key:"getContent",value:function(t){return this.content}}]),t}(),Xr=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,t),this.name=e,this.content=n,this.params=r}return _createClass(t,[{key:"getClasses",value:function(t){var e=[];return this.params.packClass&&e.push(this.params.packClass),e}},{key:"getContent",value:function(t){return this.content}}]),t}();function Zr(t){throw Error("Icon Pack '".concat(t,"' is not registered"))}function $r(t,e,n){throw Error("Pack '".concat(t,"' is not an '").concat(n,"' Pack and its type is '").concat(e,"'"))}var Jr,ti,ei,ni,ri,ii,ai,oi,si=((Jr=function(){function t(){_classCallCheck(this,t),this.packs=new Map}return _createClass(t,[{key:"registerSvgPack",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.packs.set(t,{name:t,icons:new Map(Object.entries(e)),params:n,type:Yr.SVG})}},{key:"registerFontPack",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.packs.set(t,{name:t,params:e,icons:new Map,type:Yr.FONT})}},{key:"getPack",value:function(t){return this.packs.get(t)}},{key:"setDefaultPack",value:function(t){this.packs.has(t)||Zr(t),this.defaultPack=this.packs.get(t)}},{key:"getSvgIcon",value:function(t,e){var n=e?this.getPackOrThrow(e):this.getDefaultPackOrThrow();n.type!==Yr.SVG&&$r(n.name,n.type,"SVG");var r=this.getIconFromPack(t,n);return{name:t,pack:n.name,type:Yr.SVG,icon:this.createSvgIcon(t,r,n.params)}}},{key:"getFontIcon",value:function(t,e){var n=e?this.getPackOrThrow(e):this.getDefaultPackOrThrow();n.type!==Yr.FONT&&$r(n.name,n.type,"Font");var r=this.getIconFromPack(t,n,!1);return{name:t,pack:n.name,type:Yr.FONT,icon:this.createFontIcon(t,r||"",n.params)}}},{key:"getIcon",value:function(t,e){return(e?this.getPackOrThrow(e):this.getDefaultPackOrThrow()).type===Yr.SVG?this.get
1SvgIcon(t,e):this.getFontIcon(t,e)}},{key:"createSvgIcon",value:function(t,e,n){return e instanceof Xr?e:new Xr(t,e,n)}},{key:"createFontIcon",value:function(t,e,n){return e instanceof Qr?e:new Qr(t,e,n)}},{key:"getPackOrThrow",value:function(t){var e=this.packs.get(t);return e||Zr(t),e}},{key:"getDefaultPackOrThrow",value:function(){return this.defaultPack||function(){throw Error("Default pack is not registered.")}(),this.defaultPack}},{key:"getIconFromPack",value:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return n&&!e.icons.has(t)&&function(t,e){throw Error("Icon '".concat(t,"' is not registered in pack '").concat(e,"'. Check icon name or consider switching icon pack."))}(t,e.name),e.icons.get(t)}}]),t}()).\u0275fac=function(t){return new(t||Jr)},Jr.\u0275prov=i.Yb({token:Jr,factory:Jr.\u0275fac,providedIn:"root"}),Jr.ngInjectableDef=Object(i.Yb)({factory:function(){return new Jr},token:Jr,providedIn:"root"}),Jr),ui=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},ci=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},li=((ti=function(){function t(e,n,r,i){_classCallCheck(this,t),this.sanitizer=e,this.iconLibrary=n,this.el=r,this.renderer=i,this.prevClasses=[],this.html=""}return _createClass(t,[{key:"primary",get:function(){return"primary"===this.status}},{key:"info",get:function(){return"info"===this.status}},{key:"success",get:function(){return"success"===this.status}},{key:"warning",get:function(){return"warning"===this.status}},{key:"danger",get:function(){return"danger"===this.status}},{key:"basic",get:function(){return"basic"===this.status}},{key:"control",get:function(){return"control"===this.status}},{key:"config",get:function(){return this._config},set:function(t){t&&(this._config=t,"string"==typeof t?this.icon=t:(this.icon=t.icon,this.pack=t.pack,this.status=t.status,this.options=t.options))}},{key:"ngOnInit",value:function(){this.iconDef=this.renderIcon(this.icon,this.pack,this.options)}},{key:"ngOnChanges",value:function(){this.iconDef&&(this.iconDef=this.renderIcon(this.icon,this.pack,this.options))}},{key:"renderIcon",value:function(t,e,n){var r=this.iconLibrary.getIcon(t,e),i=r.icon.getContent(n);return i&&(this.html=this.sanitizer.bypassSecurityTrustHtml(i)),this.assignClasses(r.icon.getClasses(n)),r}},{key:"assignClasses",value:function(t){var e=this;this.prevClasses.forEach((function(t){e.renderer.removeClass(e.el.nativeElement,t)})),t.forEach((function(t){e.renderer.addClass(e.el.nativeElement,t)})),this.prevClasses=t}}]),t}()).\u0275fac=function(t){return new(t||ti)(i.cc(Xt.b),i.cc(si),i.cc(i.o),i.cc(i.M))},ti.\u0275cmp=i.Wb({type:ti,selectors:[["nb-icon"]],hostVars:15,hostBindings:function(t,e){2&t&&(i.lc("innerHtml",e.html,i.Lc),i.Tb("status-primary",e.primary)("status-info",e.info)("status-success",e.success)("status-warning",e.warning)("status-danger",e.danger)("status-basic",e.basic)("status-control",e.control))},inputs:{config:"config",icon:"icon",pack:"pack",status:"status",options:"options"},features:[i.Nb],decls:0,vars:0,template:function(t,e){},styles:["[_nghost-%COMP%]{display:inline-block}"],changeDetection:0}),ui([Object(i.s)("innerHtml"),ci("design:type",Object)],ti.prototype,"html",void 0),ui([Object(i.s)("class.status-primary"),ci("design:type",Object),ci("design:paramtypes",[])],ti.prototype,"primary",null),ui([Object(i.s)("class.status-info"),ci("design:type",Object),ci("design:paramtypes",[])],ti.prototype,"info",null),ui([Object(i.s)("class.status-success"),ci("design:type",Object),ci("design:paramtypes",[])],ti.prototype,"success",null),ui([Object(i.s)("class.status-warning"),ci("design:type",Object),ci("design:paramtypes",[])],ti.prototype,"warning",null),ui([Object(i.s)("class.status-danger"),ci("design:type",Object),ci("design:paramtypes",[])],ti.prototype,"danger",null),ui([Object(i.s)("class.status-basic"),ci("design:type",Object),ci("design:paramtypes",[])],ti.prototype,"basic",null),ui([Object(i.s)("class.status-control"),ci("design:type",Object),ci("design:paramtypes",[])],ti.prototype,"control",null),ui([Object(i.y)(),ci("design:type",String)],ti.prototype,"icon",void 0),ui([Object(i.y)(),ci("design:type",String)],ti.prototype,"pack",void 0),ui([Object(i.y)(),ci("design:type",Object)],ti.prototype,"options",void 0),ui([Object(i.y)(),ci("design:type",String)],ti.prototype,"status",void 0),ui([Object(i.y)(),ci("design:type",Object),ci("design:paramtypes",[Object])],ti.prototype,"config",null),ti=ui([ci("design:paramtypes",[Xt.b,si,i.o,i.M])],ti)),hi=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},fi=((ei=_createClass((function t(e){_classCallCheck(this,t),this.iconsLibrary=e,this.essentialsPackName="nebular-essentials",this.iconsLibrary.getPack(this.essentialsPackName)||this.iconsLibrary.registerSvgPack(this.essentialsPackName,{"chevron-down-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewB
1ox="0 0 24 24"><g data-name="Layer 2"><g data-name="chevron-down"><rect width="24" height="24" opacity="0"/><path d="M12 15.5a1 1 0 0 1-.71-.29l-4-4a1 1 0 1 1 1.42-1.42L12 13.1l3.3-3.18a1 1 0 1 1 1.38 1.44l-4 3.86a1 1 0 0 1-.68.28z"/></g></g></svg>',"chevron-up-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="chevron-up"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M16 14.5a1 1 0 0 1-.71-.29L12 10.9l-3.3 3.18a1 1 0 0 1-1.41 0 1 1 0 0 1 0-1.42l4-3.86a1 1 0 0 1 1.4 0l4 4a1 1 0 0 1 0 1.42 1 1 0 0 1-.69.28z"/></g></g></svg>',"chevron-left-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="chevron-left"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M13.36 17a1 1 0 0 1-.72-.31l-3.86-4a1 1 0 0 1 0-1.4l4-4a1 1 0 1 1 1.42 1.42L10.9 12l3.18 3.3a1 1 0 0 1 0 1.41 1 1 0 0 1-.72.29z"/></g></g></svg>',"chevron-right-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="chevron-right"><rect width="24" height="24" transform="rotate(-90 12 12)" opacity="0"/><path d="M10.5 17a1 1 0 0 1-.71-.29 1 1 0 0 1 0-1.42L13.1 12 9.92 8.69a1 1 0 0 1 0-1.41 1 1 0 0 1 1.42 0l3.86 4a1 1 0 0 1 0 1.4l-4 4a1 1 0 0 1-.7.32z"/></g></g></svg>',"checkmark-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="checkmark"><rect width="24" height="24" opacity="0"/><path d="M9.86 18a1 1 0 0 1-.73-.32l-4.86-5.17a1 1 0 1 1 1.46-1.37l4.12 4.39 8.41-9.2a1 1 0 1 1 1.48 1.34l-9.14 10a1 1 0 0 1-.73.33z"/></g></g></svg>',"paper-plane-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="paper-plane"><rect width="24" height="24" opacity="0"/><path d="M21 4a1.31 1.31 0 0 0-.06-.27v-.09a1 1 0 0 0-.2-.3 1 1 0 0 0-.29-.19h-.09a.86.86 0 0 0-.31-.15H20a1 1 0 0 0-.3 0l-18 6a1 1 0 0 0 0 1.9l8.53 2.84 2.84 8.53a1 1 0 0 0 1.9 0l6-18A1 1 0 0 0 21 4zm-4.7 2.29l-5.57 5.57L5.16 10zM14 18.84l-1.86-5.57 5.57-5.57z"/></g></g></svg>',"file-text-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="file-text"><rect width="24" height="24" opacity="0"/><path d="M15 16H9a1 1 0 0 0 0 2h6a1 1 0 0 0 0-2z"/><path d="M9 14h3a1 1 0 0 0 0-2H9a1 1 0 0 0 0 2z"/><path d="M19.74 8.33l-5.44-6a1 1 0 0 0-.74-.33h-7A2.53 2.53 0 0 0 4 4.5v15A2.53 2.53 0 0 0 6.56 22h10.88A2.53 2.53 0 0 0 20 19.5V9a1 1 0 0 0-.26-.67zM14 5l2.74 3h-2a.79.79 0 0 1-.74-.85zm3.44 15H6.56a.53.53 0 0 1-.56-.5v-15a.53.53 0 0 1 .56-.5H12v3.15A2.79 2.79 0 0 0 14.71 10H18v9.5a.53.53 0 0 1-.56.5z"/></g></g></svg>',"alert-triangle-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="alert-triangle"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M22.56 16.3L14.89 3.58a3.43 3.43 0 0 0-5.78 0L1.44 16.3a3 3 0 0 0-.05 3A3.37 3.37 0 0 0 4.33 21h15.34a3.37 3.37 0 0 0 2.94-1.66 3 3 0 0 0-.05-3.04zm-1.7 2.05a1.31 1.31 0 0 1-1.19.65H4.33a1.31 1.31 0 0 1-1.19-.65 1 1 0 0 1 0-1l7.68-12.73a1.48 1.48 0 0 1 2.36 0l7.
167 12.72a1 1 0 0 1 .01 1.01z"/><circle cx="12" cy="16" r="1"/><path d="M12 8a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0V9a1 1 0 0 0-1-1z"/></g></g></svg>',"question-mark-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="question-mark"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M17 9A5 5 0 0 0 7 9a1 1 0 0 0 2 0 3 3 0 1 1 3 3 1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-1.1A5 5 0 0 0 17 9z"/><circle cx="12" cy="19" r="1"/></g></g></svg>',"email-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="email"><rect width="24" height="24" opacity="0"/><path d="M19 4H5a3 3 0 0 0-3 3v10a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3V7a3 3 0 0 0-3-3zm-.67 2L12 10.75 5.67 6zM19 18H5a1 1 0 0 1-1-1V7.25l7.4 5.55a1 1 0 0 0 .6.2 1 1 0 0 0 .6-.2L20 7.25V17a1 1 0 0 1-1 1z"/></g></g></svg>',"flash-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="flash"><rect width="24" height="24" opacity="0"/><path d="M11.11 23a1 1 0 0 1-.34-.06 1 1 0 0 1-.65-1.05l.77-7.09H5a1 1 0 0 1-.83-1.56l7.89-11.8a1 1 0 0 1 1.17-.38 1 1 0 0 1 .65 1l-.77 7.14H19a1 1 0 0 1 .83 1.56l-7.89 11.8a1 1 0 0 1-.83.44zM6.87 12.8H12a1 1 0 0 1 .74.33 1 1 0 0 1 .25.78l-.45 4.15 4.59-6.86H12a1 1 0 0 1-1-1.11l.45-4.15z"/></g></g></svg>',"search-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="search"><rect width="24" height="24" opacity="0"/><path d="M20.71 19.29l-3.4-3.39A7.92 7.92 0 0 0 19 11a8 8 0 1 0-8 8 7.92 7.92 0 0 0 4.9-1.69l3.39 3.4a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42zM5 11a6 6 0 1 1 6 6 6 6 0 0 1-6-6z"/></g></g></svg>',"close-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="close"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M13.41 12l4.3-4.29a1 1 0 1 0-1.42-1.42L12 10.59l-4.29-4.3a1 1 0 0 0-1.42 1.42l4.3 4.29-4.3 4.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0l4.29-4.3 4.29 4.3a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42z"/></g></g></svg>',"collapse-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="collapse"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 9h-2.58l3.29-3.29a1 1 0 1 0-1.42-1.42L15 7.57V5a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2z"/><path d="M10 13H5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L9 16.42V19a1 1 0 0 0 1 1 1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1z"/></g></g></svg>',"expand-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="expand"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M20 5a1 1 0 0 0-1-1h-5a1 1 0 0 0 0 2h2.57l-3.28 3.29a1 1 0 0 0 0 1.42 1 1 0 0 0 1.42 0L18 7.42V10a1 1 0 0 0 1 1 1 1 0 0 0 1-1z"/><path d="M10.71 13.29a1 1 0 0 0-1.42 0L6 16.57V14a1 1 0 0 0-1-1 1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h5a1 1 0 0 0 0-2H7.42l3.29-3.29a1 1 0 0 0 0-1.42z"/></g></g></svg>',"minus-outline":'<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="100%" height="100%" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="minus"><rect width="24" height="24" transform="rotate(180 12 12)" opacity="0"/><path d="M19 13H5a1 1 0 0 1 0-2h14a1 1 0 0 1 0 2z"/></g></g></svg>',"minus-bold-outline":'<svg xmlns:xlink="http://www.w3.org/1999/xlink" fill="currentColor" viewBox="0 0 8 2" width="100%" height="100%"><defs><rect id="nb-mbo" y="3" width="8" height="2" rx="1"/></defs><use xlink:href="#nb-mbo" transform="translate(0 -3)" fill-rule="evenodd"/></svg>',"checkmark-bold-outline":'<svg xmlns:xlink="http://www.w3.org/1999/xlink" fill="currentColor" viewBox="0 0 8 7" width="100%" height="100%"><defs><path id="nb-cbo" d="M6.039 1.43a1.11 1.11 0 0 1 1.517-.228c.483.342.588.998.234 1.466L4.431 7.1a1 1 0 0 1-1.492.115L.317 4.677a1.023 1.023 0 0 1 .002-1.483 1.113 1.113 0 0 1 1.535.002l1.641 1.59L6.04 1.428z"/></defs><use xlink:href="#nb-cbo" transform="translate(0 -1)" fill-rule="evenodd"/></svg>',"arrow-back":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g data-name="Layer 2"><g data-name="arrow-back"><rect width="24" height="24" transform="rotate(90 12 12)" opacity="0"/><path d="M19 11H7.14l3.63-4.36a1 1 0 1 0-1.54-1.28l-5 6a1.19 1.19 0 0 0-.09.15c0 .05 0 .08-.07.13A1 1 0 0 0 4 12a1 1 0 0 0 .07.36c0 .05 0 .08.07.13a1.19 1.19 0 0 0 .09.15l5 6A1 1 0 0 0 10 19a1 1 0 0 0 .64-.23 1 1 0 0 0 .13-1.41L7.14 13H19a1 1 0 0 0 0-2z"/></g></g></svg>'})}))).\u0275mod=i.ac({type:ei}),ei.\u0275inj=i.Zb({factory:function(t){return new(t||ei)(i.mc(si))},imports:[[a.b]]}),ei=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([hi("design:paramtypes",[si])],ei)),di=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},pi=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},gi=((oi=_createClass((function t(){_classCallCheck(this,t)}))).\u0275fac=function(t){return new(t||oi)},oi.\u0275cmp=i.Wb({type:oi,selectors:[["nb-card-header"]],ngContentSelectors:te,decls:1,vars:0,template:function(t,e){1&t&&(i.Ac(),i.zc(0))},encapsulation:2}),oi),yi=((ai=_createClass((function t(){_classCallCheck(this,t)}))).\u0275fac=function(t){return new(t||ai)},ai.\u0275cmp=i.Wb({type:ai,selectors:[["nb-card-body"]],ngContentSelectors:te,decls:1,vars:0,template:function(t,e){1&t&&(i.Ac(),i.zc(0))},encapsulation:2}),ai),vi=((ii=_createClass((function t(){_classCallCheck(this,t)}))).\u0275fac=function(t){return new(t||ii)},ii.\u0275cmp=i.Wb({type:ii,selectors:[["nb-card-footer"]],ngContentSelectors:te,decls:1,vars:0,template:function(t,e){1&t&&(i.Ac(),i.zc(0))},encapsulation:2}),ii),mi=((ri=function(){function t(){_classCallCheck(this,t),this._size="",this.status="",this.accent=""}return _createClass(t,[{key:"size",get:function(){return this._size},set:function(t){this._size=t}},{key:"tiny",get:function(){return"tiny"===this.size}},{key:"small",get:function(){return"small"===this.size}},{key:"medium",get:function(){return"medium"===this.size}},{key:"large",get:function(){return"large"===this.size}},{key:"giant",get:function(){return"giant"===this.size}},{key:"primary",get:function(){return"primary"===this.status}},{key:"info",get:function(){return"info"===this.status}},{key:"success",get:function(){return"success"===this.status}},{key:"warning",get:function(){return"warning"===this.status}},{key:"danger",get:function(){return"danger"===this.status}},{key:"basic",get:function(){return"basic"===this.status}}
1,{key:"control",get:function(){return"control"===this.status}},{key:"hasAccent",get:function(){return this.accent}},{key:"primaryAccent",get:function(){return"primary"===this.accent}},{key:"infoAccent",get:function(){return"info"===this.accent}},{key:"successAccent",get:function(){return"success"===this.accent}},{key:"warningAccent",get:function(){return"warning"===this.accent}},{key:"dangerAccent",get:function(){return"danger"===this.accent}},{key:"basicAccent",get:function(){return"basic"===this.accent}},{key:"controlAccent",get:function(){return"control"===this.accent}}]),t}()).\u0275fac=function(t){return new(t||ri)},ri.\u0275cmp=i.Wb({type:ri,selectors:[["nb-card"]],hostVars:40,hostBindings:function(t,e){2&t&&i.Tb("size-tiny",e.tiny)("size-small",e.small)("size-medium",e.medium)("size-large",e.large)("size-giant",e.giant)("status-primary",e.primary)("status-info",e.info)("status-success",e.success)("status-warning",e.warning)("status-danger",e.danger)("status-basic",e.basic)("status-control",e.control)("accent",e.hasAccent)("accent-primary",e.primaryAccent)("accent-info",e.infoAccent)("accent-success",e.successAccent)("accent-warning",e.warningAccent)("accent-danger",e.dangerAccent)("accent-basic",e.basicAccent)("accent-control",e.controlAccent)},inputs:{status:"status",accent:"accent",size:"size"},ngContentSelectors:ne,decls:4,vars:0,template:function(t,e){1&t&&(i.Ac(ee),i.zc(0),i.zc(1,1),i.zc(2,2),i.zc(3,3))},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}"]}),di([Object(i.y)(),pi("design:type",String),pi("design:paramtypes",[String])],ri.prototype,"size",null),di([Object(i.y)(),pi("design:type",String)],ri.prototype,"status",void 0),di([Object(i.y)(),pi("design:type",String)],ri.prototype,"accent",void 0),di([Object(i.s)("class.size-tiny"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"tiny",null),di([Object(i.s)("class.size-small"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"small",null),di([Object(i.s)("class.size-medium"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"medium",null),di([Object(i.s)("class.size-large"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"large",null),di([Object(i.s)("class.size-giant"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"giant",null),di([Object(i.s)("class.status-primary"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"primary",null),di([Object(i.s)("class.status-info"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"info",null),di([Object(i.s)("class.status-success"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"success",null),di([Object(i.s)("class.status-warning"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"warning",null),di([Object(i.s)("class.status-danger"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"danger",null),di([Object(i.s)("class.status-basic"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"basic",null),di([Object(i.s)("class.status-control"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"control",null),di([Object(i.s)("class.accent"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"hasAccent",null),di([Object(i.s)("class.accent-primary"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"primaryAccent",null),di([Object(i.s)("class.accent-info"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"infoAccent",null),di([Object(i.s)("class.accent-success"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"successAccent",null),di([Object(i.s)("class.accent-warning"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"warningAccent",null),di([Object(i.s)("class.accent-danger"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"dangerAccent",null),di([Object(i.s)("class.accent-basic"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"basicAccent",null),di([Object(i.s)("class.accent-control"),pi("design:type",Object),pi("design:paramtypes",[])],ri.prototype,"controlAccent",null),ri),bi=((ni=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:ni}),ni.\u0275inj=i.Zb({factory:function(t){return new(t||ni)},imports:[[Fn,fi]]}),ni),_i=function(t){return t.YEAR="year",t.MONTH="month",t.DATE="date",t}({}),wi=function(t){return t.MEDIUM="medium",t.LARGE="large",t}({});function ki(t){return"string"==typeof t?"true"===(t=t.toLowerCase().trim())||""===t:!!t}function Ci(t){console.warn("".concat(t,": Using empty string as a status is deprecated. Use `basic` instead."))}var Oi,Si,Ei,Ai,Ti,Mi,Ii,xi,ji,Li,Pi,Ri,Di,zi,Ni,Vi,Fi,Hi,Bi,Ui,qi,Wi,Gi,Ki,Yi,Qi=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Xi=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Zi=((Oi=function(){function t(){_classCallCheck(this,t),this.boundingMonth=!0,this.startView=_i.DATE,this.size=wi.MEDIUM,this.showHeader=!0,this._showWeekNumber=!1,this.weekNumberSymbol="#",this.dateChange=new i.q}return _createClass(t,[{key:"showWeekNumber",get:function(){return this._showWeekNumber},set:function(t){this._showWeekNumber=ki(t)}}]),t}()).\u0275fac=function(t){return new(t||Oi)},Oi.\u0275cmp=i.Wb({type:Oi,selectors:[["nb-calendar"]],inputs:{boundingMonth:"boundingMonth",startView:"startView",size:"size",showHeader:"showHeader",weekNumberSymbol
1:"weekNumberSymbol",showWeekNumber:"showWeekNumber",min:"min",max:"max",filter:"filter",dayCellComponent:"dayCellComponent",monthCellComponent:"monthCellComponent",yearCellComponent:"yearCellComponent",visibleDate:"visibleDate",date:"date"},outputs:{dateChange:"dateChange"},decls:1,vars:14,consts:[[3,"boundingMonth","startView","date","min","max","filter","dayCellComponent","monthCellComponent","yearCellComponent","size","visibleDate","showHeader","showWeekNumber","weekNumberSymbol","dateChange"]],template:function(t,e){1&t&&(i.ic(0,"nb-base-calendar",0),i.qc("dateChange",(function(t){return e.dateChange.emit(t)})),i.hc()),2&t&&i.Bc("boundingMonth",e.boundingMonth)("startView",e.startView)("date",e.date)("min",e.min)("max",e.max)("filter",e.filter)("dayCellComponent",e.dayCellComponent)("monthCellComponent",e.monthCellComponent)("yearCellComponent",e.yearCellComponent)("size",e.size)("visibleDate",e.visibleDate)("showHeader",e.showHeader)("showWeekNumber",e.showWeekNumber)("weekNumberSymbol",e.weekNumberSymbol)},directives:function(){return[Za]},encapsulation:2}),Qi([Object(i.y)(),Xi("design:type",Boolean)],Oi.prototype,"boundingMonth",void 0),Qi([Object(i.y)(),Xi("design:type",String)],Oi.prototype,"startView",void 0),Qi([Object(i.y)(),Xi("design:type",Object)],Oi.prototype,"min",void 0),Qi([Object(i.y)(),Xi("design:type",Object)],Oi.prototype,"max",void 0),Qi([Object(i.y)(),Xi("design:type",Function)],Oi.prototype,"filter",void 0),Qi([Object(i.y)(),Xi("design:type",i.W)],Oi.prototype,"dayCellComponent",void 0),Qi([Object(i.y)(),Xi("design:type",i.W)],Oi.prototype,"monthCellComponent",void 0),Qi([Object(i.y)(),Xi("design:type",i.W)],Oi.prototype,"yearCellComponent",void 0),Qi([Object(i.y)(),Xi("design:type",String)],Oi.prototype,"size",void 0),Qi([Object(i.y)(),Xi("design:type",Object)],Oi.prototype,"visibleDate",void 0),Qi([Object(i.y)(),Xi("design:type",Boolean)],Oi.prototype,"showHeader",void 0),Qi([Object(i.y)(),Xi("design:type",Object)],Oi.prototype,"date",void 0),Qi([Object(i.y)(),Xi("design:type",Boolean),Xi("design:paramtypes",[Boolean])],Oi.prototype,"showWeekNumber",null),Qi([Object(i.y)(),Xi("design:type",String)],Oi.prototype,"weekNumberSymbol",void 0),Qi([Object(i.I)(),Xi("design:type",i.q)],Oi.prototype,"dateChange",void 0),Oi),$i=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Ji=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ta=((Ei=function(){function t(e,n,r){_classCallCheck(this,t),this.renderer=e,this.hostElement=n,this.cd=r,this.isInitialized=!1,this.size="medium",this.status="primary",this.shape="rectangle",this.appearance="filled",this._fullWidth=!1,this._disabled=!1}return _createClass(t,[{key:"filled",get:function(){return"filled"===this.appearance},set:function(t){ki(t)&&(this.appearance="filled")}},{key:"outline",get:function(){return"outline"===this.appearance},set:function(t){ki(t)&&(this.appearance="outline")}},{key:"ghost",get:function(){return"ghost"===this.appearance},set:function(t){ki(t)&&(this.appearance="ghost")}},{key:"hero",get:function(){return"hero"===this.appearance},set:function(t){ki(t)&&(this.appearance="hero")}},{key:"fullWidth",get:function(){return this._fullWidth},set:function(t){this._fullWidth=ki(t)}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=ki(t),this.renderer.setProperty(this.hostElement.nativeElement,"disabled",this.disabled)}},{key:"tabbable",get:function(){return this.disabled?"-1":"0"}},{key:"tiny",get:function(){return"tiny"===this.size}},{key:"small",get:function(){return"small"===this.size}},{key:"medium",get:function(){return"medium"===this.size}},{key:"large",get:function(){return"large"===this.size}},{key:"giant",get:function(){return"giant"===this.size}},{key:"primary",get:function(){return"primary"===this.status}},{key:"info",get:function(){return"info"===this.status}},{key:"success",get:function(){return"success"===this.status}},{key:"warning",get:function(){return"warning"===this.status}},{key:"danger",get:function(){return"danger"===this.status}},{key:"basic",get:function(){return"basic"===this.status}}
1,{key:"control",get:function(){return"control"===this.status}},{key:"rectangle",get:function(){return"rectangle"===this.shape}},{key:"round",get:function(){return"round"===this.shape}},{key:"semiRound",get:function(){return"semi-round"===this.shape}},{key:"iconLeft",get:function(){var t,e=this.iconElement;return!(!e||(t=this.hostElement.nativeElement,Array.from(t.childNodes).filter((function(t){return t.nodeType!==Node.COMMENT_NODE}))[0]!==e))}},{key:"iconRight",get:function(){var t,e,n=this.iconElement;return!(!n||(t=this.hostElement.nativeElement,e=Array.from(t.childNodes).filter((function(t){return t.nodeType!==Node.COMMENT_NODE})),e[e.length-1]!==n))}},{key:"transitions",get:function(){return this.isInitialized}},{key:"onClick",value:function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}},{key:"ngAfterViewInit",value:function(){var t=this;setTimeout((function(){t.isInitialized=!0,t.cd.markForCheck()}))}},{key:"iconElement",get:function(){return this.hostElement.nativeElement.querySelector("nb-icon")}}]),t}()).\u0275fac=function(t){return new(t||Ei)(i.cc(i.M),i.cc(i.o),i.cc(i.i))},Ei.\u0275cmp=i.Wb({type:Ei,selectors:[["button","nbButton",""],["a","nbButton",""],["input","type","button","nbButton",""],["input","type","submit","nbButton",""]],hostVars:50,hostBindings:function(t,e){1&t&&i.qc("click",(function(t){return e.onClick(t)})),2&t&&(i.Qb("aria-disabled",e.disabled)("tabindex",e.tabbable),i.Tb("appearance-filled",e.filled)("appearance-outline",e.outline)("appearance-ghost",e.ghost)("appearance-hero",e.hero)("full-width",e.fullWidth)("btn-disabled",e.disabled)("size-tiny",e.tiny)("size-small",e.small)("size-medium",e.medium)("size-large",e.large)("size-giant",e.giant)("status-primary",e.primary)("status-info",e.info)("status-success",e.success)("status-warning",e.warning)("status-danger",e.danger)("status-basic",e.basic)("status-control",e.control)("shape-rectangle",e.rectangle)("shape-round",e.round)("shape-semi-round",e.semiRound)("icon-start",e.iconLeft)("icon-end",e.iconRight)("transitions",e.transitions))},inputs:{size:"size",status:"status",shape:"shape",appearance:"appearance",filled:"filled",outline:"outline",ghost:"ghost",hero:"hero",fullWidth:"fullWidth",disabled:"disabled"},attrs:re,ngContentSelectors:te,decls:1,vars:0,template:function(t,e){1&t&&(i.Ac(),i.zc(0))},styles:["[_nghost-%COMP%]{appearance:none;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;vertical-align:middle;user-select:none}[_nghost-%COMP%]:hover, [_nghost-%COMP%]:focus{text-decoration:none}.full-width[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] nb-icon{vertical-align:top}[dir=ltr] .icon-start[_nghost-%COMP%]:not(.icon-end) nb-icon{margin-right:.75rem}[dir=rtl] .icon-start[_nghost-%COMP%]:not(.icon-end) nb-icon{margin-left:.75rem}[dir=ltr] .icon-end[_nghost-%COMP%]:not(.icon-start) nb-icon{margin-left:.75rem}[dir=rtl] .icon-end[_nghost-%COMP%]:not(.icon-start) nb-icon{margin-right:.75rem}.transitions[_nghost-%COMP%]{transition-duration:0.15s;transition-property:background-color,border-color,box-shadow,color;transition-timing-function:ease-in}"],changeDetection:0}),$i([Object(i.y)(),Ji("design:type",String)],Ei.prototype,"size",void 0),$i([Object(i.y)(),Ji("design:type",String)],Ei.prototype,"status",void 0),$i([Object(i.y)(),Ji("design:type",String)],Ei.prototype,"shape",void 0),$i([Object(i.y)(),Ji("design:type",String)],Ei.prototype,"appearance",void 0),$i([Object(i.y)(),Object(i.s)("class.appearance-filled"),Ji("design:type",Boolean),Ji("design:paramtypes",[Boolean])],Ei.prototype,"filled",null),$i([Object(i.y)(),Object(i.s)("class.appearance-outline"),Ji("design:type",Boolean),Ji("design:paramtypes",[Boolean])],Ei.prototype,"outline",null),$i([Object(i.y)(),Object(i.s)("class.appearance-ghost"),Ji("design:type",Boolean),Ji("design:paramtypes",[Boolean])],Ei.prototype,"ghost",null),$i([Object(i.y)(),Object(i.s)("class.appearance-hero"),Ji("design:type",Boolean),Ji("design:paramtypes",[Boolean])],Ei.prototype,"hero",null),$i([Object(i.y)(),Object(i.s)("class.full-width"),Ji("design:type",Boolean),Ji("design:paramtypes",[Boolean])],Ei.prototype,"fullWidth",null),$i([Object(i.y)(),Object(i.s)("attr.aria-disabled"),Object(i.s)("class.btn-disabled"),Ji("design:type",Boolean),Ji("design:paramtypes",[Boolean])],Ei.prototype,"disabled",null),$i([Object(i.s)("attr.tabindex"),Ji("design:type",String),Ji("design:paramtypes",[])],Ei.prototype,"tabbable",null),$i([Object(i.s)("class.size-tiny"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"tiny",null),$i([Object(i.s)("class.size-small"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"small",null),$i([Object(i.s)("class.size-medium"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"medium",null),$i([Object(i.s)("class.size-large"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"large",null),$i([Object(i.s)("class.size-giant"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"giant",null),$i([Object(i.s)("class.status-primary"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"primary",null),$i([Object(i.s)("class.status-info"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"info",
1null),$i([Object(i.s)("class.status-success"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"success",null),$i([Object(i.s)("class.status-warning"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"warning",null),$i([Object(i.s)("class.status-danger"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"danger",null),$i([Object(i.s)("class.status-basic"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"basic",null),$i([Object(i.s)("class.status-control"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"control",null),$i([Object(i.s)("class.shape-rectangle"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"rectangle",null),$i([Object(i.s)("class.shape-round"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"round",null),$i([Object(i.s)("class.shape-semi-round"),Ji("design:type",Object),Ji("design:paramtypes",[])],Ei.prototype,"semiRound",null),$i([Object(i.s)("class.icon-start"),Ji("design:type",Boolean),Ji("design:paramtypes",[])],Ei.prototype,"iconLeft",null),$i([Object(i.s)("class.icon-end"),Ji("design:type",Boolean),Ji("design:paramtypes",[])],Ei.prototype,"iconRight",null),$i([Object(i.s)("class.transitions"),Ji("design:type",Boolean),Ji("design:paramtypes",[])],Ei.prototype,"transitions",null),$i([Object(i.t)("click",["$event"]),Ji("design:type",Function),Ji("design:paramtypes",[Object]),Ji("design:returntype",void 0)],Ei.prototype,"onClick",null),Ei=$i([Ji("design:paramtypes",[i.M,i.o,i.i])],Ei)),ea=((Si=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:Si}),Si.\u0275inj=i.Zb({factory:function(t){return new(t||Si)},imports:[[Fn]]}),Si),na=function(){function t(){_classCallCheck(this,t),this.DAYS_IN_WEEK=7}return _createClass(t,[{key:"setLocale",value:function(t){this.locale=t}},{key:"isBetween",value:function(t,e,n){return this.compareDates(t,e)>0&&this.compareDates(t,n)<0}},{key:"isSameDaySafe",value:function(t,e){return t&&e&&this.isSameDay(t,e)}},{key:"isSameMonthSafe",value:function(t,e){return t&&e&&this.isSameMonth(t,e)}},{key:"isSameYearSafe",value:function(t,e){return t&&e&&this.isSameYear(t,e)}}]),t}(),ra=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return t.reduce((function(t,r,i){var a=Math.floor((i+n)/e);return t[a]||(t[a]=[]),t[a].push(r),t}),[])},ia=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t},n=[],r=0;r<t;r++)n.push(e(r));return n},aa=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},oa=((Ai=function(){function t(e){_classCallCheck(this,t),this.dateService=e}return _createClass(t,[{key:"createDaysGrid",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.createDates(t);return this.withBoundingMonths(n,t,e)}},{key:"createDates",value:function(t){var e=this.createDateRangeForMonth(t),n=this.getStartOfWeekDayDiff(t);return ra(e,this.dateService.DAYS_IN_WEEK,n)}},{key:"withBoundingMonths",value:function(t,e,n){var r=t;return this.isShouldAddPrevBoundingMonth(r)&&(r=this.addPrevBoundingMonth(r,e,n)),this.isShouldAddNextBoundingMonth(r)&&(r=this.addNextBoundingMonth(r,e,n)),r}},{key:"addPrevBoundingMonth",value:function(t,e,n){var r=t.shift();return r.unshift.apply(r,_toConsumableArray(this.createPrevBoundingDays(e,n,this.dateService.DAYS_IN_WEEK-r.length))),[r].concat(_toConsumableArray(t))}},{key:"addNextBoundingMonth",value:function(t,e,n){var r=t.pop();return r.push.apply(r,_toConsumableArray(this.createNextBoundingDays(e,n,this.dateService.DAYS_IN_WEEK-r.length))),[].concat(_toConsumableArray(t),[r])}},{key:"createPrevBoundingDays",value:function(t,e,n){var r=this.dateService.addMonth(t,-1),i=this.dateService.getNumberOfDaysInMonth(r);return this.createDateRangeForMonth(r).slice(i-n).map((function(t){return e?t:null}))}},{key:"createNextBoundingDays",value:function(t,e,n){var r=this.dateService.addMonth(t,1);return this.createDateRangeForMonth(r).slice(0,n).map((function(t){return e?t:null}))}},{key:"getStartOfWeekDayDiff",value:function(t){var e=this.dateService.getMonthStart(t);return this.getWeekStartDiff(e)}},{key:"getWeekStartDiff",value:function(t){return(7-this.dateService.getFirstDayOfWeek()+this.dateService.getDayOfWeek(t))%7}},{key:"isShouldAddPrevBoundingMonth",value:function(t){return t[0].length<this.dateService.DAYS_IN_WEEK}},{key:"isShouldAddNextBoundingMonth",value:function(t){return t[t.length-1].length<this.dateService.DAYS_IN_WEEK}},{key:"createDateRangeForMonth",value:function(t){var e=this,n=this.dateService.getNumberOfDaysInMonth(t);return ia(n,(function(n){var r=e.dateService.getYear(t),i=e.dateService.getMonth(t);return e.dateService.createDate(r,i,n+1)}))}}]),t}()).\u0275fac=function(t){return new(t||Ai)(i.mc(na))},Ai.\u0275prov=i.Yb({token:Ai,factory:Ai.\u0275fac}),Ai=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}
1([aa("design:paramtypes",[na])],Ai)),sa=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},ua=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ca=((Ti=function(){function t(e){_classCallCheck(this,t),this.dateService=e,this.select=new i.q(!0)}return _createClass(t,[{key:"today",get:function(){return this.dateService.isSameDaySafe(this.date,this.dateService.today())}},{key:"boundingMonth",get:function(){return!this.dateService.isSameMonthSafe(this.date,this.visibleDate)}},{key:"selected",get:function(){return this.dateService.isSameDaySafe(this.date,this.selectedValue)}},{key:"empty",get:function(){return!this.date}},{key:"disabled",get:function(){return this.smallerThanMin()||this.greaterThanMax()||this.dontFitFilter()}},{key:"day",get:function(){return this.date&&this.dateService.getDate(this.date)}},{key:"onClick",value:function(){this.disabled||this.empty||this.select.emit(this.date)}},{key:"smallerThanMin",value:function(){return this.date&&this.min&&this.dateService.compareDates(this.date,this.min)<0}},{key:"greaterThanMax",value:function(){return this.date&&this.max&&this.dateService.compareDates(this.date,this.max)>0}},{key:"dontFitFilter",value:function(){return this.date&&this.filter&&!this.filter(this.date)}}]),t}()).\u0275fac=function(t){return new(t||Ti)(i.cc(na))},Ti.\u0275cmp=i.Wb({type:Ti,selectors:[["nb-calendar-day-cell"]],hostAttrs:[1,"day-cell"],hostVars:10,hostBindings:function(t,e){1&t&&i.qc("click",(function(){return e.onClick()})),2&t&&i.Tb("today",e.today)("bounding-month",e.boundingMonth)("selected",e.selected)("empty",e.empty)("disabled",e.disabled)},inputs:{date:"date",selectedValue:"selectedValue",visibleDate:"visibleDate",min:"min",max:"max",filter:"filter"},outputs:{select:"select"},decls:1,vars:1,template:function(t,e){1&t&&i.Sc(0),2&t&&i.Tc(e.day)},encapsulation:2,changeDetection:0}),sa([Object(i.y)(),ua("design:type",Object)],Ti.prototype,"date",void 0),sa([Object(i.y)(),ua("design:type",Object)],Ti.prototype,"selectedValue",void 0),sa([Object(i.y)(),ua("design:type",Object)],Ti.prototype,"visibleDate",void 0),sa([Object(i.y)(),ua("design:type",Object)],Ti.prototype,"min",void 0),sa([Object(i.y)(),ua("design:type",Object)],Ti.prototype,"max",void 0),sa([Object(i.y)(),ua("design:type",Function)],Ti.prototype,"filter",void 0),sa([Object(i.I)(),ua("design:type",i.q)],Ti.prototype,"select",void 0),sa([Object(i.s)("class.today"),ua("design:type",Boolean),ua("design:paramtypes",[])],Ti.prototype,"today",null),sa([Object(i.s)("class.bounding-month"),ua("design:type",Boolean),ua("design:paramtypes",[])],Ti.prototype,"boundingMonth",null),sa([Object(i.s)("class.selected"),ua("design:type",Boolean),ua("design:paramtypes",[])],Ti.prototype,"selected",null),sa([Object(i.s)("class.empty"),ua("design:type",Boolean),ua("design:paramtypes",[])],Ti.prototype,"empty",null),sa([Object(i.s)("class.disabled"),ua("design:type",Boolean),ua("design:paramtypes",[])],Ti.prototype,"disabled",null),sa([Object(i.t)("click"),ua("design:type",Function),ua("design:paramtypes",[]),ua("design:returntype",void 0)],Ti.prototype,"onClick",null),Ti=sa([ua("design:paramtypes",[na])],Ti)),la=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},ha=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},fa=((Mi=function(){function t(e){_classCallCheck(this,t),this.monthModel=e,this.boundingMonths=!0,this.cellComponent=ca,this.size=wi.MEDIUM,this._showWeekNumber=!1,this.dateChange=new i.q}return _createClass(t,[{key:"setCellComponent",set:function(t){t&&(this.cellComponent=t)}},{key:"showWeekNumber",get:function(){return this._showWeekNumber},set:function(t){this._showWeekNumber=ki(t)}},{key:"medium",get:function(){return this.size===wi.MEDIUM}},{key:"large",get:function(){return this.size===wi.LARGE}},{key:"ngOnChanges",value:function(t){t.visibleDate&&(this.weeks=this.monthModel.createDaysGrid(this.visibleDate,this.boundingMonths))}},{key:"onSelect",value:function(t){this.dateChange.emit(t)}}]),t}()).\u0275fac=function(t){return new(t||Mi)(i.cc(oa))},Mi.\u0275cmp=i.Wb({type:Mi,selectors:[["nb-calendar-day-picker"]],hostVars:4,hostBindings:function(t,e){2&t&&i.Tb("medium",e.medium)("large",e.large)},inputs:{boundingMonths:"boundingMonths",size:"size",setCellComponent:["cellComponent","setCellComponent"],showWeekNumber:"showWeekNumber",visibleDate:"visibleDate",min:"min",max:"max",filter:"filter",date:"date",weekNumberSymbol
1:"weekNumberSymbol"},outputs:{dateChange:"dateChange"},features:[i.Nb],decls:4,vars:8,consts:[[3,"weeks","size","weekNumberSymbol",4,"ngIf"],[1,"days-container"],[3,"data","visibleDate","selectedValue","cellComponent","min","max","filter","select"],[3,"weeks","size","weekNumberSymbol"]],template:function(t,e){1&t&&(i.Qc(0,ie,1,3,"nb-calendar-week-numbers",0),i.ic(1,"div",1),i.dc(2,"nb-calendar-days-names"),i.ic(3,"nb-calendar-picker",2),i.qc("select",(function(t){return e.onSelect(t)})),i.hc(),i.hc()),2&t&&(i.Bc("ngIf",e.showWeekNumber),i.Pb(3),i.Bc("data",e.weeks)("visibleDate",e.visibleDate)("selectedValue",e.date)("cellComponent",e.cellComponent)("min",e.min)("max",e.max)("filter",e.filter))},directives:function(){return[a.l,pa,ja,qa]},styles:["[_nghost-%COMP%]{display:flex}.days-container[_ngcontent-%COMP%]{width:100%}"],changeDetection:0}),la([Object(i.y)(),ha("design:type",Object)],Mi.prototype,"visibleDate",void 0),la([Object(i.y)(),ha("design:type",Boolean)],Mi.prototype,"boundingMonths",void 0),la([Object(i.y)(),ha("design:type",Object)],Mi.prototype,"min",void 0),la([Object(i.y)(),ha("design:type",Object)],Mi.prototype,"max",void 0),la([Object(i.y)(),ha("design:type",Function)],Mi.prototype,"filter",void 0),la([Object(i.y)("cellComponent"),ha("design:type",i.W),ha("design:paramtypes",[i.W])],Mi.prototype,"setCellComponent",null),la([Object(i.y)(),ha("design:type",String)],Mi.prototype,"size",void 0),la([Object(i.y)(),ha("design:type",Object)],Mi.prototype,"date",void 0),la([Object(i.y)(),ha("design:type",Boolean),ha("design:paramtypes",[Boolean])],Mi.prototype,"showWeekNumber",null),la([Object(i.y)(),ha("design:type",String)],Mi.prototype,"weekNumberSymbol",void 0),la([Object(i.I)(),ha("design:type",Object)],Mi.prototype,"dateChange",void 0),la([Object(i.s)("class.medium"),ha("design:type",Object),ha("design:paramtypes",[])],Mi.prototype,"medium",null),la([Object(i.s)("class.large"),ha("design:type",Object),ha("design:paramtypes",[])],Mi.prototype,"large",null),Mi=la([ha("design:paramtypes",[oa])],Mi)),da=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},pa=((Ii=function(){function t(e){_classCallCheck(this,t),this.dateService=e}return _createClass(t,[{key:"ngOnInit",value:function(){var t=this.createDaysNames();this.days=this.shiftStartOfWeek(t)}},{key:"createDaysNames",value:function(){return this.dateService.getDayOfWeekNames().map(this.markIfHoliday)}},{key:"shiftStartOfWeek",value:function(t){for(var e=0;e<this.dateService.getFirstDayOfWeek();e++)t.push(t.shift());return t}},{key:"markIfHoliday",value:function(t,e){return{name:t,isHoliday:e%6==0}}}]),t}()).\u0275fac=function(t){return new(t||Ii)(i.cc(na))},Ii.\u0275cmp=i.Wb({type:Ii,selectors:[["nb-calendar-days-names"]],decls:1,vars:1,consts:[["class","day",3,"holiday",4,"ngFor","ngForOf"],[1,"day"]],template:function(t,e){1&t&&i.Qc(0,ae,2,3,"div",0),2&t&&i.Bc("ngForOf",e.days)},directives:[a.k],styles:["[_nghost-%COMP%]{display:flex;justify-content:space-between}[_nghost-%COMP%] .day[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}"],changeDetection:0}),Ii=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([da("design:paramtypes",[na])],Ii)),ga=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},ya=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},va=((xi=function(){function t(e,n){_classCallCheck(this,t),this.directionService=e,this.dateService=n,this.navigateToday=new i.q,this.date=this.dateService.today()}return _createClass(t,[{key:"isRtl",get:function(){return this.directionService.isRtl()}},{key:"isLtr",get:function(){return this.directionService.isLtr()}}]),t}()).\u0275fac=function(t){return new(t||xi)(i.cc(zn),i.cc(na))},xi.\u0275cmp=i.Wb({type:xi,selectors:[["nb-calendar-header"]],inputs:{date:"date"},outputs:{navigateToday:"navigateToday"},decls:7,vars:8,consts:[[1,"header"],[1,"title",3,"click"],[3,"ngClass"],[1,"sub-title"]],template:function(t,e){1&t&&(i.ic(0,"div",0),i.ic(1,"span",1),i.qc("click",(function(){return e.navigateToday.emit()})),i.Sc(2),i.vc(3,"date"),i.dc(4,"i",2),i.hc(),i.ic(5,"span",3),i.Sc(6,"Today"),i.hc(),i.hc()),2&t&&(i.Pb(2),i.Uc(" ",i.xc(3,2,e.date,"mediumDate")," "),i.Pb(2),i.Bc("ngClass",i.Fc(5,oe,e.isLtr,e.isRtl)))},directives:[a.j],pipes:[a.d],encapsulation:2}
1),ga([Object(i.y)(),ya("design:type",Object)],xi.prototype,"date",void 0),ga([Object(i.I)(),ya("design:type",i.q)],xi.prototype,"navigateToday",void 0),xi=ga([ya("design:paramtypes",[zn,na])],xi)),ma=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},ba=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},_a=((ji=function(){function t(e){_classCallCheck(this,t),this.dateService=e,this.select=new i.q(!0)}return _createClass(t,[{key:"selected",get:function(){return this.dateService.isSameMonthSafe(this.date,this.selectedValue)}},{key:"today",get:function(){return this.dateService.isSameMonthSafe(this.date,this.dateService.today())}},{key:"disabled",get:function(){return this.smallerThanMin()||this.greaterThanMax()}},{key:"month",get:function(){return this.dateService.getMonthName(this.date)}},{key:"onClick",value:function(){this.disabled||this.select.emit(this.date)}},{key:"smallerThanMin",value:function(){return this.date&&this.min&&this.dateService.compareDates(this.monthEnd(),this.min)<0}},{key:"greaterThanMax",value:function(){return this.date&&this.max&&this.dateService.compareDates(this.monthStart(),this.max)>0}},{key:"monthStart",value:function(){return this.dateService.getMonthStart(this.date)}},{key:"monthEnd",value:function(){return this.dateService.getMonthEnd(this.date)}}]),t}()).\u0275fac=function(t){return new(t||ji)(i.cc(na))},ji.\u0275cmp=i.Wb({type:ji,selectors:[["nb-calendar-month-cell"]],hostAttrs:[1,"month-cell"],hostVars:6,hostBindings:function(t,e){1&t&&i.qc("click",(function(){return e.onClick()})),2&t&&i.Tb("selected",e.selected)("today",e.today)("disabled",e.disabled)},inputs:{date:"date",selectedValue:"selectedValue",min:"min",max:"max"},outputs:{select:"select"},decls:1,vars:1,template:function(t,e){1&t&&i.Sc(0),2&t&&i.Tc(e.month)},encapsulation:2,changeDetection:0}),ma([Object(i.y)(),ba("design:type",Object)],ji.prototype,"date",void 0),ma([Object(i.y)(),ba("design:type",Object)],ji.prototype,"selectedValue",void 0),ma([Object(i.y)(),ba("design:type",Object)],ji.prototype,"min",void 0),ma([Object(i.y)(),ba("design:type",Object)],ji.prototype,"max",void 0),ma([Object(i.I)(),ba("design:type",i.q)],ji.prototype,"select",void 0),ma([Object(i.s)("class.selected"),ba("design:type",Boolean),ba("design:paramtypes",[])],ji.prototype,"selected",null),ma([Object(i.s)("class.today"),ba("design:type",Boolean),ba("design:paramtypes",[])],ji.prototype,"today",null),ma([Object(i.s)("class.disabled"),ba("design:type",Boolean),ba("design:paramtypes",[])],ji.prototype,"disabled",null),ma([Object(i.t)("click"),ba("design:type",Function),ba("design:paramtypes",[]),ba("design:returntype",void 0)],ji.prototype,"onClick",null),ji=ma([ba("design:paramtypes",[na])],ji)),wa=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},ka=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ca=((Li=function(){function t(e){_classCallCheck(this,t),this.dateService=e,this.size=wi.MEDIUM,this.monthChange=new i.q,this.cellComponent=_a}return _createClass(t,[{key:"_cellComponent",set:function(t){t&&(this.cellComponent=t)}},{key:"medium",get:function(){return this.size===wi.MEDIUM}},{key:"large",get:function(){return this.size===wi.LARGE}},{key:"ngOnInit",value:function(){this.initMonths()}},{key:"initMonths",value:function(){for(var t=this.dateService.getDate(this.month),e=this.dateService.getYear(this.month),n=this.dateService.createDate(e,0,t),r=[n],i=1;i<12;i++)r.push(this.dateService.addMonth(n,i));this.months=ra(r,4)}},{key:"onSelect",value:function(t){this.monthChange.emit(t)}}]),t}()).\u0275fac=function(t){return new(t||Li)(i.cc(na))}
1,Li.\u0275cmp=i.Wb({type:Li,selectors:[["nb-calendar-month-picker"]],hostVars:4,hostBindings:function(t,e){2&t&&i.Tb("medium",e.medium)("large",e.large)},inputs:{size:"size",_cellComponent:["cellComponent","_cellComponent"],min:"min",max:"max",filter:"filter",month:"month"},outputs:{monthChange:"monthChange"},decls:1,vars:6,consts:[[3,"data","min","max","filter","selectedValue","cellComponent","select"]],template:function(t,e){1&t&&(i.ic(0,"nb-calendar-picker",0),i.qc("select",(function(t){return e.onSelect(t)})),i.hc()),2&t&&i.Bc("data",e.months)("min",e.min)("max",e.max)("filter",e.filter)("selectedValue",e.month)("cellComponent",e.cellComponent)},directives:function(){return[ja]},encapsulation:2,changeDetection:0}),wa([Object(i.y)(),ka("design:type",Object)],Li.prototype,"min",void 0),wa([Object(i.y)(),ka("design:type",Object)],Li.prototype,"max",void 0),wa([Object(i.y)(),ka("design:type",Function)],Li.prototype,"filter",void 0),wa([Object(i.y)(),ka("design:type",String)],Li.prototype,"size",void 0),wa([Object(i.y)(),ka("design:type",Object)],Li.prototype,"month",void 0),wa([Object(i.I)(),ka("design:type",i.q)],Li.prototype,"monthChange",void 0),wa([Object(i.y)("cellComponent"),ka("design:type",i.W),ka("design:paramtypes",[i.W])],Li.prototype,"_cellComponent",null),wa([Object(i.s)("class.medium"),ka("design:type",Object),ka("design:paramtypes",[])],Li.prototype,"medium",null),wa([Object(i.s)("class.large"),ka("design:type",Object),ka("design:paramtypes",[])],Li.prototype,"large",null),Li=wa([ka("design:paramtypes",[na])],Li)),Oa=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Sa=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ea=((Pi=_createClass((function t(){_classCallCheck(this,t),this.changeMode=new i.q(!0)}))).\u0275fac=function(t){return new(t||Pi)},Pi.\u0275cmp=i.Wb({type:Pi,selectors:[["nb-calendar-navigation"]],inputs:{date:"date"},outputs:{changeMode:"changeMode"},decls:3,vars:4,consts:[["nbButton","",3,"click"]],template:function(t,e){1&t&&(i.ic(0,"button",0),i.qc("click",(function(){return e.changeMode.emit()})),i.Sc(1),i.vc(2,"date"),i.hc()),2&t&&(i.Pb(1),i.Uc(" ",i.xc(2,1,e.date,"MMM yyyy")," "))},directives:[ta],pipes:[a.d],styles:["[_nghost-%COMP%] {\n display: flex;\n justify-content: center;\n }\n\n [_nghost-%COMP%] button[_ngcontent-%COMP%] {\n height: 3.125rem;\n }"],changeDetection:0}),Oa([Object(i.y)(),Sa("design:type",Object)],Pi.prototype,"date",void 0),Oa([Object(i.I)(),Sa("design:type",Object)],Pi.prototype,"changeMode",void 0),Pi),Aa=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Ta=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ma=((Ri=function(){function t(e){_classCallCheck(this,t),this.directionService=e,this.changeMode=new i.q,this.next=new i.q,this.prev=new i.q}return _createClass(t,[{key:"isRtl",get:function(){return this.directionService.isRtl()}},{key:"isLtr",get:function(){return this.directionService.isLtr()}}]),t}()).\u0275fac=function(t){return new(t||Ri)(i.cc(zn))},Ri.\u0275cmp=i.Wb({type:Ri,selectors:[["nb-calendar-pageable-navigation"]],inputs:{date:"date"},outputs:{changeMode:"changeMode",next:"next",prev:"prev"},decls:5,vars:3,consts:[["nbButton","","ghost","","size","small",1,"prev-month",3,"click"],["pack","nebular-essentials",3,"icon"],[3,"date","changeMode"],["nbButton","","ghost","","size","small",1,"next-month",3,"click"]],template:function(t,e){1&t&&(i.ic(0,"button",0),i.qc("click",(function(){return e.prev.emit()})),i.dc(1,"nb-icon",1),i.hc(),i.ic(2,"nb-calendar-navigation",2),i.qc("changeMode",(function(){return e.changeMode.emit()})),i.hc(),i.ic(3,"button",3),i.qc("click",(function(){return e.next.emit()})),i.dc(4,"nb-icon",1),i.hc()),2&t&&(i.Pb(1),i.Bc("icon",e.isLtr?"chevron-left-outline":"chevron-right-outline"),i.Pb(1),i.Bc("date",e.date),i.Pb(2),i.Bc("icon",e.isLtr?"chevron-right-outline":"chevron-left-outline"))},directives:[ta,li,Ea],styles:["[_nghost-%COMP%]{display:flex;align-items:center;justify-content:space-between}[dir=ltr] [_nghost-%COMP%] .prev-month[_ngcontent-%COMP%]{margin-left:auto;margin-right:0.4rem}[dir=rtl] [_nghost-%COMP%] .prev-month[_ngcontent-%COMP%]{margin-left:0.4rem;margin-right:auto}[dir=ltr] [_nghost-%COMP%] .next-month[_ngcontent-%COMP%]{margin-left:0.4rem;margin-right:auto}[dir=rtl] [_nghost-%COMP%] .next-month[_ngcontent-%COMP%]{margin-left:auto;margin-right:0.4rem}nb-calendar-navigation[_ngcontent-%COMP%]{margin:0 0.5rem}"]}),Aa([Object(i.y)(),Ta("design:type",Object)],Ri.prototype,"date",void 0),Aa([Object(i.I)(),Ta("design:type",Object)],Ri.prototype,"changeMode",void 0),Aa([Object(i.I)(),Ta("design:type",Object)],Ri.prototype,"next",void 0),Aa([Object(i.I)(),Ta("design:type",Object)],Ri.prototype,"prev",void 0),Ri=Aa([Ta("design:paramtypes",[zn])],Ri)),Ia=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},xa=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ja=((Di=_createClass((function t(){_classCallCheck(this,t),this.select=new i.q}))).\u0275fac=function(t){return new(t||Di)},Di.\u0275cmp=i.Wb({type:Di,selectors:[["nb-calendar-picker"]],inputs:{data:"data",visibleDate:"visibleDate",selectedValue:"selectedValue",cellComponent:"
1cellComponent",min:"min",max:"max",filter:"filter"},outputs:{select:"select"},decls:1,vars:1,consts:[[3,"row","visibleDate","selectedValue","component","min","max","filter","select",4,"ngFor","ngForOf"],[3,"row","visibleDate","selectedValue","component","min","max","filter","select"]],template:function(t,e){1&t&&i.Qc(0,se,1,7,"nb-calendar-picker-row",0),2&t&&i.Bc("ngForOf",e.data)},directives:function(){return[a.k,Ra]},encapsulation:2,changeDetection:0}),Ia([Object(i.y)(),xa("design:type",Array)],Di.prototype,"data",void 0),Ia([Object(i.y)(),xa("design:type",Object)],Di.prototype,"visibleDate",void 0),Ia([Object(i.y)(),xa("design:type",Object)],Di.prototype,"selectedValue",void 0),Ia([Object(i.y)(),xa("design:type",i.W)],Di.prototype,"cellComponent",void 0),Ia([Object(i.y)(),xa("design:type",Object)],Di.prototype,"min",void 0),Ia([Object(i.y)(),xa("design:type",Object)],Di.prototype,"max",void 0),Ia([Object(i.y)(),xa("design:type",Function)],Di.prototype,"filter",void 0),Ia([Object(i.I)(),xa("design:type",i.q)],Di.prototype,"select",void 0),Di),La=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Pa=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ra=((zi=function(){function t(e){_classCallCheck(this,t),this.cfr=e,this.select=new i.q}return _createClass(t,[{key:"ngOnChanges",value:function(){var t=this,e=this.cfr.resolveComponentFactory(this.component);this.containerRef.clear(),this.row.forEach((function(n){var r=t.containerRef.createComponent(e);t.patchWithContext(r.instance,n),r.changeDetectorRef.detectChanges()}))}},{key:"patchWithContext",value:function(t,e){t.visibleDate=this.visibleDate,t.selectedValue=this.selectedValue,t.date=e,t.min=this.min,t.max=this.max,t.filter=this.filter,t.select.subscribe(this.select.emit.bind(this.select))}}]),t}()).\u0275fac=function(t){return new(t||zi)(i.cc(i.k))},zi.\u0275cmp=i.Wb({type:zi,selectors:[["nb-calendar-picker-row"]],viewQuery:function(t,e){var n;1&t&&i.Oc(i.U,!0,i.bb),2&t&&i.Hc(n=i.rc())&&(e.containerRef=n.first)},inputs:{row:"row",selectedValue:"selectedValue",visibleDate:"visibleDate",component:"component",min:"min",max:"max",filter:"filter"},outputs:{select:"select"},features:[i.Nb],decls:1,vars:0,template:function(t,e){1&t&&i.Qc(0,ue,0,0,"ng-template")},styles:["[_nghost-%COMP%] {\n display: flex;\n justify-content: space-between;\n }"],changeDetection:0}),La([Object(i.y)(),Pa("design:type",Array)],zi.prototype,"row",void 0),La([Object(i.y)(),Pa("design:type",Object)],zi.prototype,"selectedValue",void 0),La([Object(i.y)(),Pa("design:type",Object)],zi.prototype,"visibleDate",void 0),La([Object(i.y)(),Pa("design:type",i.W)],zi.prototype,"component",void 0),La([Object(i.y)(),Pa("design:type",Object)],zi.prototype,"min",void 0),La([Object(i.y)(),Pa("design:type",Object)],zi.prototype,"max",void 0),La([Object(i.y)(),Pa("design:type",Function)],zi.prototype,"filter",void 0),La([Object(i.I)(),Pa("design:type",i.q)],zi.prototype,"select",void 0),La([Object(i.Z)(i.U,{read:i.bb,static:!0}),Pa("design:type",i.bb)],zi.prototype,"containerRef",void 0),zi=La([Pa("design:paramtypes",[i.k])],zi)),Da=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},za=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Na=((Ni=function(){function t(e){_classCallCheck(this,t),this.dateService=e,this.select=new i.q(!0)}return _createClass(t,[{key:"selected",get:function(){return this.dateService.isSameYearSafe(this.date,this.selectedValue)}},{key:"today",get:function(){return this.dateService.isSameYearSafe(this.date,this.dateService.today())}},{key:"disabled",get:function(){return this.smallerThanMin()||this.greaterThanMax()}},{key:"year",get:function(){return this.dateService.getYear(this.date)}},{key:"onClick",value:function(){this.disabled||this.select.emit(this.date)}},{key:"smallerThanMin",value:function(){return this.date&&this.min&&this.dateService.compareDates(this.yearEnd(),this.min)<0}},{key:"greaterThanMax",value:function(){return this.date&&this.max&&this.dateService.compareDates(this.yearStart(),this.max)>0}},{key:"yearStart",value:function(){return this.dateService.getYearStart(this.date)}},{key:"yearEnd",value:function(){return this.dateService.getYearEnd(this.date)}}]),t}()).\u0275fac=function(t){return new(t||Ni)(i.cc(na))},Ni.\u0275cmp=i.Wb({type:Ni,selectors:[["nb-calendar-year-cell"]],hostAttrs:[1,"year-cell"],hostVars:6,hostBindings:function(t,e){1&t&&i.qc("click",(function(){return e.onClick()})),2&t&&i.Tb("selected",e.selected)("today",e.today)("disabled",e.disabled)},inputs:{date:"date",min:"min",max:"max",selectedValue:"selectedValue"},outputs:{select:"select"},decls:1,vars:1,template:function(t,e){1&t&&i.Sc(0),2&t&&i.Tc(e.year)},encapsulation:2,changeDetection:0}),Da([Object(i.y)(),za("design:type",Object)],Ni.prototype,"date",void 0),Da([Object(i.y)(),za("design:type",Object)],Ni.prototype,"min",void 0),Da([Object(i.y)(),za("design:type",Object)],Ni.prototype,"max",void 0),Da([Object(i.y)(),za("design:type",Object)],Ni.prototype,"selectedValue",void 0),Da([Object(i.I)(),za("design:type",i.q)],Ni.prototype,"select",void 0),Da([Object(i.s)("class.selected"),za("design:type",Boolean),za("design:paramtypes",[])],Ni.prototype,"selected",null),Da([Object(i.s)("class.today"),za("design:type",Boolean),za("design:paramtypes",[])],Ni.prototype,"today",
1null),Da([Object(i.s)("class.disabled"),za("design:type",Boolean),za("design:paramtypes",[])],Ni.prototype,"disabled",null),Da([Object(i.t)("click"),za("design:type",Function),za("design:paramtypes",[]),za("design:returntype",void 0)],Ni.prototype,"onClick",null),Ni=Da([za("design:paramtypes",[na])],Ni)),Va=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Fa=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ha=((Vi=function(){function t(e){_classCallCheck(this,t),this.dateService=e,this.cellComponent=Na,this.size=wi.MEDIUM,this.yearChange=new i.q}return _createClass(t,[{key:"_cellComponent",set:function(t){t&&(this.cellComponent=t)}},{key:"medium",get:function(){return this.size===wi.MEDIUM}},{key:"large",get:function(){return this.size===wi.LARGE}},{key:"ngOnChanges",value:function(){this.initYears()}},{key:"initYears",value:function(){var t=this,e=this.dateService.getYear(this.year),n=Math.ceil(e-10),r=ia(20).map((function(e){return t.createYearDateByIndex(e+n)}));this.years=ra(r,4)}},{key:"onSelect",value:function(t){this.yearChange.emit(t)}},{key:"createYearDateByIndex",value:function(t){return this.dateService.createDate(t,this.dateService.getMonth(this.year),this.dateService.getDate(this.year))}}]),t}()).\u0275fac=function(t){return new(t||Vi)(i.cc(na))},Vi.\u0275cmp=i.Wb({type:Vi,selectors:[["nb-calendar-year-picker"]],hostVars:4,hostBindings:function(t,e){2&t&&i.Tb("medium",e.medium)("large",e.large)},inputs:{size:"size",_cellComponent:["cellComponent","_cellComponent"],date:"date",min:"min",max:"max",filter:"filter",year:"year"},outputs:{yearChange:"yearChange"},features:[i.Nb],decls:1,vars:7,consts:[[3,"data","min","max","filter","selectedValue","visibleDate","cellComponent","select"]],template:function(t,e){1&t&&(i.ic(0,"nb-calendar-picker",0),i.qc("select",(function(t){return e.onSelect(t)})),i.hc()),2&t&&i.Bc("data",e.years)("min",e.min)("max",e.max)("filter",e.filter)("selectedValue",e.date)("visibleDate",e.year)("cellComponent",e.cellComponent)},directives:[ja],encapsulation:2,changeDetection:0}),Va([Object(i.y)(),Fa("design:type",Object)],Vi.prototype,"date",void 0),Va([Object(i.y)(),Fa("design:type",Object)],Vi.prototype,"min",void 0),Va([Object(i.y)(),Fa("design:type",Object)],Vi.prototype,"max",void 0),Va([Object(i.y)(),Fa("design:type",Function)],Vi.prototype,"filter",void 0),Va([Object(i.y)("cellComponent"),Fa("design:type",i.W),Fa("design:paramtypes",[i.W])],Vi.prototype,"_cellComponent",null),Va([Object(i.y)(),Fa("design:type",String)],Vi.prototype,"size",void 0),Va([Object(i.y)(),Fa("design:type",Object)],Vi.prototype,"year",void 0),Va([Object(i.I)(),Fa("design:type",Object)],Vi.prototype,"yearChange",void 0),Va([Object(i.s)("class.medium"),Fa("design:type",Object),Fa("design:paramtypes",[])],Vi.prototype,"medium",null),Va([Object(i.s)("class.large"),Fa("design:type",Object),Fa("design:paramtypes",[])],Vi.prototype,"large",null),Vi=Va([Fa("design:paramtypes",[na])],Vi)),Ba=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Ua=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},qa=((Fi=function(){function t(e){_classCallCheck(this,t),this.dateService=e}return _createClass(t,[{key:"isMedium",get:function(){return this.size===wi.MEDIUM}},{key:"isLarge",get:function(){return this.size===wi.LARGE}},{key:"getWeeks",value:function(){var t=this;return this.weeks.map((function(e){var n=_toConsumableArray(e).reverse().find((function(t){return!!t}));return t.dateService.getWeekNumber(n)}))}}]),t}()).\u0275fac=function(t){return new(t||Fi)(i.cc(na))},Fi.\u0275cmp=i.Wb({type:Fi,selectors:[["nb-calendar-week-numbers"]],hostVars:4,hostBindings:function(t,e){2&t&&i.Tb("size-medium",e.isMedium)("size-large",e.isLarge)}
1,inputs:{weeks:"weeks",size:"size",weekNumberSymbol:"weekNumberSymbol"},decls:3,vars:2,consts:[[1,"sign"],["class","week-cell",4,"ngFor","ngForOf"],[1,"week-cell"]],template:function(t,e){1&t&&(i.ic(0,"div",0),i.Sc(1),i.hc(),i.Qc(2,ce,2,1,"div",1)),2&t&&(i.Pb(1),i.Tc(e.weekNumberSymbol),i.Pb(1),i.Bc("ngForOf",e.getWeeks()))},directives:[a.k],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}"],changeDetection:0}),Ba([Object(i.y)(),Ua("design:type",Array)],Fi.prototype,"weeks",void 0),Ba([Object(i.y)(),Ua("design:type",String)],Fi.prototype,"size",void 0),Ba([Object(i.y)(),Ua("design:type",String)],Fi.prototype,"weekNumberSymbol",void 0),Ba([Object(i.s)("class.size-medium"),Ua("design:type",Object),Ua("design:paramtypes",[])],Fi.prototype,"isMedium",null),Ba([Object(i.s)("class.size-large"),Ua("design:type",Object),Ua("design:paramtypes",[])],Fi.prototype,"isLarge",null),Fi=Ba([Ua("design:paramtypes",[na])],Fi)),Wa=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ga=function(){var t,e=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this)).setLocale(t),r}return _createClass(n,[{key:"setLocale",value:function(t){_get(_getPrototypeOf(n.prototype),"setLocale",this).call(this,t),this.datePipe=new a.d(t)}},{key:"isValidDateString",value:function(t,e){return!isNaN(this.parse(t,e).getTime())}},{key:"today",value:function(){return new Date}},{key:"getDate",value:function(t){return t.getDate()}},{key:"getMonth",value:function(t){return t.getMonth()}},{key:"getYear",value:function(t){return t.getFullYear()}},{key:"getDayOfWeek",value:function(t){return t.getDay()}},{key:"getFirstDayOfWeek",value:function(){return Object(a.v)(this.locale)}},{key:"getMonthName",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.s.Abbreviated,n=t.getMonth();return this.getMonthNameByIndex(n,e)}},{key:"getMonthNameByIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.s.Abbreviated;return Object(a.w)(this.locale,a.e.Format,e)[t]}},{key:"getDayOfWeekNames",value:function(){return Object(a.u)(this.locale,a.e.Format,a.s.Short)}},{key:"format",value:function(t,e){return this.datePipe.transform(t,e)}},{key:"parse",value:function(t,e){return new Date(Date.parse(t))}},{key:"addDay",value:function(t,e){return this.createDate(t.getFullYear(),t.getMonth(),t.getDate()+e)}},{key:"addMonth",value:function(t,e){var n=this.createDate(t.getFullYear(),t.getMonth()+e,1);return n.setDate(Math.min(t.getDate(),this.getMonthEnd(n).getDate())),n}},{key:"addYear",value:function(t,e){return this.createDate(t.getFullYear()+e,t.getMonth(),t.getDate())}},{key:"clone",value:function(t){return new Date(t.getTime())}},{key:"compareDates",value:function(t,e){return t.getTime()-e.getTime()}},{key:"createDate",value:function(t,e,n){var r=new Date(t,e,n);return t>=0&&t<100&&r.setFullYear(r.getFullYear()-1900),r}},{key:"getMonthEnd",value:function(t){return this.createDate(t.getFullYear(),t.getMonth()+1,0)}},{key:"getMonthStart",value:function(t){return this.createDate(t.getFullYear(),t.getMonth(),1)}},{key:"getNumberOfDaysInMonth",value:function(t){return this.getMonthEnd(t).getDate()}},{key:"getYearEnd",value:function(t){return this.createDate(t.getFullYear(),11,31)}},{key:"getYearStart",value:function(t){return this.createDate(t.getFullYear(),0,1)}},{key:"isSameDay",value:function(t,e){return this.isSameMonth(t,e)&&t.getDate()===e.getDate()}},{key:"isSameMonth",value:function(t,e){return this.isSameYear(t,e)&&t.getMonth()===e.getMonth()}},{key:"isSameYear",value:function(t,e){return t.getFullYear()===e.getFullYear()}},{key:"getId",value:function(){return"native"}},{key:"getWeekNumber",value:function(t){return parseInt(this.datePipe.transform(t,"w"),10)}}]),n}(na);return e.\u0275fac=function(t){return new(t||e)(i.mc(i.B))},e.\u0275prov=i.Yb({token:e,factory:e.\u0275fac}),e=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([(t=Object(i.v)(i.B),function(e,n){t(e,n,0)}),Wa("design:paramtypes",[String])],e)}(),Ka=[{provide:na,useClass:Ga},a.d,oa],Ya=((Hi=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:Hi}),Hi.\u0275inj=i.Zb({factory:function(t){return new(t||Hi)},providers:[].concat(Ka),imports:[[Fn,ea,fi]]}),Hi),Qa=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Xa=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Za=((qi=function(){function t(e){_classCallCheck(this,t),this.dateService=e,this.boundingMonth=!0,this.activeViewMode=_i.DATE,this.size=wi.MEDIUM,this.showHeader=!0,this._showWeekNumber=!1,this.dateChange=new i.q,this.ViewMode=_i}return _createClass(t,[{key:"showWeekNumber",get:function(){return this._showWeekNumber},set:function(t){this._showWeekNumber=ki(t)}},{key:"ngOnInit",value:function(){this.visibleDate||(this.visibleDate=this.dateService.today())}},{key:"medium",get:function(){return this.size===wi.MEDIUM}},{key:"large",get:function(){return this.size===wi.LARGE}}
1,{key:"setViewMode",value:function(t){this.activeViewMode=t}},{key:"setVisibleDate",value:function(t){this.visibleDate=t}},{key:"prevMonth",value:function(){this.changeVisibleMonth(-1)}},{key:"nextMonth",value:function(){this.changeVisibleMonth(1)}},{key:"prevYears",value:function(){this.changeVisibleYear(-1)}},{key:"nextYears",value:function(){this.changeVisibleYear(1)}},{key:"navigateToday",value:function(){this.setViewMode(_i.DATE),this.visibleDate=this.dateService.today()}},{key:"changeVisibleMonth",value:function(t){this.visibleDate=this.dateService.addMonth(this.visibleDate,t)}},{key:"changeVisibleYear",value:function(t){this.visibleDate=this.dateService.addYear(this.visibleDate,20*t)}}]),t}()).\u0275fac=function(t){return new(t||qi)(i.cc(na))},qi.\u0275cmp=i.Wb({type:qi,selectors:[["nb-base-calendar"]],hostVars:6,hostBindings:function(t,e){2&t&&i.Tb("has-week-number",e.showWeekNumber)("medium",e.medium)("large",e.large)},inputs:{boundingMonth:"boundingMonth",activeViewMode:["startView","activeViewMode"],size:"size",showHeader:"showHeader",showWeekNumber:"showWeekNumber",visibleDate:"visibleDate",min:"min",max:"max",filter:"filter",dayCellComponent:"dayCellComponent",monthCellComponent:"monthCellComponent",yearCellComponent:"yearCellComponent",date:"date",weekNumberSymbol:"weekNumberSymbol"},outputs:{dateChange:"dateChange"},decls:6,vars:5,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"navigateToday"],[3,"date","next","prev","changeMode",4,"ngSwitchCase"],[3,"boundingMonths","cellComponent","min","max","filter","visibleDate","size","date","showWeekNumber","weekNumberSymbol","dateChange"],[3,"date","next","prev","changeMode"],[3,"cellComponent","date","min","max","filter","size","year","yearChange"],[3,"date","changeMode"],[3,"cellComponent","min","max","filter","size","month","monthChange"]],template:function(t,e){1&t&&(i.ic(0,"nb-card"),i.Qc(1,le,2,0,"nb-card-header",0),i.ic(2,"nb-card-body",1),i.Qc(3,fe,3,11,"ng-container",2),i.Qc(4,de,3,8,"ng-container",2),i.Qc(5,pe,3,7,"ng-container",2),i.hc(),i.hc()),2&t&&(i.Pb(1),i.Bc("ngIf",e.showHeader),i.Pb(1),i.Bc("ngSwitch",e.activeViewMode),i.Pb(1),i.Bc("ngSwitchCase",e.ViewMode.DATE),i.Pb(1),i.Bc("ngSwitchCase",e.ViewMode.YEAR),i.Pb(1),i.Bc("ngSwitchCase",e.ViewMode.MONTH))},directives:[mi,a.l,yi,a.m,a.n,gi,va,fa,Ma,Ha,Ea,Ca],encapsulation:2}),Qa([Object(i.y)(),Xa("design:type",Boolean)],qi.prototype,"boundingMonth",void 0),Qa([Object(i.y)("startView"),Xa("design:type",String)],qi.prototype,"activeViewMode",void 0),Qa([Object(i.y)(),Xa("design:type",Object)],qi.prototype,"min",void 0),Qa([Object(i.y)(),Xa("design:type",Object)],qi.prototype,"max",void 0),Qa([Object(i.y)(),Xa("design:type",Function)],qi.prototype,"filter",void 0),Qa([Object(i.y)(),Xa("design:type",i.W)],qi.prototype,"dayCellComponent",void 0),Qa([Object(i.y)(),Xa("design:type",i.W)],qi.prototype,"monthCellComponent",void 0),Qa([Object(i.y)(),Xa("design:type",i.W)],qi.prototype,"yearCellComponent",void 0),Qa([Object(i.y)(),Xa("design:type",String)],qi.prototype,"size",void 0),Qa([Object(i.y)(),Xa("design:type",Object)],qi.prototype,"visibleDate",void 0),Qa([Object(i.y)(),Xa("design:type",Boolean)],qi.prototype,"showHeader",void 0),Qa([Object(i.y)(),Xa("design:type",Object)],qi.prototype,"date",void 0),Qa([Object(i.y)(),Object(i.s)("class.has-week-number"),Xa("design:type",Boolean),Xa("design:paramtypes",[Boolean])],qi.prototype,"showWeekNumber",null),Qa([Object(i.y)(),Xa("design:type",String)],qi.prototype,"weekNumberSymbol",void 0),Qa([Object(i.I)(),Xa("design:type",i.q)],qi.prototype,"dateChange",void 0),Qa([Object(i.s)("class.medium"),Xa("design:type",Object),Xa("design:paramtypes",[])],qi.prototype,"medium",null),Qa([Object(i.s)("class.large"),Xa("design:type",Object),Xa("design:paramtypes",[])],qi.prototype,"large",null),qi=Qa([Xa("design:paramtypes",[na])],qi)),$a=((Ui=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:Ui}),Ui.\u0275inj=i.Zb({factory:function(t){return new(t||Ui)},imports:[[Ya,Fn,bi]]}),Ui),Ja=((Bi=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:Bi}),Bi.\u0275inj=i.Zb({factory:function(t){return new(t||Bi)},imports:[[$a]]}),Bi),to=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},eo=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},no=((Gi=function(){function t(e){_classCallCheck(this,t),this.dateService=e,this.select=new i.q(!0)}return _createClass(t,[{key:"inRange",get:function(){return this.date&&this.selectedValue&&this.selectedValue.start&&this.dateService.compareDates(this.date,this.selectedValue.start)>=0&&this.selectedValue.end&&this.dateService.compareDates(this.date,this.selectedValue.end)<=0}},{key:"start",get:function(){return this.date&&this.selectedValue&&this.selectedValue.end&&this.selectedValue.start&&this.dateService.isSameDay(this.date,this.selectedValue.start)}},{key:"end",get:function(){return this.date&&this.selectedValue&&this.selectedValue.end&&this.dateService.isSameDay(this.date,this.selectedValue.end)}},{key:"today",get:function(){return this.date&&this.dateService.isSameDay(this.date,this.dateService.today())}},{key:"boundingMonth",get:function(){return!this.dateService.isSameMonthSafe(this.date,this.visibleDate)}},{key:"selected",get:function(){return this.date&&this.selectedValue&&this.selectedValue.start&&this.dateService.isSameDay(this.date,this.selectedValue.start)||this.end}},{key:"empty",get:function(){return!this.date}},{key:"disabled",get:function(){return this.smallerThanMin()||this.greaterThanMax()||this.dontFitFilter()}},{key:"day",get:function(){return this.date&&this.dateService.getDate(this.date)}},{key:"onClick",value:function(){this.disabled||this.empty||this.select.emit(this.date)}},{key:"smallerThanMin",value:function(){return this.date&&this.min&&this.dateService.compareDates(this.date,this.min)<0}},{key:"greaterThanMax",value:function(){return this.date&&this.max&&this.dateService.compareDates(this.date,this.max)>0}},{key:"dontFitFilter",value:function(){return this.date&&this.filter&&!this.filter(this.date)}}]),t}()).\u0275fac=function(t){return new(t||Gi)(i.cc(na))},Gi.\u0275cmp=i.Wb({type:Gi,selectors:[["nb-calendar-range-day-cell"]],hostAttrs:[1,"range-cell"],hostVars:6,hostBindings:function(t,e){1&t&&i.qc("click",(function(){return e.onClick()})),2&t&&i.Tb("in-range",e.inRange)("start",e.start)("end",e.end)},inputs:{date:"date",selectedValue:"selectedValue",visibleDate:"visibleDate",min:"min",max:"max",filter:"filter"},outputs:{select:"select"},decls:2,vars:15,consts:[[1,"day-cell"]],template:function(t,e){1&t&&(i.ic(0,"div",0),i.Sc(1),i.hc()),2&t&&(i.Tb("today",e.today)("selected",e.selected)("bounding-month",e.boundingMonth)("start",e.start)("end",e.end)("in-range",e.inRange)("disabled",e.disabled),i.Pb(1),i.Uc(" ",e.day," "))},encapsulation:2,changeDetection:0}),to([Object(i.y)(),eo("design:type",Object)],Gi.prototype,"date",void 0),to([Object(i.y)(),eo("design:type",Object)],Gi.prototype,"selectedValue",void 0),to([Object(i.y)(),eo("design:type",Object)],Gi.prototype,"visibleDate",void 0),to([Object(i.y)(),eo("design:type",Object)],Gi.prototype,"min",void 0),to([Object(i.y)(),eo("design:type",Object)],Gi.prototype,"max",void 0),to([Object(i.y)(),eo("design:type",Function)],Gi.prototype,"filter",void 0),to([Object(i.I)(),eo("design:type",i.q)],Gi.prototype,"select",void 0),to([Object(i.s)("class.in-range"),eo("design:type",Boolean),eo("design:paramtypes",[])],Gi.prototype,"inRange",null),to([Ob
1ject(i.s)("class.start"),eo("design:type",Boolean),eo("design:paramtypes",[])],Gi.prototype,"start",null),to([Object(i.s)("class.end"),eo("design:type",Boolean),eo("design:paramtypes",[])],Gi.prototype,"end",null),Gi=to([eo("design:paramtypes",[na])],Gi)),ro=((Wi=function(){function t(e){_classCallCheck(this,t),this.dateService=e,this.select=new i.q(!0)}return _createClass(t,[{key:"selected",get:function(){return this.selectedValue&&this.dateService.isSameYear(this.date,this.selectedValue.start)}},{key:"today",get:function(){return this.date&&this.dateService.isSameYear(this.date,this.dateService.today())}},{key:"disabled",get:function(){return this.smallerThanMin()||this.greaterThanMax()}},{key:"year",get:function(){return this.dateService.getYear(this.date)}},{key:"onClick",value:function(){this.disabled||this.select.emit(this.date)}},{key:"smallerThanMin",value:function(){return this.date&&this.min&&this.dateService.compareDates(this.yearEnd(),this.min)<0}},{key:"greaterThanMax",value:function(){return this.date&&this.max&&this.dateService.compareDates(this.yearStart(),this.max)>0}},{key:"yearStart",value:function(){return this.dateService.getYearStart(this.date)}},{key:"yearEnd",value:function(){return this.dateService.getYearEnd(this.date)}}]),t}()).\u0275fac=function(t){return new(t||Wi)(i.cc(na))},Wi.\u0275cmp=i.Wb({type:Wi,selectors:[["nb-calendar-range-year-cell"]],hostAttrs:[1,"year-cell"],hostVars:6,hostBindings:function(t,e){1&t&&i.qc("click",(function(){return e.onClick()})),2&t&&i.Tb("selected",e.selected)("today",e.today)("disabled",e.disabled)},inputs:{date:"date",min:"min",max:"max",selectedValue:"selectedValue"},outputs:{select:"select"},decls:1,vars:1,template:function(t,e){1&t&&i.Sc(0),2&t&&i.Tc(e.year)},encapsulation:2,changeDetection:0}),to([Object(i.y)(),eo("design:type",Object)],Wi.prototype,"date",void 0),to([Object(i.y)(),eo("design:type",Object)],Wi.prototype,"min",void 0),to([Object(i.y)(),eo("design:type",Object)],Wi.prototype,"max",void 0),to([Object(i.y)(),eo("design:type",Object)],Wi.prototype,"selectedValue",void 0),to([Object(i.I)(),eo("design:type",i.q)],Wi.prototype,"select",void 0),to([Object(i.s)("class.selected"),eo("design:type",Boolean),eo("design:paramtypes",[])],Wi.prototype,"selected",null),to([Object(i.s)("class.today"),eo("design:type",Boolean),eo("design:paramtypes",[])],Wi.prototype,"today",null),to([Object(i.s)("class.disabled"),eo("design:type",Boolean),eo("design:paramtypes",[])],Wi.prototype,"disabled",null),to([Object(i.t)("click"),eo("design:type",Function),eo("design:paramtypes",[]),eo("design:returntype",void 0)],Wi.prototype,"onClick",null),Wi=to([eo("design:paramtypes",[na])],Wi)),io=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},ao=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},oo=((Yi=function(){function t(e){_classCallCheck(this,t),this.dateService=e,this.boundingMonth=!0,this.startView=_i.DATE,this.dayCellComponent=no,this.yearCellComponent=ro,this.size=wi.MEDIUM,this.showHeader=!0,this._showWeekNumber=!1,this.weekNumberSymbol="#",this.rangeChange=new i.q}return _createClass(t,[{key:"_cellComponent",set:function(t){t&&(this.dayCellComponent=t)}},{key:"_yearCellComponent",set:function(t){t&&(this.yearCellComponent=t)}},{key:"showWeekNumber",get:function(){return this._showWeekNumber},set:function(t){this._showWeekNumber=ki(t)}},{key:"onChange",value:function(t){this.initDateIfNull(),this.handleSelected(t)}},{key:"initDateIfNull",value:function(){this.range||(this.range={start:null,end:null})}},{key:"handleSelected",value:function(t){this.selectionStarted()?this.selectEnd(t):this.selectStart(t)}},{key:"selectionStarted",value:function(){var t=this.range,e=t.start,n=t.end;return e&&!n}},{key:"selectStart",value:function(t){this.selectRange({start:t})}},{key:"selectEnd",value:function(t){var e=this.range.start;this.dateService.compareDates(t,e)>0?this.selectRange({start:e,end:t}):this.selectRange({start:t,end:e})}},{key:"selectRange",value:function(t){this.range=t,this.rangeChange.emit(t)}}]),t}()).\u0275fac=function(t){return new(t||Yi)(i.cc(na))},Yi.\u0275cmp=i.Wb({type:Yi,selectors:[["nb-calendar-range"]],inputs:{boundingMonth:"boundingMonth",startView:"startView",size:"size",showHeader:"showHeader",weekNumberSymbol
1:"weekNumberSymbol",_cellComponent:["dayCellComponent","_cellComponent"],_yearCellComponent:["yearCellComponent","_yearCellComponent"],showWeekNumber:"showWeekNumber",range:"range",min:"min",max:"max",filter:"filter",monthCellComponent:"monthCellComponent",visibleDate:"visibleDate"},outputs:{rangeChange:"rangeChange"},decls:1,vars:14,consts:[[3,"date","min","max","filter","startView","boundingMonth","dayCellComponent","monthCellComponent","yearCellComponent","visibleDate","showHeader","size","showWeekNumber","weekNumberSymbol","dateChange"]],template:function(t,e){1&t&&(i.ic(0,"nb-base-calendar",0),i.qc("dateChange",(function(t){return e.onChange(t)})),i.hc()),2&t&&i.Bc("date",e.range)("min",e.min)("max",e.max)("filter",e.filter)("startView",e.startView)("boundingMonth",e.boundingMonth)("dayCellComponent",e.dayCellComponent)("monthCellComponent",e.monthCellComponent)("yearCellComponent",e.yearCellComponent)("visibleDate",e.visibleDate)("showHeader",e.showHeader)("size",e.size)("showWeekNumber",e.showWeekNumber)("weekNumberSymbol",e.weekNumberSymbol)},directives:[Za],encapsulation:2}),io([Object(i.y)(),ao("design:type",Boolean)],Yi.prototype,"boundingMonth",void 0),io([Object(i.y)(),ao("design:type",String)],Yi.prototype,"startView",void 0),io([Object(i.y)(),ao("design:type",Object)],Yi.prototype,"min",void 0),io([Object(i.y)(),ao("design:type",Object)],Yi.prototype,"max",void 0),io([Object(i.y)(),ao("design:type",Function)],Yi.prototype,"filter",void 0),io([Object(i.y)("dayCellComponent"),ao("design:type",i.W),ao("design:paramtypes",[i.W])],Yi.prototype,"_cellComponent",null),io([Object(i.y)(),ao("design:type",i.W)],Yi.prototype,"monthCellComponent",void 0),io([Object(i.y)("yearCellComponent"),ao("design:type",i.W),ao("design:paramtypes",[i.W])],Yi.prototype,"_yearCellComponent",null),io([Object(i.y)(),ao("design:type",String)],Yi.prototype,"size",void 0),io([Object(i.y)(),ao("design:type",Object)],Yi.prototype,"visibleDate",void 0),io([Object(i.y)(),ao("design:type",Boolean)],Yi.prototype,"showHeader",void 0),io([Object(i.y)(),ao("design:type",Object)],Yi.prototype,"range",void 0),io([Object(i.y)(),ao("design:type",Boolean),ao("design:paramtypes",[Boolean])],Yi.prototype,"showWeekNumber",null),io([Object(i.y)(),ao("design:type",String)],Yi.prototype,"weekNumberSymbol",void 0),io([Object(i.I)(),ao("design:type",i.q)],Yi.prototype,"rangeChange",void 0),Yi=io([ao("design:paramtypes",[na])],Yi)),so=((Ki=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:Ki}),Ki.\u0275inj=i.Zb({factory:function(t){return new(t||Ki)},imports:[[$a]]}),Ki);function uo(t){return t.match(/.*?(?=[?;#]|$)/)[0]}function co(t){var e=t.match(/#(.+)/);return e?e[1]:""}var lo,ho,fo,po,go,yo,vo,mo,bo,_o,wo,ko,Co,Oo,So,Eo,Ao,To,Mo,Io,xo,jo,Lo,Po,Ro,Do,zo,No,Vo,Fo,Ho,Bo,Uo=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},qo=((lo=function(){function t(e){_classCallCheck(this,t),this.router=e}return _createClass(t,[{key:"shouldRestore",value:function(){var t=this;return this.router.events.pipe(Object(b.a)(null),Object(w.a)((function(t){return null===t||t instanceof U.b})),Object(_.a)(),Object(m.a)((function(e){var n=_slicedToArray(e,2),r=n[0],i=n[1];return t.pageChanged(r,i)})),Object(w.a)((function(t){return!!t})))}},{key:"pageChanged",value:function(t,e){return!t||uo(t.url)!==uo(e.url)}}]),t}()).\u0275fac=function(t){return new(t||lo)(i.mc(U.c))},lo.\u0275prov=i.Yb({token:lo,factory:lo.\u0275fac}),lo=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([Uo("design:paramtypes",[U.c])],lo)),Wo=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Go=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ko=function(t,e){return function(n,r){e(n,r,t)}},Yo=((go=function(){function t(e,n,r,i,o,s,u,c,l,h,d,p){var g=this;_classCallCheck(this,t),this.themeService=e,this.spinnerService=n,this.elementRef=r,this.renderer=i,this.window=o,this.document=s,this.platformId=u,this.layoutDirectionService=c,this.scrollService=l,this.rulerService=h,this.scrollTop=d,this.overlayContainer=p,this.scrollBlockClass="nb-global-scrollblock",this.isScrollBlocked=!1,this.centerValue=!1,this.restoreScrollTopValue=!0,this.windowModeValue=!1,this.withScrollValue=!1,this.withSubheader=!1,this.afterViewInit$=new f.a(null),this.alive=!0,this.registerAsOverlayContainer(),this.themeService.onThemeChange().pipe(D((function(){return g.alive}))).subscribe((function(t){var e=g.document.getElementsByTagName("body")[0];t.previous&&g.renderer.removeClass(e,"nb-theme-".concat(t.previous)),g.renderer.addClass(e,"nb-theme-".concat(t.name))})),this.themeService.onAppendLayoutClass().pipe(D((function(){return g.alive}))).subscribe((function(t){g.renderer.addClass(g.elementRef.nativeElement,t)})),this.themeService.onRemoveLayoutClass().pipe(D((function(){return g.alive}))).subscribe((function(t){g.renderer.removeClass(g.elementRef.nativeElement,t)})),this.spinnerService.registerLoader(new Promise((function(t,e){g.afterViewInit$.pipe(D((function(){return g.alive}))).subscribe((function(e){return t()}))}))),this.spinnerService.load(),this.rulerService.onGetDimensions().pipe(D((function(){return g.alive}))).subscribe((function(t){var e=t.listener;e.next(g.getDimensions()),e.complete()}
1)),this.scrollService.onGetPosition().pipe(D((function(){return g.alive}))).subscribe((function(t){var e=t.listener;e.next(g.getScrollPosition()),e.complete()})),this.scrollTop.shouldRestore().pipe(Object(w.a)((function(){return g.restoreScrollTopValue})),D((function(){return g.alive}))).subscribe((function(){g.scroll(0,0)})),this.scrollService.onScrollableChange().pipe(Object(w.a)((function(){return g.withScrollValue}))).subscribe((function(t){t?g.enableScroll():g.blockScroll()})),Object(a.x)(this.platformId)&&this.themeService.changeWindowWidth(this.window.innerWidth)}return _createClass(t,[{key:"center",set:function(t){this.centerValue=ki(t)}},{key:"windowMode",set:function(t){this.windowModeValue=ki(t),this.withScroll=this.windowModeValue}},{key:"withScroll",set:function(t){this.withScrollValue=ki(t);var e=this.document.getElementsByTagName("body")[0];this.renderer.setStyle(e,"overflow",this.withScrollValue?"hidden":"initial")}},{key:"restoreScrollTop",set:function(t){this.restoreScrollTopValue=ki(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this.layoutDirectionService.onDirectionChange().pipe(D((function(){return t.alive}))).subscribe((function(e){return t.document.dir=e})),this.scrollService.onManualScroll().pipe(D((function(){return t.alive}))).subscribe((function(e){var n=e.x,r=e.y;return t.scroll(n,r)})),this.afterViewInit$.next(!0)}},{key:"ngOnDestroy",value:function(){this.alive=!1,this.unregisterAsOverlayContainer()}},{key:"onScroll",value:function(t){this.scrollService.fireScrollChange(t)}},{key:"onResize",value:function(t){this.themeService.changeWindowWidth(t.target.innerWidth)}},{key:"getDimensions",value:function(){var t,e,n,r=0;if(this.withScrollValue){var i=this.scrollableContainerRef.nativeElement;t=i.clientWidth,e=i.clientHeight,n=i.scrollWidth,r=i.scrollHeight}else{var a=this.document,o=a.documentElement,s=a.body;t=o.clientWidth||s.clientWidth,e=o.clientHeight||s.clientHeight,n=o.scrollWidth||s.scrollWidth,r=o.scrollHeight||s.scrollHeight}return{clientWidth:t,clientHeight:e,scrollWidth:n,scrollHeight:r}}},{key:"getScrollPosition",value:function(){if(!Object(a.x)(this.platformId))return{x:0,y:0};if(this.withScrollValue){var t=this.scrollableContainerRef.nativeElement;return{x:t.scrollLeft,y:t.scrollTop}}var e=this.document.documentElement.getBoundingClientRect();return{x:-e.left||this.document.body.scrollLeft||this.window.scrollX||this.document.documentElement.scrollLeft||0,y:-e.top||this.document.body.scrollTop||this.window.scrollY||this.document.documentElement.scrollTop||0}}},{key:"registerAsOverlayContainer",value:function(){this.overlayContainer.setContainer&&this.overlayContainer.setContainer(this.elementRef.nativeElement)}},{key:"unregisterAsOverlayContainer",value:function(){this.overlayContainer.clearContainer&&this.overlayContainer.clearContainer()}},{key:"scroll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getScrollPosition(),r=n.x,i=n.y;if(t=null==t?r:t,e=null==e?i:e,Object(a.x)(this.platformId))if(this.withScrollValue){var o=this.scrollableContainerRef.nativeElement;o.scrollTo?o.scrollTo(t,e):(o.scrollLeft=t,o.scrollTop=e)}else this.window.scrollTo(t,e)}},{key:"blockScroll",value:function(){if(!this.isScrollBlocked){this.isScrollBlocked=!0,this.renderer.addClass(this.document.documentElement,this.scrollBlockClass);var t=this.scrollableContainerRef.nativeElement,e=this.layoutContainerRef.nativeElement,n=e.clientWidth;this.scrollableContainerOverflowOldValue=t.style.overflow,t.style.overflow="hidden";var r=e.clientWidth-n;r&&(this.layoutPaddingOldValue={left:e.style.paddingLeft,right:e.style.paddingRight},this.layoutDirectionService.isLtr()?e.style.paddingRight="".concat(r,"px"):e.style.paddingLeft="".concat(r,"px"))}}},{key:"enableScroll",value:function(){if(this.isScrollBlocked&&(this.isScrollBlocked=!1,this.renderer.removeClass(this.document.documentElement,this.scrollBlockClass),this.scrollableContainerRef.nativeElement.style.overflow=this.scrollableContainerOverflowOldValue,this.layoutPaddingOldValue)){var t=this.layoutContainerRef.nativeElement;t.style.paddingLeft=this.layoutPaddingOldValue.left,t.style.paddingRight=this.layoutPaddingOldValue.right,this.layoutPaddingOldValue=null}}}]),t}()).\u0275fac=function(t){return new(t||go)(i.cc(In),i.cc(jn),i.cc(i.o),i.cc(i.M),i.cc(_n),i.cc(wn),i.cc(i.J),i.cc(zn),i.cc(Nn),i.cc(Vn),i.cc(qo),i.cc(rr))},go.\u0275cmp=i.Wb({type:go,selectors:[["nb-layout"]],viewQuery:function(t,e){var n;1&t&&(i.Xc(ge,!0,i.bb),i.Xc(ye,!0,i.o),i.Xc(ve,!0,i.o)),2&t&&(i.Hc(n=i.rc())&&(e.veryTopRef=n.first),i.Hc(n=i.rc())&&(e.scrollableContainerRef
1=n.first),i.Hc(n=i.rc())&&(e.layoutContainerRef=n.first))},hostVars:6,hostBindings:function(t,e){1&t&&i.qc("scroll",(function(t){return e.onScroll(t)}),!1,i.Jc)("resize",(function(t){return e.onResize(t)}),!1,i.Jc),2&t&&i.Tb("window-mode",e.windowModeValue)("with-scroll",e.withScrollValue)("with-subheader",e.withSubheader)},inputs:{center:"center",windowMode:"windowMode",withScroll:"withScroll",restoreScrollTop:"restoreScrollTop"},ngContentSelectors:be,decls:12,vars:2,consts:[[1,"scrollable-container",3,"scroll"],["scrollableContainer",""],[1,"layout"],["layoutContainer",""],[1,"layout-container"],[1,"content"],[1,"columns"]],template:function(t,e){1&t&&(i.Ac(me),i.ic(0,"div",0,1),i.qc("scroll",(function(t){return e.onScroll(t)})),i.ic(2,"div",2,3),i.zc(4),i.ic(5,"div",4),i.zc(6,1),i.ic(7,"div",5),i.zc(8,2),i.ic(9,"div",6),i.zc(10,3),i.hc(),i.zc(11,4),i.hc(),i.hc(),i.hc(),i.hc()),2&t&&(i.Pb(7),i.Tb("center",e.centerValue))},styles:["[_nghost-%COMP%]{-webkit-font-smoothing:antialiased}[dir=ltr] [_nghost-%COMP%]{text-align:left}[dir=rtl] [_nghost-%COMP%]{text-align:right}[_nghost-%COMP%] .layout[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] nb-layout-header{display:block}[_nghost-%COMP%] nb-layout-header nav{align-items:center;justify-content:flex-start;display:flex}[_nghost-%COMP%] nb-layout-header.fixed{position:fixed;top:0;left:0;right:0;z-index:1040}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%]{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:row}[dir=ltr] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar.left{order:0}[dir=rtl] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar.left{order:2}[dir=ltr] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar.right{order:2}[dir=rtl] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar.right{order:0}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar.end{order:2}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] nb-sidebar .fixed{position:fixed;width:100%;overflow-y:auto;height:100%}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:column;min-width:0}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content.center[_ngcontent-%COMP%]{max-width:100%;position:relative;margin-left:auto;margin-right:auto}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%]{display:flex;flex:1;-ms-flex:1 1 auto;flex-direction:row;width:100%}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] nb-layout-column{order:1;flex:1 0;min-width:0}[dir=ltr] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] nb-layout-column.left{order:0}[dir=rtl] [_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] nb-layout-column.left{order:2}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .columns[_ngcontent-%COMP%] nb-layout-column.start{order:0}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] nb-layout-footer{display:block;margin-top:auto}[_nghost-%COMP%] .layout-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] nb-layout-footer nav{justify-content:center;display:flex}"]}
1),Wo([Object(i.s)("class.window-mode"),Go("design:type",Boolean)],go.prototype,"windowModeValue",void 0),Wo([Object(i.s)("class.with-scroll"),Go("design:type",Boolean)],go.prototype,"withScrollValue",void 0),Wo([Object(i.s)("class.with-subheader"),Go("design:type",Boolean)],go.prototype,"withSubheader",void 0),Wo([Object(i.y)(),Go("design:type",Boolean),Go("design:paramtypes",[Boolean])],go.prototype,"center",null),Wo([Object(i.y)(),Go("design:type",Boolean),Go("design:paramtypes",[Boolean])],go.prototype,"windowMode",null),Wo([Object(i.y)(),Go("design:type",Boolean),Go("design:paramtypes",[Boolean])],go.prototype,"withScroll",null),Wo([Object(i.y)(),Go("design:type",Boolean),Go("design:paramtypes",[Boolean])],go.prototype,"restoreScrollTop",null),Wo([Object(i.Z)("layoutTopDynamicArea",{read:i.bb,static:!1}),Go("design:type",i.bb)],go.prototype,"veryTopRef",void 0),Wo([Object(i.Z)("scrollableContainer",{read:i.o,static:!1}),Go("design:type",i.o)],go.prototype,"scrollableContainerRef",void 0),Wo([Object(i.Z)("layoutContainer",{read:i.o,static:!1}),Go("design:type",i.o)],go.prototype,"layoutContainerRef",void 0),Wo([Object(i.t)("window:scroll",["$event"]),Go("design:type",Function),Go("design:paramtypes",[Object]),Go("design:returntype",void 0)],go.prototype,"onScroll",null),Wo([Object(i.t)("window:resize",["$event"]),Go("design:type",Function),Go("design:paramtypes",[Object]),Go("design:returntype",void 0)],go.prototype,"onResize",null),go=Wo([Ko(4,Object(i.v)(_n)),Ko(5,Object(i.v)(wn)),Ko(6,Object(i.v)(i.J)),Go("design:paramtypes",[In,jn,i.o,i.M,Object,Object,Object,zn,Nn,Vn,qo,rr])],go)),Qo=((po=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"left",set:function(t){this.leftValue=ki(t),this.startValue=!1}},{key:"start",set:function(t){this.startValue=ki(t),this.leftValue=!1}}]),t}()).\u0275fac=function(t){return new(t||po)},po.\u0275cmp=i.Wb({type:po,selectors:[["nb-layout-column"]],hostVars:4,hostBindings:function(t,e){2&t&&i.Tb("left",e.leftValue)("start",e.startValue)},inputs:{left:"left",start:"start"},ngContentSelectors:te,decls:1,vars:0,template:function(t,e){1&t&&(i.Ac(),i.zc(0))},encapsulation:2}),Wo([Object(i.s)("class.left"),Go("design:type",Boolean)],po.prototype,"leftValue",void 0),Wo([Object(i.s)("class.start"),Go("design:type",Boolean)],po.prototype,"startValue",void 0),Wo([Object(i.y)(),Go("design:type",Boolean),Go("design:paramtypes",[Boolean])],po.prototype,"left",null),Wo([Object(i.y)(),Go("design:type",Boolean),Go("design:paramtypes",[Boolean])],po.prototype,"start",null),po),Xo=((fo=function(){function t(e){_classCallCheck(this,t),this.layout=e}return _createClass(t,[{key:"fixed",set:function(t){this.fixedValue=ki(t)}},{key:"subheader",set:function(t){this.subheaderValue=ki(t),this.fixedValue=!1,this.layout.withSubheader=this.subheaderValue}}]),t}()).\u0275fac=function(t){return new(t||fo)(i.cc(Yo))},fo.\u0275cmp=i.Wb({type:fo,selectors:[["nb-layout-header"]],hostVars:4,hostBindings:function(t,e){2&t&&i.Tb("fixed",e.fixedValue)("subheader",e.subheaderValue)},inputs:{fixed:"fixed",subheader:"subheader"},ngContentSelectors:te,decls:2,vars:2,template:function(t,e){1&t&&(i.Ac(),i.ic(0,"nav"),i.zc(1),i.hc()),2&t&&i.Tb("fixed",e.fixedValue)},encapsulation:2}),Wo([Object(i.s)("class.fixed"),Go("design:type",Boolean)],fo.prototype,"fixedValue",void 0),Wo([Object(i.s)("class.subheader"),Go("design:type",Boolean)],fo.prototype,"subheaderValue",void 0),Wo([Object(i.y)(),Go("design:type",Boolean),Go("design:paramtypes",[Boolean])],fo.prototype,"fixed",null),Wo([Object(i.y)(),Go("design:type",Boolean),Go("design:paramtypes",[Boolean])],fo.prototype,"subheader",null),fo=Wo([Go("design:paramtypes",[Yo])],fo)),Zo=((ho=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:ho}),ho.\u0275inj=i.Zb({factory:function(t){return new(t||ho)},providers:[qo],imports:[[Fn]]}),ho),$o=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Jo=new s.a,ts=new o.a(1),es=new o.a(1),ns=new o.a(1),rs=new o.a(1),is=new o.a(1),as=new o.a(1),os=new o.a(1),ss=function(){function t(){_classCallCheck(this,t),this.pathMatch="full"}return _createClass(t,null,[{key:"getParents",value:function(t){for(var e=[],n=t.parent;n;)e.unshift(n),n=n.parent;return e}},{key:"isParent",value:function(t,e){return!!e.parent&&(e.parent===t||this.isParent(t,e.parent))}}]),t}(),us=((vo=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addItems",value:function(t,e){ts.next({tag:e,items:t})}},{key:"collapseAll",value:function(t){os.next({tag:t})}},{key:"navigateHome",value:function(t){es.next({tag:t})}},{key:"getSelectedItem",value:function(t){var e=new f.a(null);return ns.next({tag:t,listener:e}),e.asObservable()}},{key:"onItemClick",value:function(){return Jo.pipe(Object(C.a)())}},{key:"onItemSelect",value:function(){return rs.pipe(Object(C.a)())}},{key:"onItemHover",value:function(){return is.pipe(Object(C.a)())}},{key:"onSubmenuToggle",value:function(){return as.pipe(Object(C.a)())}}]),t}()).\u0275fac=function(t){return new(t||vo)}
1,vo.\u0275prov=i.Yb({token:vo,factory:vo.\u0275fac}),vo),cs=((yo=function(){function t(e){_classCallCheck(this,t),this.location=e}return _createClass(t,[{key:"prepareItems",value:function(t){var e=this,n=new ss;t.forEach((function(t){e.applyDefaults(t,n),e.setParent(t)}))}},{key:"selectFromUrl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.findItemByUrl(t);r&&this.selectItem(r,t,n,e)}},{key:"selectItem",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0,a=this.resetSelection(e),o=r?this.collapseItems(e):[],s=_createForOfIteratorHelper(ss.getParents(t));try{for(s.s();!(n=s.n()).done;){var u=n.value;u.selected=!0,a.includes(u)||this.itemSelect(u,i);var c=!u.expanded;u.expanded=!0;var l=o.indexOf(u);-1===l&&c?this.submenuToggle(u,i):o.splice(l,1)}}catch(p){s.e(p)}finally{s.f()}t.selected=!0,a.includes(t)||this.itemSelect(t,i);var h,f=_createForOfIteratorHelper(o);try{for(f.s();!(h=f.n()).done;){var d=h.value;this.submenuToggle(d,i)}}catch(p){f.e(p)}finally{f.f()}}},{key:"collapseAll",value:function(t,e,n){var r,i=_createForOfIteratorHelper(this.collapseItems(t,n));try{for(i.s();!(r=i.n()).done;){var a=r.value;this.submenuToggle(a,e)}}catch(o){i.e(o)}finally{i.f()}}},{key:"onAddItem",value:function(){return ts.pipe(Object(C.a)())}},{key:"onNavigateHome",value:function(){return es.pipe(Object(C.a)())}},{key:"onCollapseAll",value:function(){return os.pipe(Object(C.a)())}},{key:"onGetSelectedItem",value:function(){return ns.pipe(Object(C.a)())}},{key:"itemHover",value:function(t,e){is.next({tag:e,item:t})}},{key:"submenuToggle",value:function(t,e){as.next({tag:e,item:t})}},{key:"itemSelect",value:function(t,e){rs.next({tag:e,item:t})}},{key:"itemClick",value:function(t,e){Jo.next({tag:e,item:t})}},{key:"resetSelection",value:function(t){var e,n=[],r=_createForOfIteratorHelper(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;i.selected&&n.push(i),i.selected=!1,i.children&&n.push.apply(n,_toConsumableArray(this.resetSelection(i.children)))}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"collapseItems",value:function(t,e){var n,r=[],i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var a=n.value;e&&(a===e||ss.isParent(a,e))||(a.expanded&&r.push(a),a.expanded=!1,a.children&&r.push.apply(r,_toConsumableArray(this.collapseItems(a.children))))}}catch(o){i.e(o)}finally{i.f()}return r}},{key:"applyDefaults",value:function(t,e){var n=this,r=Object.assign({},t);Object.assign(t,e,r),t.children&&t.children.forEach((function(t){n.applyDefaults(t,e)}))}},{key:"setParent",value:function(t){var e=this;t.children&&t.children.forEach((function(n){n.parent=t,e.setParent(n)}))}},{key:"findItemByUrl",value:function(t){var e,n=this;return t.some((function(t){return t.children&&(e=n.findItemByUrl(t.children)),!e&&n.isSelectedInUrl(t)&&(e=t),e})),e}},{key:"isSelectedInUrl",value:function(t){var e,n,r="full"===t.pathMatch,i=t.link,a=r?function(t,e){return e===uo(t)}(this.location.path(),i):function(t,e){var n=uo(t);return n.startsWith(e)&&-1!==n.slice(e.length).charAt(0).search(/\/|^$/)}(this.location.path(),i);return a&&null!=t.fragment?r?(e=this.location.path(!0),n=t.fragment,co(e)===n):function(t,e){return co(t).includes(e)}(this.location.path(!0),t.fragment):a}}]),t}()).\u0275fac=function(t){return new(t||yo)(i.mc(a.h))},yo.\u0275prov=i.Yb({token:yo,factory:yo.\u0275fac}),yo=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o}([$o("design:paramtypes",[a.h])],yo)),ls=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},hs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},fs=function(t,e){return function(n,r){e(n,r,t)}},ds=function(t){return t.Expanded="expanded",t.Collapsed="collapsed",t}({}),ps=((bo=function(){function t(e,n){_classCallCheck(this,t),this.menuService=e,this.directionService=n,this.menuItem=null,this.hoverItem=new i.q,this.toggleSubMenu=new i.q,this.selectItem=new i.q,this.itemClick=new i.q,this.alive=!0}return _createClass(t,[{key:"ngDoCheck",value:function(){this.toggleState=this.menuItem.expanded?ds.Expanded:ds.Collapsed}},{key:"ngAfterViewInit",value:function(){var t=this;this.menuService.onSubmenuToggle().pipe(D((function(){return t.alive})),Object(w.a)((function(e){return e.item===t.menuItem})),Object(m.a)((function(t){return t.item.expanded}))).subscribe((function(e){return t.toggleState=e?ds.Expanded:ds.Collapsed}))}},{key:"ngOnDestroy",value:function(){this.alive=!1}},{key:"onToggleSubMenu",value:function(t){this.toggleSubMenu.emit(t)}},{key:"onHoverItem",value:function(t){this.hoverItem.emit(t)}},{key:"onSelectItem",value:function(t){this.selectItem.emit(t)}},{key:"onItemClick",value:function(t){this.itemClick.emit(t)}},{key:"getExpandStateIcon",value:function(){return this.menuItem.expanded?"chevron-down-outline":this.directionService.isLtr()?"chevron-left-outline":"chevron-right-outline"}}]),t}()).\u0275fac=function(t){return new(t||bo)(i.cc(us),i.cc(zn))},bo.\u0275cmp=i.Wb({type:bo,selectors:[["","nbMenuItem",""]],inputs:{menuItem:"menuItem"},outputs:{hoverItem:"hoverItem",toggleSubMenu:"toggleSubMenu",selectItem:"selectItem",itemClick:"itemClick"},attrs:_e,decls:6,vars:6,consts:[[4,"ngIf"],[3,"routerLink","queryParams","fragment","skipLocationChange","active","mouseenter","click",4,"ngIf"],[3,"active","mouseenter","click",4,"ngIf"],["href","#",3,"active","click","mouseenter",4,"ngIf"],["class","menu-items",3,"collapsed","expanded",4,"ngIf"],["class","menu-icon",3,"config",4,"ngIf"],[1,"menu-icon",3,"config"],[3,"routerLink","queryParams","fragment","skipLocationChange","mouseenter","click"],[1,"menu-title"],[3,"mouseenter","click"],["href","#",3,"click","mouseenter"],["pack","nebular-essentials",1,"expand-state",3,"icon"],[1,"menu-items"],[4,"ngFor","ngForOf"],["nbMenuItem","","class","menu-item",3,"menuItem","menu-group","hoverItem","toggleSubMenu","selectItem","itemClick",4,"ngIf"],["nbMenuItem","",1,"menu-item",3,"menuItem","hoverItem","toggleSubMenu","selectItem","itemClick"]],template:function(t,e){1&t&&(i.Qc(0,ke,3,2,"span",0),i.Qc(1,Oe,4,10,"a",1),i.Qc(2,Ee,4,7,"a",2),i.Qc(3,Te,4,6,"a",2),i.Qc(4,Ie,5,7,"a",3),i.Qc(5,Le,2,6,"ul",4)),2&t&&(i.Bc("ngIf",e.menuItem.group),i.Pb(1),i.Bc("ngIf",e.menuItem.link&&!e.menuItem.url&&!e.menuItem.children&&!e.menuItem.group),i.Pb(1),i.Bc("ngIf",e.menuItem.url&&!e.menuItem.children&&!e.menuItem.link&&!e.menuItem.group),i.Pb(1),i.Bc("ngIf",!(e.menuItem.children||e.menuItem.link||e.menuItem.url||e.menuItem.group)),i.Pb(1),i.Bc("ngIf",e.menuItem.children),i.Pb(1),i.Bc("ngIf",e.menuItem.children))},directives:[a.l,li,U.f,a.k,bo],encapsulation:2,data:{animation:[Object(Zt.j)("toggle",[Object(Zt.g)(ds.Collapsed,Object(Zt.h)({height:"0",margin:"0"})),Object(Zt.g)(ds.Expanded,Object(Zt.h)({height:"*"})),Object(Zt.i)("".concat(ds.Collapsed," <=> ").concat(ds.Expanded),Object(Zt.e)(300))])]}}),ls([Object(i.y)(),hs("design:type",Object)],bo.prototype,"menuItem",void 0),ls([Object(i.I)(),hs("design:type",Object)],bo.prototype,"hoverItem",void 0),ls([Object(i.I)(),hs("design:type",Object)],bo.prototype,"toggleSubMenu",void 0),ls([Object(i.I)(),hs("design:type",Object)],bo.prototype,"selectItem",void 0),ls([Object(i.I)(),hs("design:type",Object)],bo.prototype,"itemClick",void 0),bo=ls([hs("design:paramtypes",[us,zn])],bo)),gs=((mo=function(){function t(e,n,r,i){_classCallCheck(this,t),this.window=e,this.platformId=n,this.menuInternalService=r,this.router=i,this._autoCollapse=!1,this.alive=!0}return _createClass(t,[{key:"autoCollapse",get:function(){return this._autoCollapse},set:function(t){this._autoCollapse=ki(t)}},{key:"ngOnInit",value:function(){var t=this;this.menuInternalService.prepareItems(this.items),this.menuInternalService.onAddItem().pipe(D((function(){return t.alive})),Object(w.a)((function(e){return t.compareTag(e.tag)}))).subscribe((function(e){return t.onAddItem(e)})),this.menuInternalService.onNavigateHome().pipe(D((function(){return t.alive})),Object(w.a)((function(e){return t.compareTag(e.tag)}))).subscribe((function(){return t.navigateHome()})),this.menuInternalService.onGetSelectedItem().pipe(D((function(){return t.alive})),Object(w.a)((function(e){return t.compareTag(e.tag)}))).subscribe((function(e){e.listener.next({tag:t.tag,item:t.getSelectedItem(t.items)})})),this.menuInternalService.onCollapseAll().pipe(D((function(){return t.alive})),Object(w.a)((function(e){return t.compareTag(e.tag)}))).subscribe((function(){return t.collapseAll()})),this.router.events.pipe(D((function(){return t.alive})),Object(w.a)((function(t){return t instanceof U.b}))).subscribe((function(){t.menuInternalService.selectFromUrl(t.items,t.tag,t.autoCollapse)}))}},{key:"ngAfterViewInit",value:function(){var t=this;setTimeout((function(){return t.menuInternalService.selectFromUrl(t.items,t.tag,t.autoCollapse)}))}},{key:"onAddItem",value:function(t){var e;(e=this.items).push.apply(e,_toConsumableArray(t.items)),this.menuInternalService.prepareItems(this.items),this.menuInternalService.selectFromUrl(this.items,this.tag,this.autoCollapse)}},{key:"onHoverItem",value:function(t){this.menuInternalService.itemHover(t,this.tag)}},{key:"onToggleSubMenu",value:function(t){this.autoCollapse&&this.menuInternalService.collapseAll(this.items,this.tag,t),t.expanded=!t.expanded,this.menuInternalService.submenuToggle(t,this.tag)}},{key:"onSelectItem",value:function(t){this.menuInternalService.selectItem(t,this.items,this.autoCollapse,this.tag)}},{key:"onItemClick",value:function(t){this.menuInternalService.itemClick(t,this.tag)}},{key:"ngOnDestroy",value:function(){this.alive=!1}},{key:"navigateHome",value:function(){var t=this.getHomeItem(this.items);t&&(t.link&&this.router.navigate([t.link],{queryParams:t.queryParams,fragment:t.fragment}),t.url&&Object(a.x)(this.platformId)&&(this.window.location.href=t.url))}},{key:"collapseAll",value:function(){this.menuInternalService.collapseAll(this.items,this.tag)}},{key:"getHomeItem",value:function(t){var e,n=_createForOfIteratorHelper(t);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.home)return r;var i=r.children&&this.getHomeItem(r.children);if(i)return i}}catch(a){n.e(a)}finally{n.f()}}},{key:"compareTag",value:function(t){return!t||t===this.tag}},{key:"getSelectedItem",value:function(t){var e=this,n=null;return t.forEach((function(t){t.selected&&(n=t),t.selected&&t.children&&t.children.length>0&&(n=e.getSelectedItem(t.children))})),n}}]),t}()).\u0275fac=function(t){return new(t||mo)(i.cc(_n),i.cc(i.J),i.cc(cs),i.cc(U.c))},mo.\u0275cmp=i.Wb({type:mo,selectors:[["nb-menu"]],inputs:{autoCollapse:"autoCollapse",tag:"tag",items:"items"},decls:2,vars:1,consts:[[1,"menu-items"],[4,"ngFor","ngForOf"],["nbMenuItem","","class","menu-item",3,"menuItem","menu-group","hoverItem","toggleSubMenu","selectItem","itemClick",4,"ngIf"],["nbMenuItem","",1,"menu-item",3,"menuItem","hoverItem","toggleSubMenu","selectItem","itemClick"]],template:function(t,e){1&t&&(i.ic(0,"ul",0),i.Qc(1,Re,2,1,"ng-container",1),i.hc()),2&t&&(i.Pb(1),i.Bc("ngForOf",e.items))},directives:[a.k,a.l,ps],styles:["[_nghost-%COMP%] {display:block}[_nghost-%COMP%] .menu-items, [_nghost-%COMP%] .menu-item>.menu-items{list-style-type:none;overflow:hidden}[_nghost-%COMP%] .menu-item a{display:flex;color:inherit;text-decoration:none;align-items:center}[_nghost-%COMP%] .menu-item a .menu-title{flex:1 0 auto}[dir=rtl] [_nghost-%COMP%] .menu-item a .menu-title{text-align:right}
1[_nghost-%COMP%] .menu-group span{display:flex}"]}),ls([Object(i.y)(),hs("design:type",String)],mo.prototype,"tag",void 0),ls([Object(i.y)(),hs("design:type",Array)],mo.prototype,"items",void 0),ls([Object(i.y)(),hs("design:type",Boolean),hs("design:paramtypes",[Boolean])],mo.prototype,"autoCollapse",null),mo=ls([fs(0,Object(i.v)(_n)),fs(1,Object(i.v)(i.J)),hs("design:paramtypes",[Object,Object,cs,U.c])],mo)),ys=[us,cs],vs=((ko=_o=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:_o,providers:[].concat(ys)}}}]),t}()).\u0275mod=i.ac({type:ko}),ko.\u0275inj=i.Zb({factory:function(t){return new(t||ko)},imports:[[Fn,fi]]}),ko),ms=((wo=function(){function t(){_classCallCheck(this,t),this.toggle$=new s.a,this.expand$=new s.a,this.collapse$=new s.a,this.compact$=new s.a}return _createClass(t,[{key:"onToggle",value:function(){return this.toggle$.pipe(Object(C.a)())}},{key:"onExpand",value:function(){return this.expand$.pipe(Object(C.a)())}},{key:"onCollapse",value:function(){return this.collapse$.pipe(Object(C.a)())}},{key:"onCompact",value:function(){return this.compact$.pipe(Object(C.a)())}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1?arguments[1]:void 0;this.toggle$.next({compact:t,tag:e})}},{key:"expand",value:function(t){this.expand$.next({tag:t})}},{key:"collapse",value:function(t){this.collapse$.next({tag:t})}},{key:"compact",value:function(t){this.compact$.next({tag:t})}}]),t}()).\u0275fac=function(t){return new(t||wo)},wo.\u0275prov=i.Yb({token:wo,factory:wo.\u0275fac}),wo),bs=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},_s=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},ws=((Oo=Co=function(){function t(e,n,r){_classCallCheck(this,t),this.sidebarService=e,this.themeService=n,this.element=r,this.responsiveValue=!1,this.alive=!0,this.containerFixedValue=!0,this.fixedValue=!1,this.rightValue=!1,this.leftValue=!0,this.startValue=!1,this.endValue=!1,this.compactedBreakpoints=["xs","is","sm","md","lg"],this.collapsedBreakpoints=["xs","is"],this.responsiveState=Co.RESPONSIVE_STATE_PC}return _createClass(t,[{key:"expanded",get:function(){return this.stateValue===Co.STATE_EXPANDED}},{key:"collapsed",get:function(){return this.stateValue===Co.STATE_COLLAPSED}},{key:"compacted",get:function(){return this.stateValue===Co.STATE_COMPACTED}},{key:"right",set:function(t){this.rightValue=ki(t),this.leftValue=!this.rightValue,this.startValue=!1,this.endValue=!1}},{key:"left",set:function(t){this.leftValue=ki(t),this.rightValue=!this.leftValue,this.startValue=!1,this.endValue=!1}},{key:"start",set:function(t){this.startValue=ki(t),this.endValue=!this.startValue,this.leftValue=!1,this.rightValue=!1}},{key:"end",set:function(t){this.endValue=ki(t),this.startValue=!this.endValue,this.leftValue=!1,this.rightValue=!1}},{key:"fixed",set:function(t){this.fixedValue=ki(t)}},{key:"containerFixed",set:function(t){this.containerFixedValue=ki(t)}},{key:"state",set:function(t){this.stateValue=t}},{key:"responsive",set:function(t){this.responsiveValue=ki(t)}},{key:"toggleResponsive",value:function(t){t?this.mediaQuerySubscription=this.onMediaQueryChanges():this.mediaQuerySubscription&&this.mediaQuerySubscription.unsubscribe()}},{key:"ngOnChanges",value:function(t){t.responsive&&this.toggleResponsive(this.responsiveValue)}},{key:"ngOnInit",value:function(){var t=this;this.sidebarService.onToggle().pipe(D((function(){return t.alive}))).subscribe((function(e){t.tag&&t.tag!==e.tag||t.toggle(e.compact)})),this.sidebarService.onExpand().pipe(D((function(){return t.alive}))).subscribe((function(e){t.tag&&t.tag!==e.tag||t.expand()})),this.sidebarService.onCollapse().pipe(D((function(){return t.alive}))).subscribe((function(e){t.tag&&t.tag!==e.tag||t.collapse()})),this.sidebarService.onCompact().pipe(D((function(){return t.alive}))).subscribe((function(e){t.tag&&t.tag!==e.tag||t.compact()}))}},{key:"ngOnDestroy",value:function(){this.alive=!1,this.mediaQuerySubscription&&this.mediaQuerySubscription.unsubscribe()}},{key:"onClick",value:function(t){var e=this.element.nativeElement.querySelector("nb-menu");if(e&&e.contains(t.target)){var n=this.getMenuLink(t.target);n&&n.nextElementSibling&&n.nextElementSibling.classList.contains("menu-items")&&this.sidebarService.expand(this.tag)}}},{key:"collapse",value:function(){this.state=Co.STATE_COLLAPSED}},{key:"expand",value:function(){this.state=Co.STATE_EXPANDED}},{key:"compact",value:function(){this.state=Co.STATE_COMPACTED}},{key:"toggle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.responsiveEnabled()&&this.responsiveState===Co.RESPONSIVE_STATE_MOBILE&&(t=!1);var e=[Co.STATE_COMPACTED,Co.STATE_COLLAPSED];
1this.state=t?e.includes(this.stateValue)?Co.STATE_EXPANDED:Co.STATE_COMPACTED:e.includes(this.stateValue)?Co.STATE_EXPANDED:Co.STATE_COLLAPSED}},{key:"onMediaQueryChanges",value:function(){var t=this;return this.themeService.onMediaQueryChange().subscribe((function(e){var n=_slicedToArray(e,2),r=n[0],i=n[1],a=t.collapsedBreakpoints.includes(i.name),o=t.compactedBreakpoints.includes(i.name);o&&(t.fixed=t.containerFixedValue,t.compact(),t.responsiveState=Co.RESPONSIVE_STATE_TABLET),a&&(t.fixed=!0,t.collapse(),t.responsiveState=Co.RESPONSIVE_STATE_MOBILE),!a&&!o&&r.width<i.width&&(t.expand(),t.fixed=!1,t.responsiveState=Co.RESPONSIVE_STATE_PC)}))}},{key:"responsiveEnabled",value:function(){return this.responsiveValue}},{key:"getMenuLink",value:function(t){if(t&&"nb-menu"!==t.tagName.toLowerCase())return"a"===t.tagName.toLowerCase()?t:this.getMenuLink(t.parentElement)}}]),t}()).\u0275fac=function(t){return new(t||Oo)(i.cc(ms),i.cc(In),i.cc(i.o))},Oo.\u0275cmp=i.Wb({type:Oo,selectors:[["nb-sidebar"]],hostVars:16,hostBindings:function(t,e){2&t&&i.Tb("fixed",e.fixedValue)("right",e.rightValue)("left",e.leftValue)("start",e.startValue)("end",e.endValue)("expanded",e.expanded)("collapsed",e.collapsed)("compacted",e.compacted)},inputs:{compactedBreakpoints:"compactedBreakpoints",collapsedBreakpoints:"collapsedBreakpoints",right:"right",left:"left",start:"start",end:"end",fixed:"fixed",containerFixed:"containerFixed",state:"state",responsive:"responsive",tag:"tag"},features:[i.Nb],ngContentSelectors:ze,decls:5,vars:2,consts:[[1,"main-container"],[1,"scrollable",3,"click"]],template:function(t,e){1&t&&(i.Ac(De),i.ic(0,"div",0),i.zc(1),i.ic(2,"div",1),i.qc("click",(function(t){return e.onClick(t)})),i.zc(3,1),i.hc(),i.zc(4,2),i.hc()),2&t&&i.Tb("main-container-fixed",e.containerFixedValue)},styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;overflow:hidden;z-index:auto;order:0}[_nghost-%COMP%] .scrollable[_ngcontent-%COMP%]{overflow-y:auto;overflow-x:hidden;flex:1}[_nghost-%COMP%] .main-container[_ngcontent-%COMP%]{transform:translate3d(0, 0, 0);display:flex;flex-direction:column}[_nghost-%COMP%] .main-container-fixed[_ngcontent-%COMP%]{position:fixed}.right[_nghost-%COMP%]{margin-right:0;margin-left:auto}[dir=ltr] .right[_nghost-%COMP%]{order:4}[dir=rtl] .right[_nghost-%COMP%]{order:0}.end[_nghost-%COMP%]{order:4}[dir=ltr] .end[_nghost-%COMP%]{margin-right:0;margin-left:auto}[dir=rtl] .end[_nghost-%COMP%]{margin-left:0;margin-right:auto}.fixed[_nghost-%COMP%]{position:fixed;height:100%;z-index:999;top:0;bottom:0;left:0}.fixed.right[_nghost-%COMP%]{right:0}[dir=ltr] .fixed.start[_nghost-%COMP%]{left:0}[dir=rtl] .fixed.start[_nghost-%COMP%]{right:0}[dir=ltr] .fixed.end[_nghost-%COMP%]{right:0}[dir=rtl] .fixed.end[_nghost-%COMP%]{left:0}[_nghost-%COMP%] nb-sidebar-footer{margin-top:auto;display:block}[_nghost-%COMP%] nb-sidebar-header{display:block}"]}),Oo.STATE_EXPANDED="expanded",Oo.STATE_COLLAPSED="collapsed",Oo.STATE_COMPACTED="compacted",Oo.RESPONSIVE_STATE_MOBILE="mobile",Oo.RESPONSIVE_STATE_TABLET="tablet",Oo.RESPONSIVE_STATE_PC="pc",bs([Object(i.s)("class.fixed"),_s("design:type",Boolean)],Oo.prototype,"fixedValue",void 0),bs([Object(i.s)("class.right"),_s("design:type",Boolean)],Oo.prototype,"rightValue",void 0),bs([Object(i.s)("class.left"),_s("design:type",Boolean)],Oo.prototype,"leftValue",void 0),bs([Object(i.s)("class.start"),_s("design:type",Boolean)],Oo.prototype,"startValue",void 0),bs([Object(i.s)("class.end"),_s("design:type",Boolean)],Oo.prototype,"endValue",void 0),bs([Object(i.s)("class.expanded"),_s("design:type",Object),_s("design:paramtypes",[])],Oo.prototype,"expanded",null),bs([Object(i.s)("class.collapsed"),_s("design:type",Object),_s("design:paramtypes",[])],Oo.prototype,"collapsed",null),bs([Object(i.s)("class.compacted"),_s("design:type",Object),_s("design:paramtypes",[])],Oo.prototype,"compacted",null),bs([Object(i.y)(),_s("design:type",Boolean),_s("design:paramtypes",[Boolean])],Oo.prototype,"right",null),bs([Object(i.y)(),_s("design:type",Boolean),_s("design:paramtypes",[Boolean])],Oo.prototype,"left",null),bs([Object(i.y)(),_s("design:type",Boolean),_s("design:paramtypes",[Boolean])],Oo.prototype,"start",null),bs([Object(i.y)(),_s("design:type",Boolean),_s("design:paramtypes",[Boolean])],Oo.prototype,"end",null),bs([Object(i.y)(),_s("design:type",Boolean),_s("design:paramtypes",[Boolean])],Oo.prototype,"fixed",null),bs([Object(i.y)(),_s("design:type",Boolean),_s("design:paramtypes",[Boolean])],Oo.prototype,"containerFixed",null),bs([Object(i.y)(),_s("design:type",String),_s("design:paramtypes",[String])],Oo.prototype,"state",null),bs([Object(i.y)(),_s("design:type",Boolean),_s("design:paramtypes",[Boolean])],Oo.prototype,"responsive",null),bs([Object(i.y)(),_s("design:type",String)],Oo.prototype,"tag",void 0),bs([Object(i.y)(),_s("design:type",Array)],Oo.prototype,"compactedBreakpoints",void 0),bs([Object(i.y)(),_s("design:type",Array)],Oo.prototype,"collapsedBreakpoints",void 0),Oo=Co=bs([_s("design:paramtypes",[ms,In,i.o])],Oo)),ks=[ms],Cs=((Eo=So=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:So,providers:[].concat(ks)}}}]),t}()).\u0275mod=i.ac({type:Eo}),Eo.\u0275inj=i.Zb({factory:function(t){return new(t||Eo)},imports:[[Fn]]}),Eo),Os=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Ss=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Es=((To=function(){function t(){_classCallCheck(this,t),this.fieldSize="medium",this._status="basic",this.shape="rectangle",this._fullWidth=!1}return _createClass(t,[{key:"status",get:function(){return this._status},set:function(t){""===t?(Ci("NbInput"),this._status="basic"):this._status=t}},{key:"fullWidth",get:function(){return this._fullWidth}
1,set:function(t){this._fullWidth=ki(t)}},{key:"tiny",get:function(){return"tiny"===this.fieldSize}},{key:"small",get:function(){return"small"===this.fieldSize}},{key:"medium",get:function(){return"medium"===this.fieldSize}},{key:"large",get:function(){return"large"===this.fieldSize}},{key:"giant",get:function(){return"giant"===this.fieldSize}},{key:"primary",get:function(){return"primary"===this.status}},{key:"info",get:function(){return"info"===this.status}},{key:"success",get:function(){return"success"===this.status}},{key:"warning",get:function(){return"warning"===this.status}},{key:"danger",get:function(){return"danger"===this.status}},{key:"basic",get:function(){return"basic"===this.status}},{key:"control",get:function(){return"control"===this.status}},{key:"rectangle",get:function(){return"rectangle"===this.shape}},{key:"semiRound",get:function(){return"semi-round"===this.shape}},{key:"round",get:function(){return"round"===this.shape}}]),t}()).\u0275fac=function(t){return new(t||To)},To.\u0275dir=i.Xb({type:To,selectors:[["input","nbInput",""],["textarea","nbInput",""]],hostVars:32,hostBindings:function(t,e){2&t&&i.Tb("input-full-width",e.fullWidth)("size-tiny",e.tiny)("size-small",e.small)("size-medium",e.medium)("size-large",e.large)("size-giant",e.giant)("status-primary",e.primary)("status-info",e.info)("status-success",e.success)("status-warning",e.warning)("status-danger",e.danger)("status-basic",e.basic)("status-control",e.control)("shape-rectangle",e.rectangle)("shape-semi-round",e.semiRound)("shape-round",e.round)},inputs:{fieldSize:"fieldSize",shape:"shape",status:"status",fullWidth:"fullWidth"}}),Os([Object(i.y)(),Ss("design:type",String)],To.prototype,"fieldSize",void 0),Os([Object(i.y)(),Ss("design:type",String),Ss("design:paramtypes",[String])],To.prototype,"status",null),Os([Object(i.y)(),Ss("design:type",String)],To.prototype,"shape",void 0),Os([Object(i.y)(),Object(i.s)("class.input-full-width"),Ss("design:type",Boolean),Ss("design:paramtypes",[Boolean])],To.prototype,"fullWidth",null),Os([Object(i.s)("class.size-tiny"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"tiny",null),Os([Object(i.s)("class.size-small"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"small",null),Os([Object(i.s)("class.size-medium"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"medium",null),Os([Object(i.s)("class.size-large"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"large",null),Os([Object(i.s)("class.size-giant"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"giant",null),Os([Object(i.s)("class.status-primary"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"primary",null),Os([Object(i.s)("class.status-info"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"info",null),Os([Object(i.s)("class.status-success"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"success",null),Os([Object(i.s)("class.status-warning"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"warning",null),Os([Object(i.s)("class.status-danger"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"danger",null),Os([Object(i.s)("class.status-basic"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"basic",null),Os([Object(i.s)("class.status-control"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"control",null),Os([Object(i.s)("class.shape-rectangle"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"rectangle",null),Os([Object(i.s)("class.shape-semi-round"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"semiRound",null),Os([Object(i.s)("class.shape-round"),Ss("design:type",Object),Ss("design:paramtypes",[])],To.prototype,"round",null),To),As=((Ao=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:Ao}),Ao.\u0275inj=i.Zb({factory:function(t){return new(t||Ao)},imports:[[Fn]]}),Ao),Ts=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Ms=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Is=((Mo=function(){function t(){_classCallCheck(this,t),this.message="Loading...",this.size="medium",this._status="basic"}return _createClass(t,[{key:"status",get:function(){return this._status},set:function(t){""===t&&(Ci("NbSpinner"),t="basic"),this._status=t}},{key:"tiny",get:function(){return"tiny"===this.size}},{key:"small",get:function(){return"small"===this.size}},{key:"medium",get:function(){return"medium"===this.size}},{key:"large",get:function(){return"large"===this.size}},{key:"giant",get:function(){return"giant"===this.size}},{key:"primary",get:function(){return"primary"===this.status}},{key:"info",get:function(){return"info"===this.status}},{key:"success",get:function(){return"success"===this.status}},{key:"warning",get:function(){return"warning"===this.status}},{key:"danger",get:function(){return"danger"===this.status}},{key:"basic",get:function(){return"basic"===this.status}}
1,{key:"control",get:function(){return"control"===this.status}}]),t}()).\u0275fac=function(t){return new(t||Mo)},Mo.\u0275cmp=i.Wb({type:Mo,selectors:[["nb-spinner"]],hostVars:24,hostBindings:function(t,e){2&t&&i.Tb("size-tiny",e.tiny)("size-small",e.small)("size-medium",e.medium)("size-large",e.large)("size-giant",e.giant)("status-primary",e.primary)("status-info",e.info)("status-success",e.success)("status-warning",e.warning)("status-danger",e.danger)("status-basic",e.basic)("status-control",e.control)},inputs:{message:"message",size:"size",status:"status"},decls:2,vars:1,consts:[[1,"spin-circle"],["class","message",4,"ngIf"],[1,"message"]],template:function(t,e){1&t&&(i.dc(0,"span",0),i.Qc(1,Ne,2,1,"span",1)),2&t&&(i.Pb(1),i.Bc("ngIf",e.message))},directives:[a.l],styles:["[_nghost-%COMP%]{opacity:1;position:absolute;border-radius:inherit;top:0;right:0;left:0;bottom:0;overflow:hidden;z-index:9999;display:flex;justify-content:center;align-items:center;visibility:visible}[_nghost-%COMP%] .spin-circle[_ngcontent-%COMP%]{animation:spin 0.8s infinite linear;border-radius:50%;border-style:solid;border-width:0.125em;width:1em;height:1em}[_nghost-%COMP%] .message[_ngcontent-%COMP%]{margin-left:0.5rem}"]}),Ts([Object(i.y)(),Ms("design:type",String)],Mo.prototype,"message",void 0),Ts([Object(i.y)(),Ms("design:type",String)],Mo.prototype,"size",void 0),Ts([Object(i.y)(),Ms("design:type",String),Ms("design:paramtypes",[String])],Mo.prototype,"status",null),Ts([Object(i.s)("class.size-tiny"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"tiny",null),Ts([Object(i.s)("class.size-small"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"small",null),Ts([Object(i.s)("class.size-medium"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"medium",null),Ts([Object(i.s)("class.size-large"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"large",null),Ts([Object(i.s)("class.size-giant"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"giant",null),Ts([Object(i.s)("class.status-primary"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"primary",null),Ts([Object(i.s)("class.status-info"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"info",null),Ts([Object(i.s)("class.status-success"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"success",null),Ts([Object(i.s)("class.status-warning"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"warning",null),Ts([Object(i.s)("class.status-danger"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"danger",null),Ts([Object(i.s)("class.status-basic"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"basic",null),Ts([Object(i.s)("class.status-control"),Ms("design:type",Object),Ms("design:paramtypes",[])],Mo.prototype,"control",null),Mo),xs=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},js=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ls=((xo=function(){function t(e,n,r,i){_classCallCheck(this,t),this.directiveView=e,this.componentFactoryResolver=n,this.renderer=r,this.directiveElement=i,this.shouldShow=!1,this.spinnerStatus="basic",this.spinnerSize="medium",this.isSpinnerExist=!1}return _createClass(t,[{key:"nbSpinner",set:function(t){this.componentFactory?t?this.show():this.hide():this.shouldShow=t}},{key:"ngOnInit",value:function(){this.componentFactory=this.componentFactoryResolver.resolveComponentFactory(Is),this.shouldShow&&this.show()}},{key:"hide",value:function(){this.isSpinnerExist&&(this.directiveView.remove(),this.isSpinnerExist=!1)}},{key:"show",value:function(){this.isSpinnerExist||(this.spinner=this.directiveView.createComponent(this.componentFactory),this.setInstanceInputs(this.spinner.instance),this.spinner.changeDetectorRef.detectChanges(),this.renderer.appendChild(this.directiveElement.nativeElement,this.spinner.location.nativeElement),this.isSpinnerExist=!0)}},{key:"setInstanceInputs",value:function(t){t.message=this.spinnerMessage,void 0!==this.spinnerStatus&&(t.status=this.spinnerStatus),void 0!==this.spinnerSize&&(t.size=this.spinnerSize)}}]),t}()).\u0275fac=function(t){return new(t||xo)(i.cc(i.bb),i.cc(i.k),i.cc(i.M),i.cc(i.o))},xo.\u0275dir=i.Xb({type:xo,selectors:[["","nbSpinner",""]],hostVars:2,hostBindings:function(t,e){2&t&&i.Tb("nb-spinner-container",e.isSpinnerExist)},inputs:{spinnerStatus:["nbSpinnerStatus","spinnerStatus"],spinnerSize:["nbSpinnerSize","spinnerSize"],nbSpinner:"nbSpinner",spinnerMessage:["nbSpinnerMessage","spinnerMessage"]}}
1),xs([Object(i.y)("nbSpinnerMessage"),js("design:type",String)],xo.prototype,"spinnerMessage",void 0),xs([Object(i.y)("nbSpinnerStatus"),js("design:type",String)],xo.prototype,"spinnerStatus",void 0),xs([Object(i.y)("nbSpinnerSize"),js("design:type",String)],xo.prototype,"spinnerSize",void 0),xs([Object(i.y)("nbSpinner"),js("design:type",Boolean),js("design:paramtypes",[Boolean])],xo.prototype,"nbSpinner",null),xs([Object(i.s)("class.nb-spinner-container"),js("design:type",Object)],xo.prototype,"isSpinnerExist",void 0),xo=xs([js("design:paramtypes",[i.bb,i.k,i.M,i.o])],xo)),Ps=((Io=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=i.ac({type:Io}),Io.\u0275inj=i.Zb({factory:function(t){return new(t||Io)},imports:[[Fn]]}),Io),Rs=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Ds=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},zs=function(t,e){return function(n,r){e(n,r,t)}},Ns=_createClass((function t(){_classCallCheck(this,t)})),Vs=_createClass((function t(){_classCallCheck(this,t)})),Fs=new i.w("Datepicker Adapter"),Hs=new i.w("Date service options"),Bs=((Lo=jo=function(){function t(e,n,r,i,a){var o=this;_classCallCheck(this,t),this.document=e,this.datepickerAdapters=n,this.hostRef=r,this.dateService=i,this.changeDetector=a,this.alive=!0,this.isDatepickerReady=!1,this.onChange=function(){},this.onTouched=function(){},this.validator=B.k.compose([this.parseValidator,this.minValidator,this.maxValidator,this.filterValidator].map((function(t){return t.bind(o)}))),this.subscribeOnInputChange()}return _createClass(t,[{key:"setPicker",set:function(t){this.picker=t,this.setupPicker()}},{key:"input",get:function(){return this.hostRef.nativeElement}},{key:"inputValue",get:function(){return this.input.value}},{key:"ngOnDestroy",value:function(){this.alive=!1}},{key:"writeValue",value:function(t){this.isDatepickerReady?(this.writePicker(t),this.writeInput(t)):this.queue=t}},{key:"registerOnChange",value:function(t){this.onChange=t}},{key:"registerOnTouched",value:function(t){this.onTouched=t}},{key:"setDisabledState",value:function(t){this.input.disabled=t}},{key:"validate",value:function(){return this.validator(null)}},{key:"hidePicker",value:function(){this.input.focus(),this.picker.hide()}},{key:"parseValidator",value:function(){return""===this.inputValue?null:this.datepickerAdapter.isValid(this.inputValue,this.picker.format)?null:{nbDatepickerParse:{value:this.inputValue}}}},{key:"minValidator",value:function(){var t=this.picker.getValidatorConfig(),e=this.datepickerAdapter.parse(this.inputValue,this.picker.format);return!t.min||!e||this.dateService.compareDates(t.min,e)<=0?null:{nbDatepickerMin:{min:t.min,actual:e}}}},{key:"maxValidator",value:function(){var t=this.picker.getValidatorConfig(),e=this.datepickerAdapter.parse(this.inputValue,this.picker.format);return!t.max||!e||this.dateService.compareDates(t.max,e)>=0?null:{nbDatepickerMax:{max:t.max,actual:e}}}},{key:"filterValidator",value:function(){var t=this.picker.getValidatorConfig(),e=this.datepickerAdapter.parse(this.inputValue,this.picker.format);return t.filter&&e&&!t.filter(e)?{nbDatepickerFilter:!0}:null}},{key:"chooseDatepickerAdapter",value:function(){var t=this;if(this.datepickerAdapter=this.datepickerAdapters.find((function(e){var n=e.picker;return t.picker instanceof n})),this.noDatepickerAdapterProvided())throw new Error("No datepickerAdapter provided for picker")}},{key:"setupPicker",value:function(){var t=this;this.chooseDatepickerAdapter(),this.picker.attach(this.hostRef),this.inputValue&&(this.picker.value=this.datepickerAdapter.parse(this.inputValue,this.picker.format)),this.isDatepickerReady||this.picker.init.pipe(D((function(){return t.alive})),Object(F.a)(1),Object(H.a)((function(){return t.isDatepickerReady=!0})),Object(w.a)((function(){return!!t.queue}
1))).subscribe((function(){t.writeValue(t.queue),t.onChange(t.queue),t.changeDetector.detectChanges(),t.queue=void 0})),this.picker.valueChange.pipe(D((function(){return t.alive}))).subscribe((function(e){t.writePicker(e),t.writeInput(e),t.onChange(e),t.picker.shouldHide()&&t.hidePicker()})),Object(l.a)(this.picker.blur,Object(c.a)(this.input,"blur").pipe(Object(w.a)((function(){return!t.picker.isShown&&t.document.activeElement!==t.input})))).pipe(D((function(){return t.alive}))).subscribe((function(){return t.onTouched()}))}},{key:"writePicker",value:function(t){this.picker.value=t}},{key:"writeInput",value:function(t){var e=this.datepickerAdapter.format(t,this.picker.format);this.hostRef.nativeElement.value=e}},{key:"noDatepickerAdapterProvided",value:function(){return!(this.datepickerAdapter&&this.datepickerAdapter instanceof Ns)}},{key:"subscribeOnInputChange",value:function(){var t=this;Object(c.a)(this.input,"input").pipe(Object(m.a)((function(){return t.inputValue})),D((function(){return t.alive}))).subscribe((function(e){return t.handleInputChange(e)}))}},{key:"handleInputChange",value:function(t){var e=this.parseInputValue(t);this.onChange(e),this.writePicker(e)}},{key:"parseInputValue",value:function(t){return this.datepickerAdapter.isValid(t,this.picker.format)?this.datepickerAdapter.parse(t,this.picker.format):null}}]),t}()).\u0275fac=function(t){return new(t||Lo)(i.cc(wn),i.cc(Fs),i.cc(i.o),i.cc(na),i.cc(i.i))},Lo.\u0275dir=i.Xb({type:Lo,selectors:[["input","nbDatepicker",""]],inputs:{setPicker:["nbDatepicker","setPicker"]},features:[i.Ob([{provide:B.e,useExisting:Object(i.gb)((function(){return jo})),multi:!0},{provide:B.d,useExisting:Object(i.gb)((function(){return jo})),multi:!0}])]}),Rs([Object(i.y)("nbDatepicker"),Ds("design:type",Vs),Ds("design:paramtypes",[Vs])],Lo.prototype,"setPicker",null),Lo=jo=Rs([zs(0,Object(i.v)(wn)),zs(1,Object(i.v)(Fs)),Ds("design:paramtypes",[Object,Array,i.o,na,i.i])],Lo)),Us=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},qs=((Po=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"attach",value:function(t){return this.overlayContainer.attachComponentPortal(t)}}]),n}(Cr)).\u0275fac=function(t){return uu(t||Po)},Po.\u0275cmp=i.Wb({type:Po,selectors:[["nb-datepicker-container"]],viewQuery:function(t,e){var n;1&t&&i.Oc(Or,!0),2&t&&i.Hc(n=i.rc())&&(e.overlayContainer=n.first)},features:[i.Mb],decls:2,vars:0,consts:[[1,"arrow"]],template:function(t,e){1&t&&(i.dc(0,"span",0),i.dc(1,"nb-overlay-container"))},directives:[Or],styles:["[_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{position:absolute;width:0;height:0}[_nghost-%COMP%] nb-overlay-container .primitive-overlay{padding:0.75rem 1rem}"]}),function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);a>3&&o&&Object.defineProperty(e,n,o)}([Object(i.Z)(Or,{static:!0}),Us("design:type",Or)],Po.prototype,"overlayContainer",void 0),Po),Ws=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Gs=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},Ks=function(t,e){return function(n,r){e(n,r,t)}},Ys=((No=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a,u,c){var l;return _classCallCheck(this,n),(l=e.call(this)).overlay=t,l.positionBuilder=r,l.triggerStrategyBuilder=i,l.cfr=a,l.dateService=u,l.dateServiceOptions=c,l.size=wi.MEDIUM,l.init$=new o.a,l.onChange$=new s.a,l.alive=!0,l.blur$=new s.a,l}return _createClass(n,[{key:"picker",get:function(){return this.pickerRef&&this.pickerRef.instance}},{key:"valueChange",get:function(){return this.onChange$.asObservable()}},{key:"isShown",get:function(){return this.ref&&this.ref.hasAttached()}},{key:"init",get:function(){return this.init$.asObservable()}},{key:"blur",get:function(){return this.blur$.asObservable()}},{key:"ngOnInit",value:function(){this.checkFormat()}},{key:"ngOnChanges",value:function(t){t.format&&!t.format.isFirstChange()&&this.checkFormat()}},{key:"ngAfterViewInit",value:function(){this.init$.next()}},{key:"ngOnDestroy",value:function(){this.alive=!1,this.hide(),this.init$.complete(),this.ref&&this.ref.dispose(),this.triggerStrategy&&this.triggerStrategy.destroy()}},{key:"attach",value:function(t){this.hostRef=t,this.subscribeOnTriggers()}},{key:"getValidatorConfig",value:function(){return{min:this.min,max:this.max,filter:this.filter}}},{key:"show",value:function(){this.ref||this.createOverlay(),this.openDatepicker()}},{key:"shouldHide",value:function(){return this.hideOnSelect&&!!this.value}},{key:"hide",value:function(){this.ref&&this.ref.detach(),this.picker&&(this.queue=this.value,this.pickerRef.destroy(),this.pickerRef=null,this.container=null)}},{key:"createOverlay",value:function(){this.positionStrategy=this.createPositionStrategy(),this.ref=this.overlay.create({positionStrategy:this.positionStrategy,scrollStrategy:this.overlay.scrollStrategies.reposition()}),this.subscribeOnPositionChange()}},{key:"openDatepicker",value:function(){this.container=this.ref.attach(new Yn(qs,null,null,this.cfr)),this.instantiatePicker(),this.subscribeOnValueChange(),this.writeQueue(),this.patchWithInputs()}},{key:"createPositionStrategy",value:function(){return this.positionBuilder.connectedTo(this.hostRef).position(fr.BOTTOM).adjustment(hr.COUNTERCLOCKWISE)}},{key:"subscribeOnPositionChange",value:function(){var t=this;this.positionStrategy.positionChange.pipe(D((function(){return t.alive}))).subscribe((function(e){return n=t.container,Object.assign(n.instance,{position:e}),n.changeDetectorRef.detectChanges(),n;var n}))}},{key:"createTriggerStrategy",value:function(){var t=this;return this.triggerStrategyBuilder.trigger(Dr.FOCUS).host(this.hostRef.nativeElement).container((function(){return t.container})).build()}},{key:"subscribeOnTriggers",value:function(){var t=this;this.triggerStrategy=this.createTriggerStrategy(),this.triggerStrategy.show$.subscribe((function(){return t.show()})),this.triggerStrategy.hide$.subscribe((function(){t.blur$.next(),t.hide()}))}},{key:"instantiatePicker",value:function(){this.pickerRef=this.container.instance.attach(new Yn(this.pickerClass,null,null,this.cfr))}},{key:"subscribeOnValueChange",value:function(){var t=this;this.pickerValueChange.subscribe((function(e){t.onChange$.next(e)}))}},{key:"patchWithInputs",value:function(){this.picker.boundingMonth=this.boundingMonth,this.picker.startView=this.startView,this.picker.min=this.min,this.picker.max=this.max,this.picker.filter=this.filter,this.picker._cellComponent=this.dayCellComponent,this.picker.monthCellComponent=this.monthCellComponent,this.picker._yearCellComponent=this.yearCellComponent,this.picker.size=this.size,this.picker.showHeader=this.showHeader,this.picker.visibleDate=this.visibleDate,this.picker.showWeekNumber=this.showWeekNumber,this.picker.weekNumberSymbol=this.weekNumberSymbol}},{key:"checkFormat",value:function(){if("native"===this.dateService.getId()&&this.format)throw new Error('Can\'t format native date. To use custom formatting you have to install @nebular/moment or @nebular/date-fns package and import NbMomentDateModule or NbDateFnsDateModule accordingly.More information at "Formatting issue" https://akveo.github.io/nebular/docs/components/datepicker/overview#nbdatepickercomponent');var t=this.format||this.dateServiceOptions&&this.dateServiceOptions.format;if("date-fns"===this.dateService.getId()&&!t)throw new Error("format is required when using NbDateFnsDateModule")}}]),n}(Vs)).\u0275fac=function(t){i.pc()},No.\u0275dir=i.Xb({type:No,features:[i.Mb,i.Nb]}),No),Qs=((zo=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a,o,s,u){var c;return _classCallCheck(this,n),(c=e.call(this,a,r,i,o,s,u)).boundingMonth=!0,c.startView=_i.DATE,c.size=wi.MEDIUM,c.hideOnSelect=!0,c.showHeader=!0,c.weekNumberSymbol="#",c._showWeekNumber=!1,c}return _createClass(n,[{key:"showWeekNumber",get:function(){return this._showWeekNumber},set:function(t){this._showWeekNumber=ki(t)}},{key:"pickerValueChange",get:function(){}},{key:"value",get:function(){},set:function(t){}}
1,{key:"writeQueue",value:function(){}}]),n}(Ys)).\u0275fac=function(t){return new(t||zo)(i.cc(wn),i.cc(_r),i.cc(Ur),i.cc(Er),i.cc(i.k),i.cc(na),i.cc(Hs,8))},zo.\u0275cmp=i.Wb({type:zo,selectors:[["ng-component"]],inputs:{boundingMonth:"boundingMonth",startView:"startView",size:"size",hideOnSelect:"hideOnSelect",showHeader:"showHeader",weekNumberSymbol:"weekNumberSymbol",showWeekNumber:"showWeekNumber",format:"format",min:"min",max:"max",filter:"filter",dayCellComponent:"dayCellComponent",monthCellComponent:"monthCellComponent",yearCellComponent:"yearCellComponent",visibleDate:"visibleDate"},features:[i.Mb],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Ws([Object(i.y)(),Gs("design:type",String)],zo.prototype,"format",void 0),Ws([Object(i.y)(),Gs("design:type",Boolean)],zo.prototype,"boundingMonth",void 0),Ws([Object(i.y)(),Gs("design:type",String)],zo.prototype,"startView",void 0),Ws([Object(i.y)(),Gs("design:type",Object)],zo.prototype,"min",void 0),Ws([Object(i.y)(),Gs("design:type",Object)],zo.prototype,"max",void 0),Ws([Object(i.y)(),Gs("design:type",Function)],zo.prototype,"filter",void 0),Ws([Object(i.y)(),Gs("design:type",i.W)],zo.prototype,"dayCellComponent",void 0),Ws([Object(i.y)(),Gs("design:type",i.W)],zo.prototype,"monthCellComponent",void 0),Ws([Object(i.y)(),Gs("design:type",i.W)],zo.prototype,"yearCellComponent",void 0),Ws([Object(i.y)(),Gs("design:type",String)],zo.prototype,"size",void 0),Ws([Object(i.y)(),Gs("design:type",Object)],zo.prototype,"visibleDate",void 0),Ws([Object(i.y)(),Gs("design:type",Boolean)],zo.prototype,"hideOnSelect",void 0),Ws([Object(i.y)(),Gs("design:type",Boolean)],zo.prototype,"showHeader",void 0),Ws([Object(i.y)(),Gs("design:type",String)],zo.prototype,"weekNumberSymbol",void 0),Ws([Object(i.y)(),Gs("design:type",Boolean),Gs("design:paramtypes",[Boolean])],zo.prototype,"showWeekNumber",null),zo=Ws([Ks(0,Object(i.v)(wn)),Ks(6,Object(i.H)()),Ks(6,Object(i.v)(Hs)),Gs("design:paramtypes",[Object,_r,Ur,Er,i.k,na,Object])],zo)),Xs=((Do=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).pickerClass=Zi,t}return _createClass(n,[{key:"date",set:function(t){this.value=t}},{key:"dateChange",get:function(){return this.valueChange}},{key:"value",get:function(){return this.picker?this.picker.date:void 0},set:function(t){this.picker?t&&(this.visibleDate=t,this.picker.visibleDate=t,this.picker.date=t):this.queue=t}},{key:"pickerValueChange",get:function(){return this.picker.dateChange}},{key:"writeQueue",value:function(){if(this.queue){var t=this.queue;this.queue=null,this.value=t}}}]),n}(Qs)).\u0275fac=function(t){return cu(t||Do)},Do.\u0275cmp=i.Wb({type:Do,selectors:[["nb-datepicker"]],inputs:{date:"date"},outputs:{dateChange:"dateChange"},features:[i.Mb],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Ws([Object(i.y)(),Gs("design:type",Object),Gs("design:paramtypes",[Object])],Do.prototype,"date",null),Ws([Object(i.I)(),Gs("design:type",i.q),Gs("design:paramtypes",[])],Do.prototype,"dateChange",null),Do),Zs=((Ro=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).pickerClass=oo,t}return _createClass(n,[{key:"range",set:function(t){this.value=t}},{key:"rangeChange",get:function(){return this.valueChange}},{key:"value",get:function(){return this.picker?this.picker.range:void 0},set:function(t){if(this.picker){if(t){var e=t&&t.start;this.visibleDate=e,this.picker.visibleDate=e,this.picker.range=t}}else this.queue=t}},{key:"pickerValueChange",get:function(){return this.picker.rangeChange}},{key:"shouldHide",value:function(){return _get(_getPrototypeOf(n.prototype),"shouldHide",this).call(this)&&!!(this.value&&this.value.start&&this.value.end)}},{key:"writeQueue",value:function(){if(this.queue){var t=this.queue;this.queue=null,this.value=t}}}]),n}(Qs)).\u0275fac=function(t){return lu(t||Ro)},Ro.\u0275cmp=i.Wb({type:Ro,selectors:[["nb-rangepicker"]],inputs:{range:"range"},outputs:{rangeChange:"rangeChange"},features:[i.Mb],decls:0,vars:0,template:function(t,e){},encapsulation:2}),Ws([Object(i.y)(),Gs("design:type",Object),Gs("design:paramtypes",[Object])],Ro.prototype,"range",null),Ws([Object(i.I)(),Gs("design:type",i.q),Gs("design:paramtypes",[])],Ro.prototype,"rangeChange",null),Ro),$s=function(t,e,n,r){var i,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(a<3?i(o):a>3?i(e,n,o):i(e,n))||o);return a>3&&o&&Object.defineProperty(e,n,o),o},Js=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},tu=((Fo=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this)).dateService=t,r.picker=Xs,r}return _createClass(n,[{key:"parse",value:function(t,e){return this.dateService.parse(t,e)}},{key:"format",value:function(t,e){return this.dateService.format(t,e)}},{key:"isValid",value:function(t,e){return this.dateService.isValidDateString(t,e)}}]),n}(Ns)).\u0275fac=function(t){return new(t||Fo)(i.mc(na))},Fo.\u0275prov=i.Yb({token:Fo,factory:Fo.\u0275fac}),Fo=$s([Js("design:paramtypes",[na])],Fo)),eu=((Vo=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this)).dateService=t,r.picker=Zs,r}return _createClass(n,[{key:"parse",value:function(t,e){var n=_slicedToArray(t.split("-").map((function(t){return t.trim()})),2),r=n[0],i=n[1];return{start:this.dateService.parse(r,e),end:this.dateService.parse(i,e)}}},{key:"format",value:function(t,e){if(!t)return"";var n=this.dateService.format(t.start,e);if(!this.dateService.isValidDateString(n,e))return"";var r=this.dateService.format(t.end,e);return this.dateService.isValidDateString(r,e)?"".concat(n," - ").concat(r):n}},{key:"isValid",value:function(t,e){var n=_slicedToArray(t.split("-").map((function(t){return t.trim()})),2),r=n[0],i=n[1];return this.dateService.isValidDateString(r,e)&&this.dateService.isValidDateString(i,e)}}]),n}(Ns)).\u0275fac=function(t){return new(t||Vo)(i.mc(na))},Vo.\u0275prov=i.Yb({token:Vo,factory:Vo.\u0275fac}),Vo=$s([Js("design:paramtypes",[na])],Vo)),nu=((Bo=Ho=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){return{ngModule:Ho,providers:[a.d,{provide:Fs,multi:!0,useClass:tu},{provide:Fs,multi:!0,useClass:eu}]}}}]),t}()).\u0275mod=i.ac({type:Bo}),Bo.\u0275inj=i.Zb({factory:function(t){return new(t||Bo)},imports:[[qr,Ja,so]]}
1),Bo),ru=i.kc(Kn),iu=i.kc(Qn),au=i.kc(Xn),ou=i.kc(Zn),su=i.kc(rr),uu=i.kc(qs),cu=i.kc(Xs),lu=i.kc(Zs)},bHdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("5+tZ"),i=n("SpAZ");function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("5+tZ");function i(t,e){return Object(r.a)(t,e,1)}},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",(function(){return r}))},cp0P:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("HDdC"),i=n("DH7j"),a=n("lJxs"),o=n("XoHu"),s=n("Cfvw");function u(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(1===e.length){var r=e[0];if(Object(i.a)(r))return c(r,null);if(Object(o.a)(r)&&Object.getPrototypeOf(r)===Object.prototype){var s=Object.keys(r);return c(s.map((function(t){return r[t]})),s)}}if("function"==typeof e[e.length-1]){var u=e.pop();return c(e=1===e.length&&Object(i.a)(e[0])?e[0]:e,null).pipe(Object(a.a)((function(t){return u.apply(void 0,_toConsumableArray(t))})))}return c(e,null)}function c(t,e){return new r.a((function(n){var r=t.length;if(0!==r)for(var i=new Array(r),a=0,o=0,u=function(u){var c=Object(s.a)(t[u]),l=!1;n.add(c.subscribe({next:function(t){l||(l=!0,o++),i[u]=t},error:function(t){return n.error(t)},complete:function(){++a!==r&&l||(o===r&&n.next(e?e.reduce((function(t,e,n){return t[e]=i[n],t}),{}):i),n.complete())}}))},c=0;c<r;c++)u(c);else n.complete()}))}},eIep:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n("l7GE"),i=n("51Dv"),a=n("ZUHj"),o=n("lJxs"),s=n("Cfvw");function u(t,e){return"function"==typeof e?function(n){return n.pipe(u((function(n,r){return Object(s.a)(t(n,r)).pipe(Object(o.a)((function(t,i){return e(n,t,r,i)})))})))}:function(e){return e.lift(new c(t))}}var c=function(){function t(e){_classCallCheck(this,t),this.project=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new l(t,this.project))}}]),t}(),l=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 o=new i.a(this,e,n),s=this.destination;s.add(o),this.innerSubscription=Object(a.a)(this,t,void 0,void 0,o),this.innerSubscription!==o&&s.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}(r.a)},fXoL:function(t,e,n){"use strict";n.d(e,"a",(function(){return La})),n.d(e,"b",(function(){return hc})),n.d(e,"c",(function(){return oc})),n.d(e,"d",(function(){return ic})),n.d(e,"e",(function(){return ac})),n.d(e,"f",(function(){return nl})),n.d(e,"g",(function(){return Gc})),n.d(e,"h",(function(){return v})),n.d(e,"i",(function(){return ga})),n.d(e,"j",(function(){return kc})),n.d(e,"k",(function(){return Os})),n.d(e,"l",(function(){return Da})),n.d(e,"m",(function(){return Ra})),n.d(e,"n",(function(){return pc})),n.d(e,"o",(function(){return Ss})),n.d(e,"p",(function(){return An})),n.d(e,"q",(function(){return ju})),n.d(e,"r",(function(){return y})),n.d(e,"s",(function(){return nc})),n.d(e,"t",(function(){return rc})),n.d(e,"u",(function(){return Z})),n.d(e,"v",(function(){return f})),n.d(e,"w",(function(){return X})),n.d(e,"x",(function(){return ja})),n.d(e,"y",(function(){return tc})),n.d(e,"z",(function(){return qs})),n.d(e,"A",(function(){return Ws})),n.d(e,"B",(function(){return dc})),n.d(e,"C",(function(){return ht})),n.d(e,"D",(function(){return Yc})),n.d(e,"E",(function(){return lt})),n.d(e,"F",(function(){return Hc})),n.d(e,"G",(function(){return Ec})),n.d(e,"H",(function(){return d})),n.d(e,"I",(function(){return ec})),n.d(e,"J",(function(){return lc})),n.d(e,"K",(function(){return cc})),n.d(e,"L",(function(){return Pu})),n.d(e,"M",(function(){return Ms})),n.d(e,"N",(function(){return As})),n.d(e,"O",(function(){return Ts})),n.d(e,"P",(function(){return xs})),n.d(e,"Q",(function(){return pr})),n.d(e,"R",(function(){return ls})),n.d(e,"S",(function(){return g})),n.d(e,"T",(function(){return Zc})),n.d(e,"U",(function(){return Qs})),n.d(e,"V",(function(){return Pc})),n.d(e,"W",(function(){return va})),n.d(e,"X",(function(){return Ls})),n.d(e,"Y",(function(){return js})),n.d(e,"Z",(function(){return Na})),n.d(e,"ab",(function(){return za})),n.d(e,"bb",(function(){return Zs}
1)),n.d(e,"cb",(function(){return _t})),n.d(e,"db",(function(){return Ga})),n.d(e,"eb",(function(){return Bc})),n.d(e,"fb",(function(){return Wn})),n.d(e,"gb",(function(){return P})),n.d(e,"hb",(function(){return ot})),n.d(e,"ib",(function(){return qn})),n.d(e,"jb",(function(){return tl})),n.d(e,"kb",(function(){return Dc})),n.d(e,"lb",(function(){return fc})),n.d(e,"mb",(function(){return ma})),n.d(e,"nb",(function(){return du})),n.d(e,"ob",(function(){return fr})),n.d(e,"pb",(function(){return vr})),n.d(e,"qb",(function(){return Qn})),n.d(e,"rb",(function(){return Rn})),n.d(e,"sb",(function(){return zn})),n.d(e,"tb",(function(){return Hn})),n.d(e,"ub",(function(){return Vn})),n.d(e,"vb",(function(){return Nn})),n.d(e,"wb",(function(){return Fn})),n.d(e,"xb",(function(){return cu})),n.d(e,"yb",(function(){return Jc})),n.d(e,"zb",(function(){return lu})),n.d(e,"Ab",(function(){return hu})),n.d(e,"Bb",(function(){return Dn})),n.d(e,"Cb",(function(){return B})),n.d(e,"Db",(function(){return Ka})),n.d(e,"Eb",(function(){return yo})),n.d(e,"Fb",(function(){return go})),n.d(e,"Gb",(function(){return Wa})),n.d(e,"Hb",(function(){return uu})),n.d(e,"Ib",(function(){return qt})),n.d(e,"Jb",(function(){return x})),n.d(e,"Kb",(function(){return Pn})),n.d(e,"Lb",(function(){return cs})),n.d(e,"Mb",(function(){return ns})),n.d(e,"Nb",(function(){return hs})),n.d(e,"Ob",(function(){return ws})),n.d(e,"Pb",(function(){return Br})),n.d(e,"Qb",(function(){return $a})),n.d(e,"Rb",(function(){return Ro})),n.d(e,"Sb",(function(){return Zo})),n.d(e,"Tb",(function(){return Po})),n.d(e,"Ub",(function(){return Ku})),n.d(e,"Vb",(function(){return wr})),n.d(e,"Wb",(function(){return Ot})),n.d(e,"Xb",(function(){return xt})),n.d(e,"Yb",(function(){return w})),n.d(e,"Zb",(function(){return k})),n.d(e,"ac",(function(){return Tt})),n.d(e,"bc",(function(){return jt})),n.d(e,"cc",(function(){return no})),n.d(e,"dc",(function(){return co})),n.d(e,"ec",(function(){return fo})),n.d(e,"fc",(function(){return ho})),n.d(e,"gc",(function(){return lo})),n.d(e,"hc",(function(){return uo})),n.d(e,"ic",(function(){return so})),n.d(e,"jc",(function(){return po})),n.d(e,"kc",(function(){return Cn})),n.d(e,"lc",(function(){return $o})),n.d(e,"mc",(function(){return at})),n.d(e,"nc",(function(){return ro})),n.d(e,"oc",(function(){return Ju})),n.d(e,"pc",(function(){return io})),n.d(e,"qc",(function(){return vo})),n.d(e,"rc",(function(){return Yu})),n.d(e,"sc",(function(){return ze})),n.d(e,"tc",(function(){return De})),n.d(e,"uc",(function(){return _o})),n.d(e,"vc",(function(){return Eu})),n.d(e,"wc",(function(){return Au})),n.d(e,"xc",(function(){return Tu})),n.d(e,"yc",(function(){return Mu})),n.d(e,"zc",(function(){return Co})),n.d(e,"Ac",(function(){return ko})),n.d(e,"Bc",(function(){return ao})),n.d(e,"Cc",(function(){return Oo})),n.d(e,"Dc",(function(){return mu})),n.d(e,"Ec",(function(){return bu})),n.d(e,"Fc",(function(){return _u})),n.d(e,"Gc",(function(){return wu})),n.d(e,"Hc",(function(){return Uu})),n.d(e,"Ic",(function(){return eo})),n.d(e,"Jc",(function(){return rn})),n.d(e,"Kc",(function(){return le})),n.d(e,"Lc",(function(){return mr})),n.d(e,"Mc",(function(){return _r})),n.d(e,"Nc",(function(){return Mt})),n.d(e,"Oc",(function(){return qu})),n.d(e,"Pc",(function(){return Lo})),n.d(e,"Qc",(function(){return to})),n.d(e,"Rc",(function(){return $u})),n.d(e,"Sc",(function(){return Ko})),n.d(e,"Tc",(function(){return Yo})),n.d(e,"Uc",(function(){return Qo})),n.d(e,"Vc",(function(){return Xo})),n.d(e,"Wc",(function(){return Jo})),n.d(e,"Xc",(function(){return Wu}));var r=n("XNiG"),i=n("quSY"),a=n("HDdC"),o=n("VRyK"),s=n("w1tV");function u(t){return{toString:t}.toString()}function c(t){return function(){if(t){var e=t.apply(void 0,arguments);for(var n in e)this[n]=e[n]}}}function l(t,e,n){return u((function(){var r=c(e);function i(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(this instanceof i)return r.apply(this,e),this;var a=_construct(i,e);return o.annotation=a,o;function o(t,e,n){for(var r=t.hasOwnProperty("__parameters__")?t.__parameters__:Object.defineProperty(t,"__parameters__",{value:[]}).__parameters__;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(a),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i}))}function h(t,e,n,r){return u((function(){var i=c(e);function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(this instanceof a)return i.apply(this,e),this;var o=_construct(a,e);return function(t,n){var i=t.constructor,a=i.hasOwnProperty("__prop__metadata__")?i.__prop__metadata__:Object.defineProperty(i,"__prop__metadata__",{value:{}}).__prop__metadata__;a[n]=a.hasOwnProperty(n)&&a[n]||[],a[n].unshift(o),r&&r.apply(void 0,[t,n].concat(e))}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=t,a.annotationCls=a,a}))}var f=l("Inject",(function(t){return{token:t}})),d=l("Optional"),p=l("Self"),g=l("SkipSelf"),y=l("Host"),v=l("Attribute",(function(t){return{attributeName:t}})),m=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function b(t){for(var e in t)if(t[e]===b)return e;throw Error("Could not find renamed property on target object.")}function _(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function w(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function k(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function C(t){return O(t,t[E])||O(t,t[M])}function O(t,e){return e&&e.token===t?e:null}function S(t){return t&&(t.hasOwnProperty(A)||t.hasOwnProperty(I))?t[A]:null}var E=b({"\u0275prov":b}),A=b({"\u0275inj":b}),T=b({"\u0275provFallback":b}),M=b({ngInjectableDef:b}),I=b({ngInjectorDef:b});function x(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(x).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function j(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var L=b({__forward_ref__:b});function P(t){return t.__forward_ref__=P,t.toString=function(){return x(this())},t}function R(t){return D(t)?t():t}function D(t){return"function"==typeof t&&t.hasOwnProperty(L)&&t.__forward_ref__===P}var z,N="undefined"!=typeof globalThis&&globalThis,V="undefined"!=typeof window&&window,F="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,H="undefined"!=typeof global&&global,B=N||H||V||F,U=b({"\u0275cmp":b}),q=b({"\u0275dir":b}),W=b({"\u0275pipe":b}),G=b({"\u0275mod":b}),K=b({"\u0275loc":b}),Y=b({"\u0275fac":b}),Q=b({__NG_ELEMENT_ID__:b}),X=function(){function t(e,n){_classCallCheck(this,t),this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=w({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return _createClass(t,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),t}(),Z=new X("INJECTOR",-1),$={},J=/\n/gm,tt=b({provide:String,useValue:b}),et=void 0;function nt(t){var e=et;return et=t,e}function rt(t){var e=z;return z=t,e}function it(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.Default;if(void 0===et)throw new Error("inject() must be called from an injection context");return null===et?st(t,void 0,e):et.get(t,e&m.Optional?null:void 0,e)}function at(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.Default;return(z||it)(R(t),e)}var ot=at;function st(t,e,n){var r=C(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&m.Optional)return null;if(void 0!==e)return e;throw new Error("Injector: NOT_FOUND [".concat(x(t),"]"))}function ut(t){for(var e=[],n=0;n<t.length;n++){var r=R(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,a=m.Default,o=0;o<r.length;o++){var s=r[o];s instanceof d||"Optional"===s.ngMetadataName||s===d?a|=m.Optional:s instanceof g||"SkipSelf"===s.ngMetadataName||s===g?a|=m.SkipSelf:s instanceof p||"Self"===s.ngMetadataName||s===p?a|=m.Self:i=s instanceof f||s===f?s.token:s}e.push(at(i,a))}else e.push(at(r))}return e}var ct=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$;if(e===$){var n=new Error("NullInjectorError: No provider for ".concat(x(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),lt=_createClass((function t(){_classCallCheck(this,t)})),ht=_createClass((function t(){_classCallCheck(this,t)}));function ft(t,e){t.forEach((function(t){return Array.isArray(t)?ft(t,e):e(t)}))}function dt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function pt(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function gt(t,e){for(var n=[],r=0;r<t;r++)n.push(e);return n}function yt(t,e,n){var r=mt(t,e);return 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;
1else{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 vt(t,e){var n=mt(t,e);if(n>=0)return t[1|n]}function mt(t,e){return function(t,e,n){for(var r=0,i=t.length>>1;i!==r;){var a=r+(i-r>>1),o=t[a<<1];if(e===o)return a<<1;o>e?i=a:r=a+1}return~(i<<1)}(t,e)}var bt=function(){var t={OnPush:0,Default:1};return t[t.OnPush]="OnPush",t[t.Default]="Default",t}(),_t=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}(),wt={},kt=[],Ct=0;function Ot(t){return u((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===bt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||kt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||_t.Emulated,id:"c",styles:t.styles||kt,_:null,setInput:null,schemas:t.schemas||null,tView:null},a=t.directives,o=t.features,s=t.pipes;return i.id+=Ct++,i.inputs=It(t.inputs,r),i.outputs=It(t.outputs),o&&o.forEach((function(t){return t(i)})),i.directiveDefs=a?function(){return("function"==typeof a?a():a).map(St)}:null,i.pipeDefs=s?function(){return("function"==typeof s?s():s).map(Et)}:null,i}))}function St(t){return Lt(t)||function(t){return t[q]||null}(t)}function Et(t){return function(t){return t[W]||null}(t)}var At={};function Tt(t){var e={type:t.type,bootstrap:t.bootstrap||kt,declarations:t.declarations||kt,imports:t.imports||kt,exports:t.exports||kt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&u((function(){At[t.id]=t.type})),e}function Mt(t,e){return u((function(){var n=Rt(t,!0);n.declarations=e.declarations||kt,n.imports=e.imports||kt,n.exports=e.exports||kt}))}function It(t,e){if(null==t)return wt;var n={};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),n[i]=r,e&&(e[i]=a)}return n}var xt=Ot;function jt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Lt(t){return t[U]||null}function Pt(t,e){return t.hasOwnProperty(Y)?t[Y]:null}function Rt(t,e){var n=t[G]||null;if(!n&&!0===e)throw new Error("Type ".concat(x(t)," does not have '\u0275mod' property."));return n}function Dt(t){return Array.isArray(t)&&"object"==typeof t[1]}function zt(t){return Array.isArray(t)&&!0===t[1]}function Nt(t){return 0!=(8&t.flags)}function Vt(t){return 2==(2&t.flags)}function Ft(t){return 1==(1&t.flags)}function Ht(t){return null!==t.template}function Bt(t){return 0!=(512&t[2])}var Ut=void 0;function qt(t){Ut=t}function Wt(){return void 0!==Ut?Ut:"undefined"!=typeof document?document:void 0}function Gt(t){return!!t.listen}var Kt={createRenderer:function(t,e){return Wt()}};function Yt(t){for(;Array.isArray(t);)t=t[0];return t}function Qt(t,e){return Yt(e[t+20])}function Xt(t,e){return Yt(e[t.index])}function Zt(t,e){return t.data[e+20]}function $t(t,e){return t[e+20]}function Jt(t,e){var n=e[t];return Dt(n)?n:n[0]}function te(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function ee(t){return 4==(4&t[2])}function ne(t){return 128==(128&t[2])}function re(t,e){return null===t||null==e?null:t[e]}function ie(t){t[18]=0}function ae(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 oe={lFrame:Me(null),bindingsEnabled:!0,checkNoChangesMode:!1};function se(){return oe.bindingsEnabled}function ue(){return oe.lFrame.lView}function ce(){return oe.lFrame.tView}function le(t){oe.lFrame.contextLView=t}function he(){return oe.lFrame.previousOrParentTNode}function fe(t,e){oe.lFrame.previousOrParentTNode=t,oe.lFrame.isParent=e}function de(){return oe.lFrame.isParent}function pe(){oe.lFrame.isParent=!1}
1function ge(){return oe.checkNoChangesMode}function ye(t){oe.checkNoChangesMode=t}function ve(){var t=oe.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function me(){return oe.lFrame.bindingIndex}function be(){return oe.lFrame.bindingIndex++}function _e(t){var e=oe.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function we(t,e){var n=oe.lFrame;n.bindingIndex=n.bindingRootIndex=t,ke(e)}function ke(t){oe.lFrame.currentDirectiveIndex=t}function Ce(t){var e=oe.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function Oe(){return oe.lFrame.currentQueryIndex}function Se(t){oe.lFrame.currentQueryIndex=t}function Ee(t,e){var n=Te();oe.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function Ae(t,e){var n=Te(),r=t[1];oe.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=r,n.contextLView=t,n.bindingIndex=r.bindingStartIndex}function Te(){var t=oe.lFrame,e=null===t?null:t.child;return null===e?Me(t):e}function Me(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 Ie(){var t=oe.lFrame;return oe.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}var xe=Ie;function je(){var t=Ie();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 Le(){return oe.lFrame.selectedIndex}function Pe(t){oe.lFrame.selectedIndex=t}function Re(){var t=oe.lFrame;return Zt(t.tView,t.selectedIndex)}function De(){oe.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function ze(){oe.lFrame.currentNamespace=null}function Ne(t,e){for(var n=e.directiveStart,r=e.directiveEnd;n<r;n++){var i=t.data[n];i.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(-n,i.afterContentInit),i.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,i.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i.afterContentChecked)),i.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(-n,i.afterViewInit),i.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,i.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,i.afterViewChecked)),null!=i.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,i.onDestroy)}}function Ve(t,e,n){Be(t,e,3,n)}function Fe(t,e,n,r){(3&t[2])===n&&Be(t,e,n,r)}function He(t,e){var n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Be(t,e,n,r){for(var i=null!=r?r:-1,a=0,o=void 0!==r?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(a=e[o],null!=r&&a>=r)break}else e[o]<0&&(t[18]+=65536),(a<i||-1==i)&&(Ue(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Ue(t,e,n,r){var i=n[r]<0,a=n[r+1],o=t[i?-n[r]:n[r]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,a.call(o)):a.call(o)}var qe=_createClass((function t(e,n,r){_classCallCheck(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}));function We(t,e,n){for(var r=Gt(t),i=0;i<n.length;){var a=n[i];if("number"==typeof a){if(0!==a)break;i++;var o=n[i++],s=n[i++],u=n[i++];r?t.setAttribute(e,s,u,o):e.setAttributeNS(o,s,u)}else{var c=a,l=n[++i];Ke(c)?r&&t.setProperty(e,c,l):r?t.setAttribute(e,c,l):e.setAttribute(c,l),i++}}return i}function Ge(t){return 3===t||4===t||6===t}function Ke(t){return 64===t.charCodeAt(0)}function Ye(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else for(var n=-1,r=0;r<e.length;r++){var i=e[r];"number"==typeof i?n=i:0===n||Qe(t,n,i,null,-1===n||2===n?e[++r]:null)}return t}function Qe(t,e,n,r,i){var a=0,o=t.length;if(-1===e)o=-1;else for(;a<t.length;){var s=t[a++];if("number"==typeof s){if(s===e){o=-1;break}if(s>e){o=a-1;break}}}for(;a<t.length;){var u=t[a];if("number"==typeof u)break;if(u===n){if(null===r)return void(null!==i&&(t[a+1]=i));if(r===t[a+1])return void(t[a+2]=i)}a++,null!==r&&a++,null!==i&&a++}-1!==o&&(t.splice(o,0,e),a=o+1),t.splice(a++,0,n),null!==r&&t.splice(a++,0,r),null!==i&&t.splice(a++,0,i)}function Xe(t){return-1!==t}function Ze(t){return 32767&t}function $e(t){return t>>16}function Je(t,e){for(var n=$e(t),r=e;n>0;)r=r[15],n--;return r}function tn(t){return"string"==typeof t?t:null==t?"":""+t}function en(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.n
1ame||t.type.toString():tn(t)}var nn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(B);function rn(t){return{name:"window",target:t.ownerDocument.defaultView}}function an(t){return t instanceof Function?t():t}var on=!0;function sn(t){var e=on;return on=t,e}var un=0;function cn(t,e){var n=hn(t,e);if(-1!==n)return n;var r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,ln(r.data,t),ln(e,null),ln(r.blueprint,null));var i=fn(t,e),a=t.injectorIndex;if(Xe(i))for(var o=Ze(i),s=Je(i,e),u=s[1].data,c=0;c<8;c++)e[a+c]=s[o+c]|u[o+c];return e[a+8]=i,a}function ln(t,e){t.push(0,0,0,0,0,0,0,0,e)}function hn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function fn(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 dn(t,e,n){!function(t,e,n){var r="string"!=typeof n?n[Q]:n.charCodeAt(0)||0;null==r&&(r=n[Q]=un++);var i=255&r,a=1<<i,o=64&i,s=32&i,u=e.data;128&i?o?s?u[t+7]|=a:u[t+6]|=a:s?u[t+5]|=a:u[t+4]|=a:o?s?u[t+3]|=a:u[t+2]|=a:s?u[t+1]|=a:u[t]|=a}(t,e,n)}function pn(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==t){var a=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t[Q];return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof a){Ee(e,t);try{var o=a();if(null!=o||r&m.Optional)return o;throw new Error("No provider for ".concat(en(n),"!"))}finally{xe()}}else if("number"==typeof a){if(-1===a)return new wn(t,e);var s=null,u=hn(t,e),c=-1,l=r&m.Host?e[16][6]:null;for((-1===u||r&m.SkipSelf)&&(c=-1===u?fn(t,e):e[u+8],_n(r,!1)?(s=e[1],u=Ze(c),e=Je(c,e)):u=-1);-1!==u;){c=e[u+8];var h=e[1];if(bn(a,u,h.data)){var f=yn(u,e,n,s,r,l);if(f!==gn)return f}_n(r,e[1].data[u+8]===l)&&bn(a,u,e)?(s=h,u=Ze(c),e=Je(c,e)):u=-1}}}if(r&m.Optional&&void 0===i&&(i=null),0==(r&(m.Self|m.Host))){var d=e[9],p=rt(void 0);try{return d?d.get(n,i,r&m.Optional):st(n,i,r&m.Optional)}finally{rt(p)}}if(r&m.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(en(n),"]"))}var gn={};function yn(t,e,n,r,i,a){var o=e[1],s=o.data[t+8],u=vn(s,o,n,null==r?Vt(s)&&on:r!=o&&3===s.type,i&m.Host&&a===s);return null!==u?mn(e,o,u,s):gn}function vn(t,e,n,r,i){for(var a=t.providerIndexes,o=e.data,s=65535&a,u=t.directiveStart,c=a>>16,l=i?s+c:t.directiveEnd,h=r?s:s+c;h<l;h++){var f=o[h];if(h<u&&n===f||h>=u&&f.type===n)return h}if(i){var d=o[u];if(d&&Ht(d)&&d.type===n)return u}return null}function mn(t,e,n,r){var i=t[n],a=e.data;if(i instanceof qe){var o=i;if(o.resolving)throw new Error("Circular dep for ".concat(en(a[n])));var s,u=sn(o.canSeeViewProviders);o.resolving=!0,o.injectImpl&&(s=rt(o.injectImpl)),Ee(t,r);try{i=t[n]=o.factory(void 0,a,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){var r=e.onChanges,i=e.onInit,a=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),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a))}(n,a[n],e)}finally{o.injectImpl&&rt(s),sn(u),o.resolving=!1,xe()}}return i}function bn(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<<t)}function _n(t,e){return!(t&m.Self||t&m.Host&&e)}var wn=function(){function t(e,n){_classCallCheck(this,t),this._tNode=e,this._lView=n}return _createClass(t,[{key:"get",value:function(t,e){return pn(this._tNode,this._lView,t,void 0,e)}}]),t}();function kn(t){var e=t;if(D(t))return function(){var t=kn(R(e));return t?t():null};var n=Pt(e);if(null===n){var r=S(e);n=r&&r.factory}return n||null}function Cn(t){return u((function(){for(var e=t.prototype.constructor,n=e[Y]||kn(e),r=Object.prototype,i=Object.getPrototypeOf(t.prototype).constructor;i&&i!==r;){var a=i[Y]||kn(i);if(a&&a!==n)return a;i=Object.getPrototypeOf(i)}return function(t){return new t}}))}function On(t){return t.ngDebugContext}function Sn(t){return t.ngOriginalError}function En(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];t.error.apply(t,n)}var An=function(){function t(){_classCallCheck(this,t),this._console=console}return _createClass(t,[{key:"handleError",value:function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||En}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(t){return t?On(t)?On(t):this._findContext(Sn(t)):null}},{key:"_findOriginalError",value:function(t){for(var e=Sn(t);e&&Sn(e);)e=Sn(e);return e}}]),t}(),Tn=function(){function t(e){_classCallCheck(this,t),this.changingThisBreaksApplicationSecurity=e}return _createClass(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see http://g.co/ng/security#xss)"}}]),t}(),Mn=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Tn),In=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}
1]),n}(Tn),xn=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Tn),jn=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Tn),Ln=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Tn);function Pn(t){return t instanceof Tn?t.changingThisBreaksApplicationSecurity:t}function Rn(t,e){var n=Dn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see http://g.co/ng/security#xss)"))}return n===e}function Dn(t){return t instanceof Tn&&t.getTypeName()||null}function zn(t){return new Mn(t)}function Nn(t){return new In(t)}function Vn(t){return new xn(t)}function Fn(t){return new jn(t)}function Hn(t){return new Ln(t)}var Bn=!0,Un=!1;function qn(){return Un=!0,Bn}function Wn(){if(Un)throw new Error("Cannot enable prod mode after platform setup.");Bn=!1}var Gn=function(){function t(e){_classCallCheck(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert");var n=this.inertDocument.body;if(null==n){var r=this.inertDocument.createElement("html");this.inertDocument.appendChild(r),n=this.inertDocument.createElement("body"),r.appendChild(n)}n.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!n.querySelector||n.querySelector("svg")?(n.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',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="<body><remove></remove>"+t+"</body>";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="<body><remove></remove>"+t+"</body>";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<n;n--){var r=e.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||t.removeAttribute(r)}for(var i=t.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}]),t}(),Kn=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Yn=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Qn(t){return(t=String(t)).match(Kn)||t.match(Yn)?t:(qn()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(t," (see http://g.co/ng/security#xss)")),"unsafe:"+t)}function Xn(t){var e,n={},r=_createForOfIteratorHelper(t.split(","));try{for(r.s();!(e=r.n()).done;){n[e.value]=!0}}catch(i){r.e(i)}finally{r.f()}return n}function Zn(){for(var t={},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];for(var s in o)o.hasOwnProperty(s)&&(t[s]=!0)}return t}var $n,Jn=Xn("area,br,col,hr,img,wbr"),tr=Xn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),er=Xn("rp,rt"),nr=Zn(er,tr),rr=Zn(Jn,Zn(tr,Xn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Zn(er,Xn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),nr),ir=Xn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),ar=Xn("srcset"),or=Zn(ir,ar,Xn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,c
1olspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Xn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),sr=Xn("script,style,template"),ur=function(){function t(){_classCallCheck(this,t),this.sanitizedSomething=!1,this.buf=[]}return _createClass(t,[{key:"sanitizeChildren",value:function(t){for(var e=t.firstChild,n=!0;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);var r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(t){var e=t.nodeName.toLowerCase();if(!rr.hasOwnProperty(e))return this.sanitizedSomething=!0,!sr.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);for(var n,r=t.attributes,i=0;i<r.length;i++){var a=r.item(i),o=a.name,s=o.toLowerCase();if(or.hasOwnProperty(s)){var u=a.value;ir[s]&&(u=Qn(u)),ar[s]&&(n=u,u=(n=String(n)).split(",").map((function(t){return Qn(t.trim())})).join(", ")),this.buf.push(" ",o,'="',hr(u),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();rr.hasOwnProperty(e)&&!Jn.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}},{key:"chars",value:function(t){this.buf.push(hr(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: ".concat(t.outerHTML));return e}}]),t}(),cr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lr=/([^\#-~ |!])/g;function hr(t){return t.replace(/&/g,"&").replace(cr,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(lr,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"<").replace(/>/g,">")}function fr(t,e){var n=null;try{$n=$n||new Gn(t);var r=e?String(e):"";n=$n.getInertBodyElement(r);var i=5,a=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=a,a=n.innerHTML,n=$n.getInertBodyElement(r)}while(r!==a);var o=new ur,s=o.sanitizeChildren(dr(n)||n);return qn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=dr(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function dr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var pr=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}(),gr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),yr=/^url\(([^)]+)\)$/;function vr(t){if(!(t=String(t).trim()))return"";var e=t.match(yr);return e&&Qn(e[1])===e[1]||t.match(gr)&&function(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}(t)?t:(qn()&&console.warn("WARNING: sanitizing unsafe style value ".concat(t," (see http://g.co/ng/security#xss).")),"unsafe")}function mr(t){var e=kr();return e?e.sanitize(pr.HTML,t)||"":Rn(t,"HTML")?Pn(t):fr(Wt(),tn(t))}function br(t){var e=kr();return e?e.sanitize(pr.STYLE,t)||"":Rn(t,"Style")?Pn(t):vr(tn(t))}function _r(t){var e=kr();return e?e.sanitize(pr.URL,t)||"":Rn(t,"URL")?Pn(t):Qn(tn(t))}var wr=function(t,e,n){if(void 0===e&&void 0===n)return br(t);var r=!0;return 1&(n=n||3)&&(r=function(t){return"background-image"===t||"backgroundImage"===t||"background"===t||"border-image"===t||"borderImage"===t||"border-image-source"===t||"borderImageSource"===t||"filter"===t||"list-style"===t||"listStyle"===t||"list-style-image"===t||"listStyleImage"===t||"clip-path"===t||"clipPath"===t}(t)),2&n?r?br(e):Pn(e):r};function kr(){var t=ue();return t&&t[12]}function Cr(t,e){t.__ngContext__=e}function Or(t){throw new Error("Multiple components match node with tagname ".concat(t.tagName))}function Sr(){throw new Error("Cannot mix multi providers and regular providers")}function Er(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 a=e.length;if(i+a===r||t.charCodeAt(i+a)<=32)return i}n=i+1}}function Ar(t,e,n){for(var r=0;r<t.length;){var i=t[r++];
vendor: 7,157 bytes, line 1
1if(n&&"class"===i){if(-1!==Er((i=t[r]).toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function Tr(t){return 0===t.type&&"ng-template"!==t.tagName}function Mr(t,e,n){return e===(0!==t.type||n?t.tagName:"ng-template")}function Ir(t,e,n){for(var r=4,i=t.attrs||[],a=function(t){for(var e=0;e<t.length;e++)if(Ge(t[e]))return e;return t.length}(i),o=!1,s=0;s<e.length;s++){var u=e[s];if("number"!=typeof u){if(!o)if(4&r){if(r=2|1&r,""!==u&&!Mr(t,u,n)||""===u&&1===e.length){if(xr(r))return!1;o=!0}}else{var c=8&r?u:e[++s];if(8&r&&null!==t.attrs){if(!Ar(t.attrs,c,n)){if(xr(r))return!1;o=!0}continue}var l=jr(8&r?"class":u,i,Tr(t),n);if(-1===l){if(xr(r))return!1;o=!0;continue}if(""!==c){var h;h=l>a?"":i[l+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==Er(f,c,0)||2&r&&c!==h){if(xr(r))return!1;o=!0}}}}else{if(!o&&!xr(r)&&!xr(u))return!1;if(o&&xr(u))continue;o=!1,r=u|1&r}}return xr(r)||o}function xr(t){return 0==(1&t)}function jr(t,e,n,r){if(null===e)return-1;var i=0;if(r||!n){for(var a=!1;i<e.length;){var o=e[i];if(o===t)return i;if(3===o||6===o)a=!0;else{if(1===o||2===o){for(var s=e[++i];"string"==typeof s;)s=e[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=a?1:2}return-1}return function(t,e){var n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){var r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function Lr(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<e.length;r++)if(Ir(t,e[r],n))return!0;return!1}function Pr(t,e){t:for(var n=0;n<e.length;n++){var r=e[n];if(t.length===r.length){for(var i=0;i<t.length;i++)if(t[i]!==r[i])continue t;return!0}}return!1}function Rr(t,e){return t?":not("+e.trim()+")":e}function Dr(t){for(var e=t[0],n=1,r=2,i="",a=!1;n<t.length;){var o=t[n];if("string"==typeof o)if(2&r){var s=t[++n];i+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||xr(o)||(e+=Rr(a,i),i=""),r=o,a=a||!xr(r);n++}return""!==i&&(e+=Rr(a,i)),e}var zr={};function Nr(t){var e=t[3];return zt(e)?e[3]:e}function Vr(t){return Hr(t[13])}function Fr(t){return Hr(t[4])}function Hr(t){for(;null!==t&&!zt(t);)t=t[4];return t}function Br(t){Ur(ce(),ue(),Le()+t,ge())}function Ur(t,e,n,r){if(!r)if(3==(3&e[2])){var i=t.preOrderCheckHooks;null!==i&&Ve(e,i,n)}else{var a=t.preOrderHooks;null!==a&&Fe(e,a,0,n)}Pe(n)}function qr(t,e){return t<<17|e<<2}function Wr(t){return t>>17&32767}function Gr(t){return 2|t}function Kr(t){return(131068&t)>>2}function Yr(t,e){return-131069&t|e<<2}function Qr(t){return 1|t}function Xr(t,e){var n=t.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r],a=n[r+1];if(-1!==a){var o=t.data[a];Se(i),o.contentQueries(2,e[a],a)}}}function Zr(t,e,n){return Gt(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function $r(t,e,n,r,i,a,o,s,u,c){var l=e.blueprint.slice();return l[0]=i,l[2]=140|r,ie(l),l[3]=l[15]=t,l[8]=n,l[10]=o||t&&t[10],l[11]=s||t&&t[11],l[12]=u||t&&t[12]||null,l[9]=c||t&&t[9]||null,l[6]=a,l[16]=2==e.type?t[16]:l,l}function Jr(t,e,n,r,i,a){var o=n+20,s=t.data[o]||function(t,e,n,r,i,a){var o=he(),s=de(),u=s?o:o&&o.parent,c=t.data[n]=ci(0,u&&u!==e?u:null,r,n,i,a);return null===t.firstChild&&(t.firstChild=c),o&&(!s||null!=o.child||null===c.parent&&2!==o.type?s||(o.next=c):o.child=c),c}(t,e,o,r,i,a);return fe(s,!0),s}function ti(t,e,n){Ae(e,e[6]);try{var r=t.viewQuery;null!==r&&xi(1,r,n);var i=t.template;null!==i&&ri(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Xr(t,e),t.staticViewQueries&&xi(2,t.viewQuery,n);var a=t.components;null!==a&&function(t,e){for(var n=0;n<e.length;n++)Ei(t,e[n])}(e,a)}catch(o){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),o}finally{e[2]&=-5,je()}}function ei(t,e,n,r){var i=e[2];if(256!=(256&i)){Ae(e,e[6]);var a=ge();try{ie(e),oe.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&ri(t,e,n,2,r);var o=3==(3&i);if(!a)if(o){var s=t.preOrderCheckHooks;null!==s&&Ve(e,s,null)}else{var u=t.preOrderHooks;null!==u&&Fe(e,u,0,null),He(e,0)}if(function(t){for(var e=Vr(t);null!==e;e=Fr(e))if(e[2])for(var n=e[9],r=0;r<n.length;r++){var i=n[r],a=i[3];0==(1024&i[2])&&ae(a,1),i[2]|=1024}}(e),function(t){for(var e=Vr(t);null!==e;e=Fr(e))for(var n=10;n<e.length;n++){var r=e[n],i=r[1];ne(r)&&ei(i,r,i.template,r[8])}}(e),null!==t.contentQueries&&Xr(t,e),!a)if(o){var c=t.contentCheckHooks;null!==c&&Ve(e,c)}else{var l=t.contentHooks;null!==l&&Fe(e,l,1),He(e,1)}!function(t,e){try{var n=t.expandoInstructions;if(null!==n)for(var r=t.expandoStartIndex,i=-1,a=0;a<n.length;a++){var o=n[a];"number"==typeof o?o<=0?(Pe(0-o),i=r+=9+n[++a]):r+=o:(null!==o&&(we(r,i),o(2,e[i])),i++)}}finally{Pe(-1)}}(t,e);var h=t.components;null!==h&&function(t,e){for(var n=0;n<e.length;n++)Si(t,e[n])}(e,h);var f=t.viewQuery;if(null!==f&&xi(2,f,r),!a)if(o){var d=t.viewCheckHooks;null!==d&&Ve(e,d)}else{var p=t.viewHooks;null!==p&&Fe(e,p,2),He(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),a||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,ae(e[3],-1))}finally{je()}}}function ni(t,e,n,r){var i=e[10],a=!ge(),o=ee(e);try{a&&!o&&i.begin&&i.begin(),o&&ti(t,e,r),ei(t,e,n,r)}finally{a&&!o&&i.end&&i.end()}}function ri(t,e,n,r,i){var a=Le();try{Pe(-1),2&r&&e.length>20&&Ur(t,e,0,ge()),n(r,i)}finally{Pe(a)}}function ii(t,e,n){if(Nt(e))for(var r=e.directiveEnd,i=e.directiveStart;i<r;i++){var a=t.data[i];a.contentQueries&&a.contentQueries(1,n[i],i)}}function ai(t,e,n){se()&&(function(t,e,n,r){var i=n.directiveStart,a=n.directiveEnd;t.firstCreatePass||cn(n,e),Cr(r,e);for(var o=n.initialInputs,s=i;s<a;s++){var u=t.data[s],c=Ht(u);c&&wi(e,n,u);var l=mn(e,t,s,n);Cr(l,e),null!==o&&ki(0,s-i,l,u,0,o),c&&(Jt(n.index,e)[8]=l)}}(t,e,n,Xt(n,e)),128==(128&n.flags)&&function(t,e,n){var r=n.directiveStart,i=n.directiveEnd,a=t.expandoInstructions,o=t.firstCreatePass,s=n.index-20,u=oe.lFrame.currentDirectiveIndex;try{Pe(s);for(var c=r;c<i;c++){var l=t.data[c],h=e[c];ke(c),null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs?gi(l,h):o&&a.push(null)}}finally{Pe(-1),ke(u)}}(t,e,n))}function oi(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xt,r=e.localNames;if(null!==r)for(var i=e.index+1,a=0;a<r.length;a+=2){var o=r[a+1],s=-1===o?n(e,t):t[o];t[i++]=s}}function si(t){var e=t.tView;return null===e||e.incompleteFirstPass?t.tView=ui(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function ui(t,e,n,r,i,a,o,s,u,c){var l=20+r,h=l+i,f=function(t,e){for(var n=[],r=0;r<e;r++)n.push(r<t?null:zr);return n}(l,h);return f[1]={type:t,id:e,blueprint:f,template:n,queries:null,viewQuery:s,node:null,data:f.slice().fill(null,l),bindingStartIndex:l,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof a?a():a,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:u,consts:c,incompleteFirstPass:!1}
1}function ci(t,e,n,r,i,a){return{type:n,index:r,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function li(t,e,n){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function hi(t,e,n,r,i,a,o,s){var u,c,l=Xt(e,n),h=e.inputs;!s&&null!=h&&(u=h[r])?(Di(t,n,u,r,i),Vt(e)&&function(t,e){var n=Jt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(r="class"===(c=r)?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c,i=null!=o?o(i,e.tagName||"",r):i,Gt(a)?a.setProperty(l,r,i):Ke(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}function fi(t,e,n,r){var i=!1;if(se()){var a=function(t,e,n){var r=t.directiveRegistry,i=null;if(r)for(var a=0;a<r.length;a++){var o=r[a];Lr(n,o.selectors,!1)&&(i||(i=[]),dn(cn(n,e),t,o.type),Ht(o)?(2&n.flags&&Or(n),vi(t,n),i.unshift(o)):i.push(o))}return i}(t,e,n),o=null===r?null:{"":-1};if(null!==a){var s=0;i=!0,bi(n,t.data.length,a.length);for(var u=0;u<a.length;u++){var c=a[u];c.providersResolver&&c.providersResolver(c)}yi(t,n,a.length);for(var l=!1,h=!1,f=0;f<a.length;f++){var d=a[f];n.mergedAttrs=Ye(n.mergedAttrs,d.hostAttrs),_i(t,e,d),mi(t.data.length-1,d,o),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128),!l&&(d.onChanges||d.onInit||d.doCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-20),l=!0),h||!d.onChanges&&!d.doCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-20),h=!0),di(t,d),s+=d.hostVars}!function(t,e){for(var n=e.directiveEnd,r=t.data,i=e.attrs,a=[],o=null,s=null,u=e.directiveStart;u<n;u++){var c=r[u],l=c.inputs,h=null===i||Tr(e)?null:Ci(l,i);a.push(h),o=li(l,u,o),s=li(c.outputs,u,s)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=a,e.inputs=o,e.outputs=s}(t,n),pi(t,e,s)}o&&function(t,e,n){if(e)for(var r=t.localNames=[],i=0;i<e.length;i+=2){var a=n[e[i+1]];if(null==a)throw new Error("Export of name '".concat(e[i+1],"' not found!"));r.push(e[i],a)}}(n,r,o)}return n.mergedAttrs=Ye(n.mergedAttrs,n.attrs),i}function di(t,e){var n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function pi(t,e,n){for(var r=0;r<n;r++)e.push(zr),t.blueprint.push(zr),t.data.push(null)}function gi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function yi(t,e,n){var r=20-e.index,i=t.data.length-(65535&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(r,i,n)}function vi(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function mi(t,e,n){if(n){if(e.exportAs)for(var r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Ht(e)&&(n[""]=t)}}function bi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function _i(t,e,n){t.data.push(n);var r=n.factory||(n.factory=Pt(n.type)),i=new qe(r,Ht(n),null);t.blueprint.push(i),e.push(i)}function wi(t,e,n){var r=Xt(e,t),i=si(n),a=t[10],o=Ai(t,$r(t,i,null,n.onPush?64:16,r,e,a,a.createRenderer(r,n)));t[e.index]=o}function ki(t,e,n,r,i,a){var o=a[e];if(null!==o)for(var s=r.setInput,u=0;u<o.length;){var c=o[u++],l=o[u++],h=o[u++];null!==s?r.setInput(n,h,c,l):n[l]=h}}function Ci(t,e){for(var n=null,r=0;r<e.length;){var i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function Oi(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}function Si(t,e){var n=Jt(e,t);if(ne(n)){var r=n[1];80&n[2]?ei(r,n,r.template,n[8]):n[5]>0&&function t(e){for(var n=Vr(e);null!==n;n=Fr(n))for(var r=10;r<n.length;r++){var i=n[r];if(1024&i[2]){var a=i[1];ei(a,i,a.template,i[8])}else i[5]>0&&t(i)}var o=e[1].components;if(null!==o)for(var s=0;s<o.length;s++){var u=Jt(o[s],e);ne(u)&&u[5]>0&&t(u)}}(n)}}function Ei(t,e){var n=Jt(e,t),r=n[1];!function(t,e){for(var n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(r,n),ti(r,n,n[8])}function Ai(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Ti(t){for(;t;){t[2]|=64;var e=Nr(t);if(Bt(t)&&!e)return t;t=e}return null}function Mi(t,e,n){var r=e[10];r.begin&&r.begin();try{ei(t,e,t.template,n)}catch(i){throw Ri(e,i),i}finally{r.end&&r.end()}}function Ii(t){!function(t){for(var e=0;e<t.components.length;e++){var n=t.components[e],r=te(n),i=r[1];ni(i,r,i.template,n)}}(t[8])}function xi(t,e,n){Se(0),e(t,n)}var ji=Promise.resolve(null);function Li(t){return t[7]||(t[7]=[])}function Pi(t){return t.cleanup||(t.cleanup=[])}function Ri(t,e){var n=t[9],r=n?n.get(An,null):null;r&&r.handleError(e)}function Di(t,e,n,r,i){for(var a=0;a<n.length;){var o=n[a++],s=n[a++],u=e[o],c=t.data[o];
1null!==c.setInput?c.setInput(u,i,r,s):u[s]=i}}function zi(t,e,n){var r=Qt(e,t),i=t[11];Gt(i)?i.setValue(r,n):r.textContent=n}function Ni(t,e){var n=e[3];return-1===t.index?zt(n)?n:null:n}function Vi(t,e){var n=Ni(t,e);return n?Zi(e[11],n[7]):null}function Fi(t,e,n,r,i){if(null!=r){var a,o=!1;zt(r)?a=r:Dt(r)&&(o=!0,r=r[0]);var s=Yt(r);0===t&&null!==n?null==i?Qi(e,n,s):Yi(e,n,s,i||null):1===t&&null!==n?Yi(e,n,s,i||null):2===t?function(t,e,n){var r=Zi(t,e);r&&function(t,e,n,r){Gt(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,s,o):3===t&&e.destroyNode(s),null!=a&&function(t,e,n,r,i){var a=n[7];a!==Yt(n)&&Fi(e,t,r,a,i);for(var o=10;o<n.length;o++){var s=n[o];na(s[1],s,t,e,r,a)}}(e,t,a,n,i)}}function Hi(t,e,n,r){var i=Vi(t.node,e);i&&na(t,e,e[11],n?1:2,i,r)}function Bi(t,e){var n=t[9],r=n.indexOf(e);1024&e[2]&&ae(e[3],-1),n.splice(r,1)}function Ui(t,e){if(!(t.length<=10)){var n=10+e,r=t[n];if(r){var i=r[17];null!==i&&i!==t&&Bi(i,r),e>0&&(t[n-1][4]=r[4]);var a=pt(t,10+e);Hi(r[1],r,!1,null);var o=a[19];null!==o&&o.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function qi(t,e){if(!(256&e[2])){var n=e[11];Gt(n)&&n.destroyNode&&na(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Gi(t[1],t);for(;e;){var n=null;if(Dt(e))n=e[13];else{var r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Dt(e)&&Gi(e[1],e),e=Wi(e,t);null===e&&(e=t),Dt(e)&&Gi(e[1],e),n=e&&e[4]}e=n}}(e)}}function Wi(t,e){var n;return Dt(t)&&(n=t[6])&&2===n.type?Ni(n,t):t[3]===e?null:t[3]}function Gi(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<n.length;r+=2){var i=e[n[r]];if(!(i instanceof qe)){var a=n[r+1];if(Array.isArray(a))for(var o=0;o<a.length;o+=2)a[o+1].call(i[a[o]]);else a.call(i)}}}(t,e),function(t,e){var n=t.cleanup;if(null!==n){for(var r=e[7],i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){var a=n[i+1],o="function"==typeof a?a(e):Yt(e[a]),s=r[n[i+2]],u=n[i+3];"boolean"==typeof u?o.removeEventListener(n[i],s,u):u>=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&&Gt(e[11])&&e[11].destroy();var r=e[17];if(null!==r&&zt(e[3])){r!==e[3]&&Bi(r,e);var i=e[19];null!==i&&i.detachView(t)}}}function Ki(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?Vi(i,n):n[0]}if(e&&5===e.type&&4&e.flags)return Xt(e,n).parentNode;if(2&r.flags){var a=t.data,o=a[a[r.index].directiveStart].encapsulation;if(o!==_t.ShadowDom&&o!==_t.Native)return null}return Xt(r,n)}function Yi(t,e,n,r){Gt(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Qi(t,e,n){Gt(t)?t.appendChild(e,n):e.appendChild(n)}function Xi(t,e,n,r){null!==r?Yi(t,e,n,r):Qi(t,e,n)}function Zi(t,e){return Gt(t)?t.parentNode(e):e.parentNode}function $i(t,e){if(2===t.type){var n=Ni(t,e);return null===n?null:ta(n.indexOf(e,10)-10,n)}return 4===t.type||5===t.type?Xt(t,e):null}function Ji(t,e,n,r){var i=Ki(t,r,e);if(null!=i){var a=e[11],o=$i(r.parent||e[6],e);if(Array.isArray(n))for(var s=0;s<n.length;s++)Xi(a,i,n[s],o);else Xi(a,i,n,o)}}function ta(t,e){var n=10+t+1;if(n<e.length){var r=e[n],i=r[1].firstChild;if(null!==i)return function t(e,n){if(null!==n){var r=n.type;if(3===r)return Xt(n,e);if(0===r)return ta(-1,e[n.index]);if(4===r||5===r){var i=n.child;if(null!==i)return t(e,i);var a=e[n.index];return zt(a)?ta(-1,a):Yt(a)}var o=e[16],s=o[6],u=Nr(o),c=s.projection[n.projection];return null!=c?t(u,c):t(e,n.next)}return null}(r,i)}return e[7]}function ea(t,e,n,r,i,a,o){for(;null!=n;){var s=r[n.index],u=n.type;o&&0===e&&(s&&Cr(Yt(s),r),n.flags|=4),64!=(64&n.flags)&&(4===u||5===u?(ea(t,e,n.child,r,i,a,!1),Fi(e,t,i,s,a)):1===u?ra(t,e,r,n,i,a):Fi(e,t,i,s,a)),n=o?n.projectionNext:n.next}}function na(t,e,n,r,i,a){ea(n,r,t.node.child,e,i,a,!1)}function ra(t,e,n,r,i,a){var o=n[16],s=o[6].projection[r.projection];if(Array.isArray(s))for(var u=0;u<s.length;u++)Fi(e,t,i,s[u],a);else ea(t,e,s,o[3],i,a,!0)}function ia(t,e,n){Gt(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function aa(t,e,n){Gt(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}var oa,sa,ua,ca=function(){function t(e,n){_classCallCheck(this,t),this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef
1=null}return _createClass(t,[{key:"rootNodes",get:function(){var t=this._lView;return null==t[0]?function t(e,n,r,i){for(var a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var o=n[r.index];if(null!==o&&i.push(Yt(o)),zt(o))for(var s=10;s<o.length;s++){var u=o[s],c=u[1].firstChild;null!==c&&t(u[1],u,c,i)}var l=r.type;if(4===l||5===l)t(e,n,r.child,i);else if(1===l){var h=n[16],f=h[6].projection[r.projection];if(Array.isArray(f))i.push.apply(i,_toConsumableArray(f));else{var d=Nr(h);t(d[1],d,f,i,!0)}}r=a?r.projectionNext:r.next}return i}(t[1],t,t[6].child,[]):[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}qi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){var e,n,r;e=this._lView[1],r=t,Li(n=this._lView).push(r),e.firstCreatePass&&Pi(e).push(n[7].length-1,null)}},{key:"markForCheck",value:function(){Ti(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Mi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){ye(!0);try{Mi(t,e,n)}finally{ye(!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,na(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}}]),t}(),la=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this,t))._view=t,r}return _createClass(n,[{key:"detectChanges",value:function(){Ii(this._view)}},{key:"checkNoChanges",value:function(){!function(t){ye(!0);try{Ii(t)}finally{ye(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(ca);function ha(t,e,n){return oa||(oa=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(t)),new oa(Xt(e,n))}function fa(t,e,n,r){return sa||(sa=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this))._declarationView=t,a._declarationTContainer=r,a.elementRef=i,a}return _createClass(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=$r(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(e)),ti(e,n,t),new ca(n)}}]),n}(t)),0===n.type?new sa(r,n,ha(e,n,r)):null}function da(t,e,n,r){var i;ua||(ua=function(t){_inherits(r,t);var n=_createSuper(r);function r(t,e,i){var a;return _classCallCheck(this,r),(a=n.call(this))._lContainer=t,a._hostTNode=e,a._hostView=i,a}return _createClass(r,[{key:"element",get:function(){return ha(e,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new wn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var t=fn(this._hostTNode,this._hostView),e=Je(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 a=$e(t),o=e,s=e[6];a>1;)s=(o=o[15])[6],a--;return s}(t,this._hostView,this._hostTNode);return Xe(t)&&null!=n?new wn(n,e):new wn(null,this._hostView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{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 a=n||this.parentInjector;if(!i&&null==t.ngModule&&a){var o=a.get(lt,null);o&&(i=o)}var s=t.create(a,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(),zt(n[3])){var i=this.indexOf(t);if(-1!==i)this.detach(i);else{var a=n[3],o=new ua(a,a[6],a[3]);o.detach(o.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,r){var i=10+r,a=n.length;r>0&&(n[i-1][4]=e),r<a-10?(e[4]=n[i],dt(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;var o=e[17];null!==o&&n!==o&&function(t,e){var n=t[9];
1e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);var s=e[19];null!==s&&s.insertView(t),e[2]|=128}(r,n,this._lContainer,s),Hi(r,n,!0,ta(s,this._lContainer)),t.attachToViewContainerRef(this),dt(this._lContainer[8],s,t),t}},{key:"move",value:function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}},{key:"indexOf",value:function(t){var e=this._lContainer[8];return null!==e?e.indexOf(t):-1}},{key:"remove",value:function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1);!function(t,e){var n=Ui(t,e);n&&qi(n[1],n)}(this._lContainer,e),pt(this._lContainer[8],e)}},{key:"detach",value:function(t){this.allocateContainerIfNeeded();var e=this._adjustIndex(t,-1),n=Ui(this._lContainer,e);return n&&null!=pt(this._lContainer[8],e)?new ca(n):null}},{key:"_adjustIndex",value:function(t){var e=arguments.length>1&&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]=[])}}]),r}(t));var a=r[n.index];if(zt(a))i=a;else{var o;if(4===n.type)o=Yt(a);else if(o=r[11].createComment(""),Bt(r)){var s=r[11],u=Xt(n,r);Yi(s,Zi(s,u),o,function(t,e){return Gt(t)?t.nextSibling(e):e.nextSibling}(s,u))}else Ji(r[1],r,o,n);r[n.index]=i=Oi(a,r,o,n),Ai(r,i)}return new ua(i,n,r)}function pa(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,e,n){if(!n&&Vt(t)){var r=Jt(t.index,e);return new ca(r,r)}return 3===t.type||0===t.type||4===t.type||5===t.type?new ca(e[16],e):null}(he(),ue(),t)}var ga=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.__NG_ELEMENT_ID__=function(){return ya()},t}(),ya=pa,va=Function,ma=new X("Set Injector scope."),ba={},_a={},wa=[],ka=void 0;function Ca(){return void 0===ka&&(ka=new ct),ka}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 Sa(t,n,e||Ca(),r)}var Sa=function(){function t(e,n,r){var i=this,a=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 o=[];n&&ft(n,(function(t){return i.processProvider(t,e,n)}
1)),ft([e],(function(t){return i.processInjectorType(t,[],o)})),this.records.set(Z,Ta(void 0,this));var s=this.records.get(ma);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof e?null:x(e))}return _createClass(t,[{key:"destroyed",get:function(){return this._destroyed}},{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]:$,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.Default;this.assertNotDestroyed();var r,i=nt(this);try{if(!(n&m.SkipSelf)){var a=this.records.get(t);if(void 0===a){var o=("function"==typeof(r=t)||"object"==typeof r&&r instanceof X)&&C(t);a=o&&this.injectableDefInScope(o)?Ta(Ea(t),ba):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(n&m.Self?Ca():this.parent).get(t,e=n&m.Optional&&e===$?null:e)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(x(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=x(e);if(Array.isArray(e))i=e.map(x).join(" -> ");else if("object"==typeof e){var a=[];for(var o in e)if(e.hasOwnProperty(o)){var s=e[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):x(s)))}i="{".concat(a.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(t.replace(J,"\n "))}("\n"+t.message,i,"R3InjectorError",r),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(s,t,0,this.source)}throw s}finally{nt(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(x(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=R(t)))return!1;var i=S(t),a=null==i&&t.ngModule||void 0,o=void 0===a?t:a,s=-1!==n.indexOf(o);if(void 0!==a&&(i=S(a)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(o);try{ft(i.imports,(function(t){r.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))}))}finally{}if(void 0!==u)for(var c=function(){var t=u[l],e=t.ngModule,n=t.providers;ft(n,(function(t){return r.processProvider(t,e,n||wa)}))},l=0;l<u.length;l++)c()}this.injectorDefTypes.add(o),this.records.set(o,Ta(i.factory,ba));var h=i.providers;if(null!=h&&!s){var f=t;ft(h,(function(t){return r.processProvider(t,f,h)}))}return void 0!==a&&void 0!==t.providers}},{key:"processProvider",value:function(t,e,n){var r=Ia(t=R(t))?t:R(t&&t.provide),i=function(t,e,n){return Ma(t)?Ta(void 0,t.useValue):Ta(Aa(t,e,n),ba)}(t,e,n);if(Ia(t)||!0!==t.multi){var a=this.records.get(r);a&&void 0!==a.multi&&Sr()}else{var o=this.records.get(r);o?void 0===o.multi&&Sr():((o=Ta(void 0,ba,!0)).factory=function(){return ut(o.multi)},this.records.set(r,o)),r=t,o.multi.push(t)}this.records.set(r,i)}},{key:"hydrate",value:function(t,e){var n;return e.value===_a?function(t){throw new Error("Cannot instantiate cyclic dependency! ".concat(t))}(x(t)):e.value===ba&&(e.value=_a,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}},{key:"injectableDefInScope",value:function(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}]),t}();function Ea(t){var e=C(t),n=null!==e?e.factory:Pt(t);if(null!==n)return n;var r=S(t);if(null!==r)return r.factory;if(t instanceof X)throw new Error("Token ".concat(x(t)," is missing a \u0275prov definition."));if(t instanceof Function)return function(t){var e=t.length;if(e>0){var n=gt(e,"?");throw new Error("Can't resolve all parameters for ".concat(x(t),": (").concat(n.join(", "),")."))}
1var r=function(t){var e=t&&(t[E]||t[M]||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.\n')+'This 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 Aa(t,e,n){var r,i=void 0;if(Ia(t)){var a=R(t);return Pt(a)||Ea(a)}if(Ma(t))i=function(){return R(t.useValue)};else if((r=t)&&r.useFactory)i=function(){return t.useFactory.apply(t,_toConsumableArray(ut(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))i=function(){return at(R(t.useExisting))};else{var o=R(t&&(t.useClass||t.provide));if(o||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(x(t),"'")+r)}(e,n,t),!function(t){return!!t.deps}(t))return Pt(o)||Ea(o);i=function(){return _construct(o,_toConsumableArray(ut(t.deps)))}}return i}function Ta(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Ma(t){return null!==t&&"object"==typeof t&&tt in t}function Ia(t){return"function"==typeof t}var xa=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)},ja=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?xa(t,e,""):xa(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=$,t.NULL=new ct,t.\u0275prov=w({token:t,providedIn:"any",factory:function(){return at(Z)}}),t.__NG_ELEMENT_ID__=-1,t}(),La=new X("AnalyzeForEntryComponents"),Pa=_createClass((function t(){_classCallCheck(this,t)})),Ra=h("ContentChildren",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),Pa),Da=h("ContentChild",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),Pa),za=h("ViewChildren",(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),Pa),Na=h("ViewChild",(function(t,e){return Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)}),Pa),Va=new Map,Fa=new Set;function Ha(t){return"string"==typeof t?t:t.text()}function Ba(t,e,n){var r=n?t.styles:null,i=n?t.classes:null,a=0;if(null!==e)for(var o=0;o<e.length;o++){var s=e[o];"number"==typeof s?a=s:1==a?i=j(i,s):2==a&&(r=j(r,s+": "+e[++o]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}var Ua=null;function qa(){if(!Ua){var t=B.Symbol;if(t&&t.iterator)Ua=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ua=r)}}return Ua}function Wa(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}var Ga=function(){function t(e){_classCallCheck(this,t),this.wrapped=e}return _createClass(t,null,[{key:"wrap",value:function(e){return new t(e)}},{key:"unwrap",value:function(e){return t.isWrapped(e)?e.wrapped:e}},{key:"isWrapped",value:function(e){return e instanceof t}}]),t}();function Ka(t){return!!Ya(t)&&(Array.isArray(t)||!(t instanceof Map)&&qa()in t)}function Ya(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Qa(t,e,n){return t[e]=n}function Xa(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function Za(t,e,n,r){var i=Xa(t,e,n);return Xa(t,e+1,r)||i}function $a(t,e,n,r){var i=ue();return Xa(i,be(),e)&&(ce(),function(t,e,n,r,i,a){var o=Xt(t,e),s=e[11];if(null==r)Gt(s)?s.removeAttribute(o,n,a):o.removeAttribute(n);else{var u=null==i?tn(r):i(r,t.tagName||"",n);Gt(s)?s.setAttribute(o,n,u,a):a?o.setAttributeNS(a,n,u):o.setAttribute(n,u)}}(Re(),i,t,e,n,r)),$a}
1function Ja(t,e,n,r){return Xa(t,be(),n)?e+tn(n)+r:zr}function to(t,e,n,r,i,a,o,s){var u=ue(),c=ce(),l=t+20,h=c.firstCreatePass?function(t,e,n,r,i,a,o,s,u){var c=e.consts,l=Jr(e,n[6],t,0,o||null,re(c,s));fi(e,n,l,re(c,u)),Ne(e,l);var h=l.tViews=ui(2,-1,r,i,a,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),f=ci(0,null,2,-1,null,null);return f.injectorIndex=l.injectorIndex,h.node=f,null!==e.queries&&(e.queries.template(e,l),h.queries=e.queries.embeddedTView(l)),l}(t,c,u,e,n,r,i,a,o):c.data[l];fe(h,!1);var f=u[11].createComment("");Ji(c,u,f,h),Cr(f,u),Ai(u,u[l]=Oi(f,u,f,h)),Ft(h)&&ai(c,u,h),null!=o&&oi(u,h,s)}function eo(t){return $t(oe.lFrame.contextLView,t)}function no(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:m.Default,n=ue();return null==n?at(t,e):pn(he(),n,R(t),e)}function ro(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;i<r;){var a=n[i];if(Ge(a))break;if(0===a)i+=2;else if("number"==typeof a)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(a===e)return n[i+1];i+=2}}return null}(he(),t)}function io(){throw new Error("invalid")}function ao(t,e,n){var r=ue();return Xa(r,be(),e)&&hi(ce(),Re(),r,t,e,r[11],n,!1),ao}function oo(t,e,n,r,i){var a=i?"class":"style";Di(t,n,e.inputs[a],a,r)}function so(t,e,n,r){var i=ue(),a=ce(),o=20+t,s=i[11],u=i[o]=Zr(e,s,oe.lFrame.currentNamespace),c=a.firstCreatePass?function(t,e,n,r,i,a,o){var s=e.consts,u=re(s,a),c=Jr(e,n[6],t,3,i,u);return fi(e,n,c,re(s,o)),null!==c.attrs&&Ba(c,c.attrs,!1),null!==c.mergedAttrs&&Ba(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,a,i,0,e,n,r):a.data[o];fe(c,!0);var l=c.mergedAttrs;null!==l&&We(s,u,l);var h=c.classes;null!==h&&aa(s,u,h);var f=c.styles;null!==f&&ia(s,u,f),Ji(a,i,u,c),0===oe.lFrame.elementDepthCount&&Cr(u,i),oe.lFrame.elementDepthCount++,Ft(c)&&(ai(a,i,c),ii(a,c,i)),null!==r&&oi(i,c)}function uo(){var t=he();de()?pe():fe(t=t.parent,!1);var e=t;oe.lFrame.elementDepthCount--;var n=ce();n.firstCreatePass&&(Ne(n,t),Nt(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&oo(n,e,ue(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&oo(n,e,ue(),e.stylesWithoutHost,!1)}function co(t,e,n,r){so(t,e,n,r),uo()}function lo(t,e,n){var r=ue(),i=ce(),a=t+20,o=i.firstCreatePass?function(t,e,n,r,i){var a=e.consts,o=re(a,r),s=Jr(e,n[6],t,4,"ng-container",o);return null!==o&&Ba(s,o,!0),fi(e,n,s,re(a,i)),null!==e.queries&&e.queries.elementStart(e,s),s}(t,i,r,e,n):i.data[a];fe(o,!0);var s=r[a]=r[11].createComment("");Ji(i,r,s,o),Cr(s,r),Ft(o)&&(ai(i,r,o),ii(i,o,r)),null!=n&&oi(r,o)}function ho(){var t=he(),e=ce();de()?pe():fe(t=t.parent,!1),e.firstCreatePass&&(Ne(e,t),Nt(t)&&e.queries.elementEnd(t))}function fo(t,e,n){lo(t,e,n),ho()}function po(){return ue()}function go(t){return!!t&&"function"==typeof t.then}function yo(t){return!!t&&"function"==typeof t.subscribe}function vo(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=ue(),a=ce(),o=he();return function(t,e,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Ft(r),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),l=Li(e),h=!0;if(3===r.type){var f=Xt(r,e),d=s?s(f):wt,p=d.target||f,g=l.length,y=s?function(t){return s(Yt(t[r.index])).target}:r.index;if(Gt(n)){var v=null;if(!s&&u&&(v=function(t,e,n,r){var i=t.cleanup;if(null!=i)for(var a=0;a<i.length-1;a+=2){var o=i[a];if(o===n&&i[a+1]===r){var s=e[7],u=i[a+2];return s.length>u?s[u]:null}"string"==typeof o&&(a+=2)}return null}(t,e,i,r.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=a,v.__ngLastListenerFn__=a,h=!1;else{a=bo(r,e,a,!1);var m=n.listen(d.name||p,i,a);l.push(a,m),c&&c.push(i,y,g,g+1)}}else a=bo(r,e,a,!0),p.addEventListener(i,a,o),l.push(a),c&&c.push(i,y,g,o)}var b,_=r.outputs;if(h&&null!==_&&(b=_[i])){var w=b.length;if(w)for(var k=0;k<w;k+=2){var C=e[b[k]][b[k+1]].subscribe(a),O=l.length;l.push(a,C),c&&c.push(i,r.index,O,-(O+1))}}}(a,i,i[11],o,t,e,n,r),vo}function mo(t,e,n){try{return!1!==e(n)}catch(r){return Ri(t,r),!1}}function bo(t,e,n,r){return function i(a){if(a===Function)return n;var o=2&t.flags?Jt(t.index,e):e;0==(32&e[2])&&Ti(o);for(var s=mo(e,n,a),u=i.__ngNextListenerFn__;u;)s=mo(e,u,a)&&s,u=u.__ngNextListenerFn__;return r&&!1===s&&(a.preventDefault(),a.returnValue=!1),s}}function _o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(t){return(oe.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,oe.lFrame.contextLView))[8]}(t)}function wo(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;i<e.length;i++){var a=e[i];if("*"!==a){if(null===r?Lr(t,a,!0):Pr(r,a))return i}else n=i}return n}function ko(t){var e=ue()[16][6];if(!e.projection)for(var n=e.projection=gt(t?t.length:1,null),r=n.slice(),i=e.child;null!==i;){var a=t?wo(i,t):0;null!==a&&(r[a]?r[a].projectionNext=i:n[a]=i,r[a]=i),i=i.next}}function Co(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=ue(),i=ce(),a=Jr(i,r[6],t,1,null,n||null);null===a.projection&&(a.projection=e),pe(),function(t,e,n){ra(e[11],0,e,n,Ki(t,n,e),$i(n.parent||e[6],e))}(i,r,a)}function Oo(t,e,n){return So(t,"",e,"",n),Oo}function So(t,e,n,r,i){var a=ue(),o=Ja(a,e,n,r);return o!==zr&&hi(ce(),Re(),a,t,o,a[11],i,!1),So}var Eo=[];function Ao(t,e,n,r,i){for(var a=t[n+1],o=null===e,s=r?Wr(a):Kr(a),u=!1;0!==s&&(!1===u||o);){var c=t[s+1];
1To(t[s],e)&&(u=!0,t[s+1]=r?Qr(c):Gr(c)),s=r?Wr(c):Kr(c)}u&&(t[n+1]=r?Gr(a):Qr(a))}function To(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&mt(t,e)>=0}var Mo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Io(t){return t.substring(Mo.key,Mo.keyEnd)}function xo(t,e){var n=Mo.textEnd;return n===e?-1:(e=Mo.keyEnd=function(t,e,n){for(;e<n&&t.charCodeAt(e)>32;)e++;return e}(t,Mo.key=e,n),jo(t,e,n))}function jo(t,e,n){for(;e<n&&t.charCodeAt(e)<=32;)e++;return e}function Lo(t,e,n){return zo(t,e,n,!1),Lo}function Po(t,e){return zo(t,e,null,!0),Po}function Ro(t){No(yt,Do,t,!0)}function Do(t,e){for(var n=function(t){return function(t){Mo.key=0,Mo.keyEnd=0,Mo.value=0,Mo.valueEnd=0,Mo.textEnd=t.length}(t),xo(t,jo(t,0,Mo.textEnd))}(e);n>=0;n=xo(e,n))yt(t,Io(e),!0)}function zo(t,e,n,r){var i,a,o=ue(),s=ce(),u=_e(2);(s.firstUpdatePass&&Fo(s,t,u,r),e!==zr&&Xa(o,u,e))&&(null==n&&(i=null===(a=oe.lFrame)?null:a.currentSanitizer)&&(n=i),Uo(s,s.data[Le()+20],o,o[11],t,o[u+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=x(Pn(t)))),t}(e,n),r,u))}function No(t,e,n,r){var i=ce(),a=_e(2);i.firstUpdatePass&&Fo(i,null,a,r);var o=ue();if(n!==zr&&Xa(o,a,n)){var s=i.data[Le()+20];if(Go(s,r)&&!Vo(i,a)){var u=r?s.classesWithoutHost:s.stylesWithoutHost;null!==u&&(n=j(u,n||"")),oo(i,s,o,n,r)}else!function(t,e,n,r,i,a,o,s){i===zr&&(i=Eo);for(var u=0,c=0,l=0<i.length?i[0]:null,h=0<a.length?a[0]:null;null!==l||null!==h;){var f=u<i.length?i[u+1]:void 0,d=c<a.length?a[c+1]:void 0,p=null,g=void 0;l===h?(u+=2,c+=2,f!==d&&(p=h,g=d)):null===h||null!==l&&l<h?(u+=2,p=l):(c+=2,p=h,g=d),null!==p&&Uo(t,e,n,r,p,g,o,s),l=u<i.length?i[u]:null,h=c<a.length?a[c]:null}}(i,s,o,o[11],o[a+1],o[a+1]=function(t,e,n){if(null==n||""===n)return Eo;var r=[],i=Pn(n);if(Array.isArray(i))for(var a=0;a<i.length;a++)t(r,i[a],!0);else if("object"==typeof i)for(var o in i)i.hasOwnProperty(o)&&t(r,o,i[o]);else"string"==typeof i&&e(r,i);return r}(t,e,n),r,a)}}function Vo(t,e){return e>=t.expandoStartIndex}function Fo(t,e,n,r){var i=t.data;if(null===i[n+1]){var a=i[Le()+20],o=Vo(t,n);Go(a,r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){var i=Ce(t),a=r?e.residualClasses:e.residualStyles;if(null===i)0===(r?e.classBindings:e.styleBindings)&&(n=Bo(n=Ho(null,t,e,n,r),e.attrs,r),a=null);else{var o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(n=Ho(i,t,e,n,r),null===a){var s=function(t,e,n){var r=n?e.classBindings:e.styleBindings;if(0!==Kr(r))return t[Wr(r)]}(t,e,r);void 0!==s&&Array.isArray(s)&&function(t,e,n,r){t[Wr(n?e.classBindings:e.styleBindings)]=r}(t,e,r,s=Bo(s=Ho(null,t,e,s[1],r),e.attrs,r))}else a=function(t,e,n){for(var r=void 0,i=e.directiveEnd,a=1+e.directiveStylingLast;a<i;a++)r=Bo(r,t[a].hostAttrs,n);return Bo(r,e.attrs,n)}(t,e,r)}return void 0!==a&&(r?e.residualClasses=a:e.residualStyles=a),n}(i,a,e,r),function(t,e,n,r,i,a){var o=a?e.classBindings:e.styleBindings,s=Wr(o),u=Kr(o);t[r]=n;var c,l=!1;if(Array.isArray(n)){var h=n;(null===(c=h[1])||mt(h,c)>0)&&(l=!0)}else c=n;if(i)if(0!==u){var f=Wr(t[s+1]);t[r+1]=qr(f,s),0!==f&&(t[f+1]=Yr(t[f+1],r)),t[s+1]=131071&t[s+1]|r<<17}else t[r+1]=qr(s,0),0!==s&&(t[s+1]=Yr(t[s+1],r)),s=r;else t[r+1]=qr(u,0),0===s?s=r:t[u+1]=Yr(t[u+1],r),u=r;l&&(t[r+1]=Gr(t[r+1])),Ao(t,c,r,!0),Ao(t,c,r,!1),function(t,e,n,r,i){var a=i?t.residualClasses:t.residualStyles;null!=a&&"string"==typeof e&&mt(a,e)>=0&&(n[r+1]=Qr(n[r+1]))}(e,c,t,r,a),o=qr(s,u),a?e.classBindings=o:e.styleBindings=o}(i,a,e,n,o,r)}}function Ho(t,e,n,r,i){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s<o&&(r=Bo(r,(a=e[s]).hostAttrs,i),a!==t);)s++;return null!==t&&(n.directiveStylingLast=s),r}function Bo(t,e,n){var r=n?1:2,i=-1;if(null!==e)for(var a=0;a<e.length;a++){var o=e[a];"number"==typeof o?i=o:i===r&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),yt(t,o,!!n||e[++a]))}return void 0===t?null:t}function Uo(t,e,n,r,i,a,o,s){if(3===e.type){var u=t.data,c=u[s+1];Wo(1==(1&c)?qo(u,e,n,i,Kr(c),o):void 0)||(Wo(a)||2==(2&c)&&(a=qo(u,null,n,i,s,o)),function(t,e,n,r,i){var a=Gt(t);if(e)i?a?t.addClass(n,r):n.classList.add(r):a?t.removeClass(n,r):n.classList.remove(r);else{var o=-1==r.indexOf("-")?void 0:2;null==i?a?t.removeStyle(n,r,o):n.style.removeProperty(r):a?t.setStyle(n,r,i,o):n.style.setProperty(r,i)}}(r,o,Qt(Le(),n),i,a))}}function qo(t,e,n,r,i,a){for(var o=null===e,s=void 0;i>0;){var u=t[i],c=Array.isArray(u),l=c?u[1]:u,h=null===l,f=n[i+1];f===zr&&(f=h?Eo:void 0);var d=h?vt(f,r):l===r?f:void 0;if(c&&!Wo(d)&&(d=vt(u,r)),Wo(d)&&(s=d,o))return s;var p=t[i+1];i=o?Wr(p):Kr(p)}if(null!==e){var g=a?e.residualClasses:e.residualStyles;null!=g&&(s=vt(g,r))}return s}function Wo(t){return void 0!==t}function Go(t,e){return 0!=(t.flags&(e?16:32))}function Ko(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=ue(),r=ce(),i=t+20,a=r.firstCreatePass?Jr(r,n[6],t,3,null,null):r.data[i],o=n[i]=function(t,e){return Gt(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);Ji(r,n,o,a),fe(a,!1)}function Yo(t){return Qo("",t,""),Yo}function Qo(t,e,n){var r=ue(),i=Ja(r,t,e,n);return i!==zr&&zi(r,Le(),i),Qo}function Xo(t,e,n,r,i){var a=ue(),o=function(t,e,n,r,i,a){var o=Za(t,me(
1),n,i);return _e(2),o?e+tn(n)+r+tn(i)+a:zr}(a,t,e,n,r,i);return o!==zr&&zi(a,Le(),o),Xo}function Zo(t,e,n){No(yt,Do,Ja(ue(),t,e,n),!0)}function $o(t,e,n){var r=ue();return Xa(r,be(),e)&&hi(ce(),Re(),r,t,e,r[11],n,!0),$o}function Jo(t,e,n){var r=ue();if(Xa(r,be(),e)){var i=ce(),a=Re();hi(i,a,r,t,e,function(t,e,n){return(null===t||Ht(t))&&(n=function(t){for(;Array.isArray(t);){if("object"==typeof t[1])return t;t=t[0]}return null}(n[e.index])),n[11]}(Ce(i.data),a,r),n,!0)}return Jo}function ts(t,e){var n=te(t)[1],r=n.data.length-1;Ne(n,{directiveStart:r,directiveEnd:r+1})}function es(t){return Object.getPrototypeOf(t.prototype).constructor}function ns(t){for(var e=es(t.type),n=!0,r=[t];e;){var i=void 0;if(Ht(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 a=t;a.inputs=rs(t.inputs),a.declaredInputs=rs(t.declaredInputs),a.outputs=rs(t.outputs);var o=i.hostBindings;o&&os(t,o);var s=i.viewQuery,u=i.contentQueries;if(s&&is(t,s),u&&as(t,u),_(t.inputs,i.inputs),_(t.declaredInputs,i.declaredInputs),_(t.outputs,i.outputs),Ht(i)&&i.data.animation){var c=t.data;c.animation=(c.animation||[]).concat(i.data.animation)}a.afterContentChecked=a.afterContentChecked||i.afterContentChecked,a.afterContentInit=t.afterContentInit||i.afterContentInit,a.afterViewChecked=t.afterViewChecked||i.afterViewChecked,a.afterViewInit=t.afterViewInit||i.afterViewInit,a.doCheck=t.doCheck||i.doCheck,a.onDestroy=t.onDestroy||i.onDestroy,a.onInit=t.onInit||i.onInit}var l=i.features;if(l)for(var h=0;h<l.length;h++){var f=l[h];f&&f.ngInherit&&f(t),f===ns&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){for(var e=0,n=null,r=t.length-1;r>=0;r--){var i=t[r];i.hostVars=e+=i.hostVars,i.hostAttrs=Ye(i.hostAttrs,n=Ye(n,i.hostAttrs))}}(r)}function rs(t){return t===wt?{}:t===kt?[]:t}function is(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,r){e(t,r),n(t,r)}:e}function as(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,r,i){e(t,r,i),n(t,r,i)}:e}function os(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,r){e(t,r),n(t,r)}:e}var ss=["providersResolver"],us=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function cs(t){var e,n=es(t.type);e=Ht(t)?n.\u0275cmp:n.\u0275dir;var r,i=t,a=_createForOfIteratorHelper(ss);try{for(a.s();!(r=a.n()).done;){var o=r.value;i[o]=e[o]}}catch(l){a.e(l)}finally{a.f()}if(Ht(e)){var s,u=_createForOfIteratorHelper(us);try{for(u.s();!(s=u.n()).done;){var c=s.value;i[c]=e[c]}}catch(l){u.e(l)}finally{u.f()}}}var ls=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 hs(t){t.type.prototype.ngOnChanges&&(t.setInput=fs,t.onChanges=function(){var t=ds(this),e=t&&t.current;if(e){var n=t.previous;if(n===wt)t.previous=e;else for(var r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}})}function fs(t,e,n,r){var i=ds(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:wt,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[n],u=o[s];a[s]=new ls(u&&u.currentValue,e,o===wt),t[r]=e}function ds(t){return t.__ngSimpleChanges__||null}function ps(t,e,n,r,i){if(t=R(t),Array.isArray(t))for(var a=0;a<t.length;a++)ps(t[a],e,n,r,i);else{var o=ce(),s=ue(),u=Ia(t)?t:R(t.provide),c=Aa(t),l=he(),h=65535&l.providerIndexes,f=l.directiveStart,d=l.providerIndexes>>16;if(Ia(t)||!t.multi){var p=new qe(c,i,no),g=vs(u,e,i?h:h+d,f);-1===g?(dn(cn(l,s),o,u),gs(o,t,e.length),e.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var y=vs(u,e,h+d,f),v=vs(u,e,h,h+d),m=y>=0&&n[y],b=v>=0&&n[v];if(i&&!b||!i&&!m){dn(cn(l,s),o,u);var _=function(t,e,n,r,i){var a=new qe(t,n,no);return a.multi=[],a.index=e,a.componentProviders=0,ys(a,i,r&&!n),a}(i?bs:ms,n.length,i,r,c);!i&&b&&(n[v].providerFactory=_),gs(o,t,e.length,0),e.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=65536),n.push(_),s.push(_)}else gs(o,t,y>-1?y:v,ys(n[i?v:y],c,!i&&r));!i&&r&&b&&n[v].componentProviders++}}}function gs(t,e,n,r){var i=Ia(e);if(i||e.useClass){var a=(e.useClass||e).prototype.ngOnDestroy;if(a){var o=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){var s=o.indexOf(n);-1===s?o.push(n,[r,a]):o[s+1].push(r,a)}else o.push(n,a)}}}function ys(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function vs(t,e,n,r){for(var i=n;i<r;i++)if(e[i]===t)return i;return-1}function ms(t,e,n,r){return _s(this.multi,[])}function bs(t,e,n,r){var i,a=this.multi;if(this.providerFactory){var o=this.providerFactory.componentProviders,s=mn(n,n[1],this.providerFactory.index,r);_s(a,i=s.slice(0,o));for(var u=o;u<s.length;u++)i.push(s[u])}else _s(a,i=[]);return i}function _s(t,e){for(var n=0;n<t.length;n++)e.push((0,t[n])());return e}function ws(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(t,e,n){var r=ce();if(r.firstCreatePass){var i=Ht(t);ps(n,r.data,r.blueprint,i,!0),ps(e,r.data,r.blueprint,i,!1)}}(n,r?r(t):t,e)}}}hs.ngInherit=!0;var ks=_createClass((function t(){_classCallCheck(this,t)})),Cs=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(x(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),Os=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.NULL=new Cs,t}(),Ss=function(){var t=_createClass((function t(e){_classCallCheck(this,t),this.nativeElement=e}));return t.__NG_ELEMENT_ID__=function(){return Es(t)},t}(),Es=function(t){return ha(t,he(),ue())},As=_createClass((function t(){_classCallCheck(this,t)})),Ts=function(){var t={Important:1,DashCase:2};return t[t.Important]="Important",t[t.DashCase]="DashCase",t}(),Ms=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.__NG_ELEMENT_ID__=function(){return Is()},t}(),Is=function(){var t=ue(),e=Jt(he().index,t);
vendor: 13,276 bytes, line 1
1return function(t){var e=t[11];if(Gt(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Dt(e)?e:t)},xs=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275prov=w({token:t,providedIn:"root",factory:function(){return null}}),t}(),js=_createClass((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(".")})),Ls=new js("9.1.13"),Ps=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"supports",value:function(t){return Ka(t)}},{key:"create",value:function(t){return new Ds(t)}}]),t}(),Rs=function(t,e){return e},Ds=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||Rs}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 a=!n||e&&e.currentIndex<Fs(n,r,i)?e:n,o=Fs(a,r,i),s=a.currentIndex;if(a===n)r--,n=n._nextRemoved;else if(e=e._next,null==a.previousIndex)r++;else{i||(i=[]);var u=o-r,c=s-r;if(u!=c){for(var l=0;l<u;l++){var h=l<i.length?i[l]:i[l]=0,f=h+l;c<=f&&f<u&&(i[l]=h+1)}i[a.previousIndex]=c-u}}o!==s&&t(a,o,s)}}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachMovedItem",value:function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"forEachIdentityChange",value:function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}},{key:"diff",value:function(t){if(null==t&&(t=[]),!Ka(t))throw new Error("Error trying to diff '".concat(x(t),"'. Only arrays and iterables are allowed"));return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var n,r,i,a=this._itHead,o=!1;if(Array.isArray(t)){this.length=t.length;for(var s=0;s<this.length;s++)r=t[s],i=this._trackByFn(s,r),null!==a&&Wa(a.trackById,i)?(o&&(a=this._verifyReinsertion(a,r,i,s)),Wa(a.item,r)||this._addIdentityChange(a,r)):(a=this._mismatch(a,r,i,s),o=!0),a=a._next}else n=0,function(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r,i=t[qa()]();!(r=i.next()).done;)e(r.value)}(t,(function(t){i=e._trackByFn(n,t),null!==a&&Wa(a.trackById,i)?(o&&(a=e._verifyReinsertion(a,t,i,n)),Wa(a.item,t)||e._addIdentityChange(a,t)):(a=e._mismatch(a,t,i,n),o=!0),a=a._next,n++})),this.length=n;return this._truncate(a),this.collection=t,this.isDirty}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}},{key:"_reset",value:function(){if(this.isDirty){var t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Wa(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Wa(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new zs(e,n),i,r),t}},{key:"_verifyReinsertion",value:function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}},{key:"_truncate",value:function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}},{key:"_moveAfter",value:function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}},{key:"_addAfter",value:function(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}},{key:"_insertAfter",value:function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Vs),this._linkedRecords.put(t),t.currentIndex=n,t}},{key:"_remove",value:function(t){return this._addToRemovals(this._unlink(t))}},{key:"_unlink",value:function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}},{key:"_addToMoves",value:function(t,e){return t.previousIndex===e?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)}},{key:"_addToRemovals",value:function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Vs),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}},{key:"_addIdentityChange",value:function(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}]),t}(),zs=_createClass((function t(e,n){_classCallCheck(this,t),this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null})),Ns=function(){function t(){_classCallCheck(this,t),this._head=null,this._tail=null}return _createClass(t,[{key:"add",value:function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}},{key:"get",value:function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Wa(n.trackById,t))return n;return null}},{key:"remove",value:function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}]),t}(),Vs=function(){function t(){_classCallCheck(this,t),this.map=new Map}return _createClass(t,[{key:"put",value:function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Ns,this.map.set(e,n)),n.add(t)}},{key:"get",value:function(t,e){var n=this.map.get(t);return n?n.get(t,e):null}},{key:"remove",value:function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),t}();function Fs(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}var Hs=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"supports",value:function(t){return t instanceof Map||Ya(t)}},{key:"create",value:function(){return new Bs}}]),t}(),Bs=function(){function t(){_classCallCheck(this,t),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return _createClass(t,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)}},{key:"forEachPreviousItem",value:function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}},{key:"forEachChangedItem",value:function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}},{key:"forEachAddedItem",value:function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}},{key:"forEachRemovedItem",value:function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}},{key:"diff",value:function(t){if(t){if(!(t instanceof Map||Ya(t)))throw new Error("Error trying to diff '".concat(x(t),"'. Only maps and objects are allowed"))}else t=new Map;return this.check(t)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}},{key:"_getOrCreateRecordForKey",value:function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var a=new Us(t);return this._records.set(t,a),a.currentValue=e,this._addToAdditions(a),a}},{key:"_reset",value:function(){if(this.isDirty){var t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(t,e){Wa(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}},{key:"_addToAdditions",value:function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}},{key:"_addToChanges",value:function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}},{key:"_forEach",value:function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach((function(n){return e(t[n],n)}))}}]),t}(),Us=_createClass((function t(e){_classCallCheck(this,t),this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null})),qs=function(){var t=function(){function t(e){_classCallCheck(this,t),this.factories=e}return _createClass(t,[{key:"find",value:function(t){var e,n=this.factories.find((function(e){return e.supports(t)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'"))}}],[{key:"create",value:function(e,n){if(null!=n){var r=n.factories.slice();e=e.concat(r)}return new t(e)}},{key:"extend",value:function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new g,new d]]}}}]),t}();return t.\u0275prov=w({token:t,providedIn:"root",factory:function(){return new t([new Ps])}}),t}(),Ws=function(){var t=function(){function t(e){_classCallCheck(this,t),this.factories=e}return _createClass(t,[{key:"find",value:function(t){var e=this.factories.find((function(e){return e.supp
1orts(t)}));if(e)return e;throw new Error("Cannot find a differ supporting object '".concat(t,"'"))}}],[{key:"create",value:function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)}},{key:"extend",value:function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new g,new d]]}}}]),t}();return t.\u0275prov=w({token:t,providedIn:"root",factory:function(){return new t([new Hs])}}),t}(),Gs=[new Hs],Ks=new qs([new Ps]),Ys=new Ws(Gs),Qs=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.__NG_ELEMENT_ID__=function(){return Xs(t,Ss)},t}(),Xs=function(t,e){return fa(t,e,he(),ue())},Zs=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.__NG_ELEMENT_ID__=function(){return $s(t,Ss)},t}(),$s=function(t,e){return da(t,e,he(),ue())},Js={},tu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r;return _classCallCheck(this,n),(r=e.call(this)).ngModule=t,r}return _createClass(n,[{key:"resolveComponentFactory",value:function(t){var e=Lt(t);return new ru(e,this.ngModule)}}]),n}(Os);function eu(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var nu=new X("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return nn}}),ru=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this)).componentDef=t,i.ngModule=r,i.componentType=t.type,i.selector=t.selectors.map(Dr).join(","),i.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],i.isBoundToModule=!!r,i}return _createClass(n,[{key:"inputs",get:function(){return eu(this.componentDef.inputs)}},{key:"outputs",get:function(){return eu(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,r){var i,a,o=(r=r||this.ngModule)?function(t,e){return{get:function(n,r,i){var a=t.get(n,Js,i);return a!==Js||r===Js?a:e.get(n,r,i)}}}(t,r.injector):t,s=o.get(As,Kt),u=o.get(xs,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(Gt(t))return t.selectRootElement(e,n===_t.ShadowDom);var r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(c,n,this.componentDef.encapsulation):Zr(l,s.createRenderer(null,this.componentDef),function(t){var e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),f=this.componentDef.onPush?576:528,d="string"==typeof n&&/^#root-ng-internal-isolated-\d+/.test(n),p={components:[],scheduler:nn,clean:ji,playerHandler:null,flags:0},g=ui(0,-1,null,1,0,null,null,null,null,null),y=$r(null,g,p,f,null,null,s,c,u,o);Ae(y,null);try{var v=function(t,e,n,r,i,a){var o=n[1];n[20]=t;var s=Jr(o,null,0,3,null,null),u=s.mergedAttrs=e.hostAttrs;null!==u&&(Ba(s,u,!0),null!==t&&(We(i,t,u),null!==s.classes&&aa(i,t,s.classes),null!==s.styles&&ia(i,t,s.styles)));var c=r.createRenderer(t,e),l=$r(n,si(e),null,e.onPush?64:16,n[20],s,r,c,void 0);return o.firstCreatePass&&(dn(cn(s,n),o,e.type),vi(o,s),bi(s,n.length,1)),Ai(n,l),n[20]=l}(h,this.componentDef,y,s,c);if(h)if(n)We(c,h,["ng-version",Ls.full]);else{var m=function(t){for(var e=[],n=[],r=1,i=2;r<t.length;){var a=t[r];if("string"==typeof a)2===i?""!==a&&e.push(a,t[++r]):8===i&&n.push(a);else{if(!xr(i))break;i=a}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]),b=m.attrs,_=m.classes;b&&We(c,h,b),_&&_.length>0&&aa(c,h,_.join(" "))}if(a=Zt(g,0),void 0!==e)for(var w=a.projection=[],k=0;k<this.ngContentSelectors.length;k++){var C=e[k];w.push(null!=C?Array.from(C):null)}i=function(t,e,n,r,i){var a=n[1],o=function(t,e,n){var r=he();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),yi(t,r,1),_i(t,e,n));var i=mn(e,t,e.length-1,r);Cr(i,e);var a=Xt(r,e);return a&&Cr(a,e),i}(a,n,e);r.components.push(o),t[8]=o,i&&i.forEach((function(t){return t(o,e)})),e.contentQueries&&e.contentQueries(1,o,n.length-1);var s=he();if(a.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Pe(s.index-20);var u=n[1];di(u,e),pi(u,n,e.hostVars),gi(e,o)}return o}(v,this.componentDef,y,p,[ts]),ti(g,y,null)}finally{je()}var O=new iu(this.componentType,i,ha(Ss,a,y),y,a);return n&&!d||(g.node.child=a),O}}]),n}(ks),iu=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a,o){var s,u,c,l;return _classCallCheck(this,n),(s=e.call(this)).location=i,s._rootLView=a,s._tNo
1de=o,s.destroyCbs=[],s.instance=r,s.hostView=s.changeDetectorRef=new la(a),u=a[1],c=a,null==(l=u.node)&&(u.node=l=ci(0,null,2,-1,null,null)),c[6]=l,s.componentType=t,s}return _createClass(n,[{key:"injector",get:function(){return new wn(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(t){this.destroyCbs&&this.destroyCbs.push(t)}}]),n}(function(){return _createClass((function t(){_classCallCheck(this,t)}))}()),au=void 0,ou=["en",[["a","p"],["AM","PM"],au],[["AM","PM"],au,au],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],au,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],au,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",au,"{1} 'at' {0}",au],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],su={};function uu(t,e,n){"string"!=typeof e&&(n=e,e=t[du.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),su[e]=t,n&&(su[e][du.ExtraData]=n)}function cu(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=fu(e);if(n)return n;var r=e.split("-")[0];if(n=fu(r))return n;if("en"===r)return ou;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}function lu(t){return cu(t)[du.CurrencyCode]||null}function hu(t){return cu(t)[du.PluralCase]}function fu(t){return t in su||(su[t]=B.ng&&B.ng.common&&B.ng.common.locales&&B.ng.common.locales[t]),su[t]}var du=function(){var t={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};return t[t.LocaleId]="LocaleId",t[t.DayPeriodsFormat]="DayPeriodsFormat",t[t.DayPeriodsStandalone]="DayPeriodsStandalone",t[t.DaysFormat]="DaysFormat",t[t.DaysStandalone]="DaysStandalone",t[t.MonthsFormat]="MonthsFormat",t[t.MonthsStandalone]="MonthsStandalone",t[t.Eras]="Eras",t[t.FirstDayOfWeek]="FirstDayOfWeek",t[t.WeekendRange]="WeekendRange",t[t.DateFormat]="DateFormat",t[t.TimeFormat]="TimeFormat",t[t.DateTimeFormat]="DateTimeFormat",t[t.NumberSymbols]="NumberSymbols",t[t.NumberFormats]="NumberFormats",t[t.CurrencyCode]="CurrencyCode",t[t.CurrencySymbol]="CurrencySymbol",t[t.CurrencyName]="CurrencyName",t[t.Currencies]="Currencies",t[t.Directionality]="Directionality",t[t.PluralCase]="PluralCase",t[t.ExtraData]="ExtraData",t}();function pu(t){var e;null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: ".concat("Expected localeId to be defined")+" [Expected=> null != ".concat(e," <=Actual]"))}(0,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var gu=new Map,yu=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 a=Rt(t),o=t[K]||null;return o&&pu(o),i._bootstrapComponents=an(a.bootstrap),i._r3Injector=Oa(t,r,[{provide:lt,useValue:_assertThisInitialized(i)},{provide:Os,useValue:i.componentFactoryResolver}],x(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]:ja.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.Default;return t===ja||t===lt||t===Z?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;
1!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(lt),vu=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!==Rt(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(x(e)," vs ").concat(x(e.name)))})(n,gu.get(n),e),gu.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 yu(this.moduleType,t)}}]),n}(ht);function mu(t,e,n){var r=ve()+t,i=ue();return i[r]===zr?Qa(i,r,n?e.call(n):e()):function(t,e){return t[e]}(i,r)}function bu(t,e,n,r){return Cu(ue(),ve(),t,e,n,r)}function _u(t,e,n,r,i){return Ou(ue(),ve(),t,e,n,r,i)}function wu(t,e,n,r,i,a){return Su(ue(),ve(),t,e,n,r,i,a)}function ku(t,e){var n=t[e];return n===zr?void 0:n}function Cu(t,e,n,r,i,a){var o=e+n;return Xa(t,o,i)?Qa(t,o+1,a?r.call(a,i):r(i)):ku(t,o+1)}function Ou(t,e,n,r,i,a,o){var s=e+n;return Za(t,s,i,a)?Qa(t,s+2,o?r.call(o,i,a):r(i,a)):ku(t,s+2)}function Su(t,e,n,r,i,a,o,s){var u=e+n;return function(t,e,n,r,i){var a=Za(t,e,n,r);return Xa(t,e+2,i)||a}(t,u,i,a,o)?Qa(t,u+3,s?r.call(s,i,a,o):r(i,a,o)):ku(t,u+3)}function Eu(t,e){var n,r=ce(),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 a=n.factory||(n.factory=Pt(n.type)),o=rt(no),s=sn(!1),u=a();return sn(s),rt(o),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,ue(),t,u),u}function Au(t,e,n){var r=ue(),i=$t(r,t);return xu(r,Iu(r,t)?Cu(r,ve(),e,i.transform,n,i):i.transform(n))}function Tu(t,e,n,r){var i=ue(),a=$t(i,t);return xu(i,Iu(i,t)?Ou(i,ve(),e,a.transform,n,r,a):a.transform(n,r))}function Mu(t,e,n,r,i){var a=ue(),o=$t(a,t);return xu(a,Iu(a,t)?Su(a,ve(),e,o.transform,n,r,i,o):o.transform(n,r,i))}function Iu(t,e){return t[1].data[e+20].pure}function xu(t,e){return Ga.isWrapped(e)&&(e=Ga.unwrap(e),t[me()]=zr),e}var ju=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 a,o=function(t){return null},s=function(){return null};t&&"object"==typeof t?(a=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&&(s=this.__isAsync?function(){setTimeout((function(){return t.complete()}))}:function(){t.complete()})):(a=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&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var u=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,a,o,s);return t instanceof i.a&&t.add(u),u}}]),n}(r.a);function Lu(){return this._results[qa()]()}var Pu=function(){function t(){_classCallCheck(this,t),this.dirty=!0,this._results=[],this.changes=new ju,this.length=0;var e=qa(),n=t.prototype;n[e]||(n[e]=Lu)}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;r<e.length;r++){var i=e[r];Array.isArray(i)?(n===e&&(n=e.slice(0,r)),t(i,n)):n!==e&&n.push(i)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}},{key:"notifyOnChanges",value:function(){this.changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),t}(),Ru=function(){function t(e){_classCallCheck(this,t),this.queryList=e,this.matches=null}return _createClass(t,[{key:"clone",value:function(){return new t(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),t}(),Du=function(){function t(){var e=arguments.length>0&&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=[],a=0;a<r;a++){var o=n.getByIndex(a);i.push(this.queries[o.indexInDeclarationView].clone())}return new t(i)}return null}},{key:"insertView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"detachView",value:function(t){this.dirtyQueriesWithMatches(t)}},{key:"dirtyQueriesWithMatches",value:function(t){for(var e=0;e<this.queries.length;e++)null!==Zu(t,e).matches&&this.queries[e].setDirty()}}]),t}(),zu=_createClass((function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,t),this.predicate=e,this.descendants=n,this.isStatic=r,this.read=i})),Nu=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;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}},{key:"elementEnd",value:function(t){for(var e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}},{key:"embeddedTView",value:function(e){for(var n=null,r=0;r<this.length;r++){var i=null!==n?n.length:0,a=this.getByIndex(r).embeddedTView(e,i);a&&(a.indexInDeclarationView=r,null!==n?n.push(a):n=[a])}return null!==n?new t(n):null}},{key:"template",value:function(t,e){for(var n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}},{key:"getByIndex",value:function(t){return this.queries[t]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(t){this.queries.push(t)}}]),t}(),Vu=function(){function t(e){var n=arguments.length>1&&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;r<n.length;r++)this.matchTNodeWithReadOption(t,e,Fu(e,n[r]));else{var i=this.metadata.predicate;i===Qs?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,vn(e,t,i,!1,!1))}}},{key:"matchTNodeWithReadOption",value:function(t,e,n){if(null!==n){var r=this.metadata.read;if(null!==r)if(r===Ss||r===Zs||r===Qs&&0===e.type)this.addMatch(e.index,-2);else{var i=vn(e,t,r,!1,!1);null!==i&&this.addMatch(e.index,i)}else this.addMatch(e.index,n)}}},{key:"addMatch",value:function(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}]),t}();function Fu(t,e){var n=t.localNames;if(null!==n)for(var r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function Hu(t,e,n,r){return-1===n?function(t,e){return 3===t.type||4===t.type?ha(Ss,t,e):0===t.type?fa(Qs,Ss,t,e):null}(e,t):-2===n?function(t,e,n){return n===Ss?ha(Ss,e,t):n===Qs?fa(Qs,Ss,e,t):n===Zs?da(Zs,Ss,e,t):void 0}(t,e,r):mn(t,t[1],n,e)}function Bu(t,e,n,r){var i=e[19].queries[r];if(null===i.matches){for(var a=t.data,o=n.matches,s=[],u=0;u<o.length;u+=2){var c=o[u];s.push(c<0?null:Hu(e,a[c],o[u+1],n.metadata.read))}i.matches=s}return i.matches}function Uu(t){var e=ue(),n=ce(),r=Oe();Se(r+1);var i=Zu(n,r);if(t.dirty&&ee(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{var a=i.crossesNgTemplate?function t(e,n,r,i){var a=e.queries.getByIndex(r),o=a.matches;if(null!==o)for(var s=Bu(e,n,a,r),u=0;u<o.length;u+=2){var c=o[u];if(c>0)i.push(s[u/2]);else{for(var l=o[u+1],h=n[-c],f=10;f<h.length;f++){var d=h[f];d[17]===d[3]&&t(d[1],d,l,i)}if(null!==h[9])for(var p=h[9],g=0;g<p.length;g++){var y=p[g];t(y[1],y,l,i)}}}return i}(n,e,r,[]):Bu(n,e,i,r);t.reset(a),t.notifyOnChanges()}return!0}return!1}function qu(t,e,n){Gu(ce(),ue(),t,e,n,!0)}function Wu(t,e,n){Gu(ce(),ue(),t,e,n,!1)}function Gu(t,e,n,r,i,a){t.firstCreatePass&&(Xu(t,new zu(n,r,a,i),-1),a&&(t.staticViewQueries=!0)),Qu(t,e)}
1function Ku(t,e,n,r){!function(t,e,n,r,i,a,o,s){t.firstCreatePass&&(Xu(t,new zu(n,r,!1,i),o.index),function(t,e){var n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,s)),Qu(t,e)}(ce(),ue(),e,n,r,0,he(),t)}function Yu(){return t=ue(),e=Oe(),t[19].queries[e].queryList;var t,e}function Qu(t,e){var n=new Pu;!function(t,e,n,r){var i=Li(e);i.push(n),t.firstCreatePass&&Pi(t).push(r,i.length-1)}(t,e,n,n.destroy),null===e[19]&&(e[19]=new Du),e[19].queries.push(new Ru(n))}function Xu(t,e,n){null===t.queries&&(t.queries=new Nu),t.queries.track(new Vu(e,n))}function Zu(t,e){return t.queries.getByIndex(e)}function $u(t,e){return fa(Qs,Ss,t,e)}function Ju(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.Default,e=pa(!0);if(null!=e||t&m.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}var tc=h("Input",(function(t){return{bindingPropertyName:t}})),ec=h("Output",(function(t){return{bindingPropertyName:t}})),nc=h("HostBinding",(function(t){return{hostPropertyName:t}})),rc=h("HostListener",(function(t,e){return{eventName:t,args:e}})),ic=new X("Application Initializer"),ac=function(){var t=function(){function t(e){var n=this;_classCallCheck(this,t),this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(t,e){n.resolve=t,n.reject=e}))}return _createClass(t,[{key:"runInitializers",value:function(){var t=this;if(!this.initialized){var e=[],n=function(){t.done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();go(i)&&e.push(i)}Promise.all(e).then((function(){n()})).catch((function(e){t.reject(e)})),0===e.length&&n(),this.initialized=!0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(at(ic,8))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t}(),oc=new X("AppId"),sc={provide:oc,useFactory:function(){return"".concat(uc()).concat(uc()).concat(uc())},deps:[]};function uc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var cc=new X("Platform Initializer"),lc=new X("Platform ID"),hc=new X("appBootstrapListener"),fc=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"log",value:function(t){console.log(t)}},{key:"warn",value:function(t){console.warn(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t}(),dc=new X("LocaleId"),pc=new X("DefaultCurrencyCode"),gc=_createClass((function t(e,n){_classCallCheck(this,t),this.ngModuleFactory=e,this.componentFactories=n})),yc=function(t){return new vu(t)},vc=yc,mc=function(t){return Promise.resolve(yc(t))},bc=function(t){var e=yc(t),n=an(Rt(t).declarations).reduce((function(t,e){var n=Lt(e);return n&&t.push(new ru(n)),t}),[]);return new gc(e,n)},_c=bc,wc=function(t){return Promise.resolve(bc(t))},kc=function(){var t=function(){function t(){_classCallCheck(this,t),this.compileModuleSync=vc,this.compileModuleAsync=mc,this.compileModuleAndAllComponentsSync=_c,this.compileModuleAndAllComponentsAsync=wc}return _createClass(t,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(t){}},{key:"getModuleId",value:function(t){}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t}(),Cc=new X("compilerOptions"),Oc=Promise.resolve(0);function Sc(t){"undefined"==typeof Zone?Oc.then((function(){t&&t.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}var Ec=function(){function t(e){var n,r,i=e.enableLongStackTrace,a=void 0!==i&&i,o=e.shouldCoalesceEventChangeDetection,s=void 0!==o&&o;if(_classCallCheck(this,t),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ju(!1),this.onMicrotaskEmpty=new ju(!1),this.onStable=new ju(!1),this.onError=new ju(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=s,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var t=B.requestAnimationFrame,e=B.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){var n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);var r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,r=!!(n=this).shouldCoalesceEventChangeDetection&&n.nativeRequestAnimationFrame&&function(){!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(B,(function(){t.lastRequestAnimationFrameId=-1,Ic(t),Mc(t)})),Ic(t))}(n)},n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:r}
vendor: 4,225 bytes, line 1
1,onInvokeTask:function(t,e,i,a,o,s){try{return xc(n),t.invokeTask(i,a,o,s)}finally{r&&"eventTask"===a.type&&r(),jc(n)}},onInvoke:function(t,e,r,i,a,o,s){try{return xc(n),t.invoke(r,i,a,o,s)}finally{jc(n)}},onHasTask:function(t,e,r,i){t.hasTask(r,i),e===r&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,Ic(n),Mc(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:function(t,e,r,i){return t.handleError(r,i),n.runOutsideAngular((function(){return n.onError.emit(i)})),!1}})}return _createClass(t,[{key:"run",value:function(t,e,n){return this._inner.run(t,e,n)}},{key:"runTask",value:function(t,e,n,r){var i=this._inner,a=i.scheduleEventTask("NgZoneEvent: "+r,t,Tc,Ac,Ac);try{return i.runTask(a,e,n)}finally{i.cancelTask(a)}}},{key:"runGuarded",value:function(t,e,n){return this._inner.runGuarded(t,e,n)}},{key:"runOutsideAngular",value:function(t){return this._outer.run(t)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),t}();function Ac(){}var Tc={};function Mc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular((function(){return t.onStable.emit(null)}))}finally{t.isStable=!0}}}function Ic(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function xc(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function jc(t){t._nesting--,Mc(t)}var Lc=function(){function t(){_classCallCheck(this,t),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ju,this.onMicrotaskEmpty=new ju,this.onStable=new ju,this.onError=new ju}return _createClass(t,[{key:"run",value:function(t,e,n){return t.apply(e,n)}},{key:"runGuarded",value:function(t,e,n){return t.apply(e,n)}},{key:"runOutsideAngular",value:function(t){return t()}},{key:"runTask",value:function(t,e,n,r){return t.apply(e,n)}}]),t}(),Pc=function(){var t=function(){function t(e){var n=this;_classCallCheck(this,t),this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return _createClass(t,[{key:"_watchAngularEvents",value:function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.subscribe({next:function(){Ec.assertNotInAngularZone(),Sc((function(){t._isZoneStable=!0,t._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var t=this;if(this.isStable())Sc((function(){for(;0!==t._callbacks.length;){var e=t._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(t._didWork)}t._didWork=!1}));else{var e=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(t){return!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(t){return{source:t.source,creationLocation:t.creationLocation,data:t.data}})):[]}},{key:"addCallback",value:function(t,e,n){var r=this,i=-1;e&&e>0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(t){return t.timeoutId!==i})),t(r._didWork,r.getPendingTasks())}
1),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)(at(Ec))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t}(),Rc=function(){var t=function(){function t(){_classCallCheck(this,t),this._applications=new Map,Nc.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 Nc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t}();function Dc(t){Nc=t}var zc,Nc=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}()),Vc=function(t,e,n){var r=t.get(Cc,[]).concat(e),i=new vu(n);if(0===Va.size)return Promise.resolve(i);var a,o,s=(a=r.map((function(t){return t.providers})),o=[],a.forEach((function(t){return t&&o.push.apply(o,_toConsumableArray(t))})),o);if(0===s.length)return Promise.resolve(i);var u=function(){var t=B.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}(),c=ja.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(c.get(t))}(t);n.set(t,e=r.then(Ha))}return e}return Va.forEach((function(t,n){var i=[];t.templateUrl&&i.push(r(t.templateUrl).then((function(e){t.template=e})));var a=t.styleUrls,o=t.styles||(t.styles=[]),s=t.styles.length;a&&a.forEach((function(e,n){o.push(""),i.push(r(e).then((function(r){o[s+n]=r,a.splice(a.indexOf(e),1),0==a.length&&(t.styleUrls=void 0)})))}));var u=Promise.all(i).then((function(){return function(t){Fa.delete(t)}(n)}));e.push(u)})),Va=new Map,Promise.all(e).then((function(){}))}().then((function(){return i}))},Fc=new X("AllowMultipleToken"),Hc=_createClass((function t(e,n){_classCallCheck(this,t),this.name=e,this.token=n}));function Bc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(e),i=new X(r);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Uc();if(!a||a.injector.get(Fc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var o=n.concat(e).concat({provide:i,useValue:!0},{provide:ma,useValue:"platform"});!function(t){if(zc&&!zc.destroyed&&!zc.injector.get(Fc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zc=t.get(qc);var e=t.get(cc,null);e&&e.forEach((function(t){return t()}))}(ja.create({providers:o,name:r}))}return function(t){var e=Uc();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 Uc(){return zc&&!zc.destroyed?zc:null}var qc=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,a=(n=e?e.ngZone:void 0,r=e&&e.ngZoneEventCoalescing||!1,"noop"===n?new Lc:("zone.js"===n?void 0:n)||new Ec({enableLongStackTrace:qn(),shouldCoalesceEventChangeDetection:r})),o=[{provide:Ec,useValue:a}];return a.run((function(){var e=ja.create({providers:o,parent:i.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(An,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return Kc(i._modules,n)})),a.runOutsideAngular((function(){return a.onError.subscribe({next:function(t){r.handleError(t)}})})),function(t,e,r){try{var a=((o=n.injector.get(ac)).runInitializer
1s(),o.donePromise.then((function(){return pu(n.injector.get(dc,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return go(a)?a.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):a}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var o}(r,a)}))}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Wc({},n);return Vc(this.injector,r,t).then((function(t){return e.bootstrapModuleFactory(t,r)}))}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Gc);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(x(t.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");t.instance.ngDoBootstrap(e)}this._modules.push(t)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{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:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(at(ja))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t}();function Wc(t,e){return Array.isArray(e)?e.reduce(Wc,t):Object.assign(Object.assign({},t),e)}var Gc=function(){var t=function(){function t(e,n,r,i,u,c){var l=this;_classCallCheck(this,t),this._zone=e,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=u,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=qn(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run((function(){l.tick()}))}});var h=new a.a((function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular((function(){t.next(l._stable),t.complete()}))})),f=new a.a((function(t){var e;l._zone.runOutsideAngular((function(){e=l._zone.onStable.subscribe((function(){Ec.assertNotInAngularZone(),Sc((function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))}))}))}));var n=l._zone.onUnstable.subscribe((function(){Ec.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=Object(o.a)(h,f.pipe(Object(s.a)()))}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 ks?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(lt),a=n.create(ja.NULL,[],e||n.selector,i);a.onDestroy((function(){r._unloadComponent(a)}));var o=a.injector.get(Pc,null);return o&&a.injector.get(Rc).registerApplication(a.location.nativeElement,o),this._loadComponent(a),qn()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),a}},{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(a){n.e(a)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;){r.value.checkNoChanges()}}catch(a){i.e(a)}finally{i.f()}}}catch(o){this._zone.runOutsideAngular((function(){return t._exceptionHandler.handleError(o)}))}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;Kc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(hc,[]).concat(this._bootstrapListeners).forEac
1h((function(e){return e(t)}))}},{key:"_unloadComponent",value:function(t){this.detachView(t.hostView),Kc(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}();return t.\u0275fac=function(e){return new(e||t)(at(Ec),at(fc),at(ja),at(An),at(Os),at(ac))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t}();function Kc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Yc=_createClass((function t(){_classCallCheck(this,t)})),Qc=_createClass((function t(){_classCallCheck(this,t)})),Xc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Zc=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._compiler=e,this._config=n||Xc}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],a=r[1];return void 0===a&&(a="default"),n("zn8P")(i).then((function(t){return t[a]})).then((function(t){return $c(t,i,a)})).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],a="NgFactory";return void 0===i&&(i="default",a=""),n("zn8P")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then((function(t){return t[i+a]})).then((function(t){return $c(t,r,i)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(at(kc),at(Qc,8))},t.\u0275prov=w({token:t,factory:t.\u0275fac}),t}();function $c(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Jc=function(t){return null},tl=Bc(null,"core",[{provide:lc,useValue:"unknown"},{provide:qc,deps:[ja]},{provide:Rc,deps:[]},{provide:fc,deps:[]}]),el=[{provide:Gc,useClass:Gc,deps:[Ec,fc,ja,An,Os,ac]},{provide:nu,deps:[Ec],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:ac,useClass:ac,deps:[[new d,ic]]},{provide:kc,useClass:kc,deps:[]},sc,{provide:qs,useFactory:function(){return Ks},deps:[]},{provide:Ws,useFactory:function(){return Ys},deps:[]},{provide:dc,useFactory:function(t){return pu(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new f(dc),new d,new g]]},{provide:pc,useValue:"USD"}],nl=function(){var t=_createClass((function t(e){_classCallCheck(this,t)}));return t.\u0275mod=Tt({type:t}),t.\u0275inj=k({factory:function(e){return new(e||t)(at(Gc))},providers:el}),t}()},gRHU:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("2fFW"),i=n("NJ4a"),a={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},itXk:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("z+Ro"),i=n("DH7j"),a=n("l7GE"),o=n("ZUHj"),s=n("yCtX"),u={};function c(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var a=null,o=null;return Object(r.a)(e[e.length-1])&&(o=e.pop()),"function"==typeof e[e.length-1]&&(a=e.pop()),1===e.length&&Object(i.a)(e[0])&&(e=e[0]),Object(s.a)(e,o).lift(new l(a))}var l=function(){function t(e){_classCallCheck(this,t),this.resultSelector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new h(t,this.resultSelector))}}]),t}(),h=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(u),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;n<e;n++){var r=t[n];this.add(Object(o.a)(this,r,r,n))}}}},{key:"notifyComplete",value:function(t){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(t,e,n,r,i){var a=this.values,o=this.toRespond?a[n]===u?--this.toRespond:this.toRespond:0;a[n]=e,0===o&&(this.resultSelector?this._tryResultSelector(a):this.destination.next(a.slice()))}},{key:"_tryResultSelector",value:function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}]),n}(a.a)},jZKg:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n("HDdC"),i=n("quSY");function a(t,e){return new r.a((function(n){var r=new i.a,a=0;return r.add(e.schedule((function(){a!==t.length?(n.next(t[a++]),n.closed||r.add(this.schedule())):n.complete()}
1))),r}))}},jhN1:function(t,e,n){"use strict";n.d(e,"a",(function(){return D})),n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return P})),n.d(e,"d",(function(){return _}));var r,i=n("ofXK"),a=n("fXoL"),o=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(t,e){return t[e]}},{key:"log",value:function(t){window.console&&window.console.log&&window.console.log(t)}},{key:"logGroup",value:function(t){window.console&&window.console.group&&window.console.group(t)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}}},{key:"dispatchEvent",value:function(t,e){t.dispatchEvent(e)}},{key:"remove",value:function(t){return t.parentNode&&t.parentNode.removeChild(t),t}},{key:"getValue",value:function(t){return t.value}},{key:"createElement",value:function(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(t){return t.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(t){return t instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(t){var e,n=s||(s=document.querySelector("base"))?s.getAttribute("href"):null;return null==n?null:(e=n,r||(r=document.createElement("a")),r.setAttribute("href",e),"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname)}},{key:"resetBaseElement",value:function(){s=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(t){return Object(i.C)(document.cookie,t)}}],[{key:"makeCurrent",value:function(){Object(i.D)(new n)}}]),n}(function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(i.z)),s=null,u=new a.w("TRANSITION_ID"),c=[{provide:a.d,useFactory:function(t,e,n){return function(){n.get(a.e).donePromise.then((function(){var n=Object(i.B)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter((function(e){return e.getAttribute("ng-transition")===t})).forEach((function(t){return n.remove(t)}))}))}},deps:[u,i.c,a.x],multi:!0}],l=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"addToWindow",value:function(t){a.Cb.getAngularTestability=function(e){var n=!(arguments.length>1&&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},a.Cb.getAllAngularTestabilities=function(){return t.getAllTestabilities()},a.Cb.getAllAngularRootElements=function(){return t.getAllRootElements()},a.Cb.frameworkStabilizers||(a.Cb.frameworkStabilizers=[]),a.Cb.frameworkStabilizers.push((function(t){var e=a.Cb.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?Object(i.B)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){Object(a.kb)(new t)}}]),t}(),h=new a.w("EventManagerPlugins"),f=function(){var t=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<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event ".concat(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.mc(h),a.mc(a.G))},t.\u0275prov=a.Yb({token:t,factory:t.\u0275fac}),t}(),d=function(){function t(e){_classCallCheck(this,t),this._doc=e}return _createClass(t,[{key:"addGlobalEventListener",value:function(t,e,n){var r=Object(i.B)().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(e));return this.addEventListener(r,e,n)}}]),t}(),p=function(){var t=function(){function t(){_classCallCheck(this,t),this._stylesSet=new Set}return _createClass(t,[{key:"addStyles",value:function(t){var e=this,n=new Set;t.forEach((function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))})),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(t){}}
1,{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Yb({token:t,factory:t.\u0275fac}),t}(),g=function(){var t=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._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(t.head),r}return _createClass(n,[{key:"_addStylesToHost",value:function(t,e){var n=this;t.forEach((function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))}))}},{key:"addHost",value:function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}},{key:"removeHost",value:function(t){this._hostNodes.delete(t)}},{key:"onStylesAdded",value:function(t){var e=this;this._hostNodes.forEach((function(n){return e._addStylesToHost(t,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(t){return Object(i.B)().remove(t)}))}}]),n}(p);return t.\u0275fac=function(e){return new(e||t)(a.mc(i.c))},t.\u0275prov=a.Yb({token:t,factory:t.\u0275fac}),t}(),y={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},v=/%COMP%/g;function m(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?m(t,i,n):(i=i.replace(v,t),n.push(i))}return n}function b(t){return function(e){if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}var _=function(){var t=function(){function t(e,n,r){_classCallCheck(this,t),this.eventManager=e,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new w(e)}return _createClass(t,[{key:"createRenderer",value:function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case a.cb.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new k(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case a.cb.Native:case a.cb.ShadowDom:return new C(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=m(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)(a.mc(f),a.mc(g),a.mc(a.c))},t.\u0275prov=a.Yb({token:t,factory:t.\u0275fac}),t}(),w=function(){function t(e){_classCallCheck(this,t),this.eventManager=e,this.data=Object.create(null)}return _createClass(t,[{key:"destroy",value:function(){}},{key:"createElement",value:function(t,e){return e?document.createElementNS(y[e]||e,t):document.createElement(t)}},{key:"createComment",value:function(t){return document.createComment(t)}},{key:"createText",value:function(t){return document.createTextNode(t)}},{key:"appendChild",value:function(t,e){t.appendChild(e)}},{key:"insertBefore",value:function(t,e,n){t&&t.insertBefore(e,n)}},{key:"removeChild",value:function(t,e){t&&t.removeChild(e)}},{key:"selectRootElement",value:function(t,e){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'.concat(t,'" did not match any elements'));return e||(n.textContent=""),n}},{key:"parentNode",value:function(t){return t.parentNode}},{key:"nextSibling",value:function(t){return t.nextSibling}},{key:"setAttribute",value:function(t,e,n,r){if(r){e=r+":"+e;var i=y[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}},{key:"removeAttribute",value:function(t,e,n){if(n){var r=y[n];r?t.removeAttributeNS(r,e):t.removeAttribute("".concat(n,":").concat(e))}else t.removeAttribute(e)}},{key:"addClass",value:function(t,e){t.classList.add(e)}},{key:"removeClass",value:function(t,e){t.classList.remove(e)}},{key:"setStyle",value:function(t,e,n,r){r&a.O.DashCase?t.style.setProperty(e,n,r&a.O.Important?"important":""):t.style[e]=n}},{key:"removeStyle",value:function(t,e,n){n&a.O.DashCase?t.style.removeProperty(e):t.style[e]=""}},{key:"setProperty",value:function(t,e,n){t[e]=n}},{key:"setValue",value:function(t,e){t.nodeValue=e}},{key:"listen",value:function(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,b(n)):this.eventManager.addEventListener(t,e,b(n))}}]),t}(),k=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;_classCallCheck(this,n),(o=e.call(this,t)).component=i;var s,u=m(a+"-"+i.id,i.styles,[]);return r.addStyles(u),o.contentAttr="_ngcontent-%COMP%".replace(v,a+"-"+i.id),o.hostAttr=(s=a+"-"+i.id,"_nghost-%COMP%".replace(v,s)),o}
1return _createClass(n,[{key:"applyToHost",value:function(t){_get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,t,this.hostAttr,"")}},{key:"createElement",value:function(t,e){var r=_get(_getPrototypeOf(n.prototype),"createElement",this).call(this,t,e);return _get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),n}(w),C=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,o){var s;_classCallCheck(this,n),(s=e.call(this,t)).sharedStylesHost=r,s.hostEl=i,s.component=o,s.shadowRoot=o.encapsulation===a.cb.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),s.sharedStylesHost.addHost(s.shadowRoot);for(var u=m(o.id,o.styles,[]),c=0;c<u.length;c++){var l=document.createElement("style");l.textContent=u[c],s.shadowRoot.appendChild(l)}return s}return _createClass(n,[{key:"nodeOrShadowRoot",value:function(t){return t===this.hostEl?this.shadowRoot:t}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(t,e){return _get(_getPrototypeOf(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(t),e)}},{key:"insertBefore",value:function(t,e,r){return _get(_getPrototypeOf(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(t),e,r)}},{key:"removeChild",value:function(t,e){return _get(_getPrototypeOf(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(t),e)}},{key:"parentNode",value:function(t){return this.nodeOrShadowRoot(_get(_getPrototypeOf(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(t)))}}]),n}(w),O=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){return _classCallCheck(this,n),e.call(this,t)}return _createClass(n,[{key:"supports",value:function(t){return!0}},{key:"addEventListener",value:function(t,e,n){var r=this;return t.addEventListener(e,n,!1),function(){return r.removeEventListener(t,e,n)}}},{key:"removeEventListener",value:function(t,e,n){return t.removeEventListener(e,n)}}]),n}(d);return t.\u0275fac=function(e){return new(e||t)(a.mc(i.c))},t.\u0275prov=a.Yb({token:t,factory:t.\u0275fac}),t}(),S=["alt","control","meta","shift"],E={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},A={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},T={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},M=function(){var t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){return _classCallCheck(this,n),e.call(this,t)}return _createClass(n,[{key:"supports",value:function(t){return null!=n.parseEventName(t)}},{key:"addEventListener",value:function(t,e,r){var a=n.parseEventName(e),o=n.eventCallback(a.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return Object(i.B)().onAndCancel(t,a.domEventName,o)}))}}],[{key:"parseEventName",value:function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(e.pop()),a="";if(S.forEach((function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),a+=t+".")})),a+=i,0!=e.length||0===i.length)return null;var o={};return o.domEventName=r,o.fullKey=a,o}},{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&&A.hasOwnProperty(e)&&(e=A[e]))}return E[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),S.forEach((function(r){r!=n&&(0,T[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}(d);return t.\u0275fac=function(e){return new(e||t)(a.mc(i.c))},t.\u0275prov=a.Yb({token:t,factory:t.\u0275fac}),t}(),I=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(a.Yb)({factory:function(){return Object(a.mc)(j)},token:t,providedIn:"root"}),t}();function x(t){return new j(t.get(i.c))}var j=function(){var t=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 a.Q.NONE:return e;case a.Q.HTML:return Object(a.rb)(e,"HTML")?Object(a.Kb)(e):Object(a.ob)(this._doc,String(e));case a.Q.STYLE:return Object(a.rb)(e,"Style")?Object(a.Kb)(e):Object(a.pb)(e);case a.Q.SCRIPT:if(Object(a.rb)(e,"Script"))return Object(a.Kb)(e);throw new Error("unsafe value used in a script context");case a.Q.URL:return Object(a.Bb)(e),Object(a.rb)(e,"URL")?Object(a.Kb)(e):Object(a.qb)(String(e));case a.Q.RESOURCE_URL:if(Object(a.rb)(e,"ResourceURL"))return Object(a.Kb)(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see http://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return Object(a.sb)(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return Object(a.vb)(t)}},{key:"bypassSecurityTrustScript",value:function(t){return Object(a.ub)(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return Object(a.wb)(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return Object(a.tb)(t)}}]),n}(I);return t.\u0275fac=function(e){return new(e||t)(a.mc(i.c))},t.\u0275prov=Object(a.Yb)({factory:function(){return x(Object(a.mc)(a.u))},token:t,providedIn:"root"}),t}(),L=[{provide:a.J,useValue:i.A}
1,{provide:a.K,useValue:function(){o.makeCurrent(),l.init()},multi:!0},{provide:i.c,useFactory:function(){return Object(a.Ib)(document),document},deps:[]}],P=Object(a.eb)(a.jb,"browser",L),R=[[],{provide:a.mb,useValue:"root"},{provide:a.p,useFactory:function(){return new a.p},deps:[]},{provide:h,useClass:O,multi:!0,deps:[i.c,a.G,a.J]},{provide:h,useClass:M,multi:!0,deps:[i.c]},[],{provide:_,useClass:_,deps:[f,g,a.c]},{provide:a.N,useExisting:_},{provide:p,useExisting:g},{provide:g,useClass:g,deps:[i.c]},{provide:a.V,useClass:a.V,deps:[a.G]},{provide:f,useClass:f,deps:[h,a.G]},[]],D=function(){var t=function(){function t(e){if(_classCallCheck(this,t),e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:a.c,useValue:e.appId},{provide:u,useExisting:a.c},c]}}}]),t}();return t.\u0275mod=a.ac({type:t}),t.\u0275inj=a.Zb({factory:function(e){return new(e||t)(a.mc(t,12))},providers:R,imports:[i.b,a.f]}),t}();"undefined"!=typeof window&&window},jtHE:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n("XNiG"),i=n("qgXg"),a=n("quSY"),o=n("pxpQ"),s=n("9ppp"),u=n("Ylt2"),c=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,a=arguments.length>2?arguments[2]:void 0;
1return _classCallCheck(this,n),(t=e.call(this)).scheduler=a,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 l(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,c=r.length;if(this.closed)throw new s.a;if(this.isStopped||this.hasError?e=a.a.EMPTY:(this.observers.push(t),e=new u.a(this,t)),i&&t.add(t=new o.a(t,i)),n)for(var l=0;l<c&&!t.closed;l++)t.next(r[l]);else for(var h=0;h<c&&!t.closed;h++)t.next(r[h].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e}},{key:"_getNow",value:function(){return(this.scheduler||i.a).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,a=0;a<i&&!(t-r[a].time<n);)a++;return i>e&&(a=Math.max(a,i-e)),a>0&&r.splice(0,a),r}}]),n}(r.a),l=_createClass((function t(e,n){_classCallCheck(this,t),this.time=e,this.value=n}))},kJWO:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},l7GE:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=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}(n("7o/Q").a)},lJxs:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(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 a(t,e))}}var a=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 o(t,this.project,this.thisArg))}}]),t}(),o=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).project=r,a.count=0,a.thisArg=i||_assertThisInitialized(a),a}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}(r.a)},mCNh:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var r=n("SpAZ");function i(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return a(e)}function a(t){return 0===t.length?r.a:1===t.length?t[0]:function(e){return t.reduce((function(t,e){return e(t)}),e)}}},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},ngJS:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return function(e){for(var n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()}}},oB13:function(t,e,n){"use strict";var r,i=n("XNiG"),a=n("HDdC"),o=(n("7o/Q"),n("quSY")),s=n("x+ZX"),u=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 o.a).add(this.source.subscribe(new l(this.getSubject(),this))),t.closed&&(this._connection=null,t=o.a.EMPTY)),t}},{key:"refCount",value:function(){return Object(s.a)()(this)}}]),n}(a.a),c={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(r=u.prototype)._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}},l=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}(i.b);function h(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new f(r,e));var i=Object.create(n,c);return i.source=n,i.subjectFactory=r,i}}n.d(e,"a",(function(){return h}));var f=function(){function t(e,n){_classCallCheck(this,t),this.subjectFactory=e,this.selector=n}return _createClass(t,[{key:"call",value:function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i}}]),t}()},ofXK:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return bt})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return mt})),n.d(e,"e",(function(){return A})),n.d(e,"f",(function(){return k})),n.d(e,"g",(function(){return h})),n.d(e,"h",(function(){return C})),n.d(e,"i",(function(){return m})),n.d(e,"j",(function(){return ot})),n.d(e,"k",(function(){return ut})),n.d(e,"l",(function(){return lt})),n.d(e,"m",(function(){return pt})),n.d(e,"n",(function(){return gt})),n.d(e,"o",(function(){return yt})),n.d(e,"p",(function(){return vt})),n.d(e,"q",(function(){return w})),n.d(e,"r",(function(){return c})),n.d(e,"s",(function(){return T})),n.d(e,"t",(function(){return Ct})),n.d(e,"u",(function(){return x})),n.d(e,"v",(function(){return L})),n.d(e,"w",(function(){return j})),n.d(e,"x",(function(){return wt})),n.d(e,"y",(function(){return kt})),n.d(e,"z",(function(){return s})),n.d(e,"A",(function(){return _t})),n.d(e,"B",(function(){return a})),n.d(e,"C",(function(){return at})),n.d(e,"D",(function(){return o}
1));var r=n("fXoL"),i=null;function a(){return i}function o(t){i||(i=t)}var s=_createClass((function t(){_classCallCheck(this,t)})),u=new r.w("DocumentToken"),c=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Yb)({factory:l,token:t,providedIn:"platform"}),t}();function l(){return Object(r.mc)(f)}var h=new r.w("Location Initialized"),f=function(){var t=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=a().getLocation(),this._history=a().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return a().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){a().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}},{key:"onHashChange",value:function(t){a().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}},{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}},{key:"pushState",value:function(t,e,n){d()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){d()?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}}]),n}(c);return t.\u0275fac=function(e){return new(e||t)(r.mc(u))},t.\u0275prov=Object(r.Yb)({factory:p,token:t,providedIn:"platform"}),t}();function d(){return!!window.history.pushState}function p(){return new f(Object(r.mc)(u))}function g(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 y(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 v(t){return t&&"?"!==t[0]?"?"+t:t}var m=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Yb)({factory:b,token:t,providedIn:"root"}),t}();function b(t){var e=Object(r.mc)(u).location;return new w(Object(r.mc)(c),e&&e.origin||"")}var _=new r.w("appBaseHref"),w=function(){var t=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)}
1},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return g(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+v(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+v(r));this._platformLocation.pushState(t,e,i)}},{key:"replaceState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+v(r));this._platformLocation.replaceState(t,e,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(m);return t.\u0275fac=function(e){return new(e||t)(r.mc(c),r.mc(_,8))},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}(),k=function(){var t=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)}
1},{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=g(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,r){var i=this.prepareExternalUrl(n+v(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+v(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}(m);return t.\u0275fac=function(e){return new(e||t)(r.mc(c),r.mc(_,8))},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}(),C=function(){var t=function(){function t(e,n){var i=this;_classCallCheck(this,t),this._subject=new r.q,this._urlChangeListeners=[],this._platformStrategy=e;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=y(S(a)),this._platformStrategy.onPopState((function(t){i._subject.emit({url:i.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+v(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(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+v(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+v(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}();return t.\u0275fac=function(e){return new(e||t)(r.mc(m),r.mc(c))},t.normalizeQueryParams=v,t.joinWithSlash=g,t.stripTrailingSlash=y,t.\u0275prov=Object(r.Yb)({factory:O,token:t,providedIn:"root"}),t}();function O(){return new C(Object(r.mc)(m),Object(r.mc)(c))}function S(t){return t.replace(/\/index.html$/,"")}var E=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}(),A=function(){var t={Format:0,Standalone:1};return t[t.Format]="Format",t[t.Standalone]="Standalone",t}(),T=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}(),M=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}(),I=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 x(t,e,n){var i=Object(r.xb)(t),a=F([i[r.nb.DaysFormat],i[r.nb.DaysStandalone]],e);return F(a,n)}function j(t,e,n){var i=Object(r.xb)(t),a=F([i[r.nb.MonthsFormat],i[r.nb.MonthsStandalone]],e);return F(a,n)}function L(t){return Object(r.xb)(t)[r.nb.FirstDayOfWeek]}function P(t,e){return F(Object(r.xb)(t)[r.nb.DateFormat],e)}function R(t,e){return F(Object(r.xb)(t)[r.nb.TimeFormat],e)}function D(t,e){return F(Object(r.xb)(t)[r.nb.DateTimeFormat],e)}function z(t,e){var n=Object(r.xb)(t),i=n[r.nb.NumberSymbols][e];if(void 0===i){if(e===I.CurrencyDecimal)return n[r.nb.NumberSymbols][I.Decimal];if(e===I.CurrencyGroup)return n[r.nb.NumberSymbols][I.Group]}return i}var N=r.Ab;function V(t){if(!t[r.nb.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(t[r.nb.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function F(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 H(t){var e=_slicedToArray(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var B=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,U={},q=/((?:[^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]*)/,W=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}(),G=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}(),K=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 Y(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function Q(t,e){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,a="";
1(t<0||i&&t<=0)&&(i?t=1-t:(t=-t,a=n));for(var o=String(t);o.length<e;)o="0"+o;return r&&(o=o.substr(o.length-e)),a+o}function X(t,e){var n=arguments.length>2&&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(a,o){var s,u=function(t,e){switch(t){case G.FullYear:return e.getFullYear();case G.Month:return e.getMonth();case G.Date:return e.getDate();case G.Hours:return e.getHours();case G.Minutes:return e.getMinutes();case G.Seconds:return e.getSeconds();case G.FractionalSeconds:return e.getMilliseconds();case G.Day:return e.getDay();default:throw new Error('Unknown DateType value "'.concat(t,'".'))}}(t,a);if((n>0||u>-n)&&(u+=n),t===G.Hours)0===u&&-12===n&&(u=12);else if(t===G.FractionalSeconds)return s=e,Q(u,3).substr(0,s);var c=z(o,I.MinusSign);return Q(u,e,c,r,i)}}function Z(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A.Format,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,o){return function(t,e,n,i,a,o){switch(n){case K.Months:return j(e,a,i)[t.getMonth()];case K.Days:return x(e,a,i)[t.getDay()];case K.DayPeriods:var s=t.getHours(),u=t.getMinutes();if(o){var c,l=function(t){var e=Object(r.xb)(t);return V(e),(e[r.nb.ExtraData][2]||[]).map((function(t){return"string"==typeof t?H(t):[H(t[0]),H(t[1])]}))}(e),h=function(t,e,n){var i=Object(r.xb)(t);V(i);var a=F([i[r.nb.ExtraData][0],i[r.nb.ExtraData][1]],e)||[];return F(a,n)||[]}(e,a,i);if(l.forEach((function(t,e){if(Array.isArray(t)){var n=t[0],r=n.hours,i=n.minutes,a=t[1],o=a.hours,l=a.minutes;s>=r&&u>=i&&(s<o||s===o&&u<l)&&(c=h[e])}else{var f=t.hours,d=t.minutes;f===s&&d===u&&(c=h[e])}})),c)return c}return function(t,e,n){var i=Object(r.xb)(t),a=F([i[r.nb.DayPeriodsFormat],i[r.nb.DayPeriodsStandalone]],e);return F(a,n)}(e,a,i)[s<12?0:1];case K.Eras:return function(t,e){return F(Object(r.xb)(t)[r.nb.Eras],e)}(e,i)[t.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(n))}}(a,o,t,e,n,i)}}function $(t){return function(e,n,r){var i=-1*r,a=z(n,I.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(t){case W.Short:return(i>=0?"+":"")+Q(o,2,a)+Q(Math.abs(i%60),2,a);case W.ShortGMT:return"GMT"+(i>=0?"+":"")+Q(o,1,a);case W.Long:return"GMT"+(i>=0?"+":"")+Q(o,2,a)+":"+Q(Math.abs(i%60),2,a);case W.Extended:return 0===r?"Z":(i>=0?"+":"")+Q(o,2,a)+":"+Q(Math.abs(i%60),2,a);default:throw new Error('Unknown zone width "'.concat(t,'"'))}}}function J(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r){var i,a,o,s;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,c=n.getDate();i=1+Math.floor((c+u)/7)}else{var l=(a=n.getFullYear(),o=new Date(a,0,1).getDay(),new Date(a,0,1+(o<=4?4:11)-o)),h=(s=n,new Date(s.getFullYear(),s.getMonth(),s.getDate()+(4-s.getDay()))).getTime()-l.getTime();i=1+Math.round(h/6048e5)}return Q(i,t,z(r,I.MinusSign))}}var tt={};function et(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function nt(t){return t instanceof Date&&!isNaN(t.valueOf())}var rt=_createClass((function t(){_classCallCheck(this,t)})),it=function(){var t=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(N(e||this.locale)(t)){case E.Zero:return"zero";case E.One:return"one";case E.Two:return"two";case E.Few:return"few";case E.Many:return"many";default:return"other"}}}]),n}(rt);return t.\u0275fac=function(e){return new(e||t)(r.mc(r.B))},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}();function at(t,e){e=encodeURIComponent(e);var n,r=_createForOfIteratorHelper(t.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i.indexOf("="),o=_slicedToArray(-1==a?[i,""]:[i.slice(0,a),i.slice(a+1)],2),s=o[0],u=o[1];if(s.trim()===e)return decodeURIComponent(u)}}catch(c){r.e(c)}finally{r.f()}return null}var ot=function(){var t=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:"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&&(Object(r.Db)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{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 ".concat(Object(r.Jb)(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)}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.z),r.cc(r.A),r.cc(r.o),r.cc(r.M))},t.\u0275dir=r.Xb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),st=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}(),ut=function(){var t=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:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){Object(r.ib)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(t),". ")+"See https://angular.io/api/common/NgForOf#change-propagation for more information."),this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=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 a=e._viewContainer.createEmbeddedView(e._template,new st(null,e._ngForOf,-1,-1),null===i?void 0:i),o=new ct(t,a);n.push(o)}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 ct(t,s);n.push(u)}}));for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,a=this._viewContainer.length;i<a;i++){var o=this._viewContainer.get(i);
1o.context.index=i,o.context.count=a,o.context.ngForOf=this._ngForOf}t.forEachIdentityChange((function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item}))}},{key:"_perViewChange",value:function(t,e){t.context.$implicit=e.item}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.bb),r.cc(r.U),r.cc(r.z))},t.\u0275dir=r.Xb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t}(),ct=_createClass((function t(e,n){_classCallCheck(this,t),this.record=e,this.view=n})),lt=function(){var t=function(){function t(e,n){_classCallCheck(this,t),this._viewContainer=e,this._context=new ht,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return _createClass(t,[{key:"ngIf",set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}},{key:"ngIfThen",set:function(t){ft("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(t){ft("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(t,e){return!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.bb),r.cc(r.U))},t.\u0275dir=r.Xb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t}(),ht=_createClass((function t(){_classCallCheck(this,t),this.$implicit=null,this.ngIf=null}));function ft(t,e){if(e&&!e.createEmbeddedView)throw new Error("".concat(t," must be a TemplateRef, but received '").concat(Object(r.Jb)(e),"'."))}var dt=function(){function t(e,n){_classCallCheck(this,t),this._viewContainerRef=e,this._templateRef=n,this._created=!1}return _createClass(t,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}]),t}(),pt=function(){var t=function(){function t(){_classCallCheck(this,t),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return _createClass(t,[{key:"ngSwitch",set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}},{key:"_matchCase",value:function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}},{key:"_updateDefaultCases",value:function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Xb({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t}(),gt=function(){var t=function(){function t(e,n,r){_classCallCheck(this,t),this.ngSwitch=r,r._addCase(),this._view=new dt(e,n)}return _createClass(t,[{key:"ngDoCheck",value:function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.bb),r.cc(r.U),r.cc(pt,1))},t.\u0275dir=r.Xb({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t}(),yt=function(){var t=_createClass((function t(e,n,r){_classCallCheck(this,t),r._addDefault(new dt(e,n))}));return t.\u0275fac=function(e){return new(e||t)(r.cc(r.bb),r.cc(r.U),r.cc(pt,1))},t.\u0275dir=r.Xb({type:t,selectors:[["","ngSwitchDefault",""]]}),t}(),vt=function(){var t=function(){function t(e){_classCallCheck(this,t),this._viewContainerRef
vendor: 4,816 bytes, line 1
1=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return _createClass(t,[{key:"ngOnChanges",value:function(t){if(this._shouldRecreateView(t)){var e=this._viewContainerRef;this._viewRef&&e.remove(e.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?e.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}},{key:"_shouldRecreateView",value:function(t){var e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}},{key:"_hasContextShapeChanged",value:function(t){var e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){var r,i=_createForOfIteratorHelper(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(-1===e.indexOf(a))return!0}}catch(o){i.e(o)}finally{i.f()}return!1}return!0}},{key:"_updateExistingContext",value:function(t){for(var e=0,n=Object.keys(t);e<n.length;e++){var r=n[e];this._viewRef.context[r]=this.ngTemplateOutletContext[r]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.bb))},t.\u0275dir=r.Xb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.Nb]}),t}(),mt=function(){var t=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",i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;if(null==e||""===e||e!=e)return null;try{return function(t,e,n,i){var a=function(t){if(nt(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],a=r[1],o=r[2];return new Date(i,a-1,o)}if(e=t.match(B))return function(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,a=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 o=Number(t[4]||0)-n,s=Number(t[5]||0)-r,u=Number(t[6]||0),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return a.call(e,o,s,u,c),e}(e)}var s=new Date(t);if(!nt(s))throw new Error('Unable to convert "'.concat(t,'" into a date'));return s}(t);e=function t(e,n){var i=function(t){return Object(r.xb)(t)[r.nb.LocaleId]}(e);if(U[i]=U[i]||{},U[i][n])return U[i][n];var a="";switch(n){case"shortDate":a=P(e,M.Short);break;case"mediumDate":a=P(e,M.Medium);break;case"longDate":a=P(e,M.Long);break;case"fullDate":a=P(e,M.Full);break;case"shortTime":a=R(e,M.Short);break;case"mediumTime":a=R(e,M.Medium);break;case"longTime":a=R(e,M.Long);break;case"fullTime":a=R(e,M.Full);break;case"short":var o=t(e,"shortTime"),s=t(e,"shortDate");a=Y(D(e,M.Short),[o,s]);break;case"medium":var u=t(e,"mediumTime"),c=t(e,"mediumDate");a=Y(D(e,M.Medium),[u,c]);break;case"long":var l=t(e,"longTime"),h=t(e,"longDate");a=Y(D(e,M.Long),[l,h]);break;case"full":var f=t(e,"fullTime"),d=t(e,"fullDate");a=Y(D(e,M.Full),[f,d])}return a&&(U[i][n]=a),a}(n,e)||e;for(var o,s=[];e;){if(!(o=q.exec(e))){s.push(e);break}var u=(s=s.concat(o.slice(1))).pop();if(!u)break;e=u}var c=a.getTimezoneOffset();i&&(c=et(i,c),a=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*(et(e,r)-r))}(a,i));var l="";return s.forEach((function(t){var e=function(t){if(tt[t])return tt[t];var e;switch(t){case"G":case"GG":case"GGG":e=Z(K.Eras,T.Abbreviated);break;case"GGGG":e=Z(K.Eras,T.Wide);break;case"GGGGG":e=Z(K.Eras,T.Narrow);break;case"y":e=X(G.FullYear,1,0,!1,!0);break;case"yy":e=X(G.FullYear,2,0,!0,!0);break;case"yyy":e=X(G.FullYear,3,0,!1,!0);break;case"yyyy":e=X(G.FullYear,4,0,!1,!0);break;case"M":case"L":e=X(G.Month,1,1);break;case"MM":case"LL":e=X(G.Month,2,1);break;case"MMM":e=Z(K.Months,T.Abbreviated);break;case"MMMM":e=Z(K.Months,T.Wide);break;case"MMMMM":e=Z(K.Months,T.Narrow);break;case"LLL":e=Z(K.Months,T.Abbreviated,A.Standalone);break;case"LLLL":e=Z(K.Months,T.Wide,A.Standalone);break;case"LLLLL":e=Z(K.Months,T.Narrow,A.Standalone);break;case"w":e=J(1);break;case"ww":e=J(2);break;case"W":e=J(1,!0);break;case"d":e=X(G.Date,1);break;case"dd":e=X(G.Date,2);break;case"E":case"EE":case"EEE":e=Z(K.Days,T.Abbreviated);break;case"EEEE":e=Z(K.Days,T.Wide);break;case"EEEEE":e=Z(K.Days,T.Narrow);break;case"EEEEEE":e=Z(K.Days,T.Short);break;case"a":case"aa":case"aaa":e=Z(K.DayPeriods,T.Abbreviated);break;case"aaaa":e=Z(K.DayPeriods,T.Wide);break;case"aaaaa":e=Z(K.DayPeriods,T.Narrow);break;
1case"b":case"bb":case"bbb":e=Z(K.DayPeriods,T.Abbreviated,A.Standalone,!0);break;case"bbbb":e=Z(K.DayPeriods,T.Wide,A.Standalone,!0);break;case"bbbbb":e=Z(K.DayPeriods,T.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":e=Z(K.DayPeriods,T.Abbreviated,A.Format,!0);break;case"BBBB":e=Z(K.DayPeriods,T.Wide,A.Format,!0);break;case"BBBBB":e=Z(K.DayPeriods,T.Narrow,A.Format,!0);break;case"h":e=X(G.Hours,1,-12);break;case"hh":e=X(G.Hours,2,-12);break;case"H":e=X(G.Hours,1);break;case"HH":e=X(G.Hours,2);break;case"m":e=X(G.Minutes,1);break;case"mm":e=X(G.Minutes,2);break;case"s":e=X(G.Seconds,1);break;case"ss":e=X(G.Seconds,2);break;case"S":e=X(G.FractionalSeconds,1);break;case"SS":e=X(G.FractionalSeconds,2);break;case"SSS":e=X(G.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=$(W.Short);break;case"ZZZZZ":e=$(W.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=$(W.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=$(W.Long);break;default:return null}return tt[t]=e,e}(t);l+=e?e(a,n,c):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")})),l}(e,n,a||this.locale,i)}catch(o){throw function(t,e){return Error("InvalidPipeArgument: '".concat(e,"' for pipe '").concat(Object(r.Jb)(t),"'"))}(t,o.message)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.cc(r.B))},t.\u0275pipe=r.bc({name:"date",type:t,pure:!0}),t}(),bt=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275mod=r.ac({type:t}),t.\u0275inj=r.Zb({factory:function(e){return new(e||t)},providers:[{provide:rt,useClass:it}]}),t}(),_t="browser";function wt(t){return t===_t}function kt(t){return"server"===t}var Ct=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275prov=Object(r.Yb)({token:t,providedIn:"root",factory:function(){return new Ot(Object(r.mc)(u),window,Object(r.mc)(r.p))}}),t}(),Ot=function(){function t(e,n,r){_classCallCheck(this,t),this.document=e,this.window=n,this.errorHandler=r,this.offset=function(){return[0,0]}}return _createClass(t,[{key:"setOffset",value:function(t){this.offset=Array.isArray(t)?function(){return t}:t}},{key:"getScrollPosition",value:function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]}},{key:"scrollToPosition",value:function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])}},{key:"scrollToAnchor",value:function(t){if(this.supportScrollRestoration()){t=this.window.CSS&&this.window.CSS.escape?this.window.CSS.escape(t):t.replace(/(\"|\'\ |:|\.|\[|\]|,|=)/g,"\\$1");try{var e=this.document.querySelector("#".concat(t));if(e)return void this.scrollToElement(e);var n=this.document.querySelector("[name='".concat(t,"']"));if(n)return void this.scrollToElement(n)}catch(r){this.errorHandler.handleError(r)}}}},{key:"setHistoryScrollRestoration",value:function(t){if(this.supportScrollRestoration()){var e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}},{key:"scrollToElement",value:function(t){var e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(n-i[0],r-i[1])}},{key:"supportScrollRestoration",value:function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}}}]),t}()},pLZG:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(t,e){return function(n){return n.lift(new a(t,e))}}var a=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 o(t,this.predicate,this.thisArg))}}]),t}(),o=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).predicate=r,a.thisArg=i,a.count=0,a}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}(r.a)},pxpQ:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return s}));var r=n("7o/Q"),i=n("WMd4");function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new o(t,e))}}var o=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;
1_classCallCheck(this,t),this.scheduler=e,this.delay=n}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new s(t,this.scheduler,this.delay))}}]),t}(),s=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(i=e.call(this,t)).scheduler=r,i.delay=a,i}return _createClass(n,[{key:"scheduleMessage",value:function(t){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new u(t,this.destination)))}},{key:"_next",value:function(t){this.scheduleMessage(i.a.createNext(t))}},{key:"_error",value:function(t){this.scheduleMessage(i.a.createError(t)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(i.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()}}]),n}(r.a),u=_createClass((function t(e,n){_classCallCheck(this,t),this.notification=e,this.destination=n}))},"q/0M":function(t,e,n){"use strict";function r(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}var i;n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return d}));var a=[],o=function(t){return t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT",t}({}),s={debug:o.DEBUG,verbose:o.VERBOSE,info:o.INFO,warn:o.WARN,error:o.ERROR,silent:o.SILENT},u=o.INFO,c=((i={})[o.DEBUG]="log",i[o.VERBOSE]="log",i[o.INFO]="info",i[o.WARN]="warn",i[o.ERROR]="error",i),l=function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(e<t.logLevel)){var a=(new Date).toISOString(),o=c[e];if(!o)throw new Error("Attempted to log a message with an invalid logType (value: "+e+")");console[o].apply(console,r(["["+a+"] "+t.name+":"],n))}},h=function(){function t(t){this.name=t,this._logLevel=u,this._logHandler=l,this._userLogHandler=null,a.push(this)}return Object.defineProperty(t.prototype,"logLevel",{get:function(){return this._logLevel},set:function(t){if(!(t in o))throw new TypeError('Invalid value "'+t+'" assigned to `logLevel`');this._logLevel=t},enumerable:!1,configurable:!0}),t.prototype.setLogLevel=function(t){this._logLevel="string"==typeof t?s[t]:t},Object.defineProperty(t.prototype,"logHandler",{get:function(){return this._logHandler},set:function(t){if("function"!=typeof t)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userLogHandler",{get:function(){return this._userLogHandler},set:function(t){this._userLogHandler=t},enumerable:!1,configurable:!0}),t.prototype.debug=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.DEBUG],t)),this._logHandler.apply(this,r([this,o.DEBUG],t))},t.prototype.log=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.VERBOSE],t)),this._logHandler.apply(this,r([this,o.VERBOSE],t))},t.prototype.info=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.INFO],t)),this._logHandler.apply(this,r([this,o.INFO],t))},t.prototype.warn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.WARN],t)),this._logHandler.apply(this,r([this,o.WARN],t))},t.prototype.error=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._userLogHandler&&this._userLogHandler.apply(this,r([this,o.ERROR],t)),this._logHandler.apply(this,r([this,o.ERROR],t))},t}();function f(t){a.forEach((function(e){e.setLogLevel(t)}))}function d(t,e){for(var n=function(n){var r=null;e&&e.level&&(r=s[e.level]),n.userLogHandler=null===t?null:function(e,n){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s=i.map((function(t){if(null==t)return null;if("string"==typeof t)return t;if("number"==typeof t||"boolean"==typeof t)return t.toString();if(t instanceof Error)return t.message;try{return JSON.stringify(t)}catch(e){return null}})).filter((function(t){return t})).join(" ");n>=(null!=r?r:e.logLevel)&&t({level:o[n].toLowerCase(),message:s,args:i,type:e.name})}},r=0,i=a;r<i.length;r++)n(i[r])}},qH2O:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}
1));var r=n("ofXK"),i=n("aceb"),a=n("fXoL"),o=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275mod=a.ac({type:t}),t.\u0275inj=a.Zb({factory:function(e){return new(e||t)},imports:[[r.b,i.q,i.u,i.c,i.h,i.o,i.B,i.z.forRoot(),i.w.forRoot()],i.q,i.u,i.c,i.z,i.h,i.o,i.B,i.w]}),t}()},qOnz:function(t,e,n){"use strict";var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return C})),n.d(e,"c",(function(){return E})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return A})),n.d(e,"f",(function(){return u})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return I})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return g})),n.d(e,"k",(function(){return y})),n.d(e,"l",(function(){return m})),n.d(e,"m",(function(){return b})),n.d(e,"n",(function(){return d})),n.d(e,"o",(function(){return p})),n.d(e,"p",(function(){return v})),n.d(e,"q",(function(){return w})),n.d(e,"r",(function(){return _}));var a=function(t){for(var e=[],n=0,r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?e[n++]=i:i<2048?(e[n++]=i>>6|192,e[n++]=63&i|128):55296==(64512&i)&&r+1<t.length&&56320==(64512&t.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&t.charCodeAt(++r)),e[n++]=i>>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},o={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<t.length;i+=3){var a=t[i],o=i+1<t.length,s=o?t[i+1]:0,u=i+2<t.length,c=u?t[i+2]:0,l=(15&s)<<2|c>>6,h=63&c;u||(h=64,o||(l=64)),r.push(n[a>>2],n[(3&a)<<4|s>>4],n[l],n[h])}return r.join("")},encodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(a(t),e)},decodeString:function(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):function(t){for(var e=[],n=0,r=0;n<t.length;){var i=t[n++];if(i<128)e[r++]=String.fromCharCode(i);else if(i>191&&i<224){var a=t[n++];e[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){var o=((7&i)<<18|(63&(a=t[n++]))<<12|(63&(s=t[n++]))<<6|63&t[n++])-65536;e[r++]=String.fromCharCode(55296+(o>>10)),e[r++]=String.fromCharCode(56320+(1023&o))}else{a=t[n++];var s=t[n++];e[r++]=String.fromCharCode((15&i)<<12|(63&a)<<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<t.length;){var a=n[t.charAt(i++)],o=i<t.length?n[t.charAt(i)]:0,s=++i<t.length?n[t.charAt(i)]:64,u=++i<t.length?n[t.charAt(i)]:64;if(++i,null==a||null==o||null==s||null==u)throw Error();r.push(a<<2|o>>4),64!==s&&(r.push(o<<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.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}},s=function(t){return function(t){var e=a(t);return o.encodeByteArray(e,!0)}(t).replace(/\./g,"")};function u(t){return c(void 0,t)}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)&&"__proto__"!==n&&(t[n]=c(t[n],e[n]));return t}var l=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 h(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');var n=e||"demo-project",r=t.iat||0,a=t.sub||t.user_id;if(!a)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");var o=i({iss:"https://securetoken.google.com/"+n,aud:n,iat:r,exp:r+3600,auth_time:r,sub:a,user_id:a,firebase:{sign_in_provider:"custom",identities:{}}},t);return[s(JSON.stringify({alg:"none",type:"JWT"})),s(JSON.stringify(o)),""].join(".")}function f(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function d(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(f())}function p(){try{return"[object process]"===Object.prototype.toString.call(global.process)}catch(t){return!1}}function g(){return"object"==typeof self&&self.self===self}function y(){var t="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof t&&void 0!==t.id}function v(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function m(){return f().indexOf("Electron/")>=0}function b(){var t=f();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function _(){return f().indexOf("MSAppHost/")>=0}function w(){return!p()&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}var k=function(t){function e(n,r,i){var a=t.call(this,r)||this;return a.code=n,a.customData=i,a.name="FirebaseError",Object.setPrototypeOf(a,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,C.prototype.create),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(e,t),e}(Error),C=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<arguments.length;n++)e[n-1]=arguments[n];var r=e[0]||{},i=this.service+"/"+t,a=this.errors[t],o=a?O(a,r):"Error",s=this.serviceName+": "+o+" ("+i+").",u=new k(i,s,r);return u},t}();function O(t,e){return t.replace(S,(function(t,n){var r=e[n];return null!=r?String(r):"<"+n+"?>"}))}var S=/\{\$([^}]+)}/g;function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function A(t,e){var n=new T(t,e);return n.subscribe.bind(n)}var T=function(){function t(t,e){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Prom
1ise.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<r.length;n++){var i=r[n];if(i in t&&"function"==typeof t[i])return!0}return!1}(t)?t:{next:t,error:e,complete:n}).next&&(r.next=M),void 0===r.error&&(r.error=M),void 0===r.complete&&(r.complete=M);var a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(t){}})),this.observers.push(r),a},t.prototype.unsubscribeOne=function(t){void 0!==this.observers&&void 0!==this.observers[t]&&(delete this.observers[t],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},t.prototype.forEachObserver=function(t){if(!this.finalized)for(var e=0;e<this.observers.length;e++)this.sendOne(e,t)},t.prototype.sendOne=function(t,e){var n=this;this.task.then((function(){if(void 0!==n.observers&&void 0!==n.observers[t])try{e(n.observers[t])}catch(r){"undefined"!=typeof console&&console.error&&console.error(r)}}))},t.prototype.close=function(t){var e=this;this.finalized||(this.finalized=!0,void 0!==t&&(this.finalError=t),this.task.then((function(){e.observers=void 0,e.onNoObservers=void 0})))},t}();function M(){}function I(t){return t&&t._delegate?t._delegate:t}},qgXg:function(t,e,n){"use strict";var r=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}(n("3N8a").a),i=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n)}(n("IjjT").a);n.d(e,"a",(function(){return a}));var a=new i(r)},quSY:function(t,e,n){"use strict";var r=n("DH7j"),i=n("XoHu"),a=n("n6bG"),o=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map((function(t,e){return"".concat(e+1,") ").concat(t.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}();n.d(e,"a",(function(){return c}));var s,u,c=((u=function(){function t(e){_classCallCheck(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return _createClass(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,s=this._unsubscribe,u=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var c=0;c<n.length;++c)n[c].remove(this);if(Object(a.a)(s))try{s.call(this)}catch(p){e=p instanceof o?l(p.errors):[p]}if(Object(r.a)(u))for(var h=-1,f=u.length;++h<f;){var d=u[h];if(Object(i.a)(d))try{d.unsubscribe()}catch(p){e=e||[],p instanceof o?e=e.concat(l(p.errors)):e.push(p)}}if(e)throw new o(e)}}},{key:"add",value:function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[n]:a.push(n),n}},{key:"remove",value:function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}]),t}()).EMPTY=((s=new u).closed=!0,s),u);function l(t){return t.reduce((function(t,e){return t.concat(e instanceof o?e.errors:e)}),[])}},sVev:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=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}()},sYmb:function(t,e,n){"use strict";var r=n("fXoL"),i=n("LRne"),a=n("HDdC");function o(t){return!!t&&(t instanceof a.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var s=n("cp0P"),u=n("GyhO"),c=n("NXyV"),l=n("IzEk"),h=n("UXun"),f=n("lJxs"),d=n("bOdf"),p=n("eIep");n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return U})),n.d(e,"c",(function(){return B})),n.d(e,"d",(function(){return H}));var g,y,v=_createClass((function t(){_classCallCheck(this,t)})),m=((g=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"getTranslation",value:function(t){return Object(i.a)({})}}]),n}(v)).\u0275fac=function(t){return b(t||g)},g.\u0275prov=r.Yb({token:g,factory:g.\u0275fac}),g),b=r.kc(m),_=_createClass((function t(){_classCallCheck(this,t)})),w=((y=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"handle",value:function(t){return t.key}}]),t}()).\u0275fac=function(t){return new(t||y)},y.\u0275prov=r.Yb({token:y,factory:y.\u0275fac}),y);function k(t,e){if(t===e)return!0;
1if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;var n,r,i,a=typeof t;if(a==typeof e&&"object"==a){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(r in i=Object.create(null),t){if(!k(t[r],e[r]))return!1;i[r]=!0}for(r in e)if(!(r in i)&&void 0!==e[r])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(r=0;r<n;r++)if(!k(t[r],e[r]))return!1;return!0}}return!1}function C(t){return null!=t}function O(t){return t&&"object"==typeof t&&!Array.isArray(t)}var S,E,A,T,M,I=_createClass((function t(){_classCallCheck(this,t)})),x=((S=function(t){_inherits(n,t);var e=_createSuper(n);function n(){var t;return _classCallCheck(this,n),(t=e.apply(this,arguments)).templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,t}return _createClass(n,[{key:"interpolate",value:function(t,e){return"string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t}},{key:"getValue",value:function(t,e){var n="string"==typeof e?e.split("."):[e];e="";do{e+=n.shift(),!C(t)||!C(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}},{key:"interpolateFunction",value:function(t,e){return t(e)}},{key:"interpolateString",value:function(t,e){var n=this;return e?t.replace(this.templateMatcher,(function(t,r){var i=n.getValue(e,r);return C(i)?i:t})):t}}]),n}(I)).\u0275fac=function(t){return j(t||S)},S.\u0275prov=r.Yb({token:S,factory:S.\u0275fac}),S),j=r.kc(x),L=_createClass((function t(){_classCallCheck(this,t)})),P=((E=function(t){_inherits(n,t);var e=_createSuper(n);function n(){return _classCallCheck(this,n),e.apply(this,arguments)}return _createClass(n,[{key:"compile",value:function(t,e){return t}},{key:"compileTranslations",value:function(t,e){return t}}]),n}(L)).\u0275fac=function(t){return R(t||E)},E.\u0275prov=r.Yb({token:E,factory:E.\u0275fac}),E),R=r.kc(P),D=_createClass((function t(){_classCallCheck(this,t),this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new r.q,this.onLangChange=new r.q,this.onDefaultLangChange=new r.q})),z=new r.w("USE_STORE"),N=new r.w("USE_DEFAULT_LANG"),V=new r.w("DEFAULT_LANGUAGE"),F=new r.w("USE_EXTEND"),H=((M=function(){function t(e,n,i,a,o){var s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],u=arguments.length>6&&void 0!==arguments[6]&&arguments[6],c=arguments.length>7&&void 0!==arguments[7]&&arguments[7],l=arguments.length>8?arguments[8]:void 0;_classCallCheck(this,t),this.store=e,this.currentLoader=n,this.compiler=i,this.parser=a,this.missingTranslationHandler=o,this.useDefaultLang=s,this.isolate=u,this.extend=c,this.pending=!1,this._onTranslationChange=new r.q,this._onLangChange=new r.q,this._onDefaultLangChange=new r.q,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}return _createClass(t,[{key:"onTranslationChange",get:function(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}},{key:"onLangChange",get:function(){return this.isolate?this._onLangChange:this.store.onLangChange}},{key:"onDefaultLangChange",get:function(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}},{key:"defaultLang",get:function(){return this.isolate?this._defaultLang:this.store.defaultLang},set:function(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(t){this.isolate?this._currentLang=t:this.store.currentLang=t}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(t){this.isolate?this._langs=t:this.store.langs=t}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(t){this.isolate?this._translations=t:this.store.translations=t}},{key:"setDefaultLang",value:function(t){var e=this;if(t!==this.defaultLang){var n=this.retrieveTranslations(t);void 0!==n?(null==this.defaultLang&&(this.defaultLang=t),n.pipe(Object(l.a)(1)).subscribe((function(n){e.changeDefaultLang(t)}))):this.changeDefaultLang(t)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(t){var e=this;if(t===this.currentLang)return Object(i.a)(this.translations[t]);var n=this.retrieveTranslations(t);return void 0!==n?(this.currentLang||(this.currentLang=t),n.pipe(Object(l.a)(1)).subscribe((function(n){e.changeLang(t)})),n):(this.changeLang(t),Object(i.a)(this.translations[t]))}},{key:"retrieveTranslations",value:function(t){var e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}},{key:"getTranslation",value:function(t){var e=this;this.pending=!0;var n=this.currentLoader.getTranslation(t).pipe(Object(h.a)(1),Object(l.a)(1));return this.loadingTranslations=n.pipe(Object(f.a)((function(n){return e.compiler.compileTranslations(n,t)})),Object(h.a)(1),Object(l.a)(1)),this.loadingTranslations.subscribe({next:function(n){e.translations[t]=e.extend&&e.translations[t]?Object.assign(Object.assign({},n),e.translations[t]):n,e.updateLangs(),e.pending=!1},error:function(t){e.pending=!1}}),n}},{key:"setTranslation",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e=this.compiler.compileTranslations(e,t),this.translations[t]=(n||this.extend)&&this.translations[t]?function t(e,n){var r=Object.assign({},e);
1return O(e)&&O(n)&&Object.keys(n).forEach((function(i){O(n[i])&&i in e?r[i]=t(e[i],n[i]):Object.assign(r,_defineProperty2({},i,n[i]))})),r}(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(t){var e=this;t.forEach((function(t){-1===e.langs.indexOf(t)&&e.langs.push(t)}))}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(t,e,n){var r;if(e instanceof Array){var a,u={},c=!1,l=_createForOfIteratorHelper(e);try{for(l.s();!(a=l.n()).done;){var h=a.value;u[h]=this.getParsedResult(t,h,n),o(u[h])&&(c=!0)}}catch(g){l.e(g)}finally{l.f()}if(c){var d=e.map((function(t){return o(u[t])?u[t]:Object(i.a)(u[t])}));return Object(s.a)(d).pipe(Object(f.a)((function(t){var n={};return t.forEach((function(t,r){n[e[r]]=t})),n})))}return u}if(t&&(r=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===r&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===r){var p={key:e,translateService:this};void 0!==n&&(p.interpolateParams=n),r=this.missingTranslationHandler.handle(p)}return void 0!==r?r:e}},{key:"get",value:function(t,e){var n=this;if(!C(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Object(d.a)((function(r){return o(r=n.getParsedResult(r,t,e))?r:Object(i.a)(r)})));var r=this.getParsedResult(this.translations[this.currentLang],t,e);return o(r)?r:Object(i.a)(r)}},{key:"getStreamOnTranslationChange",value:function(t,e){var n=this;if(!C(t)||!t.length)throw new Error('Parameter "key" required');return Object(u.a)(Object(c.a)((function(){return n.get(t,e)})),this.onTranslationChange.pipe(Object(p.a)((function(r){var a=n.getParsedResult(r.translations,t,e);return"function"==typeof a.subscribe?a:Object(i.a)(a)}))))}},{key:"stream",value:function(t,e){var n=this;if(!C(t)||!t.length)throw new Error('Parameter "key" required');return Object(u.a)(Object(c.a)((function(){return n.get(t,e)})),this.onLangChange.pipe(Object(p.a)((function(r){var a=n.getParsedResult(r.translations,t,e);return o(a)?a:Object(i.a)(a)}))))}},{key:"instant",value:function(t,e){if(!C(t)||!t.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],t,e);if(o(n)){if(t instanceof Array){var r={};return t.forEach((function(e,n){r[t[n]]=t[n]})),r}return t}return n}},{key:"set",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}},{key:"changeDefaultLang",value:function(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}},{key:"reloadLang",value:function(t){return this.resetLang(t),this.getTranslation(t)}},{key:"resetLang",value:function(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),t}()).\u0275fac=function(t){return new(t||M)(r.mc(D),r.mc(v),r.mc(L),r.mc(I),r.mc(_),r.mc(N),r.mc(z),r.mc(F),r.mc(V))},M.\u0275prov=r.Yb({token:M,factory:M.\u0275fac}),M),B=((T=function(){function t(e,n){_classCallCheck(this,t),this.translate=e,this._ref=n,this.value=""}
1return _createClass(t,[{key:"updateValue",value:function(t,e,n){var r=this,i=function(e){r.value=void 0!==e?e:t,r.lastKey=t,r._ref.markForCheck()};if(n){var a=this.translate.getParsedResult(n,t,e);o(a.subscribe)?a.subscribe(i):i(a)}this.translate.get(t,e).subscribe(i)}},{key:"transform",value:function(t){var e,n=this;if(!t||!t.length)return t;for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];if(k(t,this.lastKey)&&k(i,this.lastParams))return this.value;if(C(i[0])&&i.length)if("string"==typeof i[0]&&i[0].length){var o=i[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{e=JSON.parse(o)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: ".concat(i[0]))}}else"object"!=typeof i[0]||Array.isArray(i[0])||(e=i[0]);return this.lastKey=t,this.lastParams=i,this.updateValue(t,e),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe((function(r){n.lastKey&&r.lang===n.translate.currentLang&&(n.lastKey=null,n.updateValue(t,e,r.translations))}))),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe((function(r){n.lastKey&&(n.lastKey=null,n.updateValue(t,e,r.translations))}))),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe((function(){n.lastKey&&(n.lastKey=null,n.updateValue(t,e))}))),this.value}},{key:"_dispose",value:function(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}},{key:"ngOnDestroy",value:function(){this._dispose()}}]),t}()).\u0275fac=function(t){return new(t||T)(r.cc(H),r.oc())},T.\u0275pipe=r.bc({name:"translate",type:T,pure:!1}),T.\u0275prov=r.Yb({token:T,factory:T.\u0275fac}),T),U=((A=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:v,useClass:m},e.compiler||{provide:L,useClass:P},e.parser||{provide:I,useClass:x},e.missingTranslationHandler||{provide:_,useClass:w},D,{provide:z,useValue:e.isolate},{provide:N,useValue:e.useDefaultLang},{provide:F,useValue:e.extend},{provide:V,useValue:e.defaultLanguage},H]}}},{key:"forChild",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.loader||{provide:v,useClass:m},e.compiler||{provide:L,useClass:P},e.parser||{provide:I,useClass:x},e.missingTranslationHandler||{provide:_,useClass:w},{provide:z,useValue:e.isolate},{provide:N,useValue:e.useDefaultLang},{provide:F,useValue:e.extend},{provide:V,useValue:e.defaultLanguage},H]}}}]),t}()).\u0275mod=r.ac({type:A}),A.\u0275inj=r.Zb({factory:function(t){return new(t||A)}}),A)},spgP:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return b})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return v})),n.d(e,"f",(function(){return O})),n.d(e,"g",(function(){return w})),n.d(e,"h",(function(){return p})),n.d(e,"i",(function(){return y})),n.d(e,"j",(function(){return k}));var r=n("qgXg"),i=n("D0XW"),a=n("vkgz"),o=n("tf+s"),s=n("pxpQ"),u=n("fXoL"),c=n("Jgta");function l(){}var h=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a;_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}(),f=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",l,{},l,l)})),e.pipe(Object(a.a)({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}(),d=_createClass((function t(e){_classCallCheck(this,t),this.ngZone=e,this.outsideAngular=e.runOutsideAngular((function(){return new h(Zone.current)})),this.insideAngular=e.run((function(){return new h(Zone.current,i.a)}))}));function p(t){return function(e){return(e=e.lift(new f(t.ngZone))).pipe(Object(o.a)(t.outsideAngular),Object(s.b)(t.insideAngular))}}var g=["ngOnDestroy"],y=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Proxy(t,{get:function(i,a){return n.runOutsideAngular((function(){var i;if(t[a])return(null===(i=null==r?void 0:r.spy)||void 0===i?void 0:i.get)&&r.spy.get(a,t[a]),t[a];if(g.indexOf(a)>-1)return function(){};var o=e.toPromise().then((function(t){var e=t&&t[a];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 o[e]},apply:function(t,e,n){return o.then((function(t){var e,i=t&&t.apply(void 0,_toConsumableArray(n));return(null===(e=null==r?void 0:r.spy)||void 0===e?void 0:e.apply)&&r.spy.apply(a,n,i),i}))}})}))}})},v=function(t,e){e.forEach((function(e){Object.getOwnPropertyNames(e.prototype||e).forEach((function(n){Object.defineProperty(t.prototype,n,Object.getOwnPropertyDescriptor(e.prototype||e,n))}
1))}))},m=new u.w("angularfire2.app.options"),b=new u.w("angularfire2.app.nameOrConfig"),_=new u.Y("6.1.5");function w(e,n,r){var i="object"==typeof r&&r||{};i.name=i.name||"string"==typeof r&&r||"[DEFAULT]";var a=c.a.apps.filter((function(t){return t&&t.name===i.name}))[0]||n.runOutsideAngular((function(){return c.a.initializeApp(e,i)}));try{JSON.stringify(e)!==JSON.stringify(a.options)&&C("error","".concat(a.name," Firebase App already initialized with different options").concat(t.hot?", you may need to reload as Firebase is not HMR aware.":"."))}catch(o){}return a}var k=function(){C("warn","You may need to import 'firebase/auth' manually in your component rather than rely on AngularFireAuth's dynamic import, when using the emulator suite https://github.com/angular/angularfire/issues/2656")},C=function(t){for(var e,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];Object(u.ib)()&&"undefined"!=typeof console&&(e=console)[t].apply(e,r)};function O(e,n,r,i,a){var o=_toArray(globalThis.\u0275AngularfireInstanceCache.get(e)||[]),s=o[0],u=o.slice(1);if(s){try{a.some((function(t,e){var n=u[e];return t&&"object"==typeof t?JSON.stringify(t)!==JSON.stringify(n):t!==n}))&&C("error","".concat(n," was already initialized on the ").concat(r.name," Firebase App instance with different settings.").concat(t.hot?" You may need to reload as Firebase is not HMR aware.":""))}catch(l){}return s}var c=i();return globalThis.\u0275AngularfireInstanceCache.set(e,[c].concat(_toConsumableArray(a))),c}globalThis.\u0275AngularfireInstanceCache||(globalThis.\u0275AngularfireInstanceCache=new Map);var S={provide:_createClass((function t(){_classCallCheck(this,t)})),useFactory:w,deps:[m,u.G,[new u.H,b]]},E=function(){var t=function(){function t(e){_classCallCheck(this,t),c.a.registerVersion("angularfire",_.full,e.toString()),c.a.registerVersion("angular",u.X.full)}return _createClass(t,null,[{key:"initializeApp",value:function(e,n){return{ngModule:t,providers:[{provide:m,useValue:e},{provide:b,useValue:n}]}}}]),t}();return t.\u0275mod=u.ac({type:t}),t.\u0275inj=u.Zb({factory:function(e){return new(e||t)(u.mc(u.J))},providers:[S]}),t}()}).call(this,n("3UD+")(t))},"tf+s":function(t,e,n){"use strict";var r=n("HDdC"),i=n("7Hc7"),a=n("Y7HM"),o=function(t){_inherits(n,t);var e=_createSuper(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a;return _classCallCheck(this,n),(r=e.call(this)).source=t,r.delayTime=o,r.scheduler=s,(!Object(a.a)(o)||o<0)&&(r.delayTime=0),s&&"function"==typeof s.schedule||(r.scheduler=i.a),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]:i.a;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}(r.a);function s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n){return n.lift(new u(t,e))}}n.d(e,"a",(function(){return s}));var u=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 o(e,this.delay,this.scheduler).subscribe(t)}}]),t}()},"tk/3":function(t,e,n){"use strict";n.d(e,"a",(function(){return E})),n.d(e,"b",(function(){return H}));var r=n("fXoL"),i=n("LRne"),a=n("HDdC"),o=n("bOdf"),s=n("pLZG"),u=n("lJxs"),c=n("ofXK"),l=_createClass((function t(){_classCallCheck(this,t)})),h=_createClass((function t(){_classCallCheck(this,t)})),f=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(),a=t.slice(e+1).trim();n.maybeSetNormalizedName(r,i),n.headers.has(i)?n.headers.get(i).push(a):n.headers.set(i,[a])}}))}: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))}
vendor: 4,563 bytes, line 1
1))}: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 a=this.headers.get(e);if(!a)return;0===(a=a.filter((function(t){return-1===i.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}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}(),d=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"encodeKey",value:function(t){return p(t)}},{key:"encodeValue",value:function(t){return p(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function p(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 g=function(){function t(){var e,n,r,i=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,t),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new d,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=a.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),i=_slicedToArray(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),a=i[0],o=i[1],s=r.get(a)||[];s.push(o),r.set(a,s)})),r)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach((function(t){var e=a.fromObject[t];i.map.set(t,Array.isArray(e)?e:[e])}))):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().forEac
1h((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 y(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function v(t){return"undefined"!=typeof Blob&&t instanceof Blob}function m(t){return"undefined"!=typeof FormData&&t instanceof FormData}var b=function(){function t(e,n,r,i){var a;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,a=i):a=r,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.params&&(this.params=a.params)),this.headers||(this.headers=new f),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=n;else{var s=n.indexOf("?");this.urlWithParams=n+(-1===s?"?":s<n.length-1?"&":"")+o}}else this.params=new g,this.urlWithParams=n}return _createClass(t,[{key:"serializeBody",value:function(){return null===this.body?null:y(this.body)||v(this.body)||m(this.body)||"string"==typeof this.body?this.body:this.body instanceof g?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}},{key:"detectContentTypeHeader",value:function(){return null===this.body?null:m(this.body)?null:v(this.body)?this.body.type||null:y(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof g?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,a=void 0!==e.body?e.body:this.body,o=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,s=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,c=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&&(c=Object.keys(e.setParams).reduce((function(t,n){return t.set(n,e.setParams[n])}),c)),new t(n,r,a,{params:c,headers:u,reportProgress:s,responseType:i,withCredentials:o})}}]),t}(),_=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}(),w=_createClass((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 f,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})),k=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=_.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}(w),C=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=_.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}(w),O=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 ".concat(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 _createClass(n)}(w);function S(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var E=function(){var t=function(){function t(e){_classCallCheck(this,t),this.handler=e}return _createClass(t,[{key:"request",value:function(t,e){var n,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof b)n=t;else{var c=void 0;c=a.headers instanceof f?a.headers:new f(a.headers);var l=void 0;a.params&&(l=a.params instanceof g?a.params:new g({fromObject:a.params})),n=new b(t,e,void 0!==a.body?a.body:null,{headers:c,params:l,reportProgress:a.reportProgress,responseType:a.responseType||"json",withCredentials:a.withCredentials})}var h=Object(i.a)(n).pipe(Object(o.a)((function(t){return r.handler.handle(t)})));if(t instanceof b||"events"===a.observe)return h;var d=h.pipe(Object(s.a)((function(t){return t instanceof C}
1)));switch(a.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return d.pipe(Object(u.a)((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return d.pipe(Object(u.a)((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return d.pipe(Object(u.a)((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 d.pipe(Object(u.a)((function(t){return t.body})))}case"response":return d;default:throw new Error("Unreachable: unhandled observe type ".concat(a.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 g).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,S(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,S(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,S(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.mc(l))},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}(),A=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}(),T=new r.w("HTTP_INTERCEPTORS"),M=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}(),I=/^\)\]\}',?\n/,x=_createClass((function t(){_classCallCheck(this,t)})),j=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}(),L=function(){var t=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 a.a((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 a=t.responseType.toLowerCase();r.responseType="json"!==a?a:"text"}var o=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 f(r.getAllResponseHeaders()),a=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 k({headers:i,status:e,statusText:n,url:a})},c=function(){var e=u(),i=e.headers,a=e.status,o=e.statusText,s=e.url,c=null;204!==a&&(c=void 0===r.response?r.responseText:r.response),0===a&&(a=c?200:0);var l=a>=200&&a<300;if("json"===t.responseType&&"string"==typeof c){var h=c;c=c.replace(I,"");try{c=""!==c?JSON.parse(c):null}catch(f){c=h,l&&(l=!1,c={error:f,text:c})}}l?(n.next(new C({body:c,headers:i,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new O({error:c,headers:i,status:a,statusText:o,url:s||void 0}))},l=function(t){var e=u().url,i=new O({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:_.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},p=function(t){var e={type:_.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",c),r.addEventListener("error",l),t.reportProgress&&(r.addEventListener("progress",d),null!==o&&r.upload&&r.upload.addEventListener("progress",p)),r.send(o),n.next({type:_.Sent}),function(){r.removeEventListener("error",l),r.removeEventListener("load",c),t.reportProgress&&(r.removeEventListener("progress",d),null!==o&&r.upload&&r.upload.removeEventListener("progress",p)),r.abort()}}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.mc(x))},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}(),P=new r.w("XSRF_COOKIE_NAME"),R=new r.w("XSRF_HEADER_NAME"),D=_createClass((function t(){_classCallCheck(this,t)})),z=function(){var t=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=Object(c.C)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.mc(c.c),r.mc(r.J),r.mc(P))},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}(),N=function(){var t=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}();return t.\u0275fac=function(e){return new(e||t)(r.mc(D),r.mc(R))},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}(),V=function(){var t=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(T,[]);this.chain=e.reduceRight((function(t,e){return new A(t,e)}),this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(r.mc(h),r.mc(r.x))},t.\u0275prov=r.Yb({token:t,factory:t.\u0275fac}),t}(),F=function(){var t=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:N,useClass:M}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:P,useValue:e.cookieName}:[],e.headerName?{provide:R,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275mod=r.ac({type:t}),t.\u0275inj=r.Zb({factory:function(e){return new(e||t)},providers:[N,{provide:T,useExisting:N,multi:!0},{provide:D,useClass:z},{provide:P,useValue:"XSRF-TOKEN"},{provide:R,useValue:"X-XSRF-TOKEN"}
1]}),t}(),H=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.\u0275mod=r.ac({type:t}),t.\u0275inj=r.Zb({factory:function(e){return new(e||t)},providers:[E,{provide:l,useClass:V},L,{provide:h,useExisting:L},j,{provide:x,useExisting:j}],imports:[[F.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}()},tyNb:function(t,e,n){"use strict";var r=n("ofXK"),i=n("fXoL"),a=n("LRne"),o=n("Cfvw"),s=n("2Vo4"),u=n("HDdC"),c=n("sVev"),l=n("itXk"),h=n("NXyV"),f=n("XNiG"),d=n("EY2u"),p=n("lJxs"),g=n("0EUg"),y=n("pLZG"),v=n("7o/Q"),m=n("4I5i");function b(t){return function(e){return 0===t?Object(d.b)():e.lift(new _(t))}}var _=function(){function t(e){if(_classCallCheck(this,t),this.total=e,this.total<0)throw new m.a}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new w(t,this.total))}}]),t}(),w=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.ring=new Array,i.count=0,i}return _createClass(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,r=this.count++;e.length<n?e.push(t):e[r%n]=t}},{key:"_complete",value:function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var a=e++%n;t.next(r[a])}t.complete()}}]),n}(v.a),k=n("XDbj"),C=n("xbPD"),O=n("SpAZ");function S(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(y.a)((function(e,n){return t(e,n,r)})):O.a,b(1),n?Object(C.a)(e):Object(k.a)((function(){return new c.a})))}}var E=n("l7GE"),A=n("51Dv"),T=n("ZUHj");function M(t){return function(e){var n=new I(t),r=e.lift(n);return n.caught=r}}var I=function(){function t(e){_classCallCheck(this,t),this.selector=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new x(t,this.selector,this.caught))}}]),t}(),x=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t)).selector=r,a.caught=i,a}return _createClass(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(a){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var r=new A.a(this,void 0,void 0);this.add(r);var i=Object(T.a)(this,e,void 0,void 0,r);i!==r&&this.add(i)}}}]),n}(E.a),j=n("SxV6"),L=n("5+tZ"),P=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 R(t,this.predicate,this.thisArg,this.source))}}]),t}(),R=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;return _classCallCheck(this,n),(o=e.call(this,t)).predicate=r,o.thisArg=i,o.source=a,o.index=0,o.thisArg=i||_assertThisInitialized(o),o}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.a),D=n("eIep"),z=n("IzEk"),N=n("JX91"),V=n("Kqap"),F=n("bOdf"),H=n("mCNh"),B=n("vkgz"),U=n("quSY"),q=function(){function t(e){_classCallCheck(this,t),this.callback=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new W(t,this.callback))}}]),t}(),W=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 U.a(r)),i}return _createClass(n)}(v.a),G=n("bHdf");n.d(e,"a",(function(){return ee})),n.d(e,"b",(function(){return X})),n.d(e,"c",(function(){return fn})),n.d(e,"d",(function(){return dn})),n.d(e,"e",(function(){return _n})),n.d(e,"f",(function(){return pn})),n.d(e,"g",(function(){return Pn})),n.d(e,"h",(function(){return Cn}));var K,Y=_createClass((function t(e,n){_classCallCheck(this,t),this.id=e,this.url=n})),Q=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return _classCallCheck(this,n),(i=e.call(this,t,r)).navigationTrigger=a,i.restoredState=o,i}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Y),X=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t,r)).urlAfterRedirects=i,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Y),Z=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t,r)).reason=i,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Y),$=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){var a;return _classCallCheck(this,n),(a=e.call(this,t,r)).error=i,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Y),J=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;return _classCallCheck(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o.state=a,o}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}(Y),tt=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;return _classCallCheck(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o.state=a,o}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}(Y),et=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a,o){var s;return _classCallCheck(this,n),(s=e.call(this,t,r)).urlAfterRedirects=i,s.state=a,s.shouldActivate=o,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}(Y),nt=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;return _classCallCheck(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o.state=a,o}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}(Y),rt=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;return _classCallCheck(this,n),(o=e.call(this,t,r)).urlAfterRedirects=i,o.state=a,o}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}(Y),it=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}(),at=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}(),ot=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}(),st=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}(),ut=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}(),ct=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}(),lt=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}(),ht=((K=_createClass((function t(){_classCallCheck(this,t)}))).\u0275fac=function(t){return new(t||K)},K.\u0275cmp=i.Wb({type:K,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&i.dc(0,"router-outlet")},directives:function(){return[Cn]},encapsulation:2}),K),ft=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 dt(t){return new ft(t)}function pt(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function gt(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},a=0;a<r.length;a++){var o=r[a],s=t[a];if(o.startsWith(":"))i[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}var yt=_createClass((function t(e,n){_classCallCheck(this,t),this.routes=e,this.module=n}));function vt(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<t.length;n++){var r=t[n];mt(r,bt(e,r))}}function mt(t,e){if(!t)throw new Error("\n Invalid configuration of route '".concat(e,"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n "));if(Array.isArray(t))throw new Error("Invalid configuration of route '".concat(e,"': Array cannot be specified"));if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&"primary"!==t.outlet)throw new Error("Invalid configuration of route '".concat(e,"': a componentless route without children or loadChildren cannot have a named outlet set"));if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and children cannot be used together"));if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and loadChildren cannot be used together"));if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"': children and loadChildren cannot be used together"));if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '".concat(e,"': redirectTo and component cannot be used together"));if(t.path&&t.matcher)throw new Error("Invalid configuration of route '".concat(e,"': path and matcher cannot be used together"));if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '".concat(e,"'. One of the following must be provided: component, redirectTo, children or loadChildren"));if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '".concat(e,"': routes must have either a path or a matcher specified"));if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '".concat(e,"': path cannot start with a slash"));if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \"".concat(e,'", redirectTo: "').concat(t.redirectTo,"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'."));if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '".concat(e,"': pathMatch can only be set to 'prefix' or 'full'"));t.children&&vt(t.children,e)}function bt(t,e){return e?t||e.path?t&&!e.path?"".concat(t,"/"):!t&&e.path?e.path:"".concat(t,"/").concat(e.path):"":t}function _t(t){var e=t.children&&t.children.map(_t),n=e?Object.assign(Object.assign({},t),{children:e}):Object.assign({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=ht),n}function wt(t,e){var n,r=Object.keys(t),i=Object.keys(e);if(!r||!i||r.length!=i.length)return!1;for(var a=0;a<r.length;a++)if(!kt(t[n=r[a]],e[n]))return!1;return!0}function kt(t,e){return Array.isArray(t)&&Array.isArray(e)?t.length==e.length&&t.every((function(t){return e.indexOf(t)>-1})):t===e}function Ct(t){return Array.prototype.concat.apply([],t)}function Ot(t){return t.length>0?t[t.length-1]:null}function St(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Et(t){return Object(i.Eb)(t)?t:Object(i.Fb)(t)?Object(o.a)(Prom
1ise.resolve(t)):Object(a.a)(t)}function At(t,e,n){return n?function(t,e){return wt(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!xt(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 kt(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!!xt(n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!xt(n.segments,i))return!1;for(var a in r.children){if(!n.children[a])return!1;if(!t(n.children[a],r.children[a]))return!1}return!0}var o=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!xt(n.segments,o)&&!!n.children.primary&&e(n.children.primary,r,s)}(e,n,n.segments)}(t.root,e.root)}var Tt=function(){function t(e,n,r){_classCallCheck(this,t),this.root=e,this.queryParams=n,this.fragment=r}return _createClass(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=dt(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Rt.serialize(this)}}]),t}(),Mt=function(){function t(e,n){var r=this;_classCallCheck(this,t),this.segments=e,this.children=n,this.parent=null,St(n,(function(t,e){return t.parent=r}))}return _createClass(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Dt(this)}}]),t}(),It=function(){function t(e,n){_classCallCheck(this,t),this.path=e,this.parameters=n}return _createClass(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=dt(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Bt(this)}}]),t}();function xt(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function jt(t,e){var n=[];return St(t.children,(function(t,r){"primary"===r&&(n=n.concat(e(t,r)))})),St(t.children,(function(t,r){"primary"!==r&&(n=n.concat(e(t,r)))})),n}var Lt=_createClass((function t(){_classCallCheck(this,t)})),Pt=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"parse",value:function(t){var e=new Kt(t);return new Tt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,r;return"".concat("/".concat(function t(e,n){if(!e.hasChildren())return Dt(e);if(n){var r=e.children.primary?t(e.children.primary,!1):"",i=[];return St(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 a=jt(e,(function(n,r){return"primary"===r?[t(e.children.primary,!1)]:["".concat(r,":").concat(t(n,!1))]}));return"".concat(Dt(e),"/(").concat(a.join("//"),")")}(t.root,!0)),(n=t.queryParams,r=Object.keys(n).map((function(t){var e=n[t];return Array.isArray(e)?e.map((function(e){return"".concat(Nt(t),"=").concat(Nt(e))})).join("&"):"".concat(Nt(t),"=").concat(Nt(e))})),r.length?"?".concat(r.join("&")):"")).concat("string"==typeof t.fragment?"#".concat((e=t.fragment,encodeURI(e))):"")}}]),t}(),Rt=new Pt;function Dt(t){return t.segments.map((function(t){return Bt(t)})).join("/")}function zt(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nt(t){return zt(t).replace(/%3B/gi,";")}function Vt(t){return zt(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ft(t){return decodeURIComponent(t)}function Ht(t){return Ft(t.replace(/\+/g,"%20"))}function Bt(t){return"".concat(Vt(t.path)).concat((e=t.parameters,Object.keys(e).map((function(t){return";".concat(Vt(t),"=").concat(Vt(e[t]))})).join("")));var e}var Ut=/^[^\/()?;=#]+/;function qt(t){var e=t.match(Ut);return e?e[0]:""}var Wt=/^[^=?&#]+/,Gt=/^[^?&#]+/,Kt=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 Mt([],{}):new Mt([],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("#")?decode
1URIComponent(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 Mt(t,e)),n}},{key:"parseSegment",value:function(){var t=qt(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new It(Ft(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=qt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=qt(this.remaining);r&&(n=r,this.capture(n))}t[Ft(e)]=Ft(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(Wt);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(Gt);return e?e[0]:""}(this.remaining);r&&(n=r,this.capture(n))}var i=Ht(e),a=Ht(n);if(t.hasOwnProperty(i)){var o=t[i];Array.isArray(o)||(o=[o],t[i]=o),o.push(a)}else t[i]=a}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=qt(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 a=this.parseChildren();e[i]=1===Object.keys(a).length?a.primary:new Mt([],a),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}(),Yt=function(){function t(e){_classCallCheck(this,t),this._root=e}return _createClass(t,[{key:"root",get:function(){return this._root.value}},{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=Qt(t,this._root);return e?e.children.map((function(t){return t.value})):[]}},{key:"firstChild",value:function(t){var e=Qt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=Xt(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 Xt(t,this._root).map((function(t){return t.value}))}}]),t}();function Qt(t,e){if(t===e.value)return e;var n,r=_createForOfIteratorHelper(e.children);try{for(r.s();!(n=r.n()).done;){var i=Qt(t,n.value);if(i)return i}}catch(a){r.e(a)}finally{r.f()}return null}function Xt(t,e){if(t===e.value)return[e];var n,r=_createForOfIteratorHelper(e.children);try{for(r.s();!(n=r.n()).done;){var i=Xt(t,n.value);if(i.length)return i.unshift(e),i}}catch(a){r.e(a)}finally{r.f()}return[]}var Zt=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 $t(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var Jt=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,ae(_assertThisInitialized(i),t),i}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Yt);function te(t,e){var n=function(t,e){var n=new re([],{},{},"",{},"primary",e,null,t.root,-1,{});return new ie("",new Zt(n,[]))}(t,e),r=new s.a([new It("",{})]),i=new s.a({}),a=new s.a({}),o=new s.a({}),u=new s.a(""),c=new ee(r,i,o,u,a,"primary",e,n.root);return c.snapshot=n.root,new Jt(new Zt(c,[]),n)}var ee=function(){function t(e,n,r,i,a,o,s,u){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=u}
1return _createClass(t,[{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(Object(p.a)((function(t){return dt(t)})))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)((function(t){return dt(t)})))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function ne(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],a=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(a.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 re=function(){function t(e,n,r,i,a,o,s,u,c,l,h){_classCallCheck(this,t),this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=l,this._resolve=h}return _createClass(t,[{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=dt(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=dt(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map((function(t){return t.toString()})).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),t}(),ie=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,ae(_assertThisInitialized(i),r),i}return _createClass(n,[{key:"toString",value:function(){return oe(this._root)}}]),n}(Yt);function ae(t,e){e.value._routerState=t,e.children.forEach((function(e){return ae(t,e)}))}function oe(t){var e=t.children.length>0?" { ".concat(t.children.map(oe).join(", ")," } "):"";return"".concat(t.value).concat(e)}function se(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,wt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),wt(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!wt(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),wt(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function ue(t,e){var n,r;return wt(t.params,e.params)&&xt(n=t.url,r=e.url)&&n.every((function(t,e){return wt(t.parameters,r[e].parameters)}))&&!(!t.parent!=!e.parent)&&(!t.parent||ue(t.parent,e.parent))}function ce(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function le(t,e,n,r,i){var a={};return r&&St(r,(function(t,e){a[e]=Array.isArray(t)?t.map((function(t){return"".concat(t)})):"".concat(t)})),new Tt(n.root===t?e:function t(e,n,r){var i={};return St(e.children,(function(e,a){i[a]=e===n?r:t(e,n,r)})),new Mt(e.segments,i)}(n.root,t,e),a,i)}var he=function(){function t(e,n,r){if(_classCallCheck(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&ce(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!==Ot(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}(),fe=_createClass((function t(e,n,r){_classCallCheck(this,t),this.segmentGroup=e,this.processChildren=n,this.index=r}));function de(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:"".concat(t)}function pe(t,e,n){if(t||(t=new Mt([],{})),0===t.segments.length&&t.hasChildren())return ge(t,e,n);var r=function(t,e,n){for(var r=0,i=e,a={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return a;var o=t.segments[i],s=de(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!be(s,u,o))return a;r+=2}else{if(!be(s,{},o))return a;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var a=new Mt(t.segments.slice(0,r.pathIndex),{});return a.children.primary=new Mt(t.segments.slice(r.pathIndex),t.children),ge(a,0,i)}return r.match&&0===i.length?new Mt(t.segments,{}):r.match&&!t.hasChildren()?ye(t,e,n):r.match?ge(t,0,i):ye(t,e,n)}function ge(t,e,n){if(0===n.length)return new Mt(t.segments,{});var r=function(t){return"object"!=typeof t[0]?{primary:t}:void 0===t[0].outlets?{primary:t}:t[0].outlets}(n),i={};return St(r,(function(n,r){null!==n&&(i[r]=pe(t.children[r],e,n))}
1)),St(t.children,(function(t,e){void 0===r[e]&&(i[e]=t)})),new Mt(t.segments,i)}function ye(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var a=ve(n[i].outlets);return new Mt(r,a)}if(0===i&&ce(n[0]))r.push(new It(t.segments[e].path,n[0])),i++;else{var o=de(n[i]),s=i<n.length-1?n[i+1]:null;o&&s&&ce(s)?(r.push(new It(o,me(s))),i+=2):(r.push(new It(o,{})),i++)}}return new Mt(r,{})}function ve(t){var e={};return St(t,(function(t,n){null!==t&&(e[n]=ye(new Mt([],{}),0,t))})),e}function me(t){var e={};return St(t,(function(t,n){return e[n]="".concat(t)})),e}function be(t,e,n){return t==n.path&&wt(e,n.parameters)}var _e=function(){function t(e,n,r,i){_classCallCheck(this,t),this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=i}return _createClass(t,[{key:"activate",value:function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),se(this.futureState.root),this.activateChildRoutes(e,n,t)}},{key:"deactivateChildRoutes",value:function(t,e,n){var r=this,i=$t(e);t.children.forEach((function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]})),St(i,(function(t,e){r.deactivateRouteAndItsChildren(t,n)}))}},{key:"deactivateRoutes",value:function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var a=n.getContext(r.outlet);a&&this.deactivateChildRoutes(t,e,a.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)}},{key:"deactivateRouteAndItsChildren",value:function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}},{key:"detachAndStoreRouteSubtree",value:function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}}},{key:"deactivateRouteAndOutlet",value:function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=$t(t),a=t.value.component?r.children:e;St(i,(function(t,e){return n.deactivateRouteAndItsChildren(t,a)})),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}}},{key:"activateChildRoutes",value:function(t,e,n){var r=this,i=$t(e);t.children.forEach((function(t){r.activateRoutes(t,i[t.value.outlet],n),r.forwardEvent(new ct(t.value.snapshot))})),t.children.length&&this.forwardEvent(new st(t.value.snapshot))}},{key:"activateRoutes",value:function(t,e,n){var r=t.value,i=e?e.value:null;if(se(r),r===i)if(r.component){var a=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,a.children)}else this.activateChildRoutes(t,e,n);else if(r.component){var o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),we(s.route)}else{var u=function(t){for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(r.snapshot),c=u?u.module.componentFactoryResolver:null;o.attachRef=null,o.route=r,o.resolver=c,o.outlet&&o.outlet.activateWith(r,c),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)}}]),t}();function we(t){se(t.value),t.children.forEach(we)}function ke(t){return"function"==typeof t}function Ce(t){return t instanceof Tt}var Oe=_createClass((function t(e){_classCallCheck(this,t),this.segmentGroup=e||null})),Se=_createClass((function t(e){_classCallCheck(this,t),this.urlTree=e}));function Ee(t){return new u.a((function(e){return e.error(new Oe(t))}))}function Ae(t){return new u.a((function(e){return e.error(new Se(t))}))}function Te(t){return new u.a((function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))}))}var Me=function(){function t(e,n,r,a,o){_classCallCheck(this,t),this.configLoader=n,this.urlSerializer
1=r,this.urlTree=a,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(i.E)}return _createClass(t,[{key:"apply",value:function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,"primary").pipe(Object(p.a)((function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)}))).pipe(M((function(e){if(e instanceof Se)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Oe)throw t.noMatchError(e);throw e})))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,"primary").pipe(Object(p.a)((function(n){return e.createUrlTree(n,t.queryParams,t.fragment)}))).pipe(M((function(t){if(t instanceof Oe)throw e.noMatchError(t);throw t})))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var r=t.segments.length>0?new Mt([],{primary:t}):t;return new Tt(r,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(p.a)((function(t){return new Mt([],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 Object(a.a)({});var o=[],s=[],u={};return St(n,(function(n,i){var a,c,l=(a=i,c=n,r.expandSegmentGroup(t,e,c,a)).pipe(Object(p.a)((function(t){return u[i]=t})));"primary"===i?o.push(l):s.push(l)})),a.a.apply(null,o.concat(s)).pipe(Object(g.a)(),S(),Object(p.a)((function(){return u})))}(n.children)}},{key:"expandSegment",value:function(t,e,n,r,i,o){var s=this;return Object(a.a).apply(void 0,_toConsumableArray(n)).pipe(Object(p.a)((function(u){return s.expandSegmentAgainstRoute(t,e,n,u,r,i,o).pipe(M((function(t){if(t instanceof Oe)return Object(a.a)(null);throw t})))})),Object(g.a)(),Object(j.a)((function(t){return!!t})),M((function(t,n){if(t instanceof c.a||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,r,i))return Object(a.a)(new Mt([],{}));throw new Oe(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,a,o){return Le(r)!==a?Ee(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,a):Ee(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,r){var i=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ae(a):this.lineralizeSegments(n,a).pipe(Object(L.a)((function(n){var a=new Mt(n,{});return i.expandSegment(t,a,e,n,r,!1)})))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,r,i,a){var o=this,s=Ie(e,r,i),u=s.matched,c=s.consumedSegments,l=s.lastChild,h=s.positionalParamSegments;if(!u)return Ee(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?Ae(f):this.lineralizeSegments(r,f).pipe(Object(L.a)((function(r){return o.expandSegment(t,e,n,r.concat(i.slice(l)),a,!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(Object(p.a)((function(t){return n._loadedConfig=t,new Mt(r,{})}))):Object(a.a)(new Mt(r,{}));var o=Ie(e,n,r),s=o.matched,u=o.consumedSegments,c=o.lastChild;if(!s)return Ee(e);var l=r.slice(c);return this.getChildConfig(t,n,r).pipe(Object(L.a)((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 je(t,e,n)&&"primary"!==Le(n)}))}(t,n,r)?{segmentGroup:xe(new Mt(e,function(t,e){var n={};n.primary=e;var r,i=_createForOfIteratorHelper(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;""===a.path&&"primary"!==Le(a)&&(n[Le(a)]=new Mt([],{}))}}catch(o){i.e(o)}finally{i.f()}return n}(r,new Mt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return je(t,e,n)}
1))}(t,n,r)?{segmentGroup:xe(new Mt(t.segments,function(t,e,n,r){var i,a={},o=_createForOfIteratorHelper(n);try{for(o.s();!(i=o.n()).done;){var s=i.value;je(t,e,s)&&!r[Le(s)]&&(a[Le(s)]=new Mt([],{}))}}catch(u){o.e(u)}finally{o.f()}return Object.assign(Object.assign({},r),a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,l,r),s=o.segmentGroup,c=o.slicedSegments;return 0===c.length&&s.hasChildren()?i.expandChildren(n,r,s).pipe(Object(p.a)((function(t){return new Mt(u,t)}))):0===r.length&&0===c.length?Object(a.a)(new Mt(u,{})):i.expandSegment(n,s,r,c,"primary",!0).pipe(Object(p.a)((function(t){return new Mt(u.concat(t.segments),t.children)})))})))}},{key:"getChildConfig",value:function(t,e,n){var r=this;return e.children?Object(a.a)(new yt(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(a.a)(e._loadedConfig):function(t,e,n){var r,i=e.canLoad;return i&&0!==i.length?Object(o.a)(i).pipe(Object(p.a)((function(r){var i,a=t.get(r);if(function(t){return t&&ke(t.canLoad)}(a))i=a.canLoad(e,n);else{if(!ke(a))throw new Error("Invalid CanLoad guard");i=a(e,n)}return Et(i)}))).pipe(Object(g.a)(),(r=function(t){return!0===t},function(t){return t.lift(new P(r,void 0,t))})):Object(a.a)(!0)}(t.injector,e,n).pipe(Object(L.a)((function(n){return n?r.configLoader.load(t.injector,e).pipe(Object(p.a)((function(t){return e._loadedConfig=t,t}))):function(t){return new u.a((function(e){return e.error(pt("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))}))}(e)}))):Object(a.a)(new yt([],t))}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(a.a)(n);if(r.numberOfChildren>1||!r.children.primary)return Te(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 Tt(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return St(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,a=this.createSegments(t,e.segments,n,r),o={};return St(e.children,(function(e,a){o[a]=i.createSegmentGroup(t,e,n,r)})),new Mt(a,o)}},{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 a=n.value;if(a.path===t.path)return e.splice(r),a;r++}}catch(o){i.e(o)}finally{i.f()}return t}}]),t}();function Ie(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||gt)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function xe(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Mt(t.segments.concat(e.segments),e.children)}return t}function je(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Le(t){return t.outlet||"primary"}var Pe=_createClass((function t(e){_classCallCheck(this,t),this.path=e,this.route=this.path[this.path.length-1]})),Re=_createClass((function t(e,n){_classCallCheck(this,t),this.component=e,this.route=n}));function De(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 ze(t,e,n){var r=$t(t),i=t.value;St(r,(function(t,r){ze(t,i.component?e?e.children.getContext(r):null:e,n)})),n.canDeactivateChecks.push(new Re(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}var Ne=Symbol("INITIAL_VALUE");function Ve(){return Object(D.a)((function(t){return Object(l.a).apply(void 0,_toConsumableArray(t.map((function(t){return t.pipe(Object(z.a)(1),Object(N.a)(Ne))})))).pipe(Object(V.a)((function(t,e){var n=!1;return e.reduce((function(t,r,i){if(t!==Ne)return t;if(r===Ne&&(n=!0),!n){if(!1===r)return r;if(i===e.length-1||Ce(r))return r}return t}),t)}),Ne),Object(y.a)((function(t){return t!==Ne})),Object(p.a)((function(t){return Ce(t)?t:!0===t})),Object(z.a)(1))}))}function Fe(t,e){return null!==t&&e&&e(new ut(t)),Object(a.a)(!0)}function He(t,e){return null!==t&&e&&e(new ot(t)),Object(a.a)(!0)}function Be(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(a.a)(!0);var i=r.map((function(r){return Object(h.a)((function(){var i,a=De(r,e,n);if(function(t){return t&&ke(t.canActivate)}(a))i=Et(a.canActivate(e,t));else{if(!ke(a))throw new Error("Invalid CanActivate guard");i=Et(a(e,t))}return i.pipe(Object(j.a)())}))}));return Object(a.a)(i).pipe(Ve())}function Ue(t,e,n){var r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map((function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)})).filter((function(t){return null!==t})).map((function(e){return Object(h.a)((function(){var i=e.guards.map((function(i){var a,o=De(i,e.node,n);if(function(t){return t&&ke(t.canActivateChild)}
1(o))a=Et(o.canActivateChild(r,t));else{if(!ke(o))throw new Error("Invalid CanActivateChild guard");a=Et(o(r,t))}return a.pipe(Object(j.a)())}));return Object(a.a)(i).pipe(Ve())}))}));return Object(a.a)(i).pipe(Ve())}var qe=_createClass((function t(){_classCallCheck(this,t)})),We=function(){function t(e,n,r,i,a,o){_classCallCheck(this,t),this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return _createClass(t,[{key:"recognize",value:function(){try{var t=Ye(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new re([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Zt(n,e),i=new ie(this.url,r);return this.inheritParamsAndData(i._root),Object(a.a)(i)}catch(o){return new u.a((function(t){return t.error(o)}))}}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,r=ne(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach((function(t){return e.inheritParamsAndData(t)}))}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){var n,r=this,i=jt(e,(function(e,n){return r.processSegmentGroup(t,e,n)}));return n={},i.forEach((function(t){var e=n[t.value.outlet];if(e){var r=e.url.map((function(t){return t.toString()})).join("/"),i=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '".concat(r,"' and '").concat(i,"'."))}n[t.value.outlet]=t.value})),i.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)})),i}},{key:"processSegment",value:function(t,e,n,r){var i,a=_createForOfIteratorHelper(t);try{for(a.s();!(i=a.n()).done;){var o=i.value;try{return this.processSegmentAgainstRoute(o,e,n,r)}catch(s){if(!(s instanceof qe))throw s}}}catch(u){a.e(u)}finally{a.f()}if(this.noLeftoversInUrl(e,n,r))return[];throw new qe}},{key:"noLeftoversInUrl",value:function(t,e,n){return 0===e.length&&!t.children[n]}},{key:"processSegmentAgainstRoute",value:function(t,e,n,r){if(t.redirectTo)throw new qe;if((t.outlet||"primary")!==r)throw new qe;var i,a=[],o=[];if("**"===t.path){var s=n.length>0?Ot(n).parameters:{};i=new re(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ze(t),r,t.component,t,Ge(e),Ke(e)+n.length,$e(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new qe;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||gt)(n,t,e);if(!r)throw new qe;var i={};St(r.posParams,(function(t,e){i[e]=t.path}));var a=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:a}}(e,t,n);a=u.consumedSegments,o=n.slice(u.lastChild),i=new re(a,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ze(t),r,t.component,t,Ge(e),Ke(e)+a.length,$e(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),l=Ye(e,a,o,c,this.relativeLinkResolution),h=l.segmentGroup,f=l.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new Zt(i,d)]}if(0===c.length&&0===f.length)return[new Zt(i,[])];var p=this.processSegment(c,h,f,"primary");return[new Zt(i,p)]}}]),t}();function Ge(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Ke(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 Ye(t,e,n,r,i){if(n.length>0&&function(t,e,n){return n.some((function(n){return Qe(t,e,n)&&"primary"!==Xe(n)}))}(t,n,r)){var a=new Mt(e,function(t,e,n,r){var i={};i.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;var a,o=_createForOfIteratorHelper(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==Xe(s)){var u=new Mt([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[Xe(s)]=u}}}catch(c){o.e(c)}finally{o.f()}return i}(t,e,r,new Mt(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return Qe(t,e,n)}
1))}(t,n,r)){var o=new Mt(t.segments,function(t,e,n,r,i,a){var o,s={},u=_createForOfIteratorHelper(r);try{for(u.s();!(o=u.n()).done;){var c=o.value;if(Qe(t,n,c)&&!i[Xe(c)]){var l=new Mt([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===a?t.segments.length:e.length,s[Xe(c)]=l}}}catch(h){u.e(h)}finally{u.f()}return Object.assign(Object.assign({},i),s)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new Mt(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Qe(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Xe(t){return t.outlet||"primary"}function Ze(t){return t.data||{}}function $e(t){return t.resolve||{}}function Je(t,e,n,r){var i=De(t,e,r);return Et(i.resolve?i.resolve(e,n):i(e,n))}function tn(t){return function(e){return e.pipe(Object(D.a)((function(e){var n=t(e);return n?Object(o.a)(n).pipe(Object(p.a)((function(){return e}))):Object(o.a)([e])})))}}var en=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}(),nn=new i.w("ROUTES"),rn=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(Object(p.a)((function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new yt(Ct(i.injector.get(nn)).map(_t),i)})))}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?Object(o.a)(this.loader.load(t)):Et(t()).pipe(Object(L.a)((function(t){return t instanceof i.C?Object(a.a)(t):Object(o.a)(e.compiler.compileModuleAsync(t))})))}}]),t}(),an=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 on(t){throw t}function sn(t,e,n){return e.parse("/")}function un(t,e){return Object(a.a)(null)}var cn,ln,hn,fn=((hn=function(){function t(e,n,r,a,o,u,c,l){var h=this;_classCallCheck(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=r,this.location=a,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new f.a,this.errorHandler=on,this.malformedUriErrorHandler=sn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:un,afterPreactivation:un},this.urlHandlingStrategy=new an,this.routeReuseStrategy=new en,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(i.E),this.console=o.get(i.lb);var d=o.get(i.G);this.isNgZoneEnabled=d instanceof i.G,this.resetConfig(l),this.currentUrlTree=new Tt(new Mt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new rn(u,c,(function(t){return h.triggerEvent(new it(t))}),(function(t){return h.triggerEvent(new at(t))})),this.routerState=te(this.currentUrlTree,this.rootComponentType),this.transitions=new s.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return _createClass(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Object(y.a)((function(t){return 0!==t.id})),Object(p.a)((function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}
1)),Object(D.a)((function(t){var r,i,u,c,l=!1,h=!1;return Object(a.a)(t).pipe(Object(B.a)((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}})),Object(D.a)((function(t){var r,i,o,s,u=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||u)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(a.a)(t).pipe(Object(D.a)((function(t){var r=e.transitions.getValue();return n.next(new Q(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),r!==e.transitions.getValue()?d.a:[t]})),Object(D.a)((function(t){return Promise.resolve(t)})),(r=e.ngModule.injector,i=e.configLoader,o=e.urlSerializer,s=e.config,function(t){return t.pipe(Object(D.a)((function(t){return function(t,e,n,r,i){return new Me(t,e,n,r,i).apply()}(r,i,o,t.extractedUrl,s).pipe(Object(p.a)((function(e){return Object.assign(Object.assign({},t),{urlAfterRedirects:e})})))})))}),Object(B.a)((function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,r,i,a){return function(r){return r.pipe(Object(L.a)((function(r){return function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";return new We(t,e,n,r,i,a).recognize()}(t,n,r.urlAfterRedirects,(o=r.urlAfterRedirects,e.serializeUrl(o)),i,a).pipe(Object(p.a)((function(t){return Object.assign(Object.assign({},r),{targetSnapshot:t})})));var o})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),Object(B.a)((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),Object(B.a)((function(t){var r=new J(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)})));if(u&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var c=t.id,l=t.extractedUrl,h=t.source,f=t.restoredState,g=t.extras,y=new Q(c,e.serializeUrl(l),h,f);n.next(y);var v=te(l,e.rootComponentType).snapshot;return Object(a.a)(Object.assign(Object.assign({},t),{targetSnapshot:v,urlAfterRedirects:l,extras:Object.assign(Object.assign({},g),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a})),tn((function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,a=t.rawUrl,o=t.extras,s=o.skipLocationChange,u=o.replaceUrl;return e.hooks.beforePreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!u})})),Object(B.a)((function(t){var n=new tt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),Object(p.a)((function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,r=t.currentSnapshot,i=e.rootContexts,a=n._root,function t(e,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=$t(n);return e.children.forEach((function(e){!function(e,n,r,i){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=e.value,s=n?n.value:null,u=r?r.getContext(e.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){var c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!xt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!xt(t.url,e.url)||!wt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ue(t,e)||!wt(t.queryParams,e.queryParams);case"paramsChange":default:return!ue(t,e)}}(s,o,o.routeConfig.runGuardsAndResolvers);c?a.canActivateChecks.push(new Pe(i)):(o.data=s.data,o._resolvedData=s._resolvedData),t(e,n,o.component?u?u.children:null:r,i,a),c&&a.canDeactivateChecks.push(new Re(u&&u.outlet&&u.outlet.component||null,s))}
1else s&&ze(n,u,a),a.canActivateChecks.push(new Pe(i)),t(e,null,o.component?u?u.children:null:r,i,a)}(e,o[e.value.outlet],r,i.concat([e.value]),a),delete o[e.value.outlet]})),St(o,(function(t,e){return ze(t,r.getContext(e),a)})),a}(a,r?r._root:null,i,[a.value]))});var n,r,i,a})),function(t,e){return function(n){return n.pipe(Object(L.a)((function(n){var r=n.targetSnapshot,i=n.currentSnapshot,s=n.guards,u=s.canActivateChecks,c=s.canDeactivateChecks;return 0===c.length&&0===u.length?Object(a.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(o.a)(t).pipe(Object(L.a)((function(t){return function(t,e,n,r,i){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(a.a)(!0);var s=o.map((function(a){var o,s=De(a,e,i);if(function(t){return t&&ke(t.canDeactivate)}(s))o=Et(s.canDeactivate(t,e,n,r));else{if(!ke(s))throw new Error("Invalid CanDeactivate guard");o=Et(s(t,e,n,r))}return o.pipe(Object(j.a)())}));return Object(a.a)(s).pipe(Ve())}(t.component,t.route,n,e,r)})),Object(j.a)((function(t){return!0!==t}),!0))}(c,r,i,t).pipe(Object(L.a)((function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return Object(o.a)(e).pipe(Object(F.a)((function(e){return Object(o.a)([He(e.route.parent,r),Fe(e.route,r),Ue(t,e.path,n),Be(t,e.route,n)]).pipe(Object(g.a)(),Object(j.a)((function(t){return!0!==t}),!0))})),Object(j.a)((function(t){return!0!==t}),!0))}(r,u,t,e):Object(a.a)(n)})),Object(p.a)((function(t){return Object.assign(Object.assign({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),Object(B.a)((function(t){if(Ce(t.guardsResult)){var n=pt('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}})),Object(B.a)((function(t){var n=new et(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Object(y.a)((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new Z(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0})),tn((function(t){if(t.guards.canActivateChecks.length)return Object(a.a)(t).pipe(Object(B.a)((function(t){var n=new nt(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(Object(L.a)((function(t){var e=t.targetSnapshot,i=t.guards.canActivateChecks;return i.length?Object(o.a)(i).pipe(Object(F.a)((function(t){return function(t,e,n,r){return function(t,e,n,r){var i=Object.keys(t);if(0===i.length)return Object(a.a)({});if(1===i.length){var s=i[0];return Je(t[s],e,n,r).pipe(Object(p.a)((function(t){return _defineProperty2({},s,t)})))}var u={};return Object(o.a)(i).pipe(Object(L.a)((function(i){return Je(t[i],e,n,r).pipe(Object(p.a)((function(t){return u[i]=t,t})))}))).pipe(S(),Object(p.a)((function(){return u})))}(t._resolve,t,e,r).pipe(Object(p.a)((function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),ne(t,n).resolve),null})))}(t.route,e,n,r)})),function(t,e){return arguments.length>=2?function(n){return Object(H.a)(Object(V.a)(t,e),b(1),Object(C.a)(e))(n)}:function(e){return Object(H.a)(Object(V.a)((function(e,n,r){return t(e,n,r+1)})),b(1))(e)}}((function(t,e){return t})),Object(p.a)((function(e){return t}))):Object(a.a)(t)})))}),Object(B.a)((function(t){var n=new rt(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,r})),tn((function(t){var n=t.targetSnapshot,r=t.id,i=t.extractedUrl,a=t.rawUrl,o=t.extras,s=o.skipLocationChange,u=o.replaceUrl;return e.hooks.afterPreactivation(n,{navigationId:r,appliedUrlTree:i,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!u})})),Object(p.a)((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 a=function(e,n,r){return n.children.map((function(n){var i,a=_createForOfIteratorHelper(r.children);try{for(a.s();!(i=a.n()).done;){var o=i.value;if(e.shouldReuseRoute(o.value.snapshot,n.value))return t(e,n,o)}}catch(s){a.e(s)}finally{a.f()}return t(e,n)}))}(e,n,r);return new Zt(i,a)}var o=e.retrieve(n.value);if(o){var u=o.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");
1if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;r<e.children.length;++r)t(e.children[r],n.children[r])}(n,u),u}var c,l=new ee(new s.a((c=n.value).url),new s.a(c.params),new s.a(c.queryParams),new s.a(c.fragment),new s.a(c.data),c.outlet,c.component,c),h=n.children.map((function(n){return t(e,n)}));return new Zt(l,h)}(t,e._root,n?n._root:void 0);return new Jt(r,e)}(e.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:n})})),Object(B.a)((function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),(i=e.rootContexts,u=e.routeReuseStrategy,c=function(t){return e.triggerEvent(t)},Object(p.a)((function(t){return new _e(u,t.targetRouterState,t.currentRouterState,c).activate(i),t}))),Object(B.a)({next:function(){l=!0},complete:function(){l=!0}}),(r=function(){if(!l&&!h){e.resetUrlToCurrentUrlTree();var r=new Z(t.id,e.serializeUrl(t.extractedUrl),"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId));n.next(r),t.resolve(!1)}e.currentNavigation=null},function(t){return t.lift(new q(r))}),M((function(r){if(h=!0,(s=r)&&s.ngNavigationCancelingError){var i=Ce(r.url);i||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var a=new Z(t.id,e.serializeUrl(t.extractedUrl),r.message);n.next(a),i?setTimeout((function(){var n=e.urlHandlingStrategy.merge(r.url,e.rawUrlTree);return e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})}),0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var o=new $(t.id,e.serializeUrl(t.extractedUrl),r);n.next(o);try{t.resolve(e.errorHandler(r))}catch(u){t.reject(u)}}var s;return d.a})))})))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe((function(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",i=e.state&&e.state.navigationId?e.state:null;setTimeout((function(){t.scheduleNavigation(n,r,i,{replaceUrl:!0})}),0)})))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){vt(t),this.config=t.map(_t),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,r=e.queryParams,a=e.fragment,o=e.preserveQueryParams,s=e.queryParamsHandling,u=e.preserveFragment;Object(i.ib)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,l=u?this.currentUrlTree.fragment:a,h=null;if(s)switch(s){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=o?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,i){if(0===n.length)return le(e.root,e.root,e,r,i);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new he(!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 a={};return St(r.outlets,(function(t,e){a[e]="string"==typeof t?t.split("/"):t})),[].concat(_toConsumableArray(t),[{outlets:a}])}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 he(n,e,r)}(n);if(a.toRoot())return le(e.root,new Mt([],{}),e,r,i);var o=function(t,e,n){if(t.isAbsolute)return new fe(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new fe(n.snapshot._urlSegment,!0,0);var r=ce(t.commands[0])?0:1;return function(t,e,n){for(var r=t,i=e,a=n;a>i;){if(a-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new fe(r,!1,i-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(a,e,t),s=o.processChildren?ge(o.segmentGroup,o.index,a.commands):pe(o.segmentGroup,o.index,a.commands);return le(o.segmentGroup,s,e,r,i)}(c,this.currentUrlTree,t,h,l)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};Object(i.ib)()&&this.isNgZoneEnabled&&!i.G.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did
1you forget to call 'ngZone.run()'?");var n=Ce(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;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(e))}}(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){if(Ce(t))return At(this.currentUrlTree,t,e);var n=this.parseUrl(t);return At(this.currentUrlTree,n,e)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce((function(e,n){var r=t[n];return null!=r&&(e[n]=r),e}),{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe((function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.events.next(new X(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,t.currentNavigation=null,e.resolve(!0)}),(function(e){t.console.warn("Unhandled Navigation Error: ")}))}},{key:"scheduleNavigation",value:function(t,e,n,r,i){var a,o,s,u=this.getTransition();if(u&&"imperative"!==e&&"imperative"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(u&&"hashchange"==e&&"popstate"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(u&&"popstate"==e&&"hashchange"===u.source&&u.rawUrl.toString()===t.toString())return Promise.resolve(!0);i?(a=i.resolve,o=i.reject,s=i.promise):s=new Promise((function(t,e){a=t,o=e}));var c=++this.navigationId;return this.setTransition({id:c,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:a,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch((function(t){return Promise.reject(t)}))}},{key:"setBrowserUrl",value:function(t,e,n,r){var i=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(i)||e?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}]),t}()).\u0275fac=function(t){i.pc()},hn.\u0275dir=i.Xb({type:hn}),hn),dn=((ln=function(){function t(e,n,r,i,a){_classCallCheck(this,t),this.router=e,this.route=n,this.commands=[],null==r&&i.setAttribute(a.nativeElement,"tabindex","0")}return _createClass(t,[{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"preserveQueryParams",set:function(t){Object(i.ib)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}},{key:"onClick",value:function(){var t={skipLocationChange:gn(this.skipLocationChange),replaceUrl:gn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:gn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:gn(this.preserveFragment)})}}]),t}()).\u0275fac=function(t){return new(t||ln)(i.cc(fn),i.cc(ee),i.nc("tabindex"),i.cc(i.M),i.cc(i.o))},ln.\u0275dir=i.Xb({type:ln,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&i.qc("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"}}),ln),pn=((cn=function(){function t(e,n,r){var i=this;_classCallCheck(this,t),this.router=e,this.route=n,this.locationStrategy=r,this.commands=[],this.subscription=e.events.subscribe((function(t){t instanceof X&&i.updateTargetUrlAndHref()}))}return _createClass(t,[{key:"routerLink",set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}},{key:"preserveQueryParams",set:function(t){Object(i.ib)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}},{key:"ngOnChanges",value:function(t){this.updateTargetUrlAndHref()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(t,e,n,r){if(0!==t||e||n||r)return!0;
1if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:gn(this.skipLocationChange),replaceUrl:gn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}},{key:"updateTargetUrlAndHref",value:function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:gn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:gn(this.preserveFragment)})}}]),t}()).\u0275fac=function(t){return new(t||cn)(i.cc(fn),i.cc(ee),i.cc(r.i))},cn.\u0275dir=i.Xb({type:cn,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&i.qc("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)})),2&t&&(i.lc("href",e.href,i.Mc),i.Qb("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[i.Nb]}),cn);function gn(t){return""===t||!!t}var yn,vn,mn,bn,_n=((yn=function(){function t(e,n,r,i,a){var o=this;_classCallCheck(this,t),this.router=e,this.element=n,this.renderer=r,this.link=i,this.linkWithHref=a,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe((function(t){t instanceof X&&o.update()}))}return _createClass(t,[{key:"ngAfterContentInit",value:function(){var t=this;this.links.changes.subscribe((function(e){return t.update()})),this.linksWithHrefs.changes.subscribe((function(e){return t.update()})),this.update()}},{key:"routerLinkActive",set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter((function(t){return!!t}))}},{key:"ngOnChanges",value:function(t){this.update()}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"update",value:function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then((function(){var e=t.hasActiveLinks();t.isActive!==e&&(t.isActive=e,t.classes.forEach((function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)})))}))}},{key:"isLinkActive",value:function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}}},{key:"hasActiveLinks",value:function(){var t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}]),t}()).\u0275fac=function(t){return new(t||yn)(i.cc(fn),i.cc(i.o),i.cc(i.M),i.cc(dn,8),i.cc(pn,8))},yn.\u0275dir=i.Xb({type:yn,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var r;1&t&&(i.Ub(n,dn,!0),i.Ub(n,pn,!0)),2&t&&(i.Hc(r=i.rc())&&(e.links=r),i.Hc(r=i.rc())&&(e.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[i.Nb]}),yn),wn=_createClass((function t(){_classCallCheck(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new kn,this.attachRef=null})),kn=function(){function t(){_classCallCheck(this,t),this.contexts=new Map}return _createClass(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new wn,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),Cn=((vn=function(){function t(e,n,r,a,o){_classCallCheck(this,t),this.parentContexts=e,this.location=n,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new i.q,this.deactivateEvents=new i.q,this.name=a||"primary",e.onChildOutletCreated(this.name,this)}return _createClass(t,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}},{key:"isActivated",get:function(){return!!this.activated}},{key:"component",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}},{key:"activatedRoute",get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}},{key:"activatedRouteData",get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}},{key:"detach",value:function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t}},{key:"attach",value:function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}},{key:"deactivate",value:function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}},{key:"activateWith",value:function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,i=new On(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,i),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),t}()).\u0275fac=function(t){return new(t||vn)(i.cc(kn),i.cc(i.bb),i.cc(i.k),i.nc("name"),i.cc(i.i))},vn.\u0275dir=i.Xb({type:vn,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),vn),On=function(){function t(e,n,r){_classCallCheck(this,t),this.route=e,this.childContexts=n,this.parent=r}return _createClass(t,[{key:"get",value:function(t,e){return t===ee?this.route:t===kn?this.childContexts:this.parent.get(t,e)}}]),t}(),Sn=_createClass((function t(){_classCallCheck(this,t)})),En=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return Object(a.a)(null)}}]),t}(),An=((bn=function(){function t(e,n,r,i,a){_classCallCheck(this,t),this.router=e,this.injector=i,this.preloadingStrategy=a,this.loader=new rn(n,r,(function(t){return e.triggerEvent(new it(t))}),(function(t){return e.triggerEvent(new at(t))}))}return _createClass(t,[{key:"setUpPreloading",value:function(){var t=this;this.subscription=this.router.events.pipe(Object(y.a)((function(t){return t instanceof X})),Object(F.a)((function(){return t.preload()}))).subscribe((function(){}))}},{key:"preload",value:function(){var t=this.injector.get(i.E);return this.processRoutes(t,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"processRoutes",value:function(t,e){var n,r=[],i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var s=a._loadedConfig;r.push(this.processRoutes(s.module,s.routes))}else a.loadChildren&&!a.canLoad?r.push(this.preloadConfig(t,a)):a.children&&r.push(this.processRoutes(t,a.children))}}catch(u){i.e(u)}finally{i.f()}return Object(o.a)(r).pipe(Object(G.a)(),Object(p.a)((function(t){})))}},{key:"preloadConfig",value:function(t,e){var n=this;return this.preloadingStrategy.preload(e,(function(){return n.loader.load(t.injector,e).pipe(Object(L.a)((function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})))}))}}]),t}()).\u0275fac=function(t){return new(t||bn)(i.mc(fn),i.mc(i.D),i.mc(i.j),i.mc(i.x),i.mc(Sn))},bn.\u0275prov=i.Yb({token:bn,factory:bn.\u0275fac}),bn),Tn=((mn=function(){function t(e,n){var r=arguments.length>2&&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 Q?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof X&&(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 lt&&(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 lt(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){i.pc()},mn.\u0275dir=i.Xb({type:mn}),mn),Mn=new i.w("ROUTER_CONFIGURATION"),In=new i.w("ROUTER_FORROOT_GUARD"),xn=[r.h,{provide:Lt,useClass:Pt},{provide:fn,useFactory:function(t,e,n,i,a,o,s){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9?arguments[9]:void 0,h=new fn(null,t,e,n,i,a,o,Ct(s));if(c&&(h.urlHandlingStrategy=c),l&&(h.routeReuseStrategy=l),u.errorHandler&&(h.errorHandler=u.errorHandler),u.malformedUriErrorHandler&&(h.malformedUriErrorHandler=u.malformedUriErrorHandler),u.enableTracing){var f=Object(r.B)();h.events.subscribe((function(t){f.logGroup("Router Event: ".concat(t.constructor.name)),f.log(t.toString()),f.log(t),f.logGroupEnd()}))}return u.onSameUrlNavigation&&(h.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=u.paramsInheritanceStrategy),u.urlUpdateStrategy&&(h.urlUpdateStrategy=u.urlUpdateStrategy),u.relativeLinkResolution&&(h.relativeLinkResolution=u.relativeLinkResolution),h},deps:[Lt,kn,r.h,i.x,i.D,i.j,nn,Mn,[function(){return _createClass((function t(){_classCallCheck(this,t)}))}(),new i.H],[function(){return _createClass((function t(){_classCallCheck(this,t)}))}(),new i.H]]},kn,{provide:ee,useFactory:function(t){return t.routerState.root},deps:[fn]},{provide:i.D,useClass:i.T},An,En,function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"preload",value:function(t,e){return e().pipe(M((function(){return Object(a.a)(null)})))}}]),t}(),{provide:Mn,useValue:{enableTracing:!1}}];function jn(){return new i.F("Router",fn)}var Ln,Pn=((Ln=function(){function t(e,n){_classCallCheck(this,t)}return _createClass(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[xn,Nn(e),{provide:In,useFactory:zn,deps:[[fn,new i.H,new i.S]]},{provide:Mn,useValue:n||{}},{provide:r.i,useFactory:Dn,deps:[r.r,[new i.v(r.a),new i.H],Mn]},{provide:Tn,useFactory:Rn,deps:[fn,r.t,Mn]},{provide:Sn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:En},{provide:i.F,multi:!0,useFactory:jn},[Fn,{provide:i.d,multi:!0,useFactory:Hn,deps:[Fn]},{provide:Un,useFactory:Bn,deps:[Fn]},{provide:i.b,multi:!0,useExisting:Un}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[Nn(e)]}}}]),t}()).\u0275mod=i.ac({type:Ln}),Ln.\u0275inj=i.Zb({factory:function(t){return new(t||Ln)(i.mc(In,8),i.mc(fn,8))}}),Ln);function Rn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Tn(t,e,n)}function Dn(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new r.f(t,e):new r.q(t,e)}function zn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Nn(t){return[{provide:i.a,multi:!0,useValue:t},{provide:nn,multi:!0,useValue:t}]}var Vn,Fn=((Vn=function(){function t(e){_classCallCheck(this,t),this.injector=e,this.initNavigation=!1,this.resultOfPreactivationDone=new f.a}return _createClass(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(r.g,Promise.resolve(null)).then((function(){var e=null,n=new Promise((function(t){return e=t})),r=t.injector.get(fn),i=t.injector.get(Mn);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?Object(a.a)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n}))}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(Mn),n=this.injector.get(An
1),r=this.injector.get(Tn),a=this.injector.get(fn),o=this.injector.get(i.g);t===o.components[0]&&(this.isLegacyEnabled(e)?a.initialNavigation():this.isLegacyDisabled(e)&&a.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),a.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||Vn)(i.mc(i.x))},Vn.\u0275prov=i.Yb({token:Vn,factory:Vn.\u0275fac}),Vn);function Hn(t){return t.appInitializer.bind(t)}function Bn(t){return t.bootstrapListener.bind(t)}var Un=new i.w("Router Initializer")},vkgz:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("7o/Q"),i=n("KqfI"),a=n("n6bG");function o(t,e,n){return function(r){return r.lift(new s(t,e,n))}}var s=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 u(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),u=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,o,s){var u;return _classCallCheck(this,n),(u=e.call(this,t))._tapNext=i.a,u._tapError=i.a,u._tapComplete=i.a,u._tapError=o||i.a,u._tapComplete=s||i.a,Object(a.a)(r)?(u._context=_assertThisInitialized(u),u._tapNext=r):r&&(u._context=r,u._tapNext=r.next||i.a,u._tapError=r.error||i.a,u._tapComplete=r.complete||i.a),u}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}(r.a)},w1tV:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("oB13"),i=n("x+ZX"),a=n("XNiG");function o(){return new a.a}function s(){return function(t){return Object(i.a)()(Object(r.a)(o)(t))}}},"x+ZX":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(){return function(t){return t.lift(new a(t))}}var a=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 o(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),t}(),o=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}(r.a)},xbPD:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("7o/Q");function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new a(t))}}var a=function(){function t(e){_classCallCheck(this,t),this.defaultValue=e}return _createClass(t,[{key:"call",value:function(t,e){return e.subscribe(new o(t,this.defaultValue))}}]),t}(),o=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}(r.a)},xgIS:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n("HDdC"),i=n("DH7j"),a=n("n6bG"),o=n("lJxs");function s(t,e,n,u){return Object(a.a)(n)&&(u=n,n=void 0),u?s(t,e,n).pipe(Object(o.a)((function(t){return Object(i.a)(t)?u.apply(void 0,_toConsumableArray(t)):u(t)}))):new r.a((function(r){!function t(e,n,r,i,a){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,a),o=function(){return s.removeEventListener(n,r,a)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var u=e;e.on(n,r),o=function(){return u.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var c=e;e.addListener(n,r),o=function(){return c.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var l=0,h=e.length;l<h;
1l++)t(e[l],n,r,i,a)}i.add(o)}(t,e,(function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),r,n)}))}},yCtX:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n("HDdC"),i=n("ngJS"),a=n("jZKg");function o(t,e){return e?Object(a.a)(t,e):new r.a(Object(i.a)(t))}},"z+Ro":function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.d(e,"a",(function(){return r}))},z6cu:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("HDdC");function i(t,e){return new r.a(e?function(n){return e.schedule(a,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function a(t){var e=t.error;t.subscriber.error(e)}},zIRd:function(t,e,n){"use strict";var r,i,a=function(){return(a=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o=n("qOnz"),s=n("/6Yf"),u=n("q/0M"),c=((r={})["no-app"]="No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()",r["bad-app-name"]="Illegal App name: '{$appName}",r["duplicate-app"]="Firebase App named '{$appName}' already exists",r["app-deleted"]="Firebase App named '{$appName}' already deleted",r["invalid-app-argument"]="firebase.{$appName}() takes either no argument or a Firebase App instance.",r["invalid-log-argument"]="First argument to `onLog` must be null or a function.",r),l=new o.b("app","Firebase",c),h=((i={})["@firebase/app"]="fire-core",i["@firebase/analytics"]="fire-analytics",i["@firebase/app-check"]="fire-app-check",i["@firebase/auth"]="fire-auth",i["@firebase/database"]="fire-rtdb",i["@firebase/functions"]="fire-fn",i["@firebase/installations"]="fire-iid",i["@firebase/messaging"]="fire-fcm",i["@firebase/performance"]="fire-perf",i["@firebase/remote-config"]="fire-rc",i["@firebase/storage"]="fire-gcs",i["@firebase/firestore"]="fire-fst",i["fire-js"]="fire-js",i["firebase-wrapper"]="fire-js-all",i),f=new u.b("@firebase/app"),d=function(){function t(t,e,n){var r=this;this.firebase_=n,this.isDeleted_=!1,this.name_=e.name,this.automaticDataCollectionEnabled_=e.automaticDataCollectionEnabled||!1,this.options_=Object(o.f)(t),this.container=new s.b(e.name),this._addComponent(new s.a("app",(function(){return r}),"PUBLIC")),this.firebase_.INTERNAL.components.forEach((function(t){return r._addComponent(t)}))}return Object.defineProperty(t.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this.automaticDataCollectionEnabled_},set:function(t){this.checkDestroyed_(),this.automaticDataCollectionEnabled_=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!1,configurable:!0}),t.prototype.delete=function(){var t=this;return new Promise((function(e){t.checkDestroyed_(),e()})).then((function(){return t.firebase_.INTERNAL.removeApp(t.name_),Promise.all(t.container.getProviders().map((function(t){return t.delete()})))})).then((function(){t.isDeleted_=!0}))},t.prototype._getService=function(t,e){var n;void 0===e&&(e="[DEFAULT]"),this.checkDestroyed_();var r=this.container.getProvider(t);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:e})},t.prototype._removeServiceInstance=function(t,e){void 0===e&&(e="[DEFAULT]"),this.container.getProvider(t).clearInstance(e)},t.prototype._addComponent=function(t){try{this.container.addComponent(t)}catch(e){f.debug("Component "+t.name+" failed to register with FirebaseApp "+this.name,e)}},t.prototype._addOrOverwriteComponent=function(t){this.container.addOrOverwriteComponent(t)},t.prototype.toJSON=function(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}},t.prototype.checkDestroyed_=function(){if(this.isDeleted_)throw l.create("app-deleted",{appName:this.name_})},t}();d.prototype.name&&d.prototype.options||d.prototype.delete||console.log("dc");var p=function t(){var e=function(t){var e={}
1,n=new Map,r={__esModule:!0,initializeApp:function(n,i){void 0===i&&(i={}),"object"==typeof i&&null!==i||(i={name:i});var a=i;void 0===a.name&&(a.name="[DEFAULT]");var s=a.name;if("string"!=typeof s||!s)throw l.create("bad-app-name",{appName:String(s)});if(Object(o.c)(e,s))throw l.create("duplicate-app",{appName:s});var u=new t(n,a,r);return e[s]=u,u},app:i,registerVersion:function(t,e,n){var r,i=null!==(r=h[t])&&void 0!==r?r:t;n&&(i+="-"+n);var o=i.match(/\s|\//),u=e.match(/\s|\//);if(o||u){var c=['Unable to register library "'+i+'" with version "'+e+'":'];return o&&c.push('library name "'+i+'" contains illegal characters (whitespace or "/")'),o&&u&&c.push("and"),u&&c.push('version name "'+e+'" contains illegal characters (whitespace or "/")'),void f.warn(c.join(" "))}a(new s.a(i+"-version",(function(){return{library:i,version:e}}),"VERSION"))},setLogLevel:u.c,onLog:function(t,e){if(null!==t&&"function"!=typeof t)throw l.create("invalid-log-argument");Object(u.d)(t,e)},apps:null,SDK_VERSION:"8.10.0",INTERNAL:{registerComponent:a,removeApp:function(t){delete e[t]},components:n,useAsService:function(t,e){return"serverAuth"===e?null:e}}};function i(t){if(t=t||"[DEFAULT]",!Object(o.c)(e,t))throw l.create("no-app",{appName:t});return e[t]}function a(a){var s=a.name;if(n.has(s))return f.debug("There were multiple attempts to register component "+s+"."),"PUBLIC"===a.type?r[s]:null;if(n.set(s,a),"PUBLIC"===a.type){var u=function(t){if(void 0===t&&(t=i()),"function"!=typeof t[s])throw l.create("invalid-app-argument",{appName:s});return t[s]()};void 0!==a.serviceProps&&Object(o.g)(u,a.serviceProps),r[s]=u,t.prototype[s]=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this._getService.bind(this,s);return n.apply(this,a.multipleInstances?t:[])}}for(var c=0,h=Object.keys(e);c<h.length;c++)e[h[c]]._addComponent(a);return"PUBLIC"===a.type?r[s]:null}return r.default=r,Object.defineProperty(r,"apps",{get:function(){return Object.keys(e).map((function(t){return e[t]}))}}),i.App=t,r}(d);return e.INTERNAL=a(a({},e.INTERNAL),{createFirebaseNamespace:t,extendNamespace:function(t){Object(o.g)(e,t)},createSubscribe:o.e,ErrorFactory:o.b,deepExtend:o.g}),e}(),g=function(){function t(t){this.container=t}return t.prototype.getPlatformInfoString=function(){return this.container.getProviders().map((function(t){if(function(t){var e=t.getComponent();return"VERSION"===(null==e?void 0:e.type)}(t)){var e=t.getImmediate();return e.library+"/"+e.version}return null})).filter((function(t){return t})).join(" ")},t}();if(Object(o.j)()&&void 0!==self.firebase){f.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");var y=self.firebase.SDK_VERSION;y&&y.indexOf("LITE")>=0&&f.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}var v=p.initializeApp;p.initializeApp=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return Object(o.o)()&&f.warn('\n Warning: This is a browser-targeted Firebase bundle but it appears it is being\n run in a Node environment. If running in a Node environment, make sure you\n are using the bundle specified by the "main" field in package.json.\n \n If you are using Webpack, you can specify "main" as the first item in\n "resolve.mainFields":\n https://webpack.js.org/configuration/resolve/#resolvemainfields\n \n If using Rollup, use the @rollup/plugin-node-resolve plugin and specify "main"\n as the first item in "mainFields", e.g. [\'main\', \'module\'].\n https://github.com/rollup/@rollup/plugin-node-resolve\n '),v.apply(void 0,t)};var m,b=p;(m=b).INTERNAL.registerComponent(new s.a("platform-logger",(function(t){return new g(t)}),"PRIVATE")),m.registerVersion("@firebase/app","0.6.30",void 0),m.registerVersion("fire-js",""),e.a=b},zUnb:function(t,e,n){"use strict";n.r(e);var r,i,a=n("fXoL"),o=n("jhN1"),s=n("tyNb"),u=[{path:"",loadChildren:function(){return n.e(5).then(n.bind(null,"dgmN")).then((function(t){return t.PagesModule}))}}],c=((r=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=a.ac({type:r}),r.\u0275inj=a.Zb({factory:function(t){return new(t||r)},imports:[[s.g.forRoot(u)],s.g]}),r),l=n("sYmb"),h=((i=function(){function t(e){_classCallCheck(this,t),this.translate=e,e.addLangs(["hr","en"]);var n=localStorage.getItem("lang");n?(e.setDefaultLang(n),this.translate.use(n)):(e.setDefaultLang("hr"),this.translate.use("hr"))}return _createClass(t,[{key:"onCroatianClick",value:function(){this.translate.use("hr"),localStorage.setItem("lang","hr")}},{key:"onEnglishClick",value:function(){this.translate.use("en"),localStorage.setItem("lang","en")}}]),t}()).\u0275fac=function(t){return new(t||i)(a.cc(l.d))},i.\u0275cmp=a.Wb({type:i,selectors:[["app-root"]],decls:6,vars:0,consts:[[1,"language-switcher"],["title","Hrvatski",3,"click"],["src","../assets/images/Croatia.png","alt","Hrvatski"],["title","English",1,"english",3,"click"],["src","../assets/images/English.png","alt","English"]],template:function(t,e){1&t&&(a.ic(0,"div",0),a.ic(1,"div",1),a.qc("click",(function(){return e.onCroatianClick()})),a.dc(2,"img",2),a.hc(),a.ic(3,"div",3),a.qc("click",(function(){return e.onEnglishClick()})),a.dc(4,"img",4),a.hc(),a.hc(),a.dc(5,"router-outlet"))},directives:[s.h],styles:[".language-switcher[_ngcontent-%COMP%]{position:absolute;top:10px;right:10px;display:flex;flex-direction:row;align-items:center}.language-switcher[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:30px;margin-right:10px;cursor:pointer}.language-switcher[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto}.language-switcher[_ngcontent-%COMP%] .english[_ngcontent-%COMP%]{padding:1px}"]}),i),f=n("R0Ic");function d(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function p(t){switch(t.length){case 0:return new f.d;case 1:return t[0];default:return new f.k(t)}}function g(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],u=-1,c=null;if(r.forEach((function(t){var n=t.offset,r=n==u,l=r&&c||{};Object.keys(t).forEach((function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,o),s){case f.l:s=i[n];break;case f.a:s=a[n];break;default:s=e.normalizeStyleValue(n,r,s,o)}l[r]=s})),r||s.push(l),c=l,u=n})),o.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(o.join(l)))}return s}function y(t,e,n,r){switch(e){case"start":t.onStart((function(){return r(n&&v(n,"start",t))}));break;case"done":t.onDone((function(){return r(n&&v(n,"done",t))}));break;
1case"destroy":t.onDestroy((function(){return r(n&&v(n,"destroy",t))}))}}function v(t,e,n){var r=n.totalTime,i=m(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),a=t._data;return null!=a&&(i._data=a),i}function m(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:a,disabled:!!o}}function b(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 _(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var w=function(t,e){return!1},k=function(t,e){return!1},C=function(t,e,n){return[]},O=d();(O||"undefined"!=typeof Element)&&(w=function(t,e){return t.contains(e)},k=function(){if(O||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])}:k}(),C=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 S=null,E=!1;function A(t){S||(S=("undefined"!=typeof document?document.body:null)||{},E=!!S.style&&"WebkitAppearance"in S.style);var e=!0;return S.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(!(e=t in S.style)&&E)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in S.style),e}var T=k,M=w,I=C;function x(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 j,L=((j=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return A(t)}},{key:"matchesElement",value:function(t,e){return T(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,n){return I(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 f.d(n,r)}}]),t}()).\u0275fac=function(t){return new(t||j)},j.\u0275prov=a.Yb({token:j,factory:j.\u0275fac}),j),P=function(){var t=_createClass((function t(){_classCallCheck(this,t)}));return t.NOOP=new L,t}();function R(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:D(parseFloat(e[1]),e[2])}function D(t,e){switch(e){case"s":return 1e3*t;default:return t}}function z(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,a="";if("string"==typeof t){var o=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return e.push('The provided timing value "'.concat(t,'" is invalid.')),{duration:0,delay:0,easing:""};r=D(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(i=D(parseFloat(s),o[4]));var u=o[5];u&&(a=u)}else r=t;if(!n){var c=!1,l=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),c=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&e.splice(l,0,'The provided timing value "'.concat(t,'" is invalid.'))}return{duration:r,delay:i,easing:a}}(t,e,n)}function N(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 V(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 N(t,n);return n}function F(t,e,n){return n?e+":"+n+";":""}function H(t){for(var e="",n=0;n<t.style.length;n++){var r=t.style.item(n);e+=F(0,r,t.style.getPropertyValue(r))}for(var i in t.style)t.style.hasOwnProperty(i)&&!i.startsWith("_")&&(e+=F(0,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[i]));t.setAttribute("style",e)}function B(t,e,n){t.style&&(Object.keys(e).forEach((function(r){var i=X(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]})),d()&&H(t))}function U(t,e){t.style&&(Object.keys(e).forEach((function(e){var n=X(e);t.style[n]=""})),d()&&H(t))}function q(t){return Array.isArray(t)?1==t.length?t[0]:Object(f.f)(t):t}var W=new RegExp("{{\\s*(.+?)\\s*}}","g");function G(t){var e=[];
1if("string"==typeof t){for(var n;n=W.exec(t);)e.push(n[1]);W.lastIndex=0}return e}function K(t,e,n){var r=t.toString(),i=r.replace(W,(function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param ".concat(r)),i=""),i.toString()}));return i==r?t:i}function Y(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}var Q=/-+([a-z0-9])/g;function X(t){return t.replace(Q,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e[1].toUpperCase()}))}function Z(t,e){return 0===t||0===e}function $(t,e,n){var r=Object.keys(n);if(r.length&&e.length){var i=e[0],a=[];if(r.forEach((function(t){i.hasOwnProperty(t)||a.push(t),i[t]=n[t]})),a.length)for(var o=function(){var n=e[s];a.forEach((function(e){n[e]=tt(t,e)}))},s=1;s<e.length;s++)o()}return e}function J(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #".concat(e.type))}}function tt(t,e){return window.getComputedStyle(t)[e]}var et=new Set(["true","1"]),nt=new Set(["false","0"]);function rt(t,e){var n=et.has(t)||nt.has(t),r=et.has(e)||nt.has(e);return function(i,a){var o="*"==t||t==i,s="*"==e||e==a;return!o&&n&&"boolean"==typeof i&&(o=i?et.has(t):nt.has(t)),!s&&r&&"boolean"==typeof a&&(s=a?et.has(e):nt.has(e)),o&&s}}var it=new RegExp("s*:selfs*,?","g");function at(t,e,n){return new ot(t).build(e,n)}var ot=function(){function t(e){_classCallCheck(this,t),this._driver=e}return _createClass(t,[{key:"build",value:function(t,e){var n=new st(e);return this._resetContextStyleTimingState(n),J(this,q(t),n)}},{key:"_resetContextStyleTimingState",value:function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}},{key:"visitTrigger",value:function(t,e){var n=this,r=e.queryCount=0,i=e.depCount=0,a=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach((function(t){if(n._resetContextStyleTimingState(e),0==t.type){var s=t,u=s.name;u.toString().split(/\s*,\s*/).forEach((function(t){s.name=t,a.push(n.visitState(s,e))})),s.name=u}else if(1==t.type){var c=n.visitTransition(t,e);r+=c.queryCount,i+=c.depCount,o.push(c)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")})),{type:7,name:t.name,states:a,transitions:o,queryCount:r,depCount:i,options:null}}},{key:"visitState",value:function(t,e){var n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){var i=new Set,a=r||{};if(n.styles.forEach((function(t){if(ut(t)){var e=t;Object.keys(e).forEach((function(t){G(e[t]).forEach((function(t){a.hasOwnProperty(t)||i.add(t)}))}))}})),i.size){var o=Y(i.values());e.errors.push('state("'.concat(t.name,'", ...) must define default values for all the following style substitutions: ').concat(o.join(", ")))}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}},{key:"visitTransition",value:function(t,e){e.queryCount=0,e.depCount=0;var n,r,i,a=J(this,q(t.animation),e);return{type:1,matchers:(n=t.expr,r=e.errors,i=[],"string"==typeof n?n.split(/\s*,\s*/).forEach((function(t){return function(t,e,n){if(":"==t[0]){var r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e)<parseFloat(t)};default:return e.push('The transition alias value "'.concat(t,'" is not supported')),"* => *"}}(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 a=i[1],o=i[2],s=i[3];e.push(rt(a,s)),"<"!=o[0]||"*"==a&&"*"==s||e.push(rt(s,a))}(t,i,r)})):i.push(n),i),animation:a,queryCount:e.queryCount,depCount:e.depCount,options:ct(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return J(n,t,e)})),options:ct(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,r=e.currentTime,i=0,a=t.steps.map((function(t){e.currentTime=r;var a=J(n,t,e);return i=Math.max(i,e.currentTime),a}
1));return e.currentTime=i,{type:3,steps:a,options:ct(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 lt(z(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var i=lt(0,0,"");return i.dynamic=!0,i.strValue=r,i}return lt((n=n||z(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Object(f.h)({});if(5==i.type)n=this.visitKeyframes(i,e);else{var a=t.styles,o=!1;if(!a){o=!0;var s={};r.easing&&(s.easing=r.easing),a=Object(f.h)(s)}e.currentTime+=r.duration+r.delay;var u=this.visitStyle(a,e);u.isEmptyStep=o,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==f.a?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(ut(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var a in e)if(e[a].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,a=e.currentTime;r&&a>0&&(a-=r.duration+r.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(r){if(n._driver.validateStyleProperty(r)){var o,s,u,c,l,h=e.collectedStyles[e.currentQuerySelector],f=h[r],d=!0;f&&(a!=i&&a>=f.startTime&&i<=f.endTime&&(e.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(f.startTime,'ms" and "').concat(f.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(i,'ms"')),d=!1),a=f.startTime),d&&(h[r]={startTime:a,endTime:i}),e.options&&(o=t[r],s=e.options,u=e.errors,c=s.params||{},(l=G(o)).length&&l.forEach((function(t){c.hasOwnProperty(t)||u.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))})))}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,a=[],o=!1,s=!1,u=0,c=t.steps.map((function(t){var r=n._makeStyleAst(t,e),c=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(ut(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(ut(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),l=0;return null!=c&&(i++,l=r.offset=c),s=s||l<0||l>1,o=o||l<u,u=l,a.push(l),r}));s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&e.errors.push("Please ensure that all keyframe offsets are in order");var l=t.steps.length,h=0;i>0&&i<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(l-1));var f=l-1,d=e.currentTime,p=e.currentAnimateTimings,g=p.duration;return c.forEach((function(t,i){var o=h>0?i==f?1:h*i:a[i],s=o*g;e.currentTime=d+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=o,r.styles.push(t)})),r}},{key:"visitReference",value:function(t,e){return{type:8,animation:J(this,q(t.animation),e),options:ct(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:ct(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:ct(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}));
1return e&&(t=t.replace(it,"")),[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),a=i[0],o=i[1];e.currentQuerySelector=n.length?n+" "+a:a,b(e.collectedStyles,e.currentQuerySelector,{});var s=J(this,q(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:a,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:s,originalSelector:t.selector,options:ct(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"}:z(t.timings,e.errors,!0);return{type:12,animation:J(this,q(t.animation),e),timings:n,options:null}}}]),t}(),st=_createClass((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 ut(t){return!Array.isArray(t)&&"object"==typeof t}function ct(t){var e;return t?(t=N(t)).params&&(t.params=(e=t.params)?N(e):null):t={},t}function lt(t,e,n){return{duration:t,delay:e,easing:n}}function ht(t,e,n,r,i,a){var o=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:a,totalTime:i+a,easing:o,subTimeline:s}}var ft=function(){function t(){_classCallCheck(this,t),this._map=new Map}
1return _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}(),dt=new RegExp(":enter","g"),pt=new RegExp(":leave","g");function gt(t,e,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=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,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new yt).buildKeyframes(t,e,n,r,i,a,o,s,u,c)}var yt=function(){function t(){_classCallCheck(this,t)}return _createClass(t,[{key:"buildKeyframes",value:function(t,e,n,r,i,a,o,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new ft;var l=new mt(t,e,u,r,i,c,[]);l.options=s,l.currentTimeline.setStyles([a],null,l.errors,s),J(this,n,l);var h=l.timelines.filter((function(t){return t.containsAnimation()}));if(h.length&&Object.keys(o).length){var f=h[h.length-1];f.allowOnlyTimelineStyles()||f.setStyles([o],null,l.errors,s)}return h.length?h.map((function(t){return t.buildKeyframes()})):[ht(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,a=this._visitSubInstructions(n,r,r.options);i!=a&&e.transformIntoNewTimeline(a)}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?R(n.duration):null,a=null!=n.delay?R(n.delay):null;return 0!==i&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,i,a);r=Math.max(r,n.duration+n.delay)})),r}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),J(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,r=e.subContextCount,i=e,a=t.options;if(a&&(a.params||a.delay)&&((i=e.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=vt);var o=R(a.delay);i.delayNextStep(o)}t.steps.length&&(t.steps.forEach((function(t){return J(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,a=t.options&&t.options.delay?R(t.options.delay):0;t.steps.forEach((function(o){var s=e.createSubContext(t.options);a&&s.delayNextStep(a),J(n,o,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 z(e.params?K(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,a=e.createSubContext().currentTimeline;
1a.easing=n.easing,t.styles.forEach((function(t){a.forwardTime((t.offset||0)*i),a.setStyles(t.styles,t.easing,e.errors,e.options),a.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+i),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},a=i.delay?R(i.delay):0;a&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=vt);var o=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);a&&s.delayNextStep(a),r===e.element&&(u=s.currentTimeline),J(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),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,a=Math.abs(i.duration),o=a*(e.currentQueryTotal-1),s=a*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;J(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}]),t}(),vt={},mt=function(){function t(e,n,r,i,a,o,s,u){_classCallCheck(this,t),this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=vt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new bt(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=R(r.duration)),null!=r.delay&&(i.delay=R(r.delay));var a=r.params;if(a){var o=i.params;o||(o=this.options.params={}),Object.keys(a).forEach((function(t){e&&o.hasOwnProperty(t)||(o[t]=K(a[t],o,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,a=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(e),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=vt,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 _t(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,a){var o=[];if(r&&o.push(this.element),t.length>0){t=(t=t.replace(dt,"."+this._enterClassName)).replace(pt,"."+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)),o.push.apply(o,_toConsumableArray(s))}return i||0!=o.length||a.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),o}}]),t}(),bt=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()}
1return _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:"currentTime",get:function(){return this.startTime+this.duration}},{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]||f.a,e._currentKeyframe[t]=f.a})),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var a=r&&r.params||{},o=function(t,e){var n,r={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){r[t]=f.a})):V(t,!1,r)})),r}(t,this._globalTimelineStyles);Object.keys(o).forEach((function(t){var e=K(o[t],a,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:f.a),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:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{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(a,o){var s=V(a,!0);Object.keys(s).forEach((function(t){var r=s[t];r==f.l?e.add(t):r==f.a&&n.add(t)})),r||(s.offset=o/t.duration),i.push(s)}));var a=e.size?Y(e.values()):[],o=n.size?Y(n.values()):[];if(r){var s=i[0],u=N(s);s.offset=0,u.offset=1,i=[s,u]}return ht(this.element,i,a,o,this.duration,this.startTime,this.easing,!1)}}]),t}(),_t=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a,o,s){var u,c=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=a,u.postStyleProps=o,u._stretchStartingKeyframe=c,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}
1return _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 a=[],o=r+n,s=n/o,u=V(t[0],!1);u.offset=0,a.push(u);var c=V(t[0],!1);c.offset=wt(s),a.push(c);for(var l=t.length-1,h=1;h<=l;h++){var f=V(t[h],!1);f.offset=wt((n+f.offset*r)/o),a.push(f)}r=o,n=0,i="",t=a}return ht(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(bt);function wt(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 kt=_createClass((function t(){_classCallCheck(this,t)})),Ct=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 X(t)}},{key:"normalizeStyleValue",value:function(t,e,n,r){var i="",a=n.toString().trim();if(Ot[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return a+i}}]),n}(kt),Ot=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 St(t,e,n,r,i,a,o,s,u,c,l,h,f){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:a,toState:r,toStyles:o,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:h,errors:f}}var Et={},At=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],a=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):a}},{key:"build",value:function(t,e,n,r,i,a,o,s,u,c){var l=[],h=this.ast.options&&this.ast.options.params||Et,f=this.buildStyles(n,o&&o.params||Et,l),d=s&&s.params||Et,p=this.buildStyles(r,d,l),g=new Set,y=new Map,v=new Map,m="void"===r,_={params:Object.assign(Object.assign({},h),d)},w=c?[]:gt(t,e,this.ast.animation,i,a,f,p,_,u,l),k=0;if(w.forEach((function(t){k=Math.max(t.duration+t.delay,k)})),l.length)return St(e,this._triggerName,n,r,m,f,p,[],[],y,v,k,l);w.forEach((function(t){var n=t.element,r=b(y,n,{});t.preStyleProps.forEach((function(t){return r[t]=!0}));var i=b(v,n,{});t.postStyleProps.forEach((function(t){return i[t]=!0})),n!==e&&g.add(n)}));var C=Y(g.values());return St(e,this._triggerName,n,r,m,f,p,w,C,y,v,k)}}]),t}(),Tt=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=N(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;
1Object.keys(i).forEach((function(t){var a=i[t];a.length>1&&(a=K(a,r,e)),n[t]=a}))}})),n}}]),t}(),Mt=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 Tt(t.style,t.options&&t.options.params||{})})),It(this.states,"true","1"),It(this.states,"false","0"),n.transitions.forEach((function(t){r.transitionFactories.push(new At(e,t,r.states))})),this.fallbackTransition=new At(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:"containsQueries",get:function(){return this.ast.queryCount>0}},{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)}}]),t}();function It(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var xt=new ft,jt=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=at(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=r}},{key:"_buildPlayer",value:function(t,e,n){var r=t.element,i=g(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]:{},a=[],o=this._animations[t],s=new Map;if(o?(n=gt(this._driver,e,o,"ng-enter","ng-leave",{},{},i,xt,a)).forEach((function(t){var e=b(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=r._driver.computeStyle(e,n,f.a)}))}));var u=p(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 ".concat(t));return e}},{key:"listen",value:function(t,e,n,r){var i=m(e,"","","");return y(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}(),Lt=[],Pt={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Rt={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Dt=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 a=N(e);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return _createClass(t,[{key:"params",get:function(){return this.options.params}},{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])}))}}}]),t}(),zt=new Dt("void"),Nt=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-"
1+e,Wt(n,this._hostClassName)}return _createClass(t,[{key:"listen",value:function(t,e,n,r){var i,a=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 o=b(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);var u=b(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(Wt(t,"ng-trigger"),Wt(t,"ng-trigger-"+e),u[e]=zt),function(){a._engine.afterFlush((function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),a._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],a=this._getTrigger(e),o=new Ft(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Wt(t,"ng-trigger"),Wt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],c=new Dt(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),s[e]=c,u||(u=zt),"void"===c.value||u.value!==c.value){var l=b(this._engine.playersByElement,t,[]);l.forEach((function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()}));var h=a.matchTransition(u.value,c.value,t,c.params),f=!1;if(!h){if(!i)return;h=a.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:u,toState:c,player:o,isFallbackTransition:f}),f||(Wt(t,"ng-animate-queued"),o.onStart((function(){Gt(t,"ng-animate-queued")}))),o.onDone((function(){var e=r.players.indexOf(o);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(o);i>=0&&n.splice(i,1)}})),this.players.push(o),l.push(o),o}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<n.length;i++){var a=n[i];if(!e.hasOwnProperty(a)||t[a]!==e[a])return!1}return!0}(u.params,c.params)){var d=[],p=a.matchStyles(u.value,u.params,d),g=a.matchStyles(c.value,c.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush((function(){U(t,p),B(t,g)}))}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach((function(e,n){delete e[t]})),this._elementListeners.forEach((function(n,r){e._elementListeners.set(r,n.filter((function(e){return e.name!=t})))}))}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach((function(t){return t.destroy()})),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,r=this._engine.driver.query(t,".ng-trigger",!0);r.forEach((function(t){if(!t.__ng_removed){var r=n._engine.fetchNamespacesByElement(t);r.size?r.forEach((function(n){return n.triggerLeaveAnimation(t,e,!1,!0)})):n.clearElementCache(t)}})),this._engine.afterFlushAnimationsDone((function(){return r.forEach((function(t){return n.clearElementCache(t)}))}))}},{key:"triggerLeaveAnimation",value:function(t,e,n,r){var i=this,a=this._engine.statesByElement.get(t);if(a){var o=[];if(Object.keys(a).forEach((function(e){if(i._triggers[e]){var n=i.trigger(t,e,"void",r);n&&o.push(n)}})),o.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&p(o).onDone((function(){return i._engine.processLeaveNode(t)})),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t);if(n){var r=new Set;n.forEach((function(n){var i=n.name;if(!r.has(i)){r.add(i);var a=e._triggers[i].fallbackTransition,o=e._engine.statesByElement.get(t)[i]||zt,s=new Dt("void"),u=new Ft(e.id,i,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:i,transition:a,fromState:o,toState:s,player:u,isFallbackTransition:!0})}}))}}},{key:"removeNode",value:function(t,e){var n=this,r=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var i=!1;if(r.totalAnimations){var a=r.players.length?r.playersByQueriedElement.get(t):[];if(a&&a.length)i=!0;else for(var o=t;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}if(this.prepareLeaveAnimationListeners(t),i)r.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==Pt||(r.afterFlush((function(){return n.clearElementCache(t)})),r.destroyInnerAnimations(t),r._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){Wt(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach((function(r){var i=r.player;if(!i.destroyed){var a=r.element,o=e._elementListeners.get(a);o&&o.forEach((function(e){if(e.name==r.triggerName){var n=m(a,r.triggerName,r.fromState.value,r.toState.value);n._data=t,y(r.player,e.phase,n,e.callback)}})),i.markedForDestroy?e._engine.afterFlush((function(){i.destroy()})):n.push(r)}})),this._queue=[],n.sort((function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1}))}}
1,{key:"destroy",value:function(t){this.players.forEach((function(t){return t.destroy()})),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find((function(e){return e.element===t}))||e}}]),t}(),Vt=function(){function t(e,n,r){_classCallCheck(this,t),this.bodyNode=e,this.driver=n,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return _createClass(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach((function(e){e.players.forEach((function(e){e.queued&&t.push(e)}))})),t}},{key:"createNamespace",value:function(t,e){var n=new Nt(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=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<r.length;i++){var a=n[r[i]].namespaceId;if(a){var o=this._fetchNamespace(a);o&&e.add(o)}}return e}},{key:"trigger",value:function(t,e,n,r){if(Ht(e)){var i=this._fetchNamespace(t);if(i)return i.trigger(e,n,r),!0}return!1}},{key:"insertNode",value:function(t,e,n,r){if(Ht(e)){var i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;var a=this.collectedLeaveElements.indexOf(e);a>=0&&this.collectedLeaveElements.splice(a,1)}if(t){var o=this._fetchNamespace(t);o&&o.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),Wt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Gt(t,"ng-animate-disabled"))}},{key:"removeNode",value:function(t,e,n,r){if(Ht(e)){var i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){var a=this.namespacesByHostElement.get(e);a&&a.id!==t&&a.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 Ht(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-tr
1igger",!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 p(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=Pt,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<this.collectedEnterElements.length;r++)Wt(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,e)}finally{for(var a=0;a<i.length;a++)i[a]()}}else for(var o=0;o<this.collectedLeaveElements.length;o++)this.processLeaveNode(this.collectedLeaveElements[o]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach((function(t){return t()})),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?p(n).onDone((function(){s.forEach((function(t){return t()}))})):s.forEach((function(t){return t()}))}}},{key:"reportError",value:function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(t.join("\n")))}},{key:"_flushAnimations",value:function(t,e){var n=this,r=new ft,i=[],a=new Map,o=[],s=new Map,u=new Map,c=new Map,l=new Set;this.disabledNodes.forEach((function(t){l.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),r=0;r<e.length;r++)l.add(e[r])}));var h=this.bodyNode,d=Array.from(this.statesByElement.keys()),g=qt(d,this.collectedEnterElements),y=new Map,v=0;g.forEach((function(t,e){var n="ng-enter"+v++;y.set(e,n),t.forEach((function(t){return Wt(t,n)}))}));for(var m=[],_=new Set,w=new Set,k=0;k<this.collectedLeaveElements.length;k++){var C=this.collectedLeaveElements[k],O=C.__ng_removed;O&&O.setForRemoval&&(m.push(C),_.add(C),O.hasAnimation?this.driver.query(C,".ng-star-inserted",!0).forEach((function(t){return _.add(t)})):w.add(C))}var S=new Map,E=qt(d,Array.from(_));E.forEach((function(t,e){var n="ng-leave"+v++;S.set(e,n),t.forEach((function(t){return Wt(t,n)}))})),t.push((function(){g.forEach((function(t,e){var n=y.get(e);t.forEach((function(t){return Gt(t,n)}))}
1)),E.forEach((function(t,e){var n=S.get(e);t.forEach((function(t){return Gt(t,n)}))})),m.forEach((function(t){n.processLeaveNode(t)}))}));for(var A=[],T=[],M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(e).forEach((function(t){var e=t.player,a=t.element;if(A.push(e),n.collectedEnterElements.length){var l=a.__ng_removed;if(l&&l.setForMove)return void e.destroy()}var f=!h||!n.driver.containsElement(h,a),d=S.get(a),p=y.get(a),g=n._buildInstruction(t,r,p,d,f);if(!g.errors||!g.errors.length)return f?(e.onStart((function(){return U(a,g.fromStyles)})),e.onDestroy((function(){return B(a,g.toStyles)})),void i.push(e)):t.isFallbackTransition?(e.onStart((function(){return U(a,g.fromStyles)})),e.onDestroy((function(){return B(a,g.toStyles)})),void i.push(e)):(g.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),r.append(a,g.timelines),o.push({instruction:g,player:e,element:a}),g.queriedElements.forEach((function(t){return b(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)}))}})),void g.postStyleProps.forEach((function(t,e){var n=Object.keys(t),r=c.get(e);r||c.set(e,r=new Set),n.forEach((function(t){return r.add(t)}))})));T.push(g)}));if(T.length){var I=[];T.forEach((function(t){I.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach((function(t){return I.push("- ".concat(t,"\n"))}))})),A.forEach((function(t){return t.destroy()})),this.reportError(I)}var x=new Map,j=new Map;o.forEach((function(t){var e=t.element;r.has(e)&&(j.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,x))})),i.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){b(x,e,[]).push(t),t.destroy()}))}));var L=m.filter((function(t){return Yt(t,u,c)})),P=new Map;
1Ut(P,this.driver,w,c,f.a).forEach((function(t){Yt(t,u,c)&&L.push(t)}));var R=new Map;g.forEach((function(t,e){Ut(R,n.driver,new Set(t),u,f.l)})),L.forEach((function(t){var e=P.get(t),n=R.get(t);P.set(t,Object.assign(Object.assign({},e),n))}));var D=[],z=[],N={};o.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(r.has(e)){if(l.has(e))return o.onDestroy((function(){return B(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void i.push(o);var u=N;if(j.size>1){for(var c=e,h=[];c=c.parentNode;){var f=j.get(c);if(f){u=f;break}h.push(c)}h.forEach((function(t){return j.set(t,u)}))}var d=n._buildAnimation(o.namespaceId,s,x,a,R,P);if(o.setRealPlayer(d),u===N)D.push(o);else{var g=n.playersByElement.get(u);g&&g.length&&(o.parentPlayer=p(g)),i.push(o)}}else U(e,s.fromStyles),o.onDestroy((function(){return B(e,s.toStyles)})),z.push(o),l.has(e)&&i.push(o)})),z.forEach((function(t){var e=a.get(t.element);if(e&&e.length){var n=p(e);t.setRealPlayer(n)}})),i.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var V=0;V<m.length;V++){var F=m[V],H=F.__ng_removed;if(Gt(F,"ng-leave"),!H||!H.hasAnimation){var q=[];if(s.size){var W=s.get(F);W&&W.length&&q.push.apply(q,_toConsumableArray(W));for(var G=this.driver.query(F,".ng-animating",!0),K=0;K<G.length;K++){var Y=s.get(G[K]);Y&&Y.length&&q.push.apply(q,_toConsumableArray(Y))}}var Q=q.filter((function(t){return!t.destroyed}));Q.length?Kt(this,F,Q):this.processLeaveNode(F)}}return m.length=0,D.forEach((function(t){n.players.push(t),t.onDone((function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)})),t.play()})),D}},{key:"elementContainsData",value:function(t,e){var n=!1,r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}},{key:"afterFlush",value:function(t){this._flushFns.push(t)}},{key:"afterFlushAnimationsDone",value:function(t){this._whenQuietFns.push(t)}},{key:"_getPreviousPlayers",value:function(t,e,n,r,i){var a=[];if(e){var o=this.playersByQueriedElement.get(t);o&&(a=o)}else{var s=this.playersByElement.get(t);if(s){var u=!i||"void"==i;s.forEach((function(t){t.queued||(u||t.triggerName==r)&&a.push(t)}))}}return(n||r)&&(a=a.filter((function(t){return!(n&&n!=t.namespaceId||r&&r!=t.triggerName)}))),a}},{key:"_beforeAnimationBuild",value:function(t,e,n){var r,i=this,a=e.element,o=e.isRemovalTransition?void 0:t,s=e.isRemovalTransition?void 0:e.triggerName,u=_createForOfIteratorHelper(e.timelines);try{var c=function(){var t=r.value.element,u=t!==a,c=b(n,t,[]);i._getPreviousPlayers(t,u,o,s,e.toState).forEach((function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)}))};for(u.s();!(r=u.n()).done;)c()}catch(l){u.e(l)}finally{u.f()}U(a,e.fromStyles)}},{key:"_buildAnimation",value:function(t,e,n,r,i,a){var o=this,s=e.triggerName,u=e.element,c=[],l=new Set,h=new Set,d=e.timelines.map((function(e){var d=e.element;l.add(d);var p=d.__ng_removed;if(p&&p.removedBeforeQueried)return new f.d(e.duration,e.delay);var y,v,m=d!==u,b=(y=(n.get(d)||Lt).map((function(t){return t.getRealPlayer()})),v=[],function t(e,n){for(var r=0;r<e.length;r++){var i=e[r];i instanceof f.k?t(i.players,n):n.push(i)}}(y,v),v).filter((function(t){return!!t.element&&t.element===d})),_=i.get(d),w=a.get(d),k=g(0,o._normalizer,0,e.keyframes,_,w),C=o._buildPlayer(e,k,b);if(e.subTimeline&&r&&h.add(d),m){var O=new Ft(t,s,d);O.setRealPlayer(C),c.push(O)}return C}));c.forEach((function(t){b(o.playersByQueriedElement,t.element,[]).push(t),t.onDone((function(){return function(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else if(r=t[e]){if(r.length){var a=r.indexOf(n);r.splice(a,1)}0==r.length&&delete t[e]}return r}(o.playersByQueriedElement,t.element,t)}))})),l.forEach((function(t){return Wt(t,"ng-animating")}));var y=p(d);return y.onDestroy((function(){l.forEach((function(t){return Gt(t,"ng-animating")})),B(u,e.toStyles)})),h.forEach((function(t){b(r,t,[]).push(y)})),y}},{key:"_buildPlayer",value:function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new f.d(t.duration,t.delay)}}]),t}(),Ft=function(){function t(e,n,r){_classCallCheck(this,t),this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new f.d,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).forEac
1h((function(n){e._queuedCallbacks[n].forEach((function(e){return y(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){b(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 Ht(t){return t&&1===t.nodeType}function Bt(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Ut(t,e,n,r,i){var a=[];n.forEach((function(t){return a.push(Bt(t))}));var o=[];r.forEach((function(n,r){var a={};n.forEach((function(t){var n=a[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r.__ng_removed=Rt,o.push(r))})),t.set(r,a)}));var s=0;return n.forEach((function(t){return Bt(t,a[s++])})),o}function qt(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 a=i.get(e);if(a)return a;var o=e.parentNode;return a=n.has(o)?o:r.has(o)?1:t(o),i.set(e,a),a}(t);1!==e&&n.get(e).push(t)})),n}function Wt(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Gt(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Kt(t,e,n){p(n).onDone((function(){return t.processLeaveNode(e)}))}function Yt(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 Qt=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 Vt(e,n,r),this._timelineEngine=new jt(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 a=t+"-"+r,o=this._triggerCache[a];if(!o){var s=[],u=at(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 - ")));o=function(t,e){return new Mt(t,e)}(r,u),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(e,r,o)}},{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(_(n),2),a=i[0],o=i[1];this._timelineEngine.command(a,e,o,r)}else this._transitionEngine.trigger(t,e,n,r)}},{key:"listen",value:function(t,e,n,r,i){if("@"==n.charAt(0)){var a=_slicedToArray(_(n),2),o=a[0],s=a[1];return this._timelineEngine.listen(o,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:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),t}();function Xt(t,e){var n=null,r=null;return Array.isArray(e)&&e.length?(n=$t(e[0]),e.length>1&&(r=$t(e[e.length-1]))):e&&(n=$t(e)),n||r?new Zt(t,n,r):null}var Zt=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&&B(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(B(this._element,this._initialStyles),this._endStyles&&(B(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&&(U(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(U(this._element,this._endStyles),this._endStyles=null),B(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function $t(t){for(var e=null,n=Object.keys(t),r=0;r<n.length;r++){var i=n[r];Jt(i)&&((e=e||{})[i]=t[i])}return e}function Jt(t){return"display"===t||"position"===t}var te=function(){function t(e,n,r,i,a,o,s){var u=this;_classCallCheck(this,t),this._element=e,this._name=n,this._duration=r,this._delay=i,this._easing=a,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return u._handleCallback(t)}}return _createClass(t,[{key:"apply",value:function(){var t,e,n;t=this._element,e="".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name),(n=oe(t,"").trim()).length&&(function(t,e){for(var n=0;n<t.length;n++)t.charAt(n)}(n),e="".concat(n,", ").concat(e)),ae(t,"",e),ie(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){ee(this._element,this._name,"paused")}},{key:"resume",value:function(){ee(this._element,this._name,"running")}},{key:"setPosition",value:function(t){var e=ne(this._element,this._name);this._position=t*this._duration,ae(this._element,"Delay","-".concat(this._position,"ms"),e)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(t){var e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),ie(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._element,e=this._name,n=oe(t,"").split(","),(r=re(n,e))>=0&&(n.splice(r,1),ae(t,"",n.join(","))))}}]),t}();function ee(t,e,n){ae(t,"PlayState",n,ne(t,e))}function ne(t,e){var n=oe(t,"");return n.indexOf(",")>0?re(n.split(","),e):re([n],e)}function re(t,e){for(var n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function ie(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function ae(t,e,n,r){var i="animation"+e;if(null!=r){var a=t.style[i];if(a.length){var o=a.split(",");o[r]=n,n=o.join(",")}}t.style[i]=n}function oe(t,e){return t.style["animation"+e]}var se=function(){function t(e,n,r,i,a,o,s,u){_classCallCheck(this,t),this.element=e,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=a,this._finalStyles=s,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+a,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>
1=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 te(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]:tt(t.element,r))}))}this.currentSnapshot=e}}]),t}(),ue=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=x(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}(f.d),ce=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 A(t)}},{key:"matchesElement",value:function(t,e){return T(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,n){return I(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 x(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+="".concat(i,"}\n")})),r+="}\n";var a=document.createElement("style");return a.innerHTML=r,a}},{key:"animate",value:function(t,e,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;o&&this._notifyFaultyScrubber();var s=a.filter((function(t){return t instanceof se})),u={};Z(n,r)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var c=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=$(t,e,u));if(0==n)return new ue(t,c);var l="gen_css_kf_".concat(this._count++),h=this.buildKeyframeElement(t,l,e);document.querySelector("head").appendChild(h);var f=Xt(t,e),d=new se(t,e,l,n,r,i,c,f);return d.onDestroy((function(){var t;(t=h).parentNode.removeChild(t)})),d}},{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/IWu
1kam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}]),t}(),le=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:"totalTime",get:function(){return this._delay+this._duration}},{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]:tt(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}}]),t}(),he=function(){function t(){_classCallCheck(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(fe().toString()),this._cssKeyframesDriver=new ce}return _createClass(t,[{key:"validateStyleProperty",value:function(t){return A(t)}},{key:"matchesElement",value:function(t,e){return T(t,e)}},{key:"containsElement",value:function(t,e){return M(t,e)}},{key:"query",value:function(t,e,n){return I(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 a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0;if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,a);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var u={},c=a.filter((function(t){return t instanceof le}));Z(n,r)&&c.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var l=Xt(t,e=$(t,e=e.map((function(t){return V(t,!1)})),u));return new le(t,e,s,l)}}]),t}();function fe(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var de,pe=n("ofXK"),ge=((de=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:a.cb.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)?Object(f.f)(t):t;return me(this._renderer,null,e,"register",[n]),new ye(e,this._renderer)}}]),n}(f.b)).\u0275fac=function(t){return new(t||de)(a.mc(a.N),a.mc(pe.c))},de.\u0275prov=a.Yb({token:de,factory:de.\u0275fac}),de),ye=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 ve(this._id,t,e||{},this._renderer)}}]),n}(f.c),ve=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<e;r++)n[r-1]=arguments[r];return me(this._renderer,this.element,this.id,t,n)}},{key:"onDone",value:function(t){this._listen("done",t)}},{key:"onStart",value:function(t){this._listen("start",t)}},{key:"onDestroy",value:function(t){this._listen("destroy",t)}},{key:"init",value:function(){this._command("init")}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this._command("play"),this._started=!0}},{key:"pause",value:function(){this._command("pause")}},{key:"restart",value:function(){this._command("restart")}},{key:"finish",value:function(){this._command("finish")}},{key:"destroy",value:function(){this._command("destroy")}},{key:"reset",value:function(){this._command("reset")}},{key:"setPosition",value:function(t){this._command("setPosition",t)}},{key:"getPosition",value:function(){return 0}}]),t}();function me(t,e,n,r,i){return t.setProperty(e,"@@".concat(n,":").concat(r),i)}var be,_e,we,ke,Ce,Oe,Se=((be=function(){function t(e,n,r){_classCallCheck(this,t),this.delegate=e,this.engine=n,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return _createClass(t,[{key:"createRenderer",value:function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var i=this._rendererCache.get(r);
1return i||(i=new Ee("",r,this.engine),this._rendererCache.set(r,i)),i}var a=e.id,o=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(o,t),e.data.animation.forEach((function e(r){Array.isArray(r)?r.forEach(e):n.engine.registerTrigger(a,o,t,r.name,r)})),new Ae(this,o,r,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var t=this;this.promise.then((function(){t._microtaskId++}))}},{key:"scheduleListenerCallback",value:function(t,e,n){var r=this;t>=0&&t<this._microtaskId?this._zone.run((function(){return e(n)})):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then((function(){r._zone.run((function(){r._animationCallbacksBuffer.forEach((function(t){var e=_slicedToArray(t,2);(0,e[0])(e[1])})),r._animationCallbacksBuffer=[]}))})),this._animationCallbacksBuffer.push([e,n]))}},{key:"end",value:function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular((function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)})),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),t}()).\u0275fac=function(t){return new(t||be)(a.mc(a.N),a.mc(Qt),a.mc(a.G))},be.\u0275prov=a.Yb({token:be,factory:be.\u0275fac}),be),Ee=function(){function t(e,n,r){_classCallCheck(this,t),this.namespaceId=e,this.delegate=n,this.engine=r,this.destroyNode=this.delegate.destroyNode?function(t){return n.destroyNode(t)}:null}return _createClass(t,[{key:"data",get:function(){return this.delegate.data}},{key:"destroy",value:function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}},{key:"createElement",value:function(t,e){return this.delegate.createElement(t,e)}},{key:"createComment",value:function(t){return this.delegate.createComment(t)}},{key:"createText",value:function(t){return this.delegate.createText(t)}},{key:"appendChild",value:function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}},{key:"insertBefore",value:function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,r){this.delegate.setStyle(t,e,n,r)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),t}(),Ae=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i,a){var o;return _classCallCheck(this,n),(o=e.call(this,r,i,a)).factory=t,o.namespaceId=r,o}return _createClass(n,[{key:"setProperty",value:function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}},{key:"listen",value:function(t,e,n){var r,i,a=this;if("@"==e.charAt(0)){var o,s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),u=e.substr(1),c="";return"@"!=u.charAt(0)&&(i=(r=u).indexOf("."),u=(o=_slicedToArray([r.substring(0,i),r.substr(i+1)],2))[0],c=o[1]),this.engine.listen(this.namespaceId,s,u,c,(function(t){a.factory.scheduleListenerCallback(t._data||-1,n,t)}))}return this.delegate.listen(t,e,n)}}]),n}(Ee),Te=((_e=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r,i){return _classCallCheck(this,n),e.call(this,t.body,r,i)}return _createClass(n)}(Qt)).\u0275fac=function(t){return new(t||_e)(a.mc(pe.c),a.mc(P),a.mc(kt))},_e.\u0275prov=a.Yb({token:_e,factory:_e.\u0275fac}),_e),Me=[{provide:P,useFactory:function(){return"function"==typeof fe()?new he:new ce}},{provide:new a.w("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:f.b,useClass:ge},{provide:kt,useFactory:function(){return new Ct}},{provide:Qt,useClass:Te},{provide:a.N,useFactory:function(t,e,n){return new Se(t,e,n)},deps:[o.d,Qt,a.G]}],Ie=((we=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=a.ac({type:we}),we.\u0275inj=a.Zb({factory:function(t){return new(t||we)},providers:Me,imports:[o.a]}),we),xe=n("aceb"),je=n("ZtdT"),Le=function(t){_inherits(n,t);var e=_createSuper(n);function n(t,r){var i;return _classCallCheck(this,n),(i=e.call(this,t,"")).name=t,i.content=r,i}return _createClass(n,[{key:"getContent",value:function(t){return this.content.toSvg(Object.assign({width:"100%",height:"100%",fill:"currentColor"},t))}}]),n}(xe.C),Pe=((ke=function(){function t(e){_classCallCheck(this,t),this.NAME="eva",e.registerSvgPack(this.NAME,this.createIcons()),e.setDefaultPack(this.NAME)}return _createClass(t,[{key:"createIcons",value:function(){return Object.entries(je.icons).map((function(t){var e=_slicedToArray(t,2),n=e[0],r=e[1];return[n,new Le(n,r)]}
1)).reduce((function(t,e){var n=_slicedToArray(e,2),r=n[0],i=n[1];return t[r]=i,t}),{})}}]),t}()).\u0275mod=a.ac({type:ke}),ke.\u0275inj=a.Zb({factory:function(t){return new(t||ke)(a.mc(xe.n))}}),ke),Re=n("qH2O"),De=n("tk/3"),ze=n("NXyV"),Ne=n("z6cu"),Ve=n("xgIS"),Fe=n("LRne"),He=n("GyhO"),Be=n("XNiG"),Ue=n("HDdC"),qe=n("KqfI"),We=new Ue.a(qe.a),Ge=n("VRyK"),Ke=n("lJxs"),Ye=n("pLZG"),Qe=n("eIep"),Xe=n("oB13"),Ze=n("IzEk"),$e=n("vkgz"),Je=n("3E0/"),tn="Service workers are disabled or not supported by this browser",en=function(){function t(e){if(_classCallCheck(this,t),this.serviceWorker=e,e){var n=Object(Ve.a)(e,"controllerchange").pipe(Object(Ke.a)((function(){return e.controller}))),r=Object(ze.a)((function(){return Object(Fe.a)(e.controller)})),i=Object(He.a)(r,n);this.worker=i.pipe(Object(Ye.a)((function(t){return!!t}))),this.registration=this.worker.pipe(Object(Qe.a)((function(){return e.getRegistration()})));var a=Object(Ve.a)(e,"message").pipe(Object(Ke.a)((function(t){return t.data}))).pipe(Object(Ye.a)((function(t){return t&&t.type}))).pipe(Object(Xe.a)(new Be.a));a.connect(),this.events=a}else this.worker=this.events=this.registration=Object(ze.a)((function(){return Object(Ne.a)(new Error("Service workers are disabled or not supported by this browser"))}))}return _createClass(t,[{key:"postMessage",value:function(t,e){return this.worker.pipe(Object(Ze.a)(1),Object($e.a)((function(n){n.postMessage(Object.assign({action:t},e))}))).toPromise().then((function(){}))}},{key:"postMessageWithStatus",value:function(t,e,n){var r=this.waitForStatus(n),i=this.postMessage(t,e);return Promise.all([r,i]).then((function(){}))}},{key:"generateNonce",value:function(){return Math.round(1e7*Math.random())}},{key:"eventsOfType",value:function(t){return this.events.pipe(Object(Ye.a)((function(e){return e.type===t})))}},{key:"nextEventOfType",value:function(t){return this.eventsOfType(t).pipe(Object(Ze.a)(1))}},{key:"waitForStatus",value:function(t){return this.eventsOfType("STATUS").pipe(Object(Ye.a)((function(e){return e.nonce===t})),Object(Ze.a)(1),Object(Ke.a)((function(t){if(!t.status)throw new Error(t.error)}))).toPromise()}},{key:"isEnabled",get:function(){return!!this.serviceWorker}}]),t}(),nn=((Oe=function(){function t(e){if(_classCallCheck(this,t),this.sw=e,this.subscriptionChanges=new Be.a,!e.isEnabled)return this.messages=We,this.notificationClicks=We,void(this.subscription=We);this.messages=this.sw.eventsOfType("PUSH").pipe(Object(Ke.a)((function(t){return t.data}))),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(Object(Ke.a)((function(t){return t.data}))),this.pushManager=this.sw.registration.pipe(Object(Ke.a)((function(t){return t.pushManager})));var n=this.pushManager.pipe(Object(Qe.a)((function(t){return t.getSubscription()})));this.subscription=Object(Ge.a)(n,this.subscriptionChanges)}return _createClass(t,[{key:"isEnabled",get:function(){return this.sw.isEnabled}},{key:"requestSubscription",value:function(t){var e=this;if(!this.sw.isEnabled)return Promise.reject(new Error(tn));for(var n={userVisibleOnly:!0},r=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),i=new Uint8Array(new ArrayBuffer(r.length)),a=0;a<r.length;a++)i[a]=r.charCodeAt(a);return n.applicationServerKey=i,this.pushManager.pipe(Object(Qe.a)((function(t){return t.subscribe(n)})),Object(Ze.a)(1)).toPromise().then((function(t){return e.subscriptionChanges.next(t),t}))}},{key:"unsubscribe",value:function(){var t=this;return this.sw.isEnabled?this.subscription.pipe(Object(Ze.a)(1),Object(Qe.a)((function(e){if(null===e)throw new Error("Not subscribed to push notifications.");return e.unsubscribe().then((function(e){if(!e)throw new Error("Unsubscribe failed!");t.subscriptionChanges.next(null)}))}))).toPromise():Promise.reject(new Error(tn))}},{key:"decodeBase64",value:function(t){return atob(t)}}]),t}()).\u0275fac=function(t){return new(t||Oe)(a.mc(en))},Oe.\u0275prov=a.Yb({token:Oe,factory:Oe.\u0275fac}),Oe),rn=((Ce=function(){function t(e){if(_classCallCheck(this,t),this.sw=e,!e.isEnabled)return this.available=We,void(this.activated=We);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED")}return _createClass(t,[{key:"isEnabled",get:function(){return this.sw.isEnabled}},{key:"checkForUpdate",value:function(){if(!this.sw.isEnabled)return Promise.reject(new Error(tn));var t=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:t},t)}},{key:"activateUpdate",value:function(){if(!this.sw.isEnabled)return Promise.reject(new Error(tn));var t=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:t},t)}}]),t}
1()).\u0275fac=function(t){return new(t||Ce)(a.mc(en))},Ce.\u0275prov=a.Yb({token:Ce,factory:Ce.\u0275fac}),Ce),an=_createClass((function t(){_classCallCheck(this,t)})),on=new a.w("NGSW_REGISTER_SCRIPT");function sn(t,e,n,r){return function(){if(Object(pe.x)(r)&&"serviceWorker"in navigator&&!1!==n.enabled){var i;if(navigator.serviceWorker.addEventListener("controllerchange",(function(){null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})})),"function"==typeof n.registrationStrategy)i=n.registrationStrategy();else{var o=_toArray((n.registrationStrategy||"registerWhenStable").split(":")),s=o[0],u=o.slice(1);switch(s){case"registerImmediately":i=Object(Fe.a)(null);break;case"registerWithDelay":i=Object(Fe.a)(null).pipe(Object(Je.a)(+u[0]||0));break;case"registerWhenStable":i=t.get(a.g).isStable.pipe(Object(Ye.a)((function(t){return t})));break;default:throw new Error("Unknown ServiceWorker registration strategy: ".concat(n.registrationStrategy))}}i.pipe(Object(Ze.a)(1)).subscribe((function(){return navigator.serviceWorker.register(e,{scope:n.scope}).catch((function(t){return console.error("Service worker registration failed with:",t)}))}))}}}function un(t,e){return new en(Object(pe.x)(e)&&!1!==t.enabled?navigator.serviceWorker:void 0)}var cn,ln=((cn=function(){function t(){_classCallCheck(this,t)}return _createClass(t,null,[{key:"register",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{ngModule:t,providers:[{provide:on,useValue:e},{provide:an,useValue:n},{provide:en,useFactory:un,deps:[an,a.J]},{provide:a.d,useFactory:sn,deps:[a.x,on,an,a.J],multi:!0}]}}}]),t}()).\u0275mod=a.ac({type:cn}),cn.\u0275inj=a.Zb({factory:function(t){return new(t||cn)},providers:[nn,rn]}),cn),hn=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/assets/i18n/",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".json";_classCallCheck(this,t),this.http=e,this.prefix=n,this.suffix=r}return _createClass(t,[{key:"getTranslation",value:function(t){return this.http.get("".concat(this.prefix).concat(t).concat(this.suffix))}}]),t}(),fn=n("spgP"),dn=n("RgrY"),pn=n("I/3d");function gn(t){return new hn(t)}var yn,vn={apiKey:"AIzaSyBzpayt5_VwcdOKHVhsQ7zTFdvraif0aM0",authDomain:"waveform-vodime.firebaseapp.com",projectId:"waveform-vodime",storageBucket:"waveform-vodime.appspot.com",messagingSenderId:"688934245454",appId:"1:688934245454:web:5bd420d853e01afa8d1f1f"},mn=((yn=_createClass((function t(){_classCallCheck(this,t)}))).\u0275mod=a.ac({type:yn,bootstrap:[h]}),yn.\u0275inj=a.Zb({factory:function(t){return new(t||yn)},providers:[],imports:[[o.a,c,Ie,xe.D.forRoot({name:"default"}),Re.a,Pe,De.b,l.b.forRoot({loader:{provide:l.a,useFactory:gn,deps:[De.a]}}),ln.register("ngsw-worker.js",{enabled:!0}),fn.a.initializeApp(vn),dn.b,pn.b],l.b]}),yn);Object(a.fb)(),o.c().bootstrapModule(mn).catch((function(t){return console.error(t)}))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}},[[0,0]]]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.