1(function(){function asyncGeneratorStep(e,t,n,i,r,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(i,r)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var a=e.apply(t,n);function o(e){asyncGeneratorStep(a,i,r,o,s,"next",e)}function s(e){asyncGeneratorStep(a,i,r,o,s,"throw",e)}o(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_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 _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_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(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,o,s=[],l=!0,c=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(s.push(i.value),s.length!==t);l=!0);}catch(e){c=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw r}}return s}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}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(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function _wrapNativeSuper(e){var t="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(e){if(null===e||!_isNativeFunction(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(n,e)})(e)}function _construct(e,t,n){if(_isNativeReflectConstruct())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,t);var r=new(e.bind.apply(e,i));return n&&_setPrototypeOf(r,n.prototype),r}function _isNativeFunction(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,_toPropertyKey(i.key),i)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return"symbol"==typeof t?t:t+""}function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function _get(){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=_superPropBase(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}}).apply(null,arguments)}function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,i=_getPrototypeOf(e);if(t){var r=_getPrototypeOf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_isNativeReflectConstruct=function(){return!!e})()}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{"+s0g":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",w:"\xe9\xe9n week",ww:"%d weken",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"//9w":function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"/X5v":function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},0:function(e,t,n){e.exports=n("zUnb")},"0mo+":function(e,t,n){!function(e){"use strict";var t={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},n={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};e.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b1_\u0f5f\u0fb3\u0f0b2_\u0f5f\u0fb3\u0f0b3_\u0f5f\u0fb3\u0f0b4_\u0f5f\u0fb3\u0f0b5_\u0f5f\u0fb3\u0f0b6_\u0f5f\u0fb3\u0f0b7_\u0f5f\u0fb3\u0f0b8_\u0f5f\u0fb3\u0f0b9_\u0f5f\u0fb3\u0f0b10_\u0f5f\u0fb3\u0f0b11_\u0f5f\u0fb3\u0f0b12".split("_"),monthsShortRegex:/^(\u0f5f\u0fb3\u0f0b\d{1,2})/,monthsParseExact:!0,weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72_\u0f5f\u0fb3_\u0f58\u0f72\u0f42_\u
10f63\u0fb7\u0f42_\u0f55\u0f74\u0f62_\u0f66\u0f44\u0f66_\u0f66\u0fa4\u0f7a\u0f53".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(e){return e.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===t&&e>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===t&&e<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":e<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":e<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":e<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(n("wd/R"))},"0tRk":function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_s\xe1b".split("_"),weekdaysMin:"do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",invalidDate:"Data inv\xe1lida"})}(n("wd/R"))},"12HJ":function(e,t){!function(){var e={1471:function(){Smart("smart-accordion-item",function(e){_inherits(n,Smart.ContentElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"enableShadowDOM",get:function(){return!1}},{key:"template",value:function(){return'<div id="container" role="presentation">\n <div id="accordionItemHeader" class="smart-accordion-item-header smart-unselectable" role="heading" aria-level="1">\n <span id="arrow" class="smart-arrow" role="presentation" aria-hidden="true"></span>\n <span id="label" class="smart-label" inner
1-h-t-m-l=\'[[label]]\' role="button"></span>\n </div>\n <div id="accordionItemContent" class="smart-accordion-item-content">\n <div id="contentContainer" class="smart-content-container" role="presentation"><content></content></div>\n </div>\n </div>'}},{key:"render",value:function(){var e,t=this;e=t.id?t.id+"Content":t.parentElement&&t.parentElement.parentElement&&t.parentElement.parentElement.id?t.parentElement.parentElement.id+Math.floor(1e4*Math.random())+"Content":"accordion"+Math.floor(1e4*Math.random())+"Content",t.$.accordionItemContent.id=e,t.$.label.setAttribute("aria-controls",e),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;if("expanded"!==e){if(t=parseInt(t),i=parseInt(i),"index"===e&&!isNaN(t)&&!isNaN(i)){var a=r.parentElement.parentElement._items.length;i<0?i=0:i>=a&&(i=a-1),i!==t&&r.$.fireEvent("indexChange",{newIndex:i,oldIndex:t}),r.index=i}}else{r.$.label.setAttribute("aria-expanded",i);var o=r.parentElement&&r.parentElement.parentElement?r.parentElement.parentElement.expandMode:r.shadowParent.expandMode;if("multiple"===o||"toggle"===o)return;i?r.$.label.setAttribute("aria-disabled",!0):r.$.label.removeAttribute("aria-disabled")}}},{key:"_headerMouseEnterHandler",value:function(){this.disabled||this.setAttribute("hover","")}},{key:"_headerMouseLeaveHandler",value:function(){this.disabled||this.removeAttribute("hover")}},{key:"_ripple",value:function(e){var t=this;t.disabled||t.hasRippleAnimation&&Smart.Utilities.Animation.Ripple.animate(t.$.container,e.pageX,e.pageY)}},{key:"_setIndex",value:function(e){var t=this,n=t.context;t.context=t,t.index=e,t.context=n}},{key:"focus",value:function(){_get(_getPrototypeOf(n.prototype),"focus",this).call(this),this.setAttribute("focus","")}},{key:"blur",value:function(){_get(_getPrototypeOf(n.prototype),"blur",this).call(this),this.removeAttribute("focus")}}],[{key:"properties",get:function(){return{dragged:{value:!1,type:"boolean"},expanded:{value:!1,type:"boolean"},focused:{value:!1,type:"boolean"},index:{value:null,type:"number?"},label:{value:"",type:"string"}}}},{key:"listeners",get:function(){return{"accordionItemHeader.mouseenter":"_headerMouseEnterHandler","accordionItemHeader.mouseleave":"_headerMouseLeaveHandler","accordionItemHeader.down":"_ripple"}}}]),n}()),Smart("smart-accordion",function(e){_inherits(n,Smart.BaseElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="container" role="presentation">\n <content></content>\n </div>'}},{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this)}},{key:"render",value:function(){this._createElement(),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"propertyChangedHandler",value:function(e,t,i){var r=this;if("expandedIndexes"===e){if(t.toString()===i.toString())return;var a=[];if(r._items.length>0)for(var o=0;o<i.length;o++){var s=parseInt(i[o]);if(!isNaN(s)){if(r._expandModeIs(["single","singleFitHeight","toggle"])){a.length<1&&s>=0&&s<r._items.length&&a.push(s);break}s>=0&&s<=r._items.length&&-1===a.indexOf(s)&&a.push(s)}}if(0===a.length&&r._expandModeIs(["single","singleFitHeight"]))return i=t.slice(),r.expandedIndexes=i,void _get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var l=r._compareExpandedIndexes(t,i=a);return r._toggleItems("collapse",l.collapse),r._toggleItems("expand",l.expand),r.expandedIndexes=i,void _get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i)}switch(_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i),e){case"dataSource":r.render();break;case"disabled":r._setFocusable(),r._enableDisableHandler();break;case"expandMode":if(0===r._items.length)break;if("multiple"===t&&"none"!==i||"none"===t&&"multiple"!==i){var c=r.expandedIndexes.slice(1);r._toggleItems("collapse",c),0===r.expandedIndexes.length&&r._expandModeIs(["single","singleFitHeight"])&&d()}else"toggle"===t&&r._expandModeIs(["single","singleFitHeight"])&&0===r.expandedIndexes.length&&d();var u=r.expandedIndexes[0];if(void 0===u)return;r._supportCSSVariables&&r._usedCSSVariables||("singleFitHeight"===t?r._items[u].$.accordionItemContent.style.height="":"singleFitHeight"===i&&(r._items[u].$.accordionItemContent.style.height=r._exp
1andedItemsContainerHeight-1+"px")),"multiple"===i||"toggle"===i?r._items[u].$.label.removeAttribute("aria-disabled"):r._items[u].$.label.setAttribute("aria-disabled",!0);break;case"unfocusable":r._setFocusable()}function d(){r._toggleItems("expand",[0]),r.expandedIndexes=[0]}}},{key:"appendChild",value:function(e){var t=this;if(!t.isCompleted||e instanceof HTMLElement&&(e.classList.contains("smart-resize-trigger-container")||e.classList.contains("smart-measure-element"))){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}e instanceof Smart.AccordionItem||t.error(t.localize("accordionItemRequired",{method:"appendChild"})),t.insert(t._items.length,e)}},{key:"collapse",value:function(e,t){var n=this;e=n._validateItemsIndex(e,"collapse"),isNaN(e)||!n._items[e].expanded||n._expandModeIs(["single","singleFitHeight"])&&n.expandedIndexes.indexOf(e)>-1||n._collapseItem(e,t)}},{key:"expand",value:function(e,t){var n=this;e=n._validateItemsIndex(e,"expand"),isNaN(e)||n._items[e].expanded||(n._expandModeIs(["single","singleFitHeight","toggle"])&&n._toggleItems("collapse",n.expandedIndexes),n._expandItem(e,t))}},{key:"insert",value:function(e,t){var n,i,r=this,a=0===r._items.length;if(t||("number"==typeof e?t=[{label:"",content:""}]:(t=[{label:e?e.toString():"",content:e?e.toString():""}],e=0)),t instanceof HTMLElement)t instanceof Smart.AccordionItem?n=t:r.error(r.localize("accordionItemRequired",{method:"insert"}));else if(Array.isArray(t)){i=document.createDocumentFragment();for(var o=0;o<t.length;o++){var s=r._createItem(t[o]);i.appendChild(s)}}else n=r._createItem(t instanceof Object?t:"string"==typeof t||"number"==typeof t?{label:t.toString(),content:t.toString()}:{label:"",content:""});e>r._items.length?r.$.container.appendChild(n||i):r.$.container.insertBefore(n||i,r._items[e]),n&&(n.tabIndex=r._tabIndex),r._storeItems(),a&&r._expandModeIs(["single","singleFitHeight"])?r._expandItem(0):r.expandedIndexes=r._getExpandedIndexes(),r._updateExpanedContentHeight(),r._updateInlineHeight(),r._storeItemsCoordinates(),r._updateItemsIndexProperty()}},{key:"insertBefore",value:function(e,t){var n=this;if(!n.isCompleted){var i=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.insertBefore.apply(n,i.concat(Array.prototype.slice.call(arguments)))}void 0!==e&&void 0!==t&&e instanceof Smart.AccordionItem&&t instanceof Smart.AccordionItem||n.error(n.localize("accordionItemRequired",{method:"insertBefore"})),null!=t?(n.contains(t)||n.error(n.localize("referenceNodeNotChild",{argument:"referenceNode"})),n.insert(n._items.indexOf(t),e)):n.insert(n._items.indexOf(t),e)}},{key:"removeAt",value:function(e){var t,n=this;if(e instanceof HTMLElement)e instanceof Smart.AccordionItem?n.contains(e)||n.error(n.localize("referenceNodeNotChild",{argument:"node"})):n.error(n.localize("accordionItemRequired",{method:"remove"})),e=(t=e).index;else{if(e=n._validateItemsIndex(e,"remove"),isNaN(e))return;t=n._items[e]}t&&(t.parentNode.removeChild(t),n._storeItems(),n._expandModeIs(["singleFitHeight"])&&(n._preventAnimation=!0),n._expandModeIs(["single","singleFitHeight"])&&e===n.expandedIndexes[0]&&n._items.length>0&&(n._expandItem(0),n._selectedItem=n._items[0],n._selectedItemIndex=0,n._itemIsFocussed=!0),n.expandedIndexes=n._getExpandedIndexes(),n._updateExpanedContentHeight(),n._updateInlineHeight(),n._storeItemsCoordinates(),n._updateItemsIndexProperty())}},{key:"removeChild",value:function(e){var t=this;if(!t.isCompleted){var i=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.removeChild.apply(t,i.concat(Array.prototype.slice.call(arguments)))}e instanceof HTMLElement||t.error(t.localize("accordionItemRequired",{method:"removeChild"})),"smart-resize-trigger-container"!==e.className?(e instanceof Smart.AccordionItem||t.error(t.localize("accordionItemRequired",{method:"removeChild"})),t.contains(e)||t.error(t.localize("referenceNodeNotChild",{argument:"node"})),t.removeAt(e)):_get(_getPrototypeOf(n.prototype),"removeChild",this).call(this,e)}},{key:"_setFocusable",value:function(){var e=this;if(e.disabled||e.unfocusable){e.removeAttribute("tabindex");for(var t=0;t<e._items.length;t++)e._items[t].removeAttribute("tabindex")}else{e.tabIndex=e._tabIndex;for(var n=0;n<e._items.length;n++)e._items[n].tabIndex=e._tabIndex}}},{key:"update",value:function(e,t){var n=this;if(e=n._validateItemsIndex(e,"update"),!isNaN(e)){var i=n._items[e];if(t||n.error(n.localize("invalidSettings",{elementType:n.nodeName.toLowerCase(),method:"update"})),i)if(Array.isArray(t)&&(t=0===t.length?{label:"",content:""}:t[0]),"string"==typeof t)i.content=t;else for(var r in t)i[r]=t[r];var a=n._getItemsHeights(e);n._updateExpanedContentLocalHeight(n._items[e],a),n._updateInlineHeight(),n._storeItemsCoordinates()}}},{key:"_adjustHeightValue",value:function(e){for(var t,n,i=this,r=i._items.length,a=0;a<r&&(i._items[a].expanded?t=i._items[a]:n=i._items[a],!t||!n);a++);if(t||(t=i._items[0]),t||n){var o=t.expanded;t.expanded=!0;var s=window.getComputedStyle(t,null),l=!!n&&window.getComputedStyle(n,null),
1c=parseInt(s.getPropertyValue("margin-top"))+parseInt(s.getPropertyValue("margin-bottom")),u=l?parseInt(l.getPropertyValue("margin-top"))+parseInt(l.getPropertyValue("margin-bottom")):0;return t.expanded=o,e-((r-1)*u+c)}}},{key:"_collapseItem",value:function(e,t){var n=this,i=n._items[e];if(i.expanded&&("none"!==n.expandMode||!t)){if(i.expanded=!1,n.$.fireEvent("collapsing",{index:e,label:i.label,content:i.content.innerHTML}),n.expandedIndexes.indexOf(e)>-1){var r=n.expandedIndexes.indexOf(e),a=n.expandedIndexes.slice();a.splice(r,1),n.expandedIndexes=a}i.$.accordionItemContent.style.height="",n._handleAnimationsDuration(i,e,"collapse")}}},{key:"_compareExpandedIndexes",value:function(e,t){for(var n=[],i=[],r=[],a=e.length,o=t.length,s=0;s<a;s++)-1===t.indexOf(e[s])?-1===n.indexOf(e[s])&&n.push(e[s]):-1===i.indexOf(e[s])&&i.push(e[s]);for(var l=0;l<o;l++)-1===i.indexOf(t[l])&&r.push(t[l]);return{collapse:n,expand:r}}},{key:"_processDataSource",value:function(){var e=this.dataSource;if(null!==e&&e){for(var t,n="",i=0;i<e.length;i++)n+='<smart-accordion-item label="'.concat((t=e[i]).label,'">').concat(t.content,"</smart-accordion-item>");this.$.container.innerHTML=n}}},{key:"_createElement",value:function(){var e=this;null!==e.dataSource&&e._processDataSource(),e._reorderItemsByIndex(),e._usedCSSVariables=Boolean(window.getComputedStyle(e.$.container).getPropertyValue("--smart-accordion-animation-duration")),e._supportCSSVariables=Smart.Utilities.Core.CSSVariablesSupport(),e._storeItems(),e._enableDisableHandler(),e._expandedIndexesHandler(),e._updateExpanedContentHeight(),e._tabIndex=e.tabIndex<=0?0:e.tabIndex,e._setFocusable(),e._updateItemsIndexProperty(),e._updateInlineHeight();for(var t=0;t<e._items.length;t++)e._items[t].setAttribute("part","smart-accordion-item"),e._items[t].$.arrow.classList.add("smart-animate-trigger")}},{key:"_createItem",value:function(e){var t=this,n=document.createElement("smart-accordion-item");if(e)return n.disabled=t.disabled,t._tabIndex>-1&&(n.tabIndex=t._tabIndex),"string"==typeof e||"number"==typeof e?(n.label=e+"",n.content=e+"",n):(n.label=e.label||"",n.content=e.content||"",n)}},{key:"_downHandler",value:function(e){var t=this;if(!(t.disabled||t.readonly||"none"===t.expandMode||t._toggled)){var n=t.enableShadowDOM&&t.shadowRoot?t.shadowRoot.elementFromPoint(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset):e.originalEvent.target,i=n.closest(".smart-accordion-item-header"),r=n.closest("smart-accordion-item");i?(t._pointerPosition=e.pageY-window.pageYOffset,t._selectedItem=r,t._itemIsPressed=t._itemIsFocussed=!0,t._reorderedIndex=t._selectedItemIndex=t._items.indexOf(r),t._storeItemsCoordinates()):r&&(r.focused=!0)}}},{key:"_enableDisableHandler",value:function(){var e=this;if(e.disabled)for(var t=0;t<e._items.length;t++)e._items[t].disabled=!0;else for(var n=0;n<e._items.length;n++)e._items[n].disabled=!1}},{key:"_expandedIndexesHandler",value:function(){var e=this,t=e._getExpandedIndexes("initial"),n=t.length,i=e.expandedIndexes.length;if(0!==e._items.length){if(0===i&&n>0&&(e.expandedIndexes=t,i=n),e._expandModeIs(["multiple","none"])||1===i)return e._toggleItems("expand",e.expandedIndexes),void(e._animationAfterInitialization=!0);switch(e.expandMode){case"single":case"singleFitHeight":0===i?e._toggleItems("expand",[0]):i>1&&(e._toggleItems("collapse",e.expandedIndexes.splice(0,1)),e._toggleItems("expand",e.expandedIndexes));break;case"toggle":i>1&&(e._toggleItems("collapse",e.expandedIndexes.splice(0,1)),e._toggleItems("expand",e.expandedIndexes))}e._animationAfterInitialization=!0}else e._animationAfterInitialization=!0}},{key:"_expandItem",value:function(e,t){var n=this,i=n._items[e];if(!(i.expanded||"none"===n.expandMode&&t)){if(i.$.container.style.getPropertyValue("--smart-accordion-expanded-content-local-height")||(i.expanded=!0,i.$.container.style.setProperty("--smart-accordion-expanded-content-local-height",i.$.accordionItemContent.scrollHeight+"px"),i.expanded=!1),i.expanded=!0,n.$.fireEvent("expanding",{index:e,label:i.label,content:i.content.innerHTML}),-1===n.expandedIndexes.indexOf(e)){var r=n.expandedIndexes.slice();r.push(e),n.expandedIndexes=r}n._supportCSSVariables&&n._usedCSSVariables||"singleFitHeight"!==n.expandMode||(i.$.accordionItemContent.style.height=n._expandedItemsContainerHeight-1+"px"),n._handleAnimationsDuration(i,e,"expand")}}},{key:"_expandModeIs",value:function(e){return e.indexOf(this.expandMode)>-1}},{key:"_focusHandler",value:function(){var e=this;e.disabled||0===e._items.length||(e._itemIsFocussed?e._selectedItem.focused=!1:e._items[0].focused=!1)}},{key:"_getExpandedIndexes",value:function(e){for(var t=this,n=[],i=0;i<t._items.length;i++)"initial"===e?t._items[i].hasAttribute("expanded")&&(n.push(i),t._items[i].removeAttribute("expanded")):t._items[i].expanded&&n.push(i);return n.slice()}},{key:"_getItemsHeights",value:function(e){var t=this._items,n=t.length,i=[];if(0!==n){if(!isNaN(e)&&e>=0&&e<n){var r=t[e],a=0;return r.expanded?a=r.$.accordionItemContent.scrollHeight:(r.expanded=!0,a=r.$.accordionItemContent.scrollHeight,r.expanded=!1),a+"px"}for(var o=0;o<n;o++){var s=t[o],l=0;s.expanded?l=s.$.accordionItemContent.scrollHeight:(s.expanded=!0,l=s.$.accordionItemContent.scrollHeight,s.expanded=!1),i.push(l+"px")}return this._heightCalcAfterInitialization=!0,i}}},{key:"_handleAnimationsDuration",value:function(e,t,n){var i=this;if(i._animationAfterInitialization)if(1!==i._items.length||"singleFitHeight"!==i.expandMode)if(!1!==i.hasAnimation&&i._supportCSSVariables){if(i._preventAnimation)return i.$.fireEvent(n,{index:t,label:e.label,content:e.content.innerHTML}),void(i._preventAnimation=!1);i._toggled=!0;var r,a=window.getComputedStyle(i).animationDuration;if(a.indexOf("ms")>-1)a=parseFloat(a.substring(0,a.length-2)),r=isNaN(a)||a<0?0:a-50;else{if(!(a.indexOf("s")>-1))return void i.$.fireEvent(n,{index:t,label:e.label,content:e.content.innerHTML});a=parseFloat(a.substring(0,a.length-1)),r=isNaN(a)||a<0?0:1e3*a-50}e&&(e.$.addClass("smart-toggled-item"),i.$container.addClass("smart-toggling"),setTimeout(function(){e.$.removeClass("smart-toggled-item"),i.$container.removeClass("smart-toggling"),i.$.fireEvent(n,{index:t,label:e.label,content:e.content.innerHTML}),i._toggled=!1},r))}else i.$.fireEvent(n,{index:t,label:e.label,content:e.content.innerHTML});else i.$.fireEvent(n,{index:t,label:e.label,content:e.content.innerHTML})}},{key:"_indexChangeHandler",value:function(e){var t=this,n=t._items,i=e.detail;i.newIndex>=n.length?t.$.container.appendChild(n[i.oldIndex]):t.$.container.insertBefore(n[i.oldIndex],i.newIndex>i.oldIndex?n[i.newIndex+1]:n[i.newIndex]);var r=t.enableShadowDOM&&t.shadowRoot?t.shadowRoot.querySelectorAll("smart-accordion-item"):t.getElementsByTagName("smart-accordion-item");t._items=Array.from(r),t._updateItemsIndexProperty()}},{key:"_keyDownHandler",value:function(e){var t=this,n=e.key;if(!("none"===t.expandMode||t.disabled||t.readonly||t._toggled)){var i=(t.shadowRoot?t.shadowRoot.activeElement:document.activeElement)||document.activeElement;if(-1!==["ArrowLeft","ArrowDown","ArrowRight","ArrowUp","End","Home"," ","Enter","Tab"].indexOf(n)&&i instanceof Smart.AccordionItem){"Tab"!==n&&e.preventDefault();for(var r,a,o=t._items.length,s=o-1,l=0;l<o;l++){var c=t._items[l];c.focused&&(r=c,a=l)}switch(void 0===a&&t._items[0]&&(a=0,t._items[0].focused=!0),n){case"Tab":d(e.shiftKey?"up":"down");break;case"ArrowLeft":t.collapse(a);break;case"ArrowDown":d("down");break;case"ArrowRight":t.expand(a);break;case"ArrowUp":d("up");break;case"End":u(s);break;case"Home":u(0);break;case" ":case"Enter":if(r&&r.expanded)return void t.collapse(a);t.expand(a);break;default:return}}}function u(e){e===a||isNaN(e)||(r&&(r.focused=!1),a=e,(r=t._items[a])&&(r.focused=!0))}function d(e){u("up"!==e?a+1>s?s:a+1:a-1<0?0:a-1)}}},{key:"_containerMoveHandler",value:function(e){"touchmove"===e.originalEvent.type&&e.originalEvent.preventDefault()}},{key:"_moveHandler",value:function(e){var t=this;if(e.stopPropagation(),!(!t._itemIsPressed||!t.reorder||t.readonly||t._items.length<2||!t.$container.hasClass("smart-reordering")&&Math.abs(e.pageY-t._pointerPosition)<5))if(t._dragStart){if(t.$container.hasClass("smart-reordering")||t.$container.addClass("smart-reordering"),!t._dragging){var n=t._selectedItem;t.$.fireEvent("dragStart",{position:{left:e.pageX,top:e.pageY},target:e.originalEvent.target,index:t._selectedItemIndex,label:n.label,content:n.content.innerHTML}),t._selectedItem.dragged=t._dragging=!0}if(t.hasAnimation){var i=t._selectedItem.querySelector(".smart-ripple");
1i&&(i.style.height=0)}for(var r=e.clientY,a=!1,o=0;o<t._itemsCoordinates.length;o++){var s=t._itemsCoordinates[o];if(r>=s.fromY&&r<=s.toY){a=o;break}}var l=t._items[a];if(!1!==a&&l!==t._selectedItem){if(t._lastReorderedItem&&l===t._lastReorderedItem)return;return t._lastReorderedItem=l,Math.abs(t._reorderedIndex-a)>1&&t._swapItems(t._reorderedIndex,a+(t._reorderedIndex-a<0?-1:1)),t._swapItems(t._reorderedIndex,a),t._reorderedIndex=a,void t._storeItemsCoordinates()}t._lastReorderedItem=void 0}else t._dragStart=!0}},{key:"_reorderItemsByIndex",value:function(){var e=this,t=e.enableShadowDOM&&e.shadowRoot?e.shadowRoot.querySelectorAll("smart-accordion-item"):e.$.container.children,n=Array.from(t),i=!1,r=n.map(function(e){return null!==e.index?i=!0:e.index=0,e.index});if(i){var a=n.length;if(!(a<2)){var o=r.slice();if(o.sort(function(e,t){return parseInt(e)-parseInt(t)}),r.toString()!==o.toString())for(var s=0;s<a;s++){for(var l=void 0,c=0;c<a;c++)t[c].index===o[s]&&(l=t[c]);e.$.container.insertBefore(l,t[s])}}}}},{key:"_resizeHandler",value:function(){this.refresh()}},{key:"refresh",value:function(){var e=this;e._updateExpanedContentHeight(),e._updateInlineHeight(),e._storeItemsCoordinates()}},{key:"_storeItems",value:function(){var e=this,t=e.enableShadowDOM&&e.shadowRoot?e.shadowRoot.querySelectorAll("smart-accordion-item"):e.getElementsByTagName("smart-accordion-item");if(e._items=Array.from(t),0!==e._items.length){e.$container.removeClass("smart-empty");for(var n=e._getItemsHeights(),i=0;i<e._items.length;i++)e._updateExpanedContentLocalHeight(e._items[i],n[i])}else e.$container.addClass("smart-empty")}},{key:"_storeItemsCoordinates",value:function(){var e=this;if(!e.disabled&&e.reorder){for(var t=[],n=0;n<e._items.length;n++){var i=e._items[n].getBoundingClientRect();t.push({fromY:i.top+(window.scrollY||window.pageYOffset),toY:i.bottom+(window.scrollY||window.pageYOffset)})}e._itemsCoordinates=t}}},{key:"_swapItems",value:function(e,t){var n=this,i=Math.min(e,t),r=Math.max(e,t),a=n._items,o=n.expandedIndexes.slice();if(n._items[e].expanded&&!n._items[t].expanded){var s=o.indexOf(e);o[s]=t,n.expandedIndexes=o.slice()}else if(n._items[t].expanded&&!n._items[e].expanded){var l=o.indexOf(t);o[l]=e,n.expandedIndexes=o.slice()}n.selectedIndex=n.selectedIndex===e?t:e,n.$.container.insertBefore(a[r],a[i]),function(e,t,n){var i=e[n];e[n]=e[t],e[t]=i}(a,e,t),n._items[e].$.removeClass("hovered"),n._reorderedIndex=t}},{key:"_toggleItems",value:function(e,t){var n=t.length;if(n>0)for(var i=0;i<n;i++)this["_"+e+"Item"](t[i])}},{key:"_updateExpanedContentHeight",value:function(){var e=this;e.$.container.style.setProperty("--smart-accordion-item-header-height","");var t=e._items.length,n=e.$.container.offsetHeight,i=e._items[e.expandedIndexes[0]],r=0,a=0,o=0,s=0;if(1===t){var l=e._items[0],c=l.expanded;l.expanded=!1,r=l.offsetHeight,a=l.$.accordionItemHeader.offsetHeight,l.expanded=c}else for(;0===r&&s<t;){var u=e._items[s];u instanceof Smart.AccordionItem&&!u.expanded&&(r=u.offsetHeight),a=u.$.accordionItemHeader.offsetHeight,s++}t>1&&i instanceof Smart.AccordionItem&&(o=i.$.accordionItemHeader.offsetHeight-a);var d=getComputedStyle(e.$.root),h=n-r*t-o-parseFloat(d.paddingBottom)-parseFloat(d.paddingTop);"singleFitHeight"===e.expandMode&&(h=e._adjustHeightValue(h)),h=h>=0?h:0,e.$.container.style.setProperty("--smart-accordion-expanded-content-height",h+"px"),e.$.container.style.setProperty("--smart-accordion-item-header-height",a+"px"),e._expandedItemsContainerHeight=h}},{key:"_updateExpanedContentLocalHeight",value:function(e,t){this._supportCSSVariables&&this._usedCSSVariables&&e.$.container.style.setProperty("--smart-accordion-expanded-content-local-height",t)}},{key:"_updateInlineHeight",value:function(){var e=this;e._supportCSSVariables&&e._usedCSSVariables||"singleFitHeight"!==e.expandMode||0===e._items.length||(e._items[e.expandedIndexes[0]].$.accordionItemContent.style.height=e._expandedItemsContainerHeight-1+"px")}},{key:"_updateItemsIndexProperty",value:function(){for(var e=this,t=[],n=0;n<e._items.length;n++)e._items[n]._setIndex(n),e._items[n].expanded&&t.push(n);e.expandedIndexes=t.slice()}},{key:"_upHandler",value:function(e){var t=this;if(t._itemIsPressed&&!t.disabled&&!t.readonly){for(var n=0;n<t._items.length;n++)n!==t._selectedItemIndex&&(t._items[n].focused=!1);if(t._selectedItem.focused=!0,t._dragging){var i=t._selectedItem;t.$container.removeClass("smart-reordering"),t.$.fireEvent("dragEnd",{position:{left:e.pageX,top:e.pageY},target:e.originalEvent.target,index:t._selectedItemIndex,label:i.label,content:i.content.innerHTML})}else t._selectedItem.expanded?t.collapse(t._selectedItemIndex,!0):t.expand(t._selectedItemIndex,!0);t._reorderedIndex=void 0,t._dragStart=!1,t._dragging=!1,t._itemIsPressed=!1,t._selectedItem.dragged=!1,t._updateItemsIndexProperty()}}},{key:"_validateItemsIndex",value:function(e,t){var n=this;if(!(isNaN(parseInt(e))||e<0||e>n._items.length-1))return parseInt(e);n.log(n.localize("indexOutOfBound",{elementType:n.nodeName.toLowerCase(),method:t}))}}],[{key:"properties",get:function(){return{dataSource:{value:null,type:"array?",reflectToAttribute:!1},expandedIndexes:{value:[],type:"array"},expandMode:{allowedValues:["single","singleFitHeight","multiple","toggle","none"],value:"singleFitHeight",type:"string"},messages:{extend:!0,value:{en:{accordionItemRequired:'{{elementType}}: "{{method}}" requires an item from type "smart-accordion-item".',indexOutOfBound:'{{elementType}}: Out of bound index/indexes in "{{method}}" method.',invalidSettings:'{{elementType}}: "{{method}}" method accepts a string or an object as it\'s second parameter.',missingReference:"{{elementType}}: Missing reference to {{files}}.",noItems:"{{elementType}}: No child elements found.",overridingProperties:'{{elementType}}: Overriding properties {{property1}} and {{property2}} applied. The "{{property1}}" property is used by default.'}},type:"object"},reorder:{value:!1,type:"boolean"}}}},{key:"listeners",get:function(){return{down:"_downHandler",focu
1s:"_focusHandler",indexChange:"_indexChangeHandler",keydown:"_keyDownHandler",move:"_moveHandler",resize:"_resizeHandler",styleChanged:"_resizeHandler","document.up":"_upHandler","container.move":"_containerMoveHandler"}}},{key:"styleUrls",get:function(){return["smart.accordion.css"]}}]),n}())},2612:function(){Smart("smart-button",function(e){_inherits(n,Smart.ContentElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return"<button class=\"smart-button smart-unselectable\" inner-h-t-m-l='[[innerHTML]]' id='button' type='[[type]]' name='[[name]]' value='[[value]]' disabled='[[disabled]]' role=\"presentation\"></button>"}},{key:"refresh",value:function(){}},{key:"focus",value:function(){var e=this;e.$.button?e.$.button.focus():HTMLElement.prototype.focus.call(e)}},{key:"blur",value:function(){var e=this;e.$.button?e.$.button.blur():HTMLElement.prototype.blur.call(e)}},{key:"_upHandler",value:function(e){var t=this;if(e.stopPropagation(),t.$.setAttributeValue("active",!1),t.dataset.target){var n=document.querySelector(t.dataset.target),i=t.dataset.toggle,r="smart-window".toLowerCase();if(n&&n.nodeName.toLowerCase()===r&&"modal"===i&&(i="openModal"),"tab"===i||"pill"===i||"list"===i){var a=this.closest(".nav, .list-group"),o=!a||"UL"!==a.nodeName&&"OL"!==a.nodeName?a.children(".active"):a.querySelectorAll("li > .active");if(a){for(var s=a.querySelectorAll('[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]'),l=0;l<s.length;l++)s[l].classList.remove("primary");for(var c=0;c<o.length;c++)o[c].classList.remove("active");for(var u=t.parentNode;u;){if("LI"===u.nodeName){u.classList.add("active");break}u=u.parentNode}t.classList.add("primary")}return n.parentNode.querySelectorAll(".active").forEach(function(e){e.classList.remove("active"),e.classList.add("smart-hidden")}),n.classList.add("active"),void n.classList.remove("smart-hidden")}i&&n&&!n[i]&&"collapse"===i&&(setTimeout(function(){n.classList.contains("smart-hidden")?n.classList.remove("smart-hidden"):n.classList.add("smart-hidden")}),e.originalEvent.preventDefault()),i&&n&&!n[i]&&"dropdown"===i?(setTimeout(function(){n.opened=!n.opened}),e.originalEvent.preventDefault()):i&&n&&n[i]&&(setTimeout(function(){n[i]()},50),e.originalEvent.preventDefault())}}},{key:"_focusHandler",value:function(){this.$.setAttributeValue("focus",!0),this.$.fireEvent("focus")}},{key:"_blurHandler",value:function(){this.$.setAttributeValue("focus",!1),this.$.fireEvent("blur")}},{key:"_clickHandler",value:function(e){var t=this;("release"!==t.clickMode&&"pressAndRelease"!==t.clickMode||t.readonly)&&(e.preventDefault(),e.stopPropagation())}},{key:"_downHandler",value:function(e){var t=this;if(!(t.disabled||(t.hasRippleAnimation&&Smart.Utilities.Animation.Ripple.animate(t,e.pageX,e.pageY),t.$.setAttributeValue("active",!0),"press"!==t.clickMode&&"pressAndRelease"!==t.clickMode||t.readonly))){if(t.hasAttribute("smart-blazor"))return void t.$.dispatchEvent(new Event("click"));t.$.fireEvent("click",{buttons:"buttons"in e?e.buttons:e.which,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY})}}},{key:"_mouseEnterHandler",value:function(e){var t=this;if(!t.readonly&&(t.$button.setAttributeValue("hover",!0),t.$.setAttributeValue("hover",!0),"hover"===t.clickMode)){var n="buttons"in e?e.buttons:e.which;if(t.hasAttribute("smart-blazor"))return void t.$.dispatchEvent(new Event("click"));t.$.fireEvent("click",{buttons:n,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY})}}},{key:"_touchEndHandler",value:function(){var e=this;setTimeout(function(){e.$button.setAttributeValue("hover",!1),e.$.setAttributeValue("hover",!1)},300)}},{key:"_mouseLeaveHandler",value:function(){this.$button.setAttributeValue("hover",!1),this.$.setAttributeValue("hover",!1)}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;"disabled"===e?(r._setFocusable(),r.$button&&r.$button.setAttributeValue("hover",!1),r.$.setAttributeValue("hover",!1),r instanceof Smart.RepeatButton&&r._stopRepeat()):"unfocusable"===e&&r._setFocusable()}},{key:"_setFocusable",value:function(){var e=this,t=e.$.button?e.$.button:e;if(e.disabled||e.unfocusable)return t.removeAttribute("tabindex"),void(t.tabIndex=-1);t.tabIndex=e.tabIndex>0?e.tabIndex:0}},{key:"ready",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ready",this).call(this),e.setAttribute("role","button"),e._setFocusable(),e.enableShadowDOM&&e.$.hiddenInput&&e.appendChild(e.$.hiddenInput)}}],[{key:"properties",get:function(){return{value:{type:"string"},name:{type:"string"},type:{value:"button",type:"string"},clickMode:{allowedValues:["hover","press","release","pressAndRelease"],type:"string",value:"release"}}}},{key:"styleUrls",get:function(){return["smart.button.css"]}},{key:"listeners",get:function(){return{"button.down":"_downHandler","button.mouseenter":"_mouseEnterHandler","button.mouseleave":"_mouseLeaveHandler","button.touchend":"_touchEndHandler","button.click":"_clickHandler","button.up":"_upHandler",up:"_upHandler","button.focus":"_focusHandler","button.blur":"_blurHandler"}}}]),n}()),Smart("smart-repeat-button",function(e){_inherits(n,Smart.Button);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_clickHandler",value:function(e){var t=this;("release"!==t.clickMode||t.preventDefaultClick||t.readonly||t.disabled)&&(e.preventDefault(),e.stopPropagation(),t.preventDefaultClick=!1)}},{key:"_updateInBoundsFlag",value:function(e){var t=this;-1!==e.type.indexOf("leave")?(t._isPointerInBounds=!1,t.$button.setAttributeValue("hover",!1),t.$.setAttributeValue("hover",!1)):(t._isPointerInBounds=!0,t.$button.setAttributeValue("hover",!0),t.$.setAttributeValue("hover",!0)),1!==("buttons"in e?e.buttons:e.which)&&t._stopRepeat(e)}},{key:"_startRepeat",value:function(e){var t=this;
1t.setAttribute("active",""),t._initialTimer||t.readonly||(t._initialTimer=setTimeout(function(){t._repeatTimer=setInterval(function(){if(t._isPointerInBounds){if(t.hasAttribute("smart-blazor"))return t.$.dispatchEvent(new Event("click")),void(t.preventDefaultClick=!0);t.$.fireEvent("click",{buttons:"buttons"in e?e.buttons:e.which,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY}),t.preventDefaultClick=!0}},t.delay)},t.initialDelay))}},{key:"_stopRepeat",value:function(e){var t=this;t.readonly||e&&("pointercancel"===e.type||e.originalEvent&&"pointercancel"===e.originalEvent.type)||(t.$.setAttributeValue("active",!1),t._repeatTimer&&(clearInterval(t._repeatTimer),t._repeatTimer=null),t._initialTimer&&(clearTimeout(t._initialTimer),t._initialTimer=null))}},{key:"_touchmoveHandler",value:function(e){this.preventDefaultClick&&e.cancelable&&(e.preventDefault(),e.stopPropagation())}},{key:"_overriddenHandler",value:function(){}}],[{key:"properties",get:function(){return{delay:{value:50,type:"number"},initialDelay:{value:150,type:"number"}}}},{key:"listeners",get:function(){return{"button.down":"_startRepeat","button.mouseenter":"_overriddenHandler","button.mouseleave":"_overriddenHandler","button.pointerenter":"_updateInBoundsFlag","button.pointerleave":"_updateInBoundsFlag","button.touchmove":"_touchmoveHandler","document.up":"_stopRepeat"}}}]),n}()),Smart("smart-toggle-button",function(e){_inherits(n,Smart.Button);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this),this._setAriaState()}},{key:"_setAriaState",value:function(){var e=this.checked;this.setAttribute("aria-pressed",null!==e?e:"mixed")}},{key:"_buttonClickHandler",value:function(){}},{key:"_buttonMouseLeaveHandler",value:function(){this.removeAttribute("hover")}},{key:"_buttonMouseEnterHandler",value:function(){var e=this;e.setAttribute("hover",""),e.disabled||e.readonly||"hover"!==e.clickMode||(e._changeCheckState("pointer"),e.focus(),e._updateHidenInputNameAndValue())}},{key:"_documentUpHandler",value:function(e){var t=this;t._pressed&&(t._pressed=!1,t.disabled||t.readonly||"press"===t.clickMode||"pointercancel"===e.originalEvent.type||(t._changeCheckState("pointer"),t.focus(),t._updateHidenInputNameAndValue()))}},{key:"_downHandler",value:function(e){var t=this;t.disabled||t.readonly||(t.hasRippleAnimation&&Smart.Utilities.Animation.Ripple.animate(t,e.pageX,e.pageY),t._pressed=!0,"press"!==t.clickMode&&"pressAndRelease"!==t.clickMode||(t._changeCheckState("pointer"),t.hasAttribute("smart-blazor")?t.$.dispatchEvent(new Event("click")):t.$.fireEvent("click"),t._updateHidenInputNameAndValue()),"press"===t.clickMode&&(e.preventDefault(),e.stopPropagation()))}},{key:"_dragStartHandler",value:function(e){e.preventDefault()}},{key:"_keyHandler",value:function(e){var t=this;if(!0!==t.disabled&&!t.readonly&&32===e.keyCode){if("keydown"===e.type)return void e.preventDefault();if("none"===t.switchMode)return;t._changeCheckState("keyboard"),t._updateHidenInputNameAndValue()}}},{key:"_changeCheckState",value:function(e){var t=this,n=null;null===t.checked?t.checked=!0:(n=t.checked,t.checked=!t.checked),t._handleTextSelection(),t.$.fireEvent("change",{value:t.checked,oldValue:n,changeType:e}),t.$.fireEvent(t.checked?"checkValue":"uncheckValue",{changeType:e}),t._setAriaState()}},{key:"_handleTextSelection",value:function(){var e=this;e.$.addClass("smart-unselectable"),e.timer&&clearTimeout(e.timer),e.timer=setTimeout(function(){return e.$.removeClass("smart-unselectable")},500)}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;if("checked"===e)return r.$.fireEvent("change",{value:i,oldValue:t,changeType:"api"}),void r._setAriaState();switch(e){case"trueTemplate":r._handleTemplate(!0);break;case"falseTemplate":r._handleTemplate(!1);break;case"indeterminateTemplate":r._handleTemplate()}}},{key:"_htmlBindOnInitialization",value:function(){var e=this;e._bindContentProperty("trueContent","smart-true-content"),e._bindContentProperty("falseContent","smart-false-content"),e._bindContentProperty("indeterminateContent","smart-indeterminate-content")}},{key:"_bindContentProperty",value:function(e,t){var n=this;if(n.$[e+"Container"]){var i=document.createElement("div");i.innerHTML=n.innerHTML;var r,a=i.getElementsByClassName(t);if(a.length>0)for(var o=0;o<a.length;o++)r=a[o];""===n[e]&&(n[e]=void 0===r?"":r.outerHTML),n.$[e+"Container"].innerHTML=n[e]}}},{key:"_updateContentProperties",value:function(){var e=this;function t(t){e.$[t+"Container"]&&(e[t]=e.$[t+"Container"].innerHTML)}t("trueContent"),t("falseContent"),t("indeterminateContent")}},{key:"_updateHidenInputValue",value:function(){var e,t=this;t.$.hiddenInput&&(e=null===t.checked?"null":!1===t.checked?"off":t.value||"on",t.$.hiddenInput.setAttribute("value",e))}},{key:"_updateHidenInputName",value:function(){var e=this;e.$.hiddenInput&&e.$.hiddenInput.setAttribute("name",!1===e.checked?"":e.name||"")}},{key:"_updateHidenInputNameAndValue",value:function(){this._updateHidenInputName(),this._updateHidenInputValue()}},{key:"_handleTemplate",value:function(e,t){var n,i,r,a=this;if(!0===e?(n=a.trueTemplate,i=a.$.trueContentContainer,r=a.trueContent):!1===e?(n=a.falseTemplate,i=a.$.falseContentContainer,r=a.falseContent):(n=a.indeterminateTemplate,i=a.$.indeterminateContentContainer,r=a.indeterminateContent),t&&(i.innerHTML=r||""),null!==n&&n)if("function"!=typeof n)if("content"in document.createElement("template"))if(null!==(n=document.getElementById(n))&&"content"in n){for(var o,s=n.content,l=s.childNodes.length,c=/{{\w+}}/g,u=[],d=0;d<l;d++)for(o=c.exec(s.childNodes[d].innerHTML);o;)u.push({childNodeIndex:d,bindingString:o[0]}),o=c.exec(s.childNodes[d].innerHTML);for(var h,f,p=u.length,m=document.importNode(n.content,!0),g=0;g<p;g++){h=m.childNodes[u[g].childNodeIndex],f=u.length;for(var v=0;v<f;v++)h.innerHTML=h.innerHTML.replace(u[g].bindingString,r)}i.innerHTML="";for(var y=0;y<m.childNodes.length;y++)m.childNodes[y].outerHTML&&(i.innerHTML+=m.childNodes[y].outerHTML)}else a.error(a.localize("invalidTemplate",{elementType:a.nodeName.toLowerCase(),property:"template"}));else a.error(a.localize("htmlTemplateNotSuported",{elementType:a.nodeName.toLowerCase()}));else n(i,{value:r})}}],[{key:"properties",get:function(){return{checked:{value:!1,type:"boolean?"},falseContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminateContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminate:{value:!1,type:"boolean"},trueContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminateTemplate:{value:null,type:"any"},trueTemplate:{value:null,type:"any"},falseTemplate:{value:null,type:"any"},type:{value:"toggle",type:"string",defaultReflectToAttribute:!0,readonly:!0}}}},{key:"listeners",get:function(){return{keydown:"_keyHandler",keyup:"_keyHandler",dragstart:"_dragStartHandler","button.click":"_buttonClickHandler","button.mouseenter":"_buttonMouseEnterHandler","button.mouseleave":"_buttonMouseLeaveHandler","document.up":"_documentUpHandler"}}}]),n}())},6321:function(){!function(){var e="11.0.0",t=[],n="Smart";if(window[n]&&window[n].Version){if(window[n].Version===e)return;if(window[n].Version!==e)n+=e;else for(var i=2;window[n];)n+=i.toString(),i++}var r=navigator.userAgent.indexOf("Edge")>-1&&navigator.appVersion.indexOf("Edge")>-1;document.elementsFromPoint||(document.elementsFromPoint=document.msElementsFromPoint);var a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isBoolean",value:function(e){return"boolean"==typeof e}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isArray",value:function(e){return Array.isArray(e)}},{key:"isObject",value:function(e){return e&&("object"==typeof e||this.isFunction(e))||!1}},{key:"isDate",value:function(e){return e instanceof Date}},{key:"isString",value:function(e){return"string"==typeof e}},{key:"isNumber",value:function(e){return"number"==typeof e}},{key:"getType",value:function(e){var t=this,n=["Boolean","Number","String","Function","Array","Date","Object"].find(function(n){if(t["is"+n](e))return n});return n?n.toLowerCase():void 0}}]),e}(),o=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"animate",value:function(e,t,i,r){var a=e;if(a&&a instanceof HTMLElement!=0){if(0===a.getElementsByClassName("smart-ripple").length){var o=document.createElement("span");o.classList.add("smart-ripple"),o.setAttribute("role","presentation");var s=!0,l=null;if(window[n].EnableShadowDOM&&a.enableShadowDOM&&!0!==a.isInShadowDOM){for(var c=0;c<a.shadowRoot.host.shadowRoot.children.length;c++)"link"!==a.shadowRoot.host.shadowRoot.children[c].tagName.toLowerCase()&&(l=a.shadowRoot.host.shadowRoot.children[c]);a.shadowRoot.host.shadowRoot.querySelector(".smart-ripple")&&(s=!1)}else l=a.firstElementChild;s&&(l&&!l.noRipple&&l.offsetHeight>0?l.appendChild(o):a.appendChild(o))}var u=null;if(u=window[n].EnableShadowDOM&&a.shadowRoot?a.shadowRoot.host.shadowRoot.querySelector(".smart-ripple"):a.getElementsByClassName("smart-ripple")[0]){u.innerHTML="",u.classList.remove("smart-animate"),u.style.height=u.style.width=Math.max(a.offsetHeight,a.offsetWidth)+"px";var d=window.getComputedStyle(u.parentElement),h=parseInt(d.borderLeftWidth)||0,f=parseInt(d.borderTopWidth)||0,p=a.getBoundingClientRect(),m=t-(p.left+window.pageXOffset)-u.offsetWidth/2-h,g=i-(p.top+window.pageYOffset)-u.offsetHeight/2-f;u.style.left=m+"px",u.style.top=g+"px",u.classList.add("smart-animate"),u.addEventListener("animationend",function e(){u.parentElement&&u.parentElement.removeChild(u),r&&r(),u.removeEventListener("animationend",e),u.removeEventListener("animationcancel",e)}),u.addEventListener("animationcancel",function e(){u.parentElement&&u.parentElement.removeChild(u),r&&r(),u.removeEventListener("animationcancel",e),u.removeEventListener("animationend",e)})}}}}]),e}(),s=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"easeInQuad",value:function(e,t,n,i){return n*(e/=i)*e+t}},{key:"easeOutQuad",value:function(e,t,n,i){return-n*(e/=i)*(e-2)+t}},{key:"easeInOutQuad",value:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}},{key:"easeInCubic",value:function(e,t,n,i){return n*(e/=i)*e*e+t}},{key:"easeOutCubic",value:function(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}},{key:"easeInOutCubic",value:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t}},{key:"easeInQuart",value:function(e,t,n,i){return n*(e/=i)*e*e*e+t}},{key:"easeOutQuart",value:function(e,t,n,i){return-n*((e=e/i-1)*e*e*e-1)+t}},{key:"easeInOutQuart",value:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t}},{key:"easeInQuint",value:function(e,t,n,i){return n*(e/=i)*e*e*e*e+t}},{key:"easeOutQuint",value:function(e,t,n,i){return n*((e=e/i-1)*e*e*e*e+1)+t}},{key:"easeInOutQuint",value:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t}},{key:"easeInSine",value:function(e,t,n,i){return-n*Math.cos(e/i*(Math.PI/2))+n+t}},{key:"easeOutSine",value:function(e,t,n,i){return n*Math.sin(e/i*(Math.PI/2))+t}},{key:"easeInOutSine",value:function(e,t,n,i){return-n/2*(Math.cos(Math.PI*e/i)-1)+t}},{key:"easeInExpo",value:function(e,t,n,i){return 0===e?t:n*Math.pow(2,10*(e/i-1))+t}},{key:"easeOutExpo",value:function(e,t,n,i){return e===i?t+n:n*(1-Math.pow(2,-10*e/i))+t}},{key:"easeInOutExpo",value:function(e,t,n,i){return 0===e?t:e===i?t+n:(e/=i/2)<1?n/2*Math.pow(2,10*(e-1))+t:n/2*(2-Math.pow(2,-10*--e))+t}},{key:"easeInCirc",value:function(e,t,n,i){return-n*(Math.sqrt(1-(e/=i)*e)-1)+t}},{key:"easeOutCirc",value:function(e,t,n,i){return n*Math.sqrt(1-(e=e/i-1)*e)+t}},{key:"easeInOutCirc",value:function(e,t,n,i){return(e/=i/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+t:n/2*(Math.sqrt(1-(e-=2)*e)+1)+t}},{key:"easeInElastic",value:function(e,t,n,i){var r=1.70158,a=0,o=n;return 0===e?t:1==(e/=i)?t+n:(a||(a=.3*i),o<Math.abs(n)?(o=n,r=a/4):r=a/(2*Math.PI)*Math.asin(n/o),-o*Math.pow(2,10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/a)+t)}},{key:"easeOutElastic",value:function(e,t,n,i){var r=1.70158,a=0,o=n;return 0===e?t:1==(e/=i)?t+n:(a||(a=.3*i),o<Math.abs(n)?(o=n,r=a/4):r=a/(2*Math.PI)*Math.asin(n/o),o*Math.pow(2,-10*e)*Math.sin((e*i-r)*(2*Math.PI)/a)+n+t)}},{key:"easeInOutElastic",value:function(e,t,n,i){var r=1.70158,a=0,o=n;return 0===e?t:2==(e/=i/2)?t+n:(a||(a=i*(.3*1.5)),o<Math.abs(n)?(o=n,r=a/4):r=a/(2*Math.PI)*Math.asin(n/o),e<1?o*Math.pow(2,10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/a)*-.5+t:o*Math.pow(2,-10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/a)*.5+n+t)}},{key:"easeInBack",value:function(e,t,n,i,r){return void 0===r&&(r=1.70158),n*(e/=i)*e*((r+1)*e-r)+t}},{key:"easeOutBack",value:function(e,t,n,i,r){return void 0===r&&(r=1.70158),n*((e=e/i-1)*e*((r+1)*e+r)+1)+t}},{key:"easeInOutBack",value:function(e,t,n,i,r){return void 0===r&&(r=1.70158),(e/=i/2)<1?n/2*(e*e*((1+(r*=1.525))*e-r))+t:n/2*((e-=2)*e*((1+(r*=1.525))*e+r)+2)+t}},{key:"easeInBounce",value:function(e,t,n,i){return n-this.easeOutBounce(i-e,0,n,i)+t}},{key:"easeOutBounce",value:function(e,t,n,i){return(e/=i)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t}},{key:"easeInOutBounce",value:function(e,t,n,i){return e<i/2?.5*this.easeInBounce(2*e,0,n,i)+t:.5*this.easeOutBounce(2*e-i,0,n,i)+.5*n+t}}]),e}(),l=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isMobile",get:function(){return/(iphone|ipod|ipad|android|iemobile|blackberry|bada)/.test(window.navigator.userAgent.toLowerCase())||["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}},{key:"Browser",get:function(){var e,t=function(t){var n=t.indexOf(e);if(-1!==n){var i=t.indexOf("rv:");return"Trident"===e&&-1!==i?parseFloat(t.substring(i+3)):parseFloat(t.substring(n+e.length+1))}},n={};return n[function(){for(var t=[{string:navigator.userAgent,subString:"Edge",identity:"Edge"},{string:navigator.userAgent,subString:"MSIE",identity:"IE"},{string:navigator.userAgent,subString:"Trident",identity:"IE"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Opera",identity:"Opera"},{string:navigator.userAgent,subString:"OPR",identity:"Opera"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"Safari",identity:"Safari"}],n=0;n<t.length;n++)if(e=t[n].subString,-1!==t[n].string.indexOf(t[n].subString))return t[n].identity;return"Other"}()]=!0,n.version=t(navigator.userAgent)||t(navigator.appVersion)||"Unknown",n}},{key:"toCamelCase",value:function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}},{key:"toDash",value:function(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}},{key:"unescapeHTML",value:function(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}},{key:"escapeHTML",value:function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}},{key:"sanitizeHTML",value:function(e){var t=this;if(e&&(e.indexOf("onclick")>=0||e.indexOf("onload")>=0||e.indexOf("onerror")>=0))return this.escapeHTML(e);var n=new RegExp("<s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)[^>]*>(.*?)<s*/s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)>","ig");return String(e).replace(n,function(e){return t.escapeHTML(e)})}},{key:"createGUID",value:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},{key:"getScriptLocation",value:function(){return"./"!==window[n].BaseUrl?window[n].BaseUrl:function(){if(document.currentScript){var e=document.currentScript.src,t=e.lastIndexOf("/");return e=e.substring(0,t)}var n=n
1ew Error,i="(",r=")";if(Smart.Utilities.Core.Browser.Safari&&(i="@",r="\n"),n.fileName)return n.fileName.replace("/smart.element.js","");var a=n.stack.split(i);return(a=(a=(a=a[1]).split(r)[0]).split(":")).splice(-2,2),(a=a.join(":")).replace("/smart.element.js","")}()}},{key:"CSSVariablesSupport",value:function(){return window.CSS&&window.CSS.supports&&window.CSS.supports("(--fake-var: 0)")}},{key:"assign",value:function(e,t){var n=this,i=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&null!==e},r=Object.assign({},e);return i(e)&&i(t)&&Object.keys(t).forEach(function(a){i(t[a])&&a in e?r[a]=n.assign(e[a],t[a]):Object.assign(r,_defineProperty({},a,t[a]))}),r}},{key:"html",value:function(e,t){var n="",i=e.childNodes;if(!t){for(var r,a=0,o=i.length;a<o&&(r=i[a]);a++)if(r instanceof HTMLElement||r.tagName&&["strong"].indexOf(r.tagName.toLowerCase())>=0){for(var s,l=r.tagName.toLowerCase(),c=r.attributes,u="<"+l,d=0;s=c[d];d++)u+=" "+s.name+'="'+s.value.replace(/[&\u00A0"]/g,y.Core.escapeHTML)+'"';u+=">",["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"][l]&&(n+=u),n=n+u+this.html(r)+"</"+l+">"}else{if(8===r.nodeType)continue;n+=r.textContent.replace(/[&\u00A0<>]/g,y.Core.escapeHTML)}return n}e.innerHTML=t.replace(/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,"<$1></$2>")}}]),e}(),c=[],u=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"watch",value:function(t){switch(t.nodeName.toLowerCase()){case"smart-grid":case"smart-kanban":case"smart-table":case"smart-pivot-table":case"smart-scheduler":case"smart-tabs":case"smart-card-view":case"smart-list-box":case"smart-combo-box":case"smart-drop-down-list":case"smart-calendar":case"smart-gauge":case"smart-numeric-text-box":case"smart-menu":case"smart-tree":c.push(t);break;default:return}e.start()}},{key:"start",value:function(){e.isStarted||(e.isStarted=!0,e.interval&&clearInterval(e.interval),0===c.length||document.hidden?e.isStarted=!1:e.interval=setInterval(function(){e.observe()},100))}},{key:"stop",value:function(){e.isStarted=!1,e.interval&&clearInterval(e.interval)}},{key:"observeElement",value:function(t){var n=t;if("test"===window.Smart.Mode||document.hidden)e.interval&&clearInterval(e.interval);else{var i=t._computedStyle||"resize"!==n.hasStyleObserver?document.defaultView.getComputedStyle(n,null):{},r=!0,a="resize"!==n.hasStyleObserver?["paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","display","visibility","font-size","font-family","font-style","font-weight","max-height","min-height","max-width","min-width","overflow","overflow-x","overflow-y"]:[];if(t.styleProperties&&(a=a.concat(t.styleProperties)),t.observableStyleProperties&&(a=t.observableStyleProperties),n._styleInfo){if(t.isHidden||"none"!==i.display&&(0!==t.offsetWidth&&0!==t.offsetHeight||(t.isHidden=!0)),t.isHidden){if(t.visibilityChangedHandler(),t.isHidden)return;r=!1}for(var o=[],s=0;s<a.length;s++){var l=a[s],c=l.startsWith("--")?i.getPropertyValue(l):i[l];n._styleInfo[l]!==c&&(o[l]={oldValue:n._styleInfo[l],value:c},o.length++),n._styleInfo[l]=c}o.length>0&&(n.$.fireEvent("styleChanged",{styleProperties:o},{bubbles:!1,cancelable:!0}),o.display&&r&&n.$.fireEvent("resize",n,{bubbles:!1,cancelable:!0}))}else{n._styleInfo=[];for(var u=0;u<a.length;u++){var d=a[u],h=d.startsWith("--")?i.getPropertyValue(d):i[d];n._styleInfo[d]=h}}}}},{key:"observe",value:function(){for(var e=0;e<c.length;e++)this.observeElement(c[e])}},{key:"unwatch",value:function(t){e.stop();var n=c.indexOf(t);-1!==n&&c.splice(n,1),e.start()}}]),e}(),d=[],h=[],f=["resize","down","up","move","tap","taphold","swipeleft","swiperight","swipetop","swipebottom"],p=function(){function e(t){_classCallCheck(this,e);var n=this;n.target=t,n.$target=new g(t),n.$document=t.$document?t.$document:new g(document),n.id=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase();var i={handlers:{},boundEventTypes:[],listen:n.listen.bind(n),unlisten:n.unlisten.bind(n)};return n.tapHoldDelay=750,n.swipeMin=10,n.swipeMax=5e3,n.swipeDelay=1e3,n.tapHoldDelay=750,n.inputEventProperties=["clientX","clientY","pageX","pageY","screenX","screenY"],f.forEach(function(e){i[e]=function(t){i.handlers[e]=t},n[e]=function(e){if(!i.handlers[e.type]){if(("mousemove"===e.type||"pointermove"===e.type||"touchmove"===e.type)&&i.handlers.move){var t=n.createEvent(e,"move");i.handlers.move(t)}return!0}return i.handlers[e.type](e)}}),n.listen(),n.handlers=i.handlers,i}return _createClass(e,[{key:"listen",value:function(e){var t=this;if("resize"===e&&t.target!==document&&t.target!==window&&!1!==t.target.hasResizeObserver)if(Smart.Utilities.Core.Browser.Firefox){if
1(!t.target.resizeObserver){var i,r,a,o=!1,s=t.target.offsetWidth,l=t.target.offsetHeight,c=new ResizeObserver(function(){if(o){var e=new CustomEvent("resize",{bubbles:!1,cancelable:!0});r=t.target.offsetWidth,a=t.target.offsetHeight,i=r!==s||a!==l,t.target.requiresLayout&&(i=!0),i&&(t.resize(e),t.target.requiresLayout=!1)}else o=!0});c.observe(t.target),t.target.resizeObserver=c}}else if(!t.target.resizeTrigger){var u=document.createElement("div");u.className="smart-resize-trigger-container",u.innerHTML='<div class="smart-resize-trigger-container"><div class="smart-resize-trigger"></div></div><div class="smart-resize-trigger-container"><div class="smart-resize-trigger-shrink"></div></div>',u.setAttribute("aria-hidden",!0),window[n].EnableShadowDOM&&t.target.shadowRoot?t.target.shadowRoot.appendChild(u):t.target.appendChild(u),t.target.resizeTrigger=u;var d,h,f,p,m=u.childNodes[0],g=m.childNodes[0],v=u.childNodes[1],y=function(){g.style.width="100000px",g.style.height="100000px",m.scrollLeft=1e5,m.scrollTop=1e5,v.scrollLeft=1e5,v.scrollTop=1e5},b=t.target.offsetWidth,_=t.target.offsetHeight;if(0===b||0===_){t.target.addEventListener("resize",function e(){y(),t.target.removeEventListener("resize",e)}),y()}else y();t.target.resizeHandler=function(){h||(h=requestAnimationFrame(function(){if(h=0,f=t.target.offsetWidth,p=t.target.offsetHeight,d=f!==b||p!==_,t.target.requiresLayout&&(d=!0),d){b=f,_=p;var e=new CustomEvent("resize",{bubbles:!1,cancelable:!0});t.resize(e),t.target.requiresLayout=!1}})),y()},m.addEventListener("scroll",t.target.resizeHandler),v.addEventListener("scroll",t.target.resizeHandler)}t.isListening||(t.isListening=!0,t.isPressed=!1,t.isReleased=!1,t.isInBounds=!1,window.PointerEvent?(t.$target.listen("pointerdown.inputEvents"+t.id,t.pointerDown.bind(t)),t.$target.listen("pointerup.inputEvents"+t.id,t.pointerUp.bind(t)),t.$target.listen("pointermove.inputEvents"+t.id,t.pointerMove.bind(t)),t.$target.listen("pointercancel.inputEvents"+t.id,t.pointerCancel.bind(t))):("ontouchstart"in window&&(t.$target.listen("touchmove.inputEvents"+t.id,t.touchMove.bind(t)),t.$target.listen("touchstart.inputEvents"+t.id,t.touchStart.bind(t)),t.$target.listen("touchend.inputEvents"+t.id,t.touchEnd.bind(t)),t.$target.listen("touchcancel.inputEvents"+t.id,t.touchCancel.bind(t))),t.$target.listen("mousedown.inputEvents"+t.id,t.mouseDown.bind(t)),t.$target.listen("mouseup.inputEvents"+t.id,t.mouseUp.bind(t)),t.$target.listen("mousemove.inputEvents"+t.id,t.mouseMove.bind(t)),t.$target.listen("mouseleave.inputEvents"+t.id,t.mouseLeave.bind(t))),t.target._handleDocumentUp||(t.target._handleDocumentUp=t.handleDocumentUp.bind(t),t.target._handleDocumentUpId=t.id,t.$document.listen("mouseup.inputEvents"+t.target._handleDocumentUpId,t.target._handleDocumentUp)))}},{key:"unlisten",value:function(e){var t=this;if(t.isListening=!1,window.PointerEvent?(t.$target.unlisten("pointerdown.inputEvents"+t.id),t.$target.unlisten("pointerup.inputEvents"+t.id),t.$target.unlisten("pointermove.inputEvents"+t.id),t.$target.unlisten("pointercancel.inputEvents"+t.id)):("ontouchstart"in window&&(t.$target.unlisten("touchstart.inputEvents"+t.id),t.$target.unlisten("touchmove.inputEvents"+t.id),t.$target.unlisten("touchend.inputEvents"+t.id),t.$target.unlisten("touchcancel.inputEvents"+t.id)),t.$target.unlisten("mousedown.inputEvents"+t.id),t.$target.unlisten("mouseup.inputEvents"+t.id),t.$target.unlisten("mousemove.inputEvents"+t.id),t.$target.unlisten("mouseleave.inputEvents"+t.id)),t.target._handleDocumentUp&&(t.$document.unlisten("mouseup.inputEvents"+t.target._handleDocumentUpId,t.target._handleDocumentUp),delete t.target._handleDocumentUp,delete t.target._handleDocumentUpId),"resize"===e)if(Smart.Utilities.Core.Browser.Firefox)t.target.resizeObserver&&(t.target.resizeObserver.unobserve(t.target),delete t.target.resizeObserver);else if(t.target.resizeTrigger){var n=t.target.resizeTrigger,i=n.childNodes[1];n.childNodes[0].removeEventListener("scroll",t.target.resizeHandler),i.removeEventListener("scroll",t.target.resizeHandler),t.target.resizeHandler=null,n.parentNode.removeChild(n),delete t.target.resizeTrigger}}},{key:"handleDocumentUp",value:function(e){var t=this;t.isPressed=!1,t.isReleased=!1,t.resetSwipe(e)}},{key:"createEvent",value:function(e,t){var n=this,i=e.touches,r=e.changedTouches,a=i&&i.length?i[0]:r&&r.length?r[0]:void 0,o=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:void 0!==n.$target.element.getRootNode().host});if(o.originalEvent=e,a){for(var s=0;s<n.inputEventProperties.length;s++){var l=n.inputEventProperties[s];o[l]=a[l]}return o}for(var c in e)c in o||(o[c]=e[c]);return o}},{key:"fireTap",value:function(e){if(clearTimeout(this.tapHoldTimeout),!this.tapHoldFired&&this.isInBounds){var t=this.createEvent(e,"tap");this.tap(t)}}},{key:"initTap",value:function(e){var t=this;t.isInBounds=!0,t.tapHoldFired=!1,t.tapHoldTimeout=setTimeout(function(){if(t.isInBounds){t.tapHoldFired=!0;var n=t.createEvent(e,"taphold");t.taphold(n)}},t.tapHoldDelay)}},{key:"pointerDown",value:function(e){return this.handleDown(e)}},{key:"mouseDown",value:function(e){var t=this;if(!(t.isPressed||t.touchStartTime&&new Date-t.touchStartTime<500))return t.handleDown(e)}},{key:"touchStart",value:function(e){var t=this;return t.touchStartTime=new Date,t.isTouchMoved=!0,t.handleDown(e)}},{key:"mouseUp",value:function(e){var t=this;if(!(t.isReleased||t.touchEndTime&&new Date-t.touchEndTime<500))return t.handleUp(e)}},{key:"handleDown",value:function(e){var t=this;t.isReleased=!1,t.isPressed=!0;var n=t.createEvent(e,"down");return(t.handlers.tap||t.handlers.taphold)&&t.initTap(n),(t.handlers.swipeleft||t.handlers.swiperight||t.handlers.swipetop||t.handlers.swipebottom)&&t.initSwipe(n),t.down(n)}},{key:"handleUp",value:function(e){var t=this;t.isReleased=!0,t.isPressed=!1;var n=t.createEvent(e,"up"),i=t.up(n);return(t.handlers.tap||t.handlers.taphold)&&t.fireTap(n),t.resetSwipe(n),i}},{key:"handleMove",value:function(e){var t=this,n=t.move(e);return t.isPressed&&(t._maxSwipeVerticalDistance=Math.max(t._maxSwipeVerticalDistance,Math.abs(t._startY-e.pageY)),t._maxSwipeHorizontalDistance=Math.max(t._maxSwipeHorizontalDistance,Math.abs(t._startX-e.pageX)),n=t.handleSwipeEvents(e)),n}},{key:"touchEnd",value:function(e){return this.touchEndTime=new Date,this.handleUp(e)}},{key:"pointerUp",value:function(e){return this.handleUp(e)}},{key:"pointerCancel",value:function(e){this.pointerUp(e)}},{key:"touchCancel",value:function(e){this.touchEnd(e)}},{key:"mouseLeave",value:function(){this.isInBounds=!1}},{key:"mouseMove",value:function(e){if(!this.isTouchMoved)return this.handleMove(e)}},{key:"pointerMove",value:function(e){return this.handleMove(e)}},{key:"touchMove",value:function(e){for(var t=this,n=e.touches,i=e.changedTouches,r=n&&n.length?n[0]:i&&i.length?i[0]:void 0,a=0;a<t.inputEventProperties.length;a++){var o=t.inputEventProperties[a];void 0===e[o]&&(e[o]=r[o])}return t.isTouchMoved=!0,t.handleMove(e)}},{key:"handleSwipeEvents",value:function(e){var t=this,n=!0;return(t.handlers.swipetop||t.handlers.swipebottom)&&(n=this.handleVerticalSwipeEvents(e)),!1===n||(t.handlers.swipeleft||t.handlers.swiperight)&&(n=this.handleHorizontalSwipeEvents(e)),n}},{key:"handleVerticalSwipeEvents",value:function(e){var t;return t=e.pageY-this._startY,this.swiped(e,t,"vertical")}},{key:"handleHorizontalSwipeEvents",value:function(e){var t;return t=e.pageX-this._startX,this.swiped(e,t,"horizontal")}},{key:"swiped",value:function(e,t,n){var i=this;if(n=n||0,Math.abs(t)>=i.swipeMin&&!i._swipeEvent&&!i._swipeLocked){var r=t<0?"swipeleft"
1:"swiperight";if("horizontal"===n?i._swipeEvent=i.createEvent(e,r):(r=t<0?"swipetop":"swipebottom",i._swipeEvent=i.createEvent(e,t<0?"swipetop":"swipebottom")),i[r]&&(i[r](this._swipeEvent),Math.abs(t)<=this.swipeMax))return e.stopImmediatePropagation(),!1}return!0}},{key:"resetSwipe",value:function(){this._swipeEvent=null,clearTimeout(this._swipeTimeout)}},{key:"initSwipe",value:function(e){var t=this;t._maxSwipeVerticalDistance=0,t._maxSwipeHorizontalDistance=0,t._startX=e.pageX,t._startY=e.pageY,t._swipeLocked=!1,t._swipeEvent=null,t._swipeTimeout=setTimeout(function(){t._swipeLocked=!0},t.swipeDelay)}}]),e}(),m=function(){function e(t,n,i){_classCallCheck(this,e);var r=this;r.container=t,r.horizontalScrollBar=n,r.verticalScrollBar=i,r.disableSwipeScroll=!1,r.listen()}return _createClass(e,[{key:"scrollWidth",get:function(){return this.horizontalScrollBar?this.horizontalScrollBar.max:-1},set:function(e){e<0&&(e=0),this.horizontalScrollBar&&(this.horizontalScrollBar.max=e)}},{key:"scrollHeight",get:function(){return this.verticalScrollBar?this.verticalScrollBar.max:-1},set:function(e){e<0&&(e=0),this.verticalScrollBar&&(this.verticalScrollBar.max=e)}},{key:"scrollLeft",get:function(){return this.horizontalScrollBar?this.horizontalScrollBar.value:-1},set:function(e){e<0&&(e=0),this.horizontalScrollBar&&(this.horizontalScrollBar.value=e)}},{key:"scrollTop",get:function(){return this.verticalScrollBar?this.verticalScrollBar.value:-1},set:function(e){e<0&&(e=0),this.verticalScrollBar&&(this.verticalScrollBar.value=e)}},{key:"vScrollBar",get:function(){return this.verticalScrollBar}},{key:"hScrollBar",get:function(){return this.horizontalScrollBar}},{key:"listen",value:function(){var e,t,n,i,r,a,o,s,c=this,u=l.isMobile,d=c.horizontalScrollBar,h=c.verticalScrollBar;c.inputEvents=new p(c.container);var f,m=function(e){return{amplitude:0,delta:0,initialValue:0,min:0,max:e.max,previousValue:0,pointerPosition:0,targetValue:0,scrollBar:e,value:0,velocity:0}},g=m(d),v=m(h),b=function(){var e=c.container.touchVelocityCoefficient||50;a=Date.now(),o=a-i,i=a;var t=function(t){t.delta=t.value-t.previousValue,t.previousValue=t.value,t.velocity=e*t.delta/(1+o)*.8+.2*t.velocity};t(v),t(g)},_=function(e){return s.value=e>s.max?s.max:e<s.min?s.min:e,s.scrollBar.value=s.value,e>s.max?"max":e<s.min?"min":"value"};function w(){var e,n;s.amplitude&&(c.container.$.fireEvent("kineticScroll"),e=Date.now()-i,(n=-s.amplitude*Math.exp(-e/500))>5||n<-5?(_(s.targetValue+n),cancelAnimationFrame(t),t=0,t=requestAnimationFrame(w)):_(s.targetValue))}c.inputEvents.down(function(t){if(u){var a=t.originalEvent.target,o=a&&a.closest?a.closest("smart-scroll-bar"):void 0;if(o!==c.horizontalScrollBar&&o!==c.verticalScrollBar){n=!0,e=!1;var s=function(e,t){e.amplitude=0,e.pointerPosition=t,e.previousValue=e.value,e.value=e.scrollBar.value,e.initialValue=e.value,e.max=e.scrollBar.max};s(v,t.clientY),s(g,t.clientX),i=Date.now(),clearInterval(r),r=setInterval(b,500)}}}),c.inputEvents.up(function(){if(!n)return!0;if(clearInterval(r),c.disableSwipeScroll)n=!1;else{var e=function(e){s=e,e.amplitude=.8*e.velocity,e.targetValue=Math.round(e.value+e.amplitude),i=Date.now(),cancelAnimationFrame(t),t=requestAnimationFrame(w),e.velocity=0};v.velocity>10||v.velocity<-10?e(v):(g.velocity>10||g.velocity<-10)&&e(g),n=!1}}),c.inputEvents.move(function(t){if(!n)return!0;if(!c.disableSwipeScroll&&(e&&(t.originalEvent.preventDefault(),t.originalEvent.stopPropagation()),g.visible=c.scrollWidth>0,v.visible=c.scrollHeight>0,n&&(g.visible||v.visible))){var i,r,a=c.container.touchScrollRatio,o=c.container;a&&("number"==typeof a?(i=-a,r=-a):"function"==typeof a&&(i=a(v.max,o.offsetHeight),r=a(g.max,o.offsetWidth))),v.ratio=i||-v.max/o.offsetHeight,v.delta=(t.clientY-v.pointerPosition)*v.ratio,g.ratio=r||-g.max/o.offsetWidth,g.delta=(t.clientX-g.pointerPosition)*g.ratio;var l="value",u=function(t,n,i){return t.delta>5||t.delta<-5?(s=t,"min"===(l=t.initialValue+t.delta>s.max?"max":t.initialValue+t.delta<s.min?"min":"value")&&0===t.initialValue||"max"===l&&t.initialValue===t.max||!t.visible||(c.container.$.fireEvent("kineticScroll"),_(t.initialValue+t.delta),b(),i.originalEvent.preventDefault(),i.originalEvent.stopPropagation(),e=!0,!1)):null},d=u(v,0,t);
1if(null!==d)return d;var h=u(g,0,t);return null!==h?h:void 0}}),c.scrollTo=function(e,n){var r=!1===n?g:v,a=!1;i||(i=Date.now()),f||(f=Date.now()),Math.abs(Date.now()-f)>375?i=Date.now():a=!0,f=Date.now(),r.value=r.scrollBar.value,r.delta=e-r.value,r.max=r.scrollBar.max,e<=r.min&&(e=r.min),e>=r.max&&(e=r.max),r.targetValue=e;var o=e,s=r.value;r.velocity=100*r.delta/(1+r.max),r.from=s;var l=function(e){return r.value=e>r.max?r.max:e<r.min?r.min:e,r.scrollBar.value=r.value,e>r.max?"max":e<r.min?"min":"value"};cancelAnimationFrame(t),t=requestAnimationFrame(function n(){var u,d=Date.now()-f,h=Math.min(1e3,Date.now()-i),p=r.velocity*Math.exp(h/175);if(a)(p<0&&r.value<=e||p>0&&r.value>=e)&&(p=0),(r.value+p<=r.min||r.value+p>=r.max)&&(p=0),p>.5||p<-.5?(l(r.value+p),cancelAnimationFrame(t),t=0,t=requestAnimationFrame(n)):l(r.targetValue);else{if(d>=175)return cancelAnimationFrame(t),c.container.$.fireEvent("kineticScroll"),void(t=0);u=y.Animation.Easings.easeInSine(d,s,o-s,175),l(u),cancelAnimationFrame(t),t=0,t=requestAnimationFrame(n)}})},c.inputEvents.listen()}},{key:"unlisten",value:function(){var e=this;e.inputEvents&&e.inputEvents.unlisten(),delete e.inputEvents}}]),e}(),g=function(){function e(t){_classCallCheck(this,e),this.events={},this.handlers={},this.element=t}return _createClass(e,[{key:"hasClass",value:function(e){for(var t=e.split(" "),n=0;n<t.length;n++)if(!this.element.classList.contains(t[n]))return!1;return!0}},{key:"addClass",value:function(e){var t=this;if(!t.hasClass(e)){for(var n=e.split(" "),i=0;i<n.length;i++)t.element.classList.add(n[i]);t.isNativeElement||u.observeElement(t.element)}}},{key:"removeClass",value:function(e){var t=this;if(0!==arguments.length){for(var n=e.split(" "),i=0;i<n.length;i++)t.element.classList.remove(n[i]);""===t.element.className&&t.element.removeAttribute("class"),t.isNativeElement||u.observeElement(t.element)}else t.element.removeAttribute("class")}},{key:"isCustomElement",get:function(){var e=this;return!!e.element.tagName.startsWith(n)||e.element instanceof window[n].BaseElement==1||"DIV"!==e.element.tagName&&"SPAN"!==e.element.tagName&&"BUTTON"!==e.element.tagName&&"INPUT"!==e.element.tagName&&"UL"!==e.element.tagName&&"LI"!==e.element.tagName&&document.createElement(e.element.nodeName)instanceof window[n].BaseElement==1}},{key:"isNativeElement",get:function(){return!this.isCustomElement}},{key:"dispatch",value:function(e){var t=this.events[e.type],n=!1;if(t.length>1)for(var i=0;i<t.length;i++){var r=t[i];if(r.namespace&&r.namespace.indexOf("_")>=0){n=!0;break}}n&&t.sort(function(e,t){var n=e.namespace,i=t.namespace;return(n=-1===n.indexOf("_")?0:parseInt(n.substring(n.indexOf("_")+1)))<(i=-1===i.indexOf("_")?0:parseInt(i.substring(i.indexOf("_")+1)))?-1:n>i?1:0});for(var a=0;a<t.length;a++){var o=t[a];if(e.namespace=o.namespace,e.context=o.context,e.defaultPrevented)break;var s=o.handler.apply(this.element,[e]);if(void 0!==s&&(e.result=s,!1===s)){e.preventDefault(),e.stopPropagation();break}}return e.result}},{key:"fireEvent",value:function(e,t,n){n||(n={bubbles:!0,cancelable:!0,composed:null!==this.element.getRootNode().host}),n.detail=t||{};var i=new CustomEvent(e,n);return i.originalStopPropagation=i.stopPropagation,i.stopPropagation=function(){return i.isPropagationStopped=!0,i.originalStopPropagation()},this.dispatchEvent(i),i}},{key:"isPassiveSupported",get:function(){var e=this;if(void 0!==e.supportsPassive)return e.supportsPassive;e.supportsPassive=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e.supportsPassive=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}return e.supportsPassive}},{key:"dispatchEvent",value:function(e){var t=this,n=e.type,i=t.element.context,r=n.substring(0,1).toUpperCase()+n.substring(1);t.element.context=document,t.element["on"+r]?t.element["on"+r](e):t.element["on"+n.toLowerCase()]?t.element["on"+n.toLowerCase()](e):t.element.dispatchEvent(e),t.element.context=i}},{key:"listen",value:function(e,t){var n=this,i=e.split("."),r=i.slice(1).join("."),a=i[0];n.events[a]||(n.events[a]=[]);var o={type:a,handler:t,context:n.element,namespace:r};f.indexOf(a)>=0&&(n.inputEvents||(n.inputEvents=new p(n.element)),n.inputEvents[a](function(e){n.dispatchEvent(e)}),n.inputEvents.boundEventTypes.push(a),n.inputEvents.listen(a)),0===n.events[a].length&&(n.handlers[a]=n.dispatch.bind(n),"wheel"===a?n.element.addEventListener("wheel",n.handlers[a],!!n.isPassiveSupported&&{passive:!1}):n.element.addEventListener(a,n.handlers[a],("touchmove"===a||"touchstart"===a||"touchend"===a)&&!!n.isPassiveSupported&&{passive:!1})),n.events[a].push(o)}},{key:"unlisten",value:function(e){var t=this,n=e.split("."),i=n.slice(1).join("."),r=n[0],a=t.events[r];if(t.inputEvents&&t.inputEvents.boundEventTypes.indexOf(r)>=0&&(t.inputEvents.boundEventTypes.splice(t.inputEvents.boundEventTypes.indexOf(r),1),0===t.inputEvents.boundEventTypes.length&&t.inputEvents.unlisten(r)),a){for(var o=0;o<a.length;o++){if(""!==i){var s=a.findIndex(function(e){return e.namespace===i});a.splice(s,1);break}a=[]}0===a.length&&(t.element.removeEventListener(r,t.handlers[r]),t.events[r]=[],delete t.handlers[r])}}},{key:"getAttributeValue",value:function(e,t){var n=this,i=n.element.getAttribute(e);
1if(n.isNativeElement)return n.deserialize(i,t);var r=n.element.propertyByAttributeName[e];return void 0===r.deserialize?n.deserialize(i,t,r.nullable):n.element[r.deserialize](i)}},{key:"setAttributeValue",value:function(e,t,n){var i,r=this,a=!1;if(r.isNativeElement){if(i=r.serialize(t,n),"boolean"===n&&["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].indexOf(e)>=0)return void(t?r.element.setAttribute(e,""):r.element.removeAttribute(e))}else{var o=r.element.propertyByAttributeName[e];a=!o||o.nullable,i=o&&o.serialize?r.element[o.serialize](t):r.serialize(t,n,a)}"array"!==n&&"object"!==n||"[]"!==i&&"{}"!==i?void 0===i?(r.element.removeAttribute(e),r.element.shadowRoot&&r.element.$.root&&r.element.$.root.removeAttribute(e)):(r.element.setAttribute(e,i),r.element.shadowRoot&&r.element.$.root&&r.element.$.root.setAttribute(e,i)):r.element.removeAttribute(e)}},{key:"serialize",value:function(e,t,n){if(void 0===t&&(t=y.Types.getType(e)),void 0!==e&&(n||null!==e)){if(n&&null===e)return"null";if("string"===t)return e;if("boolean"===t||"bool"===t){if(!0===e||"true"===e||1===e||"1"===e)return"";if(!1===e||"false"===e||0===e||"0"===e)return}return"array"===t?JSON.stringify(e):["string","number","int","integer","float","date","any","function"].indexOf(t)>=0?e.toString():"object"===t?JSON.stringify(e):void 0}}},{key:"deserialize",value:function(e,t,n){var i="null"===e;if(void 0!==e&&(!i||n)){if(i&&n)return null;if("boolean"===t||"bool"===t)return null!==e;if("number"===t||"float"===t)return"NaN"===e?NaN:"Infinity"===e?1/0:"-Infinity"===e?-1/0:parseFloat(e);if("int"===t||"integer"===t)return"NaN"===e?NaN:"Infinity"===e?1/0:"-Infinity"===e?-1/0:parseInt(e);if("string"===t)return e;if("any"===t)return e;if("date"===t)return new Date(e);if("function"===t){if("function"==typeof window[e])return window[e]}else if("array"===t||"object"===t)try{var r=JSON.parse(e);if(r)return r}catch(n){if(window[e]&&"object"==typeof window[e])return window[e];if("array"===t&&e.indexOf("[")>=0){if(e.indexOf("{")>=0){var a=e.replace(/{/gi,"").replace("[","").replace("]","").replace(/'/gi,"").replace(/"/gi,"").trim();a=a.split("},");for(var o=0;o<a.length;o++){for(var s={},l=a[o].trim().split(","),c=0;c<l.length;c++){var u=l[c].split(":")[0].trim(),d=l[c].split(":")[1].trim();s[u]=d}a[o]=s}return a}return e.replace("[","").replace("]","").replace(/'/gi,"").replace(/"/gi,"").trim().split(",")}}}}}]),e}(),v=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"Ripple",get:function(){return o}},{key:"Easings",get:function(){return s}}]),e}(),y=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"Types",get:function(){return a}},{key:"Core",get:function(){return l}},{key:"Animation",get:function(){return v}},{key:"Scroll",get:function(){return m}},{key:"InputEvents",get:function(){return p}},{key:"Extend",value:function(e){return new g(e)}},{key:"Assign",value:function(t,n){if(t.indexOf(".")>=0){var i=t.split(".");return e[i[0]]||(e[i[0]]={}),void(e[i[0]][i[1]]=n)}e[t]=n}}]),e}(),b=y.Extend(document),_=null;document.addEventListener("click",function(){u.start(),_&&clearTimeout(_),_=setTimeout(function(){u.stop()},1e4)}),document.addEventListener("mouseenter",function(){u.start()}),document.addEventListener("mouseleave",function(){u.stop()});var w=function e(){_classCallCheck(this,e)};w.cache={};var k=function(e){_inherits(a,e);var i=_createSuper(a);function a(){return _classCallCheck(this,a),i.apply(this,arguments)}return _createClass(a,[{key:"getBindings",value:function(e,t){var n=this,i=0,r={},a=function(e){if(e instanceof HTMLElement)return n.parseAttributes(e);var t=n.parseProperty(e.data?e.data.trim():null,"textContent",e);return t?(n&&e.parentNode===n.$.content&&(t.value=""!==n.$.html?n.$.html:void 0,n.innerHTML=""),{textContent:t}):void 0}(e);a&&(r.data=a),t||(r.mapping=[],t=r),e.getAttribute&&(r.nodeId=e.getAttribute("smart-id"),t&&a&&(t.mapping[r.nodeId]=a)),r.node=e,e.firstChild&&(r.children={});for(var o=e.firstChild;o;o=o.nextSibling)r.children[i++]=n.getBindings(o,t);return r}},{key:"_addRemovePropertyBinding",value:function(e,t,n,i,r){if(e&&t&&n){var a=this,o=a.bindings,s=n.getAttribute("smart-id"),l=e.indexOf("{{")>=0,c=!1;(e=e.replace("{{","").replace("}}","").replace("[[","").replace("]]","")).indexOf("!")>=0&&(e=e.replace("!",""),c=!0);var u=a._properties[e],d={name:e,reflectToAttribute:u.reflectToAttribute,t
1woWay:l,type:u.type,not:c};if(r&&!i){var h={};h[e]={name:e,targetPropertyName:t,reflectToAttribute:u.reflectToAttribute,twoWay:l,type:u.type,not:c},o.mapping[s]=h}(function e(r){for(var o in r){var l=r[o];if(l.nodeId===s){l.data||(l.data={}),i?(l.data[t]=null,delete l.data[t]):l.data[t]=d;break}if(l.children)e(l.children);else if(l.node&&l.node.children&&l.node===n.parentElement){var c=l.node;if(!c.firstChild)continue;l.children={};for(var u=0,h=c.firstChild;h;h=h.nextSibling)l.children[u++]=a.getBindings(h);e(l.children)}}})(o.children),i?delete a.boundProperties[e]:a.boundProperties[e]=!0,a.updateBoundNodes(e)}}},{key:"addPropertyBinding",value:function(e,t,n,i){this._addRemovePropertyBinding(e,t,n,!1,i)}},{key:"removePropertyBinding",value:function(e,t,n,i){this._addRemovePropertyBinding(e,t,n,!0,i)}},{key:"parseAttributes",value:function(e){for(var t,n=this,i=0;i<e.attributes.length;i++){var r=e.attributes[i],a=r.name,o=r.value;w.cache["toCamelCase"+a]||(w.cache["toCamelCase"+a]=y.Core.toCamelCase(a));var s=w.cache["toCamelCase"+a];if(a.indexOf("(")>=0){var l=a.substring(1,a.length-1);if(n&&!n.dataContext){n.templateListeners[e.getAttribute("smart-id")+"."+l]=o,e.removeAttribute(a);continue}t||(t={});var c=o.substring(0,o.indexOf("("));t[s]={isEvent:!0,name:l,value:c}}else{var u=n.parseProperty(o,a,e);u&&(t||(t={}),t[s]=u)}}return t}},{key:"parseProperty",value:function(e,t){if(e&&e.length){for(var n,i=this,r=e.length,a=0,o=0,s=0,l=!0;o<r;){a=e.indexOf("{{",o);var c=e.indexOf("[[",o),u="}}";if(c>=0&&(a<0||c<a)&&(a=c,l=!1,u="]]"),(s=a<0?-1:e.indexOf(u,a+2))<0)return;n=n||{};var d=e.slice(a+2,s).trim();n.name=d,o=s+2}var h=n.name,f=i?i._properties[h]:null;return n.twoWay=l,n.ready=!1,i&&(h.indexOf("::")>=0?i.boundProperties[h.substring(0,h.indexOf("::"))]=!0:i.boundProperties[h]=!0),f?(n.type=f.type,n.reflectToAttribute=f.reflectToAttribute):(n.type=["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].indexOf(t)>=0?"boolean":"string",n.reflectToAttribute=!0),n}}},{key:"updateTextNodes",value:function(){var e=this;e.updateTextNode(e.shadowRoot||e,e.bindings,e)}},{key:"updateTextNode",value:function(e,t,n){if(t){for(var i=0,r=e.firstChild;r&&t.children;r=r.nextSibling)this.updateTextNode(r,t.children[i++],n);if(t&&t.data)for(var a in t.data){var o=t.data[a];"textContent"===a&&o.twoWay&&!o.updating&&void 0!==o.value&&(n[o.name]=o.value)}}}},{key:"updateBoundProperty",value:function(e,t){t.updating||(t.updating=!0,this[e]=t.value,t.updating=!1)}},{key:"updateBoundNodes",value:function(e){var t=this;if(t.updateBoundNode(t.shadowRoot||t,t.bindings,t,e),t.detachedChildren.length>0)for(var n=function(n){var i=t.detachedChildren[n],r=i.getAttribute("smart-id"),a=function e(t){if(t.nodeId===r)return t;for(var n in t.children){var i=t.children[n];if((i.getAttribute?i.getAttribute("smart-id"):"")===r)return t;if(i.children){var a=e(i);if(a)return a}}return null}(t.bindings);if(a)t.updateBoundNode(i,a,t,e,!0);else if(i.getAttribute&&t.bindings.mapping){var o=t,s=t.bindings;if(s)for(var l in s.mapping){var c=o.querySelector('[smart-id="'+l+'"]');c&&t.updateBoundData(c,s.mapping[l],o,e)}}},i=0;i<t.detachedChildren.length;i++)n(i)}},{key:"updateBoundMappedNodes",value:function(){var e=this,t=e.bindings,n=e;if(t.mapping)for(var i in t.mapping){var r=n.querySelector('[smart-id="'+i+'"]');if(n.shadowRoot&&((r=n.querySelector('[id="'+i+'"]'))||(r=n.shadowRoot.querySelector('[id="'+i+'"]')||n.shadowRoot.querySelector('[smart-id="'+i+'"]'))),r)e.updateBoundData(r,t.mapping[i],n);else if(n.getAttribute("aria-controls")){var a=document.getElementById(n.getAttribute("aria-controls"));!a&&n.shadowRoot&&(a=n.shadowRoot.getElementById(n.getAttribute("aria-controls"))),(r=a.querySelector('[smart-id="'+i+'"]'))&&e.updateBoundData(r,t.mapping[i],n)}}}},{key:"updateBoundNode",value:function(e,t,n,i,r){var a=this;if(t){var o=0;if(r){if(r&&!t.data)for(var s=e.firstChild;s&&t.children;s=s.nextSibling)s.getAttribute?function(){var e=s.getAttribute("smart-id"),r=function(){for(var n in t.children)if(t.children[n].nodeId===e)return t.children[n]}();a.updateBoundNode(s,r,n,i),o++}():a.updateBoundNode(s,t.children[o++],n,i,r)}else for(var l=e.firstChild;l&&t.children;l=l.nextSibling)l.getAttribute?function(){var e=l.getAttribute("smart-id"),r=function(){for(var n in t.children)if(t.children[n].nodeId===e)return t.children[n]}();a.updateBoundNode(l,r,n,i),o++}():a.updateBoundNode(l,t.children[o++],n,i);t&&t.data&&a.updateBoundData(e,t.data,n,i)}}},{key:"updateBoundData",value:function(e,t,n,i){var r=this,a=function(a){var o=t[a],s=o.name;if(!o.updating&&(s.indexOf("::")>=0&&(s=s.substring(0,s.indexOf("::"))),void 0===i||i===s)){if(s.indexOf("(")>=0){var l=s.substring(s.indexOf("(")),c=s.substring(0,s.indexOf("("));if((l=(l=(l=l.substring(1,l.length-1)).replace(/ /gi,"")).split(",")).length>0&&""!==l[0]){for(var u=[],d=0;d<l.length;d++)u.push(n[l[d]]);o.value=n[c].apply(n,u)}else o.value=n[c]();o.type=typeof o.value}else o.value=n[s];if("innerHTML"===s){if(e[a].toString().trim()!==n[s].toString().trim()){if(window.smartBlazor&&e[a].indexOf("\x3c!--")>=0)return(o.ready||n._properties[s].defaultValue!==o.value)&&(e[a]=o.value.toString()),"continue";(o.ready||n._properties[s].defaultValue!==o.value)&&(e[a]=o.value.toString().trim())}}else o.not?(e[a]=!o.value,o.targetPropertyName&&(e[o.targetPropertyName]=!o.value)):(e[a]=o.value,o.targetPropertyName&&(e[o.targetPropertyName]=o.value));if(e.$&&e.$.isNativeElement){w.cache["toDash"+a]||(w.cache["toDash"+a]=y.Core.toDash(a));var h=w.cache["toDash"+a],f=e.$.getAttributeValue(h,o.type);!o.reflectToAttribute||f===o.value&&o.ready||e.$.setAttributeValue(h,o.value,o.type),o.reflectToAttribute||e.$.setAttributeValue(h,null,o.type)}if(!o.ready){if(e.$&&e.$.isCustomElement){w.cache["toDash"+a]||(w.cache["toDash"+a]=y.Core.toDash(a));var p=w.cache["toDash"+a];e._properties||(e._beforeCreatedProperties=e._properties=e.propertyByAttributeName=[]),e._properties[a]||
1(e._properties[a]={attributeName:p},e._beforeCreatedProperties&&(e._beforeCreatedProperties[a]=e._properties[a]),e.propertyByAttributeName[p]=e._properties[a]);var m=e._properties[a];m.isUpdating=!0,o.reflectToAttribute&&e.$.setAttributeValue(m.attributeName,o.not?!o.value:o.value,o.type),o.reflectToAttribute||e.$.setAttributeValue(m.attributeName,null,o.type),m.isUpdating=!1}if(o.twoWay){var g=function(t){if(o.value=t,e.$&&e.$.isNativeElement){w.cache["toDash"+a]||(w.cache["toDash"+a]=y.Core.toDash(a));var n=w.cache["toDash"+a],i=e.$.getAttributeValue(n,o.type);o.reflectToAttribute&&i!==o.value&&e.$.setAttributeValue(n,o.value,o.type),o.reflectToAttribute||e.$.setAttributeValue(n,null,o.type)}};if(o.name.indexOf("::")>=0){var v=o.name.indexOf("::"),b=o.name.substring(v+2);r["$"+e.getAttribute("smart-id")].listen(b,function(){g(e[a]);var t=o.name.substring(0,o.name.indexOf("::"));r.updateBoundProperty(t,o)})}if(e.$&&e.$.isCustomElement){e._properties[a]&&(e._properties[a].notify=!0),w.cache["toDash"+a]||(w.cache["toDash"+a]=y.Core.toDash(a));var _=w.cache["toDash"+a];r["$"+e.getAttribute("smart-id")].listen(_+"-changed",function(e){g(e.detail.value);var t=r.context;e.context!==document&&(r.context=r),r.updateBoundProperty(o.name,o),r.context=t})}}}o.ready=!0}};for(var o in t)a(o)}},{key:"addMessages",value:function(e,t){Object.assign(this.messages[e],t)}},{key:"localize",value:function(e,t){var n=this;if(n.messages&&n.messages[n.locale]){var i=n.messages[n.locale][e];if(""===i)return"";if(!i){var r=n.messages.en;if(r)return r[e]||e}var a=i;for(var o in t){var s=t[o];i=i.replace(new RegExp("{{"+o+"}}","g"),s)}return n.localizeFormatFunction&&n.localizeFormatFunction(a,i,t),i}}},{key:"classNamesMap",get:function(){return{animation:"smart-animate",rippleAnimation:"smart-ripple"}}},{key:"hasAnimation",get:function(){return"none"!==this.animation}},{key:"hasRippleAnimation",get:function(){return"none"!==this.animation&&"advanced"===this.animation}},{key:"properties",get:function(){var e=this;return e._properties||(e._properties=[]),e._properties}},{key:"parents",get:function(){for(var e=this,t=[],i=e.parentNode;i&&9!==i.nodeType;)i instanceof HTMLElement==1&&t.push(i),i=i.parentNode;var r=e.getRootNode();if(r.host){t=t.concat(function(e){for(var t=[e],n=e.parentNode;n&&9!==n.nodeType;)n instanceof HTMLElement==1&&t.push(n),n=n.parentNode;return t}(r.host))}return window[n].EnableShadowDOM&&e.isInShadowDOM&&e.shadowParent&&(t=t.concat(e.shadowParent.parents)),t}},{key:"log",value:function(e){this._logger("log",e)}},{key:"warn",value:function(e){this._logger("warn",e)}},{key:"error",value:function(e){this._logger("error",e)}},{key:"_logger",value:function(e,t){if(this.debugMode){var n=t instanceof Error?t.message:t.toString();console[e](n)}if(this.rethrowError&&"error"===e)throw t}},{key:"focused",get:function(){return this.contains(document.activeElement)}},{key:"template",value:function(){return"<div></div>"}},{key:"registered",value:function(){this.onRegistered&&this.onRegistered()}},{key:"created",value:function(){var e=this;e.isReady=!1,e._initElement(e),e._setModuleState("created"),e.onCreated&&e.onCreated()}},{key:"completed",value:function(){var e=this;e.isCompleted=!0,e._onCompleted&&e._onCompleted(),e.onCompleted&&e.onCompleted()}},{key:"whenReady",value:function(e){var t=this;t.isCompleted?e():(t.whenReadyCallbacks||(t.whenReadyCallbacks=[]),t.whenReadyCallbacks.push(e))}},{key:"whenRendered",value:function(e){var t=this;t.isRendered?e():(t.whenRenderedCallbacks||(t.whenRenderedCallbacks=[]),t.whenRenderedCallbacks.push(e))}},{key:"addThemeClass",value:function(){var e=this;""!==e.theme&&e.classList.add("smart-"+e.theme)}},{key:"addDefaultClass",value:function(){var e=this;e.classList.add(n.toLowerCase()+"-element"),e.classList.add(e.nodeName.toLowerCase())}},{key:"_renderShadowRoot",value:function(){var e=this;if(e.shadowRoot){e.$.root.classList.add(e.nodeName.toLowerCase());for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t];"class"===n.name||"id"===n.name||"style"===n.name||"tabindex"===n.name||n.name.indexOf("aria")>=0||e.$.root.setAttribute(n.name,n.value)}for(var i=0;i<e.classList.length;i++){var r=e.classList[i];"smart-element-init"!==r&&"smart-element"!==r&&"smart-hidden"!==r&&"smart-visibility-hidden"!==r&&e.$.root.classList.add(r)}}}},{key:"render",value:function(){var e=this;if(!e.isRendered&&(e.isRendered=!0,e.isRendering=!1,e.context=document,e._renderShadowRoot(),e.whenRenderedCallbacks)){for(var t=0;t<e.whenRenderedCallbacks.length;t++)e.whenRenderedCallbacks[t]();e.whenRenderedCallbacks=[]}e.onRender&&e.onRender(),e.disabled&&e.setAttribute("aria-disabled",!0),e.readonly&&-1!==["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox"].indexOf(e.getAttribute("role"))&&e.setAttribute("aria-readonly",!0)}},{key:"ready",value:function(){var e=this;if(e._setId(),e.addThemeClass(),e.addDefaultClass(),"collapsed"===e.visibility?e.classList.add("smart-hidden"):"hidden"===e.visibility&&e.classList.add("smart-visibility-hidden"),e.dataContext&&e.applyDataContext(),e.onReady&&e.onReady(),e.shadowRoot&&Smart(e._selector)){if(Smart(e._selector).styleUrls)for(var t=Smart(e._selector).styleUrls,n=0;n<t.length;n++)e.importStyle(t[n]);if(Smart(e._selector).styles){var i=document.createElement("style");i.innerHTML=Smart(e._selector).styles,e.shadowRoot.insertBefore(i,e.shadowRoot.firstChild)}}Smart(e._selector)&&Smart(e._selector).ready&&Smart(e._selector).ready()}},{key:"_setId",value:function(){var e=this;if(!e.id){var t=e.elementName;e.id=t.slice(0,1).toLowerCase()+t.slice(1)+Math.floor(65536*(1+Math.random())).toString(16).substring(1)}}},{key:"checkLicense",value:function(){"Evaluation"===window[n].License&&-1===window.location.hostname.indexOf("htmlelements")&&(this.logWatermark(),this.logLicense(),window[n].License="")}},{key:"logWatermark",value:function(){var e=document.createElement("a");e.href="https://www.htmlelements.com/",e.innerHTML="https://www.htmlelements.com/",e.style.position="absolute",e.style.right="5
1px",e.style.bottom="5px",e.style.color="#fff",e.style.padding="20px",e.style.borderRadius="5px",e.style.background="#0C3D78",e.style.cursor="pointer",e.style.zIndex="999999",e.style.display="block",e.style.fontSize="24px",e.style.textDecoration="none",e.style.fontWeight="bold",e.style.opacity=0,e.style.transition="opacity .35s ease-in-out",e.id="watermark",document.getElementById("watermark")||setTimeout(function(){document.getElementById("watermark")||(document.body.appendChild(e),setTimeout(function(){e.style.opacity=1}),setTimeout(function(){e.style.opacity=0,setTimeout(function(){e.parentNode.removeChild(e)},350)},6e3))},1e3)}},{key:"logLicense",value:function(){console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("*jQWidgets License Key Not Found."),console.log("*This is an EVALUATION only Version, it is NOT Licensed for software projects intended for PRODUCTION."),console.log("*if you want to hide this message, please send an email to: [email protected] for a license."),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************")}},{key:"_selector",get:function(){var e=this;return e.id?"#"+e.id:e.classList.length>0?"."+e.classList[0]:""}},{key:"applyDataContext",value:function(e){var t=this,n="string"==typeof t.dataContext?window[t.dataContext]||document[t.dataContext]:t.dataContext;if(e&&(n=e,t.dataContext=e),n){if(!n._uid){n._uid=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase(),n._properties=[];var i=function(e){var i=n[e];"function"!=typeof i&&"_properties"!==e&&"_uid"!==e&&(n._properties[e]=i,Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:function(){return n._properties[e]},set:function(i){var r=n._properties[e];n._properties[e]=i;var a=[];a[e]={oldValue:r,value:i},a.length++,t.updatingDataContext=!0,b.fireEvent("dataContextPropertyChanged",{dataContext:n,properties:a},{bubbles:!1,cancelable:!0}),t.updatingDataContext=!1}}))};for(var r in n)i(r)}if(t.dataContextProperties=t.parseAttributes(t),t.dataContextPropertiesMap={},t.dataContextListeners={},t.dataContextProperties){for(var a in t.updatingDataContext=!0,t.dataContextProperties){var o=t.dataContextProperties[a],s=o.name;if(o.propertyName=a,t.dataContextPropertiesMap[s]=a,w.cache["toDash"+a]||(w.cache["toDash"+a]=y.Core.toDash(s)),o.isEvent&&function(){var e=o.value;t.dataContextListeners[s]&&t.removeEventListener(s,t.dataContextListeners[s]),t.dataContextListeners[s]=function(t){n[e](t)},t.addEventListener(s,t.dataContextListeners[s])}(),s.indexOf(".")>=0){for(var l=s.split("."),c=n[l[0]],u=1;u<l.length;u++)c=c[l[u]];void 0!==c&&(t[a]=c)}else t[a]=n[s]}t.dataContextPropertyChangedHandler=function(e){var n=e.detail.properties;if(e.detail.dataContext===("string"==typeof t.dataContext?window[t.dataContext]||document[t.dataContext]:t.dataContext))for(var i in n){var r=t.dataContextPropertiesMap[i],a=t.context;
1r&&(t.context=document,t[r]=n[i].value,t.context=a)}},b.listen("dataContextPropertyChanged",t.dataContextPropertyChangedHandler),t.updatingDataContext=!1}else t.dataContextProperties=null}else{t.dataContextProperties=null;window.addEventListener("load",function e(){("string"==typeof t.dataContext?window[t.dataContext]||document[t.dataContext]:t.dataContext)&&(t.applyDataContext(),window.removeEventListener("load",e))})}}},{key:"updateDataContextProperty",value:function(e){var t=this,n="string"==typeof t.dataContext?window[t.dataContext]||document[t.dataContext]:t.dataContext,i=t.dataContextProperties[e];if(!t.updatingDataContext&&i.twoWay){var r=i.name;if(r.indexOf(".")>=0){for(var a=r.split("."),o=n[a[0]],s=1;s<a.length;s++)o=o[a[s]];void 0!==o&&(o=t[e],d[n._uid]&&(d[n._uid][e]=o))}else n[r]=t[e],d[n._uid]&&(d[n._uid][e]=n[r])}}},{key:"initProperties",value:function(){var e=this;if(Smart(e._selector)&&Smart(e._selector).properties&&(e._initProperties=Smart(e._selector).properties),e.hasAttribute("props")&&!e.props?e._initProperties=window[e.getAttribute("props")]:e.props&&(e._initProperties=e.props),e._initProperties)for(var t=Object.keys(e._initProperties),n=0;n<t.length;n++){var i=t[n],r=e._initProperties[i];if(r.constructor===Smart.ObservableArray||r instanceof Smart.ObservableArray)e[i]=r.toArray();else if(r.constructor===Smart.DataAdapter||"smartDataAdapter"===r.constructor.name||"object"==typeof r&&Smart.DataAdapter&&r instanceof Smart.DataAdapter||r instanceof Smart.Observable||r.constructor===Smart.Observable||"object"!=typeof r||y.Types.isArray(r)||r instanceof Date){if(void 0===e[i]&&-1===["onReady","onAttached","onDetached","onCreated","onCompleted"].indexOf(i)){var a=e.localize("propertyUnknownName",{name:i});e.log(a)}e[i]=r}else"messages"!==i&&"dataSourceMap"!==i?"object"==typeof r&&function t(n,i){for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a],s=n[o],l=e._properties[i+"_"+o];if(l&&null===l.value){if(void 0===e[i+"_"+o]){var c=e.localize("propertyUnknownName",{name:i+"_"+o});e.log(c)}e[i+"_"+o]=s}else if("object"==typeof s&&!y.Types.isArray(s)&&s&&s.constructor!==Date)t(s,i+"_"+o);else{if(void 0===e[i+"_"+o]){var u=e.localize("propertyUnknownName",{name:i+"_"+o});e.log(u)}e[i+"_"+o]=s}}}(r,i):e[i]=r}}},{key:"setProperties",value:function(e){for(var t=this,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i],a=e[r];if(a.constructor===Smart.ObservableArray||a instanceof Smart.ObservableArray)t[r]=a.toArray();else if(a.constructor===Smart.DataAdapter||"smartDataAdapter"===a.constructor.name||"object"==typeof a&&Smart.DataAdapter&&a instanceof Smart.DataAdapter||a instanceof Smart.Observable||a.constructor===Smart.Observable||"object"!=typeof a||y.Types.isArray(a)||a instanceof Date){if(void 0===t[r]&&-1===["onReady","onAttached","onDetached","onCreated","onCompleted"].indexOf(r))continue;var o=t._properties[r];t[r]="int"===o.type||"number"===o.type&&"string"==typeof subPropertyValue?"int"===o.type?parseInt(a):parseFloat(a):a}else"messages"!==r&&"dataSourceMap"!==r?"object"==typeof a&&function e(n,i){for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a],s=n[o],l=t._properties[i+"_"+o];if(l&&null===l.value){if(void 0===t[i+"_"+o])continue;var c=t._properties[i+"_"+o];t[i+"_"+o]="int"===c.type||"number"===c.type&&"string"==typeof s?"int"===c.type?parseInt(s):parseFloat(s):s}else if("object"==typeof s&&!y.Types.isArray(s)&&s&&s.constructor!==Date)e(s,i+"_"+o);else{if(void 0===t[i+"_"+o])continue;var u=t._properties[i+"_"+o];t[i+"_"+o]="int"===u.type||"number"===u.type&&"string"==typeof s?"int"===u.type?parseInt(s):parseFloat(s):s}}}(a,r):t[r]=a}}},{key:"setup",value:function(){var e=this;if(e.context=this,!e.isReady||e.isCompleted){if(e.isReady)return e._setModuleState("attached"),e.isAttached=!0,e.attached(),e._handleListeners("listen"),void(e.context=document);e.ownerElement&&e.ownerElement.detachedChildren.indexOf(e)>=0&&e.ownerElement.detachedChildren.splice(e.ownerElement.detachedChildren.indexOf(e),1),e.isReady=!0,e.methods=e.getStaticMember("methods"),e.initProperties(),l.isMobile&&e.classList.add("smart-mobile");for(var t=0;t<e.attributes.length;t+=1){var i=e.propertyByAttributeName[e.attributes[t].name];if(i){var r=e.$.getAttributeValue(i.attributeName,i.type),a=r?r.toString():"";if(!(a.indexOf("{{")>=0||a.indexOf("[[")>=0||"object"!==i.type&&"array"!==i.type&&(e.attributes[t].value.indexOf("{{")>=0||e.attributes[t].value.indexOf("[[")>=0)||void 0===r||i.value===r)){var o=y.Types.getType(r),s=e.attributes[t].value;
1if(("any"===i.type||"object"===i.type)&&""+e[i.name]===r)continue;if("array"===i.type&&e[i.name]&&JSON.stringify(e[i.name])===r)continue;if("number"===o&&isNaN(r)&&"NaN"!==s&&"Infinity"!==s&&"-Infinity"!==s){var c=e.localize("propertyInvalidValueType",{name:i.name,actualType:"string",type:i.type});e.log(c)}i.isUpdatingFromAttribute=!0,e[i.name]=r,i.isUpdatingFromAttribute=!1}}}for(var u in e._properties){var d=e._properties[u];if("innerHTML"===u&&d.value===d.defaultValue&&(d.value=d.defaultValue=y.Core.html(e)),"boolean"!==d.type&&"bool"!==d.type||"false"===e.getAttribute(d.attributeName)&&(d.isUpdating=!0,e.setAttribute(d.attributeName,""),d.isUpdating=!1),d.defaultReflectToAttribute&&d.reflectToAttribute){if(d.defaultReflectToAttribute&&d.defaultReflectToAttributeConditions){for(var h=!0,f=0;f<d.defaultReflectToAttributeConditions.length;f++){var p=d.defaultReflectToAttributeConditions[f],m=void 0,g=void 0;for(var v in p)m=v,g=p[v];e._properties[m]&&e._properties[m].value!==g&&(h=!1)}if(!h)continue}d.isUpdating=!0,e.$.setAttributeValue(d.attributeName,d.value,d.type),d.isUpdating=!1}}var b=[];if(e.children.length>0)for(var _=0;_<e.children.length;_++){var w=e.children[_];y.Extend(w).isCustomElement&&b.push(w)}e.applyTemplate(),e.complete=function(){if(!e.templateBindingsReady){var t=function(e){e.templateBindingsReady||(e.templateBindingsReady=!0,e.updateTextNodes(),e.updateBoundNodes())};if(e.ownerElement){for(var n=e.ownerElement,i=[];n;)i.push(n),n=n.ownerElement;for(var r=i.length-1;r>=0;r--)t(i[r]);t(e)}else t(e)}var a=function(){if(e._setModuleState("ready"),e.ready(),"auto"!==e.renderMode||e.isRendered||e.render(),e.isAttached=!0,e._setModuleState("attached"),e.attached(),e._handleListeners("listen"),e.isHidden||0!==e.offsetWidth&&0!==e.offsetHeight||(e.isHidden=!0),e.completed(),e.isRendered&&(e.context=document),e.whenReadyCallbacks){for(var t=0;t<e.whenReadyCallbacks.length;t++)e.whenReadyCallbacks[t]();e.whenReadyCallbacks=[]}};if(e.wait)e.classList.add("smart-visibility-hidden");else if(e.classList.contains("smart-async"))requestAnimationFrame(function(){a()});else{var o=e.shadowParent;e.shadowParent=null;var s=e.parents;if(e.shadowParent=o,0===s.length)return;var l=function(){for(var t=e.ownerElement,n=[];t;)n.push(t),t=t.ownerElement;for(var i=n.length-1;i>=0;i--)n[i].updateBoundMappedNodes()};e.ownerElement&&"HTML"!==s[s.length-1].nodeName?e.getRootNode().host?a():e.ownerElement&&"HTML"===e.ownerElement.parents[e.ownerElement.parents.length-1].nodeName?(l(),a()):e.checkIsInDomInterval=setInterval(function(){var t=e.parents;"HTML"===t[t.length-1].nodeName&&(clearInterval(e.checkIsInDomInterval),l(),a())},100):a()}};var k=[].slice.call(e.querySelectorAll("[smart-id]")).concat(b);if(window[n].EnableShadowDOM&&!0!==e.isInShadowDOM&&(k=[].slice.call(e.shadowRoot.querySelectorAll("[smart-id]")).concat(b)),0===k.length)e.complete();else{e._completeListeners=0;for(var C=function(t){var n=k[t];if(y.Extend(n).isCustomElement){var i=(function(){e._completeListeners--,0===e._completeListeners&&(e.complete(),delete e._completeListeners)}).bind(e);n.isCompleted||n.isUtilityElement||!0===n.wait||(e._completeListeners++,n._onCompleted||(n.completeHandlers=[],n._onCompleted=function(){for(var e=0;e<n.completeHandlers.length;e++)n.completeHandlers[e]()}),n.completeHandlers.push(i))}},x=0;x<k.length;x++)C(x);0===e._completeListeners&&e.complete()}}}},{key:"visibilityChangedHandler",value:function(){var e=this;e.isReady&&requestAnimationFrame(function(){0===e.offsetWidth||0===e.offsetHeight?e.isHidden=!0:(e.isHidden=!1,e.$.fireEvent("resize",e,{bubbles:!1,cancelable:!0}))})}},{key:"attributeChangedCallback",value:function(e,t,n){var i=this,r=i.propertyByAttributeName[e];if("class"!==e&&"style"!==e||i.visibilityChangedHandler(),r||i.attributeChanged(e,t,n),i.onAttributeChanged&&i.onAttributeChanged(e,t,n),!(!r||r&&r.isUpdating)){var a=i.$.getAttributeValue(r.attributeName,r.type);void 0!==n&&i[r.name]!==a&&(r.isUpdatingFromAttribute=!0,i[r.name]=void 0!==a?a:i._properties[r.name].defaultValue,r.isUpdatingFromAttribute=!1)}}},{key:"attributeChanged",value:function(e,t,n){}},{key:"hasStyleObserver",get:function(){return void 0===this._hasStyleObserver||this._hasStyleObserver},set:function(e){var t=this;void 0===t._hasStyleObserver&&(t._hasStyleObserver=e),e?u.watch(t):u.unwatch(t)}},{key:"attached",value:function(){var e=this;e.hasStyleObserver&&u.watch(e),e.onAttached&&e.onAttached(),Smart(e._selector)&&Smart(e._selector).attached&&Smart(e._selector).attached()}},{key:"detached",value:function(){var e=this;e.hasStyleObserver&&u.unwatch(e),e._setModuleState("detached"),e.isAttached=!1,e.ownerElement&&-1===e.ownerElement.detachedChildren.indexOf(e)&&e.ownerElement.detachedChildren.push(e),e._handleListeners("unlisten"),e.onDetached&&e.onDetached(),Smart(e._selector)&&Smart(e._selector).detached&&Smart(e._selector).detached(),h&&h[e._selector]&&delete h[e._selector]}}
1,{key:"propertyChangedHandler",value:function(e,t,n){var i=this;t!==n&&("theme"===e&&(""!==t&&i.classList.remove("smart-"+t),""!==n&&i.classList.add("smart-"+n)),"visibility"===e?("collapsed"===t?i.classList.remove("smart-hidden"):"hidden"===t&&i.classList.remove("smart-visibility-hidden"),"collapsed"===n?i.classList.add("smart-hidden"):"hidden"===n&&i.classList.add("smart-visibility-hidden")):("disabled"===e||"readonly"===e)&&i._ariaPropertyChangedHandler(e,n),i.propertyChanged&&i.propertyChanged(e,t,n))}},{key:"_ariaPropertyChangedHandler",value:function(e,t){var n=this;"readonly"===e&&-1===["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox"].indexOf(n.getAttribute("role"))||(t?n.setAttribute("aria-"+e,!0):n.removeAttribute("aria-"+e))}},{key:"_handleListeners",value:function(e){var t=this,n=t.tagName.toLowerCase(),i=function(i){var r=function(r){var a=r.split("."),o=a[0],s=t.$;if(a[1])if(o=a[1],s=t["$"+a[0]],"document"===a[0]){var l=t.smartId;""===l&&(l=y.Core.toCamelCase(n)),o=o+"."+l}else t.smartId&&(o=o+"."+t.smartId+"_"+t.parents.length);else t.smartId&&(o=o+"."+t.smartId);var c=i[r];s&&s[e](o,function(e){var n=t.context;t.context=t,t[c]&&t[c].apply(t,[e]),t.context=n})};for(var a in i)r(a)};i(t.getStaticMember("listeners")),i(t.templateListeners),Smart(t._selector)&&Smart(t._selector).properties&&i(Smart(t._selector).listeners)}},{key:"parseTemplate",value:function(){var e=this,n=e.template(),i=document.createDocumentFragment();if(t[e.nodeName]&&!r)return t[e.nodeName].cloneNode(!0);if(""===n)return null;var a=document.createElement("div");i.appendChild(a),a.innerHTML=n;var o=a.childNodes;a.parentNode.removeChild(a);for(var s=0;s<o.length;s++)i.appendChild(o[s]);return t[e.nodeName]=i,r?i:i.cloneNode(!0)}},{key:"applyTemplate",value:function(){var e=this,t=e.parseTemplate();if(t&&t.hasChildNodes){var n=t.childNodes[0],i=function(t,n){e["$"+t]=n.$=y.Extend(n),e.$[t]=n,n.ownerElement=e},r=n;if(n.getElementsByTagName("content").length>0){var a=n.getElementsByTagName("content")[0];(r=a.parentNode).removeChild(a)}else{var o=t.querySelectorAll("[inner-h-t-m-l]");o&&o.length>0&&(r=o[0])}e.$.template="template"===n.nodeName.toLowerCase()?n:n.querySelector("template");var s=t.querySelectorAll("[id]");0===s.length&&(s=t.querySelectorAll("*")),i("root",n),i("content",r),e.$.html=e.innerHTML.toString().trim();for(var l=0;l<s.length;l+=1){var c=s[l];""===c.id&&(c.id="child"+l),i(c.id,c),c.setAttribute("smart-id",c.id),e.shadowRoot?c.shadowParent=e:c.removeAttribute("id")}for(e.bindings=!1!==e.hasTemplateBindings?e.getBindings(t):[],e.$root.addClass("smart-container");e.childNodes.length;)r.appendChild(e.firstChild);if(e.appendTemplate(t),e.$.template){var u=document.createElement("div");u.classList.add("smart-template-container"),e.$.templateContainer=u,e.$.template.parentNode.insertBefore(u,e.$.template),e.refreshTemplate()}}}},{key:"refreshTemplate",value:function(){var e=this;if(e.$.templateContainer){e.templateDetached(e.$.templateContainer);var t=e.$.template.content.cloneNode(!0);e.templateBindings=e.getBindings(t),e.templateProperties=[];var n=document.createDocumentFragment();(function t(n,i,r){for(var a in n){var o=n[a],s=o.node.cloneNode();i.appendChild(s);var l=[],c=!1;if(o.data)for(var u in o.data){var d=o.data[u],h=d.name;if(e.templateProperties[h]=!0,s.removeAttribute(y.Core.toDash(u)),"*items"===u)l=e[h],c=!0;else if(h.indexOf("item.")>=0&&void 0!==r)d.value=r[h.substring(5)],s[u]=d.value;else if(h.indexOf("item")>=0&&void 0!==r)d.value=r,s[u]=d.value;else if("*if"===u)if(h.indexOf("(")>=0){var f=void 0,p=h.substring(h.indexOf("(")),m=h.substring(0,h.indexOf("("));if((p=(p=(p=p.substring(1,p.length-1)).replace(/ /gi,"")).split(",")).length>0&&""!==p[0]){for(var g=[],v=0;v<p.length;v++)g.push(e[p[v]]);f=e[m].apply(e,g)}else f=e[m]();!1===f&&i.removeChild(s)}else e[h]||i.removeChild(s);else e.updateBoundNode(s,o,e,h)}if(l.length>0||c){for(var b=0;b<l.length;b++)o.children&&t(o.children,s,l[b]);if("number"==typeof l)for(var _=0;_<l;_++)o.children&&t(o.children,s,_)}else o.children&&t(o.children,s,r)}})(e.templateBindings.children,n),e.$.templateContainer.innerHTML="",e.$.templateContainer.appendChild(n),e.templateAttached(e.$.templateContainer)}}},{key:"templateAttached",value:function(){}},{key:"templateDetached",value:function(){}},{key:"appendTemplate",value:function(e){this.appendChild(e)}},{key:"defineElementModules",value:function(){var e=this,t=e.constructor.prototype;if("BaseElement"===t.elementName){t.modules=e.constructor.modules;for(var n=t.modules,i=0;i<n.length;i+=1)e.addModule(n[i])}else{var r=t.modules;if(!r)return;for(var a=0;a<r.length;a+=1){var o=r[a],s=o.prototype;e.defineElementMethods(s.methodNames,s),e.defineElementProperties(o.properties)}}}},{key:"watch",value:function(e,t){this._watch=null!==e&&null!==t?{properties:e,propertyChangedCallback:t}:null}},{key:"unwatch",value:function(){this._watch=null}},{key:"set",value:function(e,t,n){var i=this,r=i.context;i.context=!0===n?document:i,i[e]=t,i.context=r}},{key:"get",value:function(e){return this[e]}},{key:"_setModuleState",value:function(e,t){for(var n="is"+e.substring(0,1).toUpperCase()+e.substring(1),i="on"+e.substring(0,1).toUpperCase()+e.substring(1),r=0;r<this.modulesList.length;r++){var a=this.modulesList[r];a[n]=!0,a[e]&&a[e](t),a[i]&&a[i](t)}}},{key:"addModule",value:function(e,t){var n=this;if(e){var i=n.modules.slice(0),r=e.prototype,a=Object.getPrototypeOf(e);if(a.name&&a.name!==e.name&&n.addModule(a),!e.moduleName&&e.name&&(e.moduleName=e.name),-1===i.findIndex(function(t){return e.moduleName===t.moduleName})&&i.push(e),n.defineModule(e),n.defineElementMethods(r.methodNames,r),n.defineElementProperties(e.properties),n.constructor.prototype.modules=i,t)for(var o in Smart.Elements.tagNames){for(var s=Smart.Elements.tagNames[o],l=Object.getPrototypeOf(s),c=[];l!==HTMLElement;)c.push(l.prototype),l=Object.getPrototypeOf(l);c.indexOf(n)>=0&&s!==n&&s.prototype.addModule(e)}}}},{key:"defineModule",value:function(e){if(!e.isDefined){e.prototype._initModule=function(e){this.ownerElement=e};var t=e.properties||{},n=Object.keys(t),i=Object.getOwnPropertyNames(e.prototype);e.prototype.methodNames=i;for(var r=function(i){var r=n[i],a=t[r];Object.defineProperty(e.prototype,r,{configurable:!1,enumerable:!0,get:function(){return this.ownerElement?this.ownerElement[r]:a.value},set:function(e){this.ownerElement[r]=e}})},a=0;a<n.length;a+=1)r(a);e.isDefined=!0}}},{key:"getStaticMember",value:function(e,t){var i=window[n][this.elementName],r=i[e];t||(t="");for(var a="array"===t?[]:"string"===t?"":{},o=Object.getPrototypeOf(i),s=[];o[e];
1)s.push(o[e]),o=Object.getPrototypeOf(o);for(var l=s.length-1;l>=0;l--)if("array"===t)for(var c=0;c<s[l].length;c++)-1===a.indexOf(s[l][c])&&a.push(s[l][c]);else"string"===t?-1===a.indexOf(s[l])&&(a+=s[l]):a=y.Core.assign(a,s[l]);if("array"===t){for(var u=0;u<r.length;u++)-1===a.indexOf(r[u])&&a.push(r[u]);return a}return"string"===t?(-1===a.indexOf(r)&&(a+=r),a):y.Core.assign(a,r)}},{key:"defineElementHierarchicalProperties",value:function(e,t){var n=[];!function(e){for(var i=Object.keys(e),r=0;r<i.length;r++){var a=i[r];if("messages"!==a){var o=e[a],s=Object.keys(o),l=s.indexOf("value")>=0&&s.indexOf("type")>=0&&"object"==typeof o.value;("propertyObject"===o.type||l)&&function e(i,r){if(i.value)for(var a=Object.keys(i.value),o=function(o){var s=a[o],l=i.value[s],c=r+"_"+s;if("object"!=typeof l||null===l)return"break";var u=Object.keys(l);if(!(u.indexOf("value")>=0&&u.indexOf("type")>=0))return"break";if("array"!==i.type&&(i.isHierarchicalProperty=!0),l.parentPropertyName=r,t){var d=t._properties[c];if(i.value.hasOwnProperty(s)){if(d.isDefined)return"continue";delete i.value[s]}d.isDefined=!0,Object.defineProperty(i.value,s,{configurable:!1,enumerable:!0,get:function(){return t._properties[c].value},set:function(e){t.updateProperty(t,t._properties[c],e)}})}n[c]||(n[c]=l,n.length++),("propertyObject"===l.type||"object"==typeof l.value&&"array"!==l.type)&&e(t?t._properties[c]:l,c)},s=0;s<a.length;s++){var l=o(s);if("break"===l)break}}(o,a)}}}(e),n.length>0&&!t&&this.defineElementProperties(n)}},{key:"defineElement",value:function(){var e=this,t=e.constructor.prototype,n=e.getStaticMember("properties"),i=Object.getOwnPropertyNames(t);t.extendedProperties={},t.boundProperties={},t.templateListeners={},e.defineElementModules(),e.defineElementMethods(i,t),e.defineElementProperties(n),e.defineElementHierarchicalProperties(e.extendedProperties),t._initElement=function(){var e=this,n=t.extendedProperties,i=Object.keys(n),r=e.modules;e.$=y.Extend(e),e.$document=b,e.smartId=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase(),e.isCreated||(e.modulesList=[],e._properties=[],e._beforeCreatedProperties&&(e._properties=e._beforeCreatedProperties,delete e._beforeCreatedProperties),e.detachedChildren=[],e.propertyByAttributeName=[]);for(var a=0;a<r.length;a+=1){var o=new(0,r[a]);o._initModule(e),e.modulesList.push(o)}for(var s=function(t){var r=i[t],a=n[r],o=a.value;if(e._properties[r]){if(void 0!==e._properties[r].notify)return"continue";delete e._properties[r]}if(M&&"innerHTML"===r&&delete e[r],-1===window.navigator.userAgent.indexOf("PhantomJS")&&e.hasOwnProperty(r)&&(o=e[r],delete e[r]),"array"===a.type&&null!=o&&(o=o.slice(0)),"object"===a.type&&null!=o&&(o=Array.isArray(o)?o.slice(0):Object.assign({},o)),e._properties[r]={name:r,notify:a.notify,allowedValues:a.allowedValues,type:a.type,nullable:a.nullable,reflectToAttribute:a.reflectToAttribute,defaultReflectToAttribute:a.defaultReflectToAttribute,defaultReflectToAttributeConditions:a.defaultReflectToAttributeConditions,value:o,readOnly:a.readOnly,defaultValue:o,attributeName:a.attributeName,observer:a.observer,inherit:a.inherit,extend:a.extend,validator:a.validator},e.propertyByAttributeName[a.attributeName]=e._properties[r],!a.hasOwnProperty("type")){var s=e.localize("propertyUnknownType",{name:r});e.log(s)}if("any"===a.type||"propertyObject"===a.type)return"continue";var l=y.Types.getType(o);if(null!=o&&a.type!==l&&!a.validator){if("object"===a.type&&"array"===l)return"continue";if("number"===l&&["integer","int","float"].findIndex(function(e){return e===a.type})>=0)return"continue";var c=e.localize("propertyInvalidValueType",{name:r,actualType:l,type:a.type});e.log(c)}},l=0;l<i.length;l+=1)s(l);e.defineElementHierarchicalProperties(e._properties,e),e.isCreated=!0},t.registered()}},{key:"defineElementMethods",value:function(e,t){var n=this.constructor.prototype,i=["constructor","ready","created","render","attached","detached","appendChild","insertBefore","removeChild","connect","disconnectedCallback","connectedCallback","attributeChangedCallback","propertyChangedH
1andler","enableShadowDOM","isInShadowDOM","addPropertyBindings"],r=function(r){var a=e[r];a.startsWith("_")||void 0!==i.find(function(e){return e===a})||n.extendedProperties[a]||y.Types.isFunction(t[a])&&(n[a]=function(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){if(!this.isReady&&"localize"!==t&&"localize"!==t&&"cloneNode"!==t&&"importStyle"!==t&&"log"!==t&&"parseAttributes"!==t){var i=this.localize("elementNotInDOM");this.log(i)}for(var r=this,a=0;a<this.modulesList.length;a++){var o=this.modulesList[a];if(t in o){r=o;break}}var s=this.context,l=n.concat(Array.prototype.slice.call(arguments)),c=null,u=function(e,t){return e===t||"number"===e&&("int"===t||"integer"===t||"float"===t)||"bool"===e&&"boolean"===t||"boolean"===e&&"bool"===t||"object"===e&&"any"===t||void 0};if(this.methods){var d=this.methods[t];if(d){var h=d.split(":");c=h[h.length-1].trim();for(var f=[],p=d.substring(1+d.indexOf("("),d.lastIndexOf(")")).split(","),m="",g=0;g<p.length;g++){var v=p[g];m+=v,v.indexOf(":")>=0?(f.push(m),m=""):m+=","}for(var b=f.length,_=0;_<f.length;_++){var w=f[_].trim().split(":"),k=w[0].split("=")[0].trim().indexOf("?")>=0,C=w[1].indexOf("?")>=0,x=w[1].replace(/\?/gi,"").trim(),S=x.split("|"),M=w[0].split("=")[1],D=y.Types.getType(l[_]);if(void 0===l[_]&&M){switch(M=M.trim(),x[0]){case"date":var T=M.substring(M.indexOf("(")+1,M.lastIndexOf(")"));M=0===(T=T.length>0?T.split(",").map(function(e){return parseInt(e)}):[]).length?new Date:new Date(T[0],T[1],T[2]);break;case"bool":case"boolean":M="true"===M||"1"===M;break;case"int":case"integer":M=parseInt(M);break;case"float":case"number":M=parseFloat(M);break;case"any":case"object":M=M.indexOf("{")>=0?JSON.parse(M):M}l.push(M)}else k&&b--;if(x!==D&&D){for(var E=!0,A=0;A<S.length;A++)if(u(D,S[A])){E=!1;break}if(E&&(null!==l[_]||!C)){var P=this.localize("methodInvalidValueType",{name:t,actualType:D,type:x,argumentIndex:_});this.log(P)}}if(l.length<b){var L=this.localize("methodInvalidArgumentsCount",{name:t,actualArgumentsCount:l.length,argumentsCount:b});this.log(L)}}}}this.context=this;var O=e.apply(r,l);if(c){var I=void 0===y.Types.getType(O)?"void":y.Types.getType(O);if(!u(I,c)){var H=this.localize("methodInvalidReturnType",{name:t,actualType:I,type:c});this.log(H)}}return this.context=s,O}}(t[a],a))};for(var a in e)r(a)}},{key:"defineElementProperties",value:function(e){if(e){var t=this,n=t.constructor.prototype,i=Object.keys(e),r=t.getStaticMember("properties");Object.assign(n.extendedProperties,e),t.updateProperty=function(e,t,n){var i=e;if(t&&!t.readOnly){if(t.allowedValues){for(var r=!1,a=0;a<t.allowedValues.length;a++)if(t.allowedValues[a]===n){r=!0;break}if(!r){var o=JSON.stringify(t.allowedValues).replace(/\[|\]/gi,"").replace(",",", ").replace(/"/gi,"'"),s=i.localize("propertyInvalidValue",{name:t.name,actualValue:"'"+n+"'",value:o});return void i.log(s)}}var l=t.name,c=i._properties[l].value;if(t.validator&&i[t.validator]){var u=i.context;i.context=i;var d=i[t.validator](c,n);void 0!==d&&(n=d),i.context=u}if(c!==n){if(i.propertyChanging){var h=i.propertyChanging(l,c,n);if(!1===h||null===h)return}if(!t.hasOwnProperty("type")){var f=i.localize("propertyUnknownType",{name:l});i.log(f)}if("array"!==t.type||JSON.stringify(c)!==JSON.stringify(n)){if(null!=n&&"any"!==t.type&&"propertyObject"!==t.type&&t.type!==y.Types.getType(n)&&!t.validator||null===n&&!t.nullable){var p=!0;if("object"===t.type&&"array"===y.Types.getType(n)&&(p=!1),"number"===y.Types.getType(n)&&["integer","int","float"].findIndex(function(e){return e===t.type})>=0&&(p=!1),p){var m=i.localize("propertyInvalidValueType",{name:l,actualType:y.Types.getType(n),type:t.type});return void i.error(m)}}if(t.isUpdating=!0,t.isHierarchicalProperty){!function e(t,n){for(var r=Object.keys(t),a=0;a<r.length;a++){var o=r[a],s=t[o];"object"==typeof s&&!y.Types.isArray(s)&&s&&s.constructor!==Date?e(s,n+"_"+o):i[n+"_"+o]=s}}(n,l)}else i._properties[l].value=n;if(!t.isUpdatingFromAttribute&&t.reflectToAttribute&&i.$.setAttributeValue(t.attributeName,n,t.type),i.isReady&&(!i.ownerElement||i.ownerElement&&i.ownerElement.isReady)){if
1("wait"===l&&(n||!c||i.isCompleted||(i.classList.remove("smart-visibility-hidden"),i.ownerElement&&i.ownerElement.updateBoundMappedNodes(),i.updateBoundMappedNodes(),i.complete())),"renderMode"===l)return;if(i.context!==i&&!i.wait){var g=i.context;i.context=i,i.propertyChangedHandler(l,c,n),i.context=g,t.observer&&i[t.observer]&&(i.context=i,i[t.observer](c,n),i.context=document),i._watch&&i._watch.properties.indexOf(l)>=0&&i._watch.propertyChangedCallback(l,c,n)}var v=t.notify||i.boundProperties[l];v&&(i.$.fireEvent(t.attributeName+"-changed",{context:i.context,oldValue:c,value:i[l]}),i.boundProperties[l]&&i.updateBoundNodes(l)),v&&i.templateProperties&&i.templateProperties[l]&&i.refreshTemplate(),i.dataContextProperties&&("dataContext"===l?i.applyDataContext():i.dataContextProperties[l]&&i.updateDataContextProperty(l))}t.isUpdating=!1}}}};for(var a=function(t){var a=i[t],o=e[a],s=y.Core.toDash(a),l=o.type||"any",c=l.indexOf("?")>=0||"any"===l;c&&"any"!==l&&(o.type=l.substring(0,l.length-1)),o.nullable=c,o.attributeName=s.toLowerCase(),o.name=a,o.reflectToAttribute=void 0===o.reflectToAttribute||o.reflectToAttribute,o.inherit&&r[a]&&(o.value=r[a].value),o.extend&&r[a]&&y.Core.assign(o.value,r[a].value),n.hasOwnProperty(a)||Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:function(){if(this._properties[a])return this._properties[a].value},set:function(e){var t=this;t.updateProperty(t,t._properties[a],e)}})},o=0;o<i.length;o+=1)a(o)}}}],[{key:"properties",get:function(){return{animation:{value:"advanced",type:"string",allowedValues:["none","simple","advanced"]},unfocusable:{value:!1,type:"boolean"},disabled:{value:!1,type:"boolean"},dataContext:{value:null,reflectToAttribute:!1,type:"any"},debugMode:{value:!0,type:"boolean",reflectToAttribute:!1},locale:{value:"en",type:"string",reflectToAttribute:!1},localizeFormatFunction:{value:void 0,type:"function",reflectToAttribute:!1},messages:{value:{en:{propertyUnknownName:"Invalid property name: '{{name}}'!",propertyUnknownType:"'{{name}}' property is with undefined 'type' member!",propertyInvalidValue:"Invalid '{{name}}' property value! Actual value: '{{actualValue}}', Expected value: '{{value}}'!",propertyInvalidValueType:"Invalid '{{name}}' property value type! Actual type: '{{actualType}}', Expected type: '{{type}}'!",methodInvalidValueType:"Invalid '{{name}}' method argument value type! Actual type: '{{actualType}}', Expected type: '{{type}}' for argument with index: '{{argumentIndex}}'!",methodInvalidArgumentsCount:"Invalid '{{name}}' method arguments count! Actual arguments count: '{{actualArgumentsCount}}', Expected at least: '{{argumentsCount}}' argument(s)!",methodInvalidReturnType:"Invalid '{{name}}' method return type! Actual type: '{{actualType}}', Expected type: '{{type}}'!",elementNotInDOM:"Element does not exist in DOM! Please, add the element to the DOM, before invoking a method.",moduleUndefined:"Module is undefined.",missingReference:"{{elementType}}: Missing reference to '{{files}}'.",htmlTemplateNotSuported:"{{elementType}}: Web Browser doesn't support HTMLTemplate elements.",invalidTemplate:"{{elementType}}: '{{property}}' property accepts a string that must match the id of an HTMLTemplate element from the DOM."}},reflectToAttribute:!1,inherit:!0,type:"object"},props:{value:null,reflectToAttribute:!1,isHierarchicalProperty:!0,type:"any"},readonly:{value:!1,type:"boolean"},renderMode:{value:"auto",type:"string",reflectToAttribute:!1,allowedValues:["auto","manual"]},rightToLeft:{value:!1,type:"boolean"},rethrowError:{value:!0,type:"boolean",reflectToAttribute:!1},theme:{value:window[n].Theme,type:"string"},visibility:{value:"visible",allowedValues:["visible","collapsed","hidden"],type:"string"},wait:{value:!1,type:"boolean"}}}},{key:"clearCache",value:function(){this.cache={}}},{key:"requires",get:function(){return{}}},{key:"listeners",get:function(){return{"theme-changed":function(e){this.theme=e.detail.newValue}}}},{key:"methods",get:function(){return{}}},{key:"modules",get:function(){return window[n].Modules}},{key:"version",get:function(){return window[n].Version}}]),a}(_wrapNativeSuper(HTMLElement)),C=[],x=[],S=[],M=!1,D=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);D&&parseInt(D[2],10)<=50&&(M=!0);var T=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"register",value:function(e,t){var i=t.prototype,r=l.toCamelCase(e).replace(/[a-z]+/,""),a=t.version||window[n].Version;if(!window.customElements.get(e)||window.customElements.get(e).version!==a){var o=e;for(a=a.split(".");window.customElements.get(e);)e=o+"-"+a.join("."),a[2]=parseInt(a[2])+1;if(!C[e]){if(e.startsWith(n.toLowerCase()))C[e]=window[n][r]=window[n.toLowerCase()+r]=t;else{var s=e.split("-")[0];s=s.substring(0,1).toUpperCase()+s.substring(1),window[n][s]||(window[n][s]={}),C[e]=window[n][s][r]=window[s.toLowerCase()+r]=t,window[n][r]&&(r=l.toCamelCase(e)),window[n][r]=t}i.elementName=r,i.defineElement(),x[e]&&x[e](i),window.customElements.define(e,t)}}}},{key:"registerElements",value:function(){var e=this;
1if(e.toRegister){e.isRegistering=!0;for(var t=0;t<e.toRegister.length;t++){var n=e.toRegister[t];e.register(n.tagName,n.element)}e.isRegistering=!1}}},{key:"get",value:function(e){if(C[e])return C[e]}},{key:"whenRegistered",value:function(e,t){if(!e)throw new Error("Syntax Error: Invalid tag name");var n=x[e],i=this.get(e),r=i?i.modules.length:3;try{n||i?!n&&i?(t(i.prototype),x[e]=void 0):n&&!i?x[e]=function(e){n(e),t(e)}:n&&i&&(i.proto&&(n(i.proto),t(i.proto)),x[e]=void 0):x[e]=function(e){try{t(e)}catch(e){var n=e instanceof Error?e.message:e.toString();console.log(n)}}}catch(e){var a=e instanceof Error?e.message:e.toString();console.log(a)}if(i&&r!==i.prototype.modules.length)for(var o=document.querySelectorAll(e),s=0;s<o.length;s++){var l=o[s];l.isCreated&&l._initElement()}}}]),e}();T.lazyRegister=!1,T.tagNames=[];var E=function(){function e(){_classCallCheck(this,e);var t=this;t.name="observableArray",t.observables=arguments.length<3?null:arguments[2];var n=new Proxy(t,{deleteProperty:function(e,t){return delete e[t],!0},apply:function(e,t,n){return e.apply(t,n)},get:function(e,n){return e[n]||isNaN(parseInt(n))?e[n]:t.getItem(parseInt(n))},set:function(e,n,i){return e[n]||isNaN(parseInt(n))?(e[n]=i,!0):(t.setItem(parseInt(n),i),!0)}});if(t._addArgs={eventName:"change",object:n,action:"add",index:null,removed:new Array,addedCount:1},t._removeArgs={eventName:"change",object:n,action:"remove",index:null,removed:null,addedCount:0},arguments.length>=1&&Array.isArray(arguments[0])){t._array=[];for(var i=arguments[0],r=0,a=i.length;r<a;r++){var o=t._getItem(t._array.length,i[r]);t._array.push(o)}}else t._array=Array.apply(null,arguments);return 2===arguments.length&&(t.notifyFn=arguments[1]),n}return _createClass(e,[{key:"canNotify",get:function(){var e=this;return void 0===e._canNotify&&(e._canNotify=!0),e._canNotify},set:function(e){this._canNotify=e}},{key:"_notify",value:function(e){var t=this;t.canNotify&&t.notifyFn&&t.notifyFn(e)}},{key:"notify",value:function(e){e&&(this.notifyFn=e)}},{key:"toArray",value:function(){return this._array}},{key:"_getItem",value:function(e,t){var n=this;return"string"==typeof t||"number"==typeof t||void 0===t?t:new Proxy(t,{deleteProperty:function(e,t){return delete e[t],!0},set:function(t,i,r){var a=t[i];return t[i]=r,!n._canNotify||!1===t.canNotify||(n.observables&&!n.observables[i]||n._notify({eventName:"change",object:n,target:t,action:"update",index:e,path:e+"."+i,oldValue:a,newValue:r,propertyName:i}),!0)}})}},{key:"getItem",value:function(e){return this._array[e]}},{key:"setItem",value:function(e,t){var n=this,i=n._array[e];n._array[e]=n._getItem(e,t),n._notify({eventName:"change",object:n._array,action:"update",index:e,removed:[i],addedCount:1})}},{key:"length",get:function(){return this._array.length},set:function(e){var t=this;a.isNumber(e)&&t._array&&t._array.length!==e&&t.splice(e,t._array.length-e)}},{key:"toString",value:function(){return this._array.toString()}},{key:"toLocaleString",value:function(){return this._array.toLocaleString()}},{key:"concat",value:function(){var e=this;e._addArgs.index=e._array.length;var t=e._array.concat.apply(e._array,arguments);return new Smart.ObservableArray(t)}},{key:"join",value:function(e){return this._array.join(e)}},{key:"pop",value:function(){var e=this;e._removeArgs.index=e._array.length-1,delete e[e._array.length-1];var t=e._array.pop();return e._removeArgs.removed=[t],e._notify(e._removeArgs),e._notifyLengthChange(),t}},{key:"push",value:function(){var e=this;if(e._addArgs.index=e._array.length,1===arguments.length&&Array.isArray(arguments[0]))for(var t=arguments[0],n=0,i=t.length;n<i;n++){var r=e._getItem(e._array.length,t[n]);e._array.push(r)}else{var a=e._getItem(e._addArgs.index,arguments[0]);e._array.push.apply(e._array,[a])}return e._addArgs.addedCount=e._array.length-e._addArgs.index,e._notify(e._addArgs),e._notifyLengthChange(),e._array.length}},{key:"_notifyLengthChange",value:function(){var e=this;if(e.canNotify){var t=e._createPropertyChangeData("length",e._array.length);e._notify(t)}}},{key:"_createPropertyChangeData",value:function(e,t,n){return{eventName:"change",object:this,action:e,value:t,oldValue:n}}},{key:"reverse",value:function(){return this._array.reverse()}},{key:"shift",value:function(){var e=this,t=e._array.shift();return e._removeArgs.index=0,e._removeArgs.removed=[t],e._notify(e._removeArgs),e._notifyLengthChange(),t}},{key:"slice",value:function(e,t){return this._array.slice(e,t)}},{key:"sort",value:function(e){return this._array.sort(e)}},{key:"splice",value:function(e,t,n){var i,r=this,a=r._array.length;if(n&&n.length)for(var o=0;o<n.length;o++)i=r._array.splice(e+o,t,n[o]);else i=r._array.splice.apply(r._array,arguments);if(n){var s=r.canNotify;if(r.canNotify=!1,n.length)for(var l=0;l<n.length;l++)r.setItem(e+l,n[l]);else r.setItem(e,n);r.canNotify=s,r._notify({eventName:"change",object:this,action:"add",index:e,added:i,addedCount:r._array.length>a?r._array.length-a:0})}else r._notify({eventName:"change",object:this,action:"remove",index:e,removed:i,addedCount:r._array.length>a?r._array.length-a:0});return r._array.length!==a&&r._notifyLengthChange(),i}},{key:"unshift",value:function(){var e=this,t=e._array.length,n=e._array.unshift.apply(e._array,arguments);return e._addArgs.index=0,e._addArgs.addedCount=n-t,e._notify(this._addArgs),e._notifyLengthChange(),n}},{key:"indexOf",value:function(e,t){for(var n=t||0,i=this._array.length;n<i;n++)if(this._array[n]===e)return n;return-1}},{key:"lastIndexOf",value:function(e,t){for(var n=t||this._array.length-1;n>=0;n--)if(this._array[n]===e)return n;return-1}},{key:"find",value:function(e,t){return this._array.find(e,t)}},{key:"findIndex",value:function(e,t){return this._array.findIndex(e,t)}},{key:"every",value:function(e,t){return this._array.every(e,t)}},{key:"some",value:function(e,t){return this._array.some(e,t)}}
1,{key:"forEach",value:function(e,t){this._array.forEach(e,t)}},{key:"map",value:function(e,t){return this._array.map(e,t)}},{key:"filter",value:function(e,t){return this._array.filter(e,t)}},{key:"reduce",value:function(e,t){return void 0!==t?this._array.reduce(e,t):this._array.reduce(e)}},{key:"reduceRight",value:function(e,t){return void 0!==t?this._array.reduceRight(e,t):this._array.reduceRight(e)}},{key:"move",value:function(e,t){this.splice(t,0,this.splice(e,1)[0])}}]),e}(),A={};window[n]&&(A=window[n]),window[n]=function(e,t){var i=e;if(e){if(e.indexOf("#")>=0||e.indexOf(".")>=0)return h[e]?h[e]:t?(h[e]=new t,function(e,t){var n=t.properties;t._properties=[];(function n(i,r){for(var a=Object.keys(i),o=function(o){var s=a[o],l=i[s];t._properties[r+s]=l,Array.isArray(l)?t._properties[r+s]=new E(l,function(t){var n=s+"."+t.path,i=t.newValue,r=document.querySelector(e);if(r){for(var a=n.split("."),o=r,l=0;l<a.length;l++)o=o[a[l]];o=i}}):(Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:function(){return t._properties[r+s]},set:function(e){t._properties[r+s]=e}}),l&&"DataAdapter"===l.constructor.name||l&&"object"==typeof l&&Smart.DataAdapter&&l instanceof Smart.DataAdapter||"object"==typeof l&&l&&Object.keys(l).length>0&&n(l,r+s+"."))},s=0;s<a.length;s++)o(s)})(n,""),Object.defineProperty(t,"properties",{configurable:!1,enumerable:!0,get:function(){return n}});var i=document.querySelector(e);if(i&&i.isReady)for(var r in n)i[r]=n[r];else if(i)for(var a in i.props={},n)i.props[a]=n[a]}(e,h[e]),h[e]):void 0;if(t){if(T.tagNames[e]=t,T.lazyRegister){T.toRegister||(T.toRegister=[]);var r=l.toCamelCase(i).replace(/[a-z]+/,"");return window[n][r]=t,void T.toRegister.push({tagName:i,element:t})}T.register(i,t)}}},window.addEventListener("load",function(){var e=window[n].Elements.tagNames,t=[];for(var i in e){for(var r=e[i],a=document.querySelectorAll("["+i+"]"),o=0;o<a.length;o++){var s=a[o];s instanceof HTMLDivElement&&(s.__proto__=r.prototype,s.created(),s.connectedCallback()),s.classList.add("smart-element-ready")}var l=r.name;"Item"===l&&(l="ListItem"),a=document.querySelectorAll('[is="'+n.toLocaleLowerCase()+l+'"]');for(var c=0;c<a.length;c++)t.push(a[c])}if(t.length>0){var u=function(e){for(var t=[],n=e.parentNode;n&&9!==n.nodeType;)n instanceof HTMLElement==1&&t.push(n),n=n.parentNode;return t};t.sort(function(e,t){var n=u(e).length,i=u(t).length;return n<i?1:n>i?-1:0});for(var d=0;d<t.length;d++){var h=t[d],f=h.getAttribute("is");("smartItem"===f?new window.smartListItem(h):new window[f](h)).removeAttribute("is")}}});var P=function e(){if("complete"===document.readyState&&"manual"!==window[n].RenderMode){S.sort(function(e,t){var n=e.element.parents.length,i=t.element.parents.length;return n<i?-1:n>i?1:0});for(var t=0;t<S.length;t++)window[n].RenderMode="",S[t].element.isLoading=!1,S[t].callback(),window[n].RenderMode="";S=[],document.removeEventListener("readystatechange",e)}};Object.assign(window[n],{Elements:T,Modules:[],BaseElement:function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var r;_classCallCheck(this,i);var a=_assertThisInitialized(r=t.call(this));if(e){n&&(a._initProperties=n);var o=function(e){if("string"==typeof e?document.querySelector(e):e){var t="string"==typeof e?document.querySelector(e):e;if(t instanceof HTMLDivElement){var i,r=document.createElement(a.tagName),o=_createForOfIteratorHelper(t.attributes);try{for(o.s();!(i=o.n()).done;){var s=i.value;r.setAttribute(s.name,t.getAttribute(s.name))}}catch(h){o.e(h)}finally{o.f()}for(;t.childNodes.length;)r.appendChild(t.firstChild);return"string"==typeof e&&(r.id=e.substring(1)),r._initProperties=n,t.parentNode&&t.parentNode.replaceChild(r,t),r}if(n){var l=t.context;if(t._initProperties=n,t.isReady){t.context=t;var c={},u={};for(var d in n)c[d]=t[d],u[d]=n[d];Object.getOwnPropertyNames(n).length>0&&(t.initProperties(),t.propertyChangedHandler(n,c,u)),t.context=l}}return t}};if("string"==typeof e){var s=document.querySelectorAll(e),l=[];if(s.length>1){for(var c=0;c<s.length;c++){var u=o(s[c]);l.push(u)}return _possibleConstructorReturn(r,l)}}else if(e&&e.length>0){var d=e;if(d.length>1){for(var h=0;h<d.length;h++){var f=o(d[h]);C.push(f)}return _possibleConstructorReturn(r,C)}}return _possibleConstructorReturn(r,o(e))}return a._styleUrl="",a.isUtilityElement||a.created(),r}return _createClass(i,[{key:"styleUrl",get:function(){return this._styleUrl},set:function(e){this._styleUrl=e}},{key:"isInShadowDOM",get:function(){var e=this,t=e.getRootNode();return!e.hasAttribute("smart-blazor")&&t!==document&&t!==e}},{key:"getShadowRootOrBody",value:function(){var e=this;return e.isInShadowDOM&&e.getRootNode().host?e.getRootNode().host.shadowRoot:document.body}},{key:"enableShadowDOM",get:function(){return window[n].EnableShadowDOM}},{key:"importStyle",value:function(e,t){this._importStyle(e,t)}},{key:"_importStyle",value:function(e,t){var n=this;if(n.shadowRoot&&e){var i=function(e){for(var i=n.shadowRoot.children,r=0;r<i.length;r++){var a=i[r];if(a instanceof HTMLLinkElement&&a.href===e)return t&&t(),null}var o=document.createElement("link");return o.rel="stylesheet",o.type="text/css",o.href=e,o.onload=t,o},r=function(){for(var e=n.shadowRoot.children,t=null,i=0;i<e.length;i++){var r=e[i];r instanceof HTMLLinkElement&&(t=r)}return t}(),a=function(e,t){t.parentNode.insertBefore(e,t.nextSibling)};if(Array.isArray(e)){for(var o=document.createDocumentFragment(),s=0;s<e.length;s++){var l=i(e[s]);l&&o.appendChild(l)}r?a(o,r):n.shadowRoot.insertBefore(o,n.shadowRoot.firstChild)}else{var c=i(e);if(!c)return;r?a(c,r):n.shadowRoot.insertBefore(c,n.shadowRoot.firstChild)}}}},{key:"attributeChanged",value:function(e,t,n){"style-url"===e&&(this.styleUrl=n)}},{key:"attributeChangedCallback",value:function(e,t,n){this.isReady&&_get(_getPrototypeOf(i.prototype),"attributeChangedCallback",this).call(this,e,t,n)}},{key:"_getRootShadowParent",value:function(){for(var e=this.shadowParent;e;){if(!e.shadowParent)return e;e=e.shadowParent}return e||this.shadowParent}},{key:"_getStyleUrl",value:function(e){var t=y.Core.getScriptLocation()+window[n].StyleBaseUrl+e;return this.shadowParent&&(t=t.replace("scoped/","")),t}},{key:"_getStyleUrls",value:function(){var e=this;e.nodeName.startsWith(n);for(var t=e.getStaticMember("styleUrls","array"),i=[],r=0;r<t.length;
1r++){var a=e._getStyleUrl(t[r]);i.push(a)}return i}},{key:"_setupShadowRoot",value:function(){var e=this;e.classList.add("smart-element-init");var t=function(t){t.$.root&&(t.$.root.classList.add(n.toLowerCase()+"-element"),t.$.root.classList.add(e.nodeName.toLowerCase())),t.setup(),t.classList.remove("smart-element-init")};if(document.adoptedStyleSheets)if(window[n].AdoptedStyleSheets)window[n].AdoptedStyleSheetsLoaded?(e.shadowRoot.adoptedStyleSheets=window[n].AdoptedStyleSheets,t(e)):(e.shadowRoot.adoptedStyleSheets=window[n].AdoptedStyleSheets,window[n].AdoptedStyleSheetsLoadedQueue||(window[n].AdoptedStyleSheetsLoadedQueue=[]),window[n].AdoptedStyleSheetsLoadedQueue.push(e));else{var i=new CSSStyleSheet,r=y.Core.getScriptLocation()+"/styles/smart.default.css";i.replace('@import url("'+r+'")').then(function(){if(t(e),window[n].AdoptedStyleSheetsLoaded=!0,window[n].AdoptedStyleSheetsLoadedQueue){for(var i=window[n].AdoptedStyleSheetsLoadedQueue,r=0;r<i.length;r++)t(i[r]);delete window[n].AdoptedStyleSheetsLoadedQueue}}).catch(function(e){console.error("Failed to load:",e)}),window[n].AdoptedStyleSheets=[i],document.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets=window[n].AdoptedStyleSheets}}},{key:"connect",value:function(){var e=this;window[n].EnableShadowDOM&&!e.shadowRoot&&!0!==e.isInShadowDOM&&(e.attachShadow({mode:"open"}),e.shadowRoot&&e.$.root&&(e.shadowRoot.appendChild(e.$.root),e.$.root.classList.add(e.nodeName.toLowerCase()))),e.shadowRoot||e.shadowParent?e.shadowRoot?e._setupShadowRoot():(e.shadowParent&&window,e.setup()):e.setup()}},{key:"connectedCallback",value:function(){var e=this;if(!e.isLoading&&!e.isUtilityElement){e.classList.add("smart-element-init");var t=function(){e.classList.remove("smart-element-init")};if("complete"===document.readyState&&(void 0===window[n].isAngular&&(window[n].isAngular=null!==document.body.querySelector("[ng-version]")),window[n].isAngular))for(var i=0;i<e.parents.length&&!e.parents[i].nodeName.toLowerCase().startsWith(n.toLowerCase()+"-");i++)if(e.parents[i].hasAttribute("ng-version")&&!e.classList.contains("smart-angular")){window[n].RenderMode="manual";break}if("complete"===document.readyState&&"manual"!==window[n].RenderMode){var r=e.parents;r.length&&"HTML"===r[r.length-1].nodeName||e.getRootNode().host?(e.checkIsInDomTimer&&clearInterval(e.checkIsInDomTimer),t(),e.connect()):(e.checkIsInDomTimer&&clearInterval(e.checkIsInDomTimer),r.length>0&&(e.checkIsInDomTimer=setInterval(function(){var n=e.parents;0===n.length&&clearInterval(e.checkIsInDomTimer),n.length>0&&"HTML"===n[n.length-1].nodeName&&(clearInterval(e.checkIsInDomTimer),t(),e.connect())},100)))}else e.isLoading=!0,S.push({element:this,callback:(function(){this.isReady||(t(),this.connect())}).bind(e)})}}},{key:"disconnectedCallback",value:function(){var e=this;e.isAttached?(e.shadowParent=null,e.detached()):e._resetShadowParent()}},{key:"adoptedCallback",value:function(){this.setup()}},{key:"appendTemplate",value:function(e){var t=this;t.shadowRoot?t.shadowRoot.appendChild(e):t.appendChild(e)}},{key:"_resetShadowParent",value:function(){var e=this;if(window[n].EnableShadowDOM&&null!==e.shadowParent){for(var t=[],i=e.parentNode;i&&9!==i.nodeType;){if(i instanceof HTMLElement==1)t.push(i);else if(11===i.nodeType&&i.host){i=i.host;continue}i=i.parentNode}for(var r=0;r<t.length;r++)if(t[r]===e.shadowParent)return;t.length>0&&"HTML"===t[t.length-1].nodeName&&(e.shadowParent=null)}}}],[{key:"observedAttributes",get:function(){var e=["external-style"];for(var t in this.prototype.extendedProperties)e.push(this.prototype.extendedProperties[t].attributeName);return e}},{key:"styleUrls",get:function(){return[]}},{key:"styles",get:function(){return""}}]),i}(k),Utilities:y,Import:function(e,t){var n=0,i=function(e,t){return new Promise(function(n){var i=document.createElement("script");i.src=e,i.onload=n;for(var r=0;r<document.head.children.length;r++){var a=document.head.children[r];if(a.src&&a.src.toString().indexOf(t)>=0)return void n()}document.head.appendChild(i)})};return new Promise(function(r){var a=y.Core.getScriptLocation();if(t)for(var o=0;o<e.length;
1o++)i(a+"/"+e[o],e[o]).then(function(){++n===e.length&&r()});else!function t(o){e[o]&&i(a+"/"+e[o],e[o]).then(function(){++n===e.length&&r(),t(o+1)})}(0)})},ObservableArray:E,Observable:function(){function e(t,n){_classCallCheck(this,e);var i,r=this;return this.name="observable",t&&Object.assign(r,t),i=t,Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(function(e){return"constructor"===e||!!e.startsWith("_")||void(r[e]=i[e])}),new Proxy(r,{deleteProperty:function(e,t){return delete e[t],!0},get:function(e,t){return e[t]},set:function(e,t,i){var a=e[t];return a===i||(e[t]=i,!("notifyFn"!==t&&!t.startsWith("_")&&"canNotify"!==t&&(!n||-1!==n.indexOf(t))&&r.canNotify&&(r._notify({target:e,propertyName:t,oldValue:a,newValue:i}),0)))}})}return _createClass(e,[{key:"canNotify",get:function(){var e=this;return void 0===e._canNotify&&(e._canNotify=!0),e._canNotify},set:function(e){this._canNotify=e}},{key:"_notify",value:function(e){var t=this;if(t.canNotify&&t.notifyFn)for(var n=0;n<t.notifyFn.length;n++)t.notifyFn[n](e)}},{key:"notify",value:function(e){var t=this;e&&(t.notifyFn||(t.notifyFn=[]),t.notifyFn.push(e))}}]),e}(),Component:function(){function e(t,n){_classCallCheck(this,e);var i=this.name,r=null;return t?r=new window[i](t,n):(r=new window[i])._initProperties=n,this._element=r,r}return _createClass(e,[{key:"name",get:function(){return"Component"}},{key:"element",get:function(){return this._element}}]),e}(),Theme:A.Theme||"",EnableShadowDOM:A.ShadowDom||!1,BaseUrl:"./",StyleBaseUrl:"/styles/default/",Version:e,Templates:t,RenderMode:A.RenderMode||"auto",Render:function(){var e=function(){window[n].RenderMode="",P()};"complete"===document.readyState?e():(window.removeEventListener("load",e),window.addEventListener("load",e))},Data:h,Mode:A.Mode||"production",License:"Evaluation"});var L=window[n].Theme;"manual"!==window[n].RenderMode&&document.addEventListener("readystatechange",P),Object.defineProperty(window[n],"Theme",{configurable:!1,enumerable:!0,get:function(){return L},set:function(e){var t=L;L=e,b.fireEvent("theme-changed",{oldValue:t,newValue:e},{bubbles:!0,cancelable:!0})}}),window[n]("smart-base-element",window[n].BaseElement),window[n]("smart-content-element",function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return"<div inner-h-t-m-l='[[innerHTML]]'></div>"}},{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this),this.applyContent()}},{key:"refresh",value:function(){}},{key:"clearContent",value:function(){for(var e=this;e.$.content.firstChild;)e.$.content.removeChild(e.$.content.firstChild)}},{key:"applyContent",value:function(){var e=this;if(void 0!==e.content)if(""!==e.content&&null!==e.content){if(e.content instanceof HTMLElement)return e.clearContent(),void e.$.content.appendChild(e.content);var t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),e.content instanceof HTMLElement?n.appendChild(e.content):n.innerHTML=e.content;var i=Array.from(n.childNodes);n.parentNode.removeChild(n);for(var r=0;r<i.length;r++)t.appendChild(i[r]);e.clearContent(),e.$.content.appendChild(t)}else e.clearContent();else e.content=e.$.content}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;t!==i&&("innerHTML"===e&&(r.content=i,r.applyContent(),r.innerHTML=r.content=y.Core.html(r.$.content)),"content"===e&&r.applyContent())}}],[{key:"properties",get:function(){return{content:{type:"any",reflectToAttribute:!1},innerHTML:{type:"string",reflectToAttribute:!1}}}}]),n}(window[n].BaseElement)),window[n]("smart-scroll-viewer",function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="container" class="smart-container" role="presentation">\n <div id="scrollViewerContainer" class="smart-scroll-viewer-container" role="presentation">\n <div id="scrollViewerContentContainer" inner-h-t-m-l=\'[[innerHTML]]\' class="smart-scroll-viewer-content-container" role="presentation">\n <content></content>\n </div>\n </div>\n <smart-scroll-bar id="verticalScrollBar" theme="[[theme]]" animation="[[animation]]" disabled="[[disabled]]" right-to-left="[[rightToLeft]]" orientation="vertical"></smart-scroll-bar>\n <smart-scroll-bar id="horizontalScrollBar" theme="[[theme]]" disabled="[[disabled]]" right-to-left="[[rightToLeft]]"></smart-scroll-bar>\n </div>'}},{key:"appendChild",value:function(e){var t=this;if(e){if(!t.isCompleted||e.classList&&e.classList.contains("smart-resize-trigger-container")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}t.$.scrollViewerContentContainer.appendChild(e)}}},{key:"removeChild",value:function(e){var t=this;if(e){if(!t.isCompleted||e.classList&&e.classList.contains("smart-resize-trigger-container")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.removeChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}t.$.scrollViewerContentContainer.removeChild(e)}}},{key:"removeAll",value:function(){this.isCompleted&&(this.$.scrollViewerContentContainer.innerHTML="")}},{key:"_horizontalScrollbarHandler",value:function(e){var t=this;t.$.scrollViewerContentContainer.style.left=(t.rightToLeft?1:-1)*t.scrollLeft+"px",e.stopPropagation&&e.stopPropagation(),t.onHorizontalChange&&t.onHorizontalChange(e)}},{key:"_verticalScrollbarHandler",value:function(e){var t=this;t.$.scrollViewerContentContainer.style.top=-t.scrollTop+"px",e.stopPropagation&&e.stopPropagation(),t.onVerticalChange&&t.onVerticalChange(e)}},{key:"_touchmoveHandler",value:function(e){var t=this;if(t._touchmoveInside&&e.cancelable)return e.preventDefault(),void e.stopPropagation();var n=t.scrollHeight>0,i=t._touchCoords;if((n||t.scrollWidth>0)&&i){var r,a,o,s,l=e.touches[0];t._touchCoords=[l.pageX,l.pageY],n?(r=t.scrollTop,a=t.scrollHeight,o=l.pageY,s=i[1]):(r=t.scrollLeft,a=t.scrollWidth,o=l.pageX,s=i[0]);var c=parseFloat(o.toFixed(5)),u=parseFloat(s.toFixed(5));0===r&&c>=u||r===a&&c<=u||(o!==s&&(t._touchmoveInside=!0),e.cancelable&&(e.preventDefault(),e.stopPropagation()))}}},{key:"_touchstartHandler",value:function(e){var t=e.touches[0];this._touchCoords=[t.pageX,t.pageY]}},{key:"_mouseWheelHandler",value:function(e){var t=this;if(!t.disabled&&(t.computedHorizontalScrollBarVisibility||t.computedVerticalScrollBarVisibility)){if(e.shiftKey&&t.computedHorizontalScrollBarVisibility){var n=t.scrollLeft;if(0===n&&e.deltaX<0||n===t.scrollHeight&&e.deltaX>0)return;return e.stopPropagation(),e.preventDefault(),void(t.scrollWidth>
10&&t.scrollTo(void 0,t.scrollLeft+t._getScrollCoefficient(e,t.offsetWidth)))}if(t.computedVerticalScrollBarVisibility){var i=t.scrollTop;if(0===i&&e.deltaY<0||i===t.scrollHeight&&e.deltaY>0)return;e.stopPropagation(),e.preventDefault(),t.scrollHeight>0&&t.scrollTo(t.scrollTop+t._getScrollCoefficient(e,t.offsetHeight))}}}},{key:"_overriddenHandler",value:function(){}},{key:"_upHandler",value:function(){delete this._touchCoords,delete this._touchmoveInside}},{key:"_getScrollCoefficient",value:function(e,t){var n,i=e.deltaMode,r=Math.abs(e.deltaY);return 0===i?n=r<100/3?r:t:1===i?n=r<1?r*(100/3):t:2===i&&(n=t),e.deltaY<0?-n:n}},{key:"applyContent",value:function(){_get(_getPrototypeOf(n.prototype),"applyContent",this).call(this),this.refresh()}},{key:"computedHorizontalScrollBarVisibility",get:function(){var e=this;return e._scrollView&&e._scrollView.hScrollBar?!e._scrollView.hScrollBar.$.hasClass("smart-hidden"):null}},{key:"computedVerticalScrollBarVisibility",get:function(){var e=this;return e._scrollView&&e._scrollView.vScrollBar?!e._scrollView.vScrollBar.$.hasClass("smart-hidden"):null}},{key:"scrollTo",value:function(e,t){var n=this;n._scrollView&&(void 0!==e&&n._scrollView.scrollTo(e),void 0!==t&&n._scrollView.scrollTo(t,!1))}},{key:"refreshScrollBarsVisibility",value:function(){var e=this;e._scrollView&&(e._scrollView.hScrollBar.disabled=e.disabled,e._scrollView.vScrollBar.disabled=e.disabled,"disabled"===e.horizontalScrollBarVisibility&&(e._scrollView.hScrollBar.disabled=!0),"disabled"===e.verticalScrollBarVisibility&&(e._scrollView.vScrollBar.disabled=!0),e.scrollWidth>0?e._scrollView.hScrollBar.$.removeClass("smart-hidden"):"visible"!==e.horizontalScrollBarVisibility&&e._scrollView.hScrollBar.$.addClass("smart-hidden"),e.scrollHeight>0?e._scrollView.vScrollBar.$.removeClass("smart-hidden"):"visible"!==e.verticalScrollBarVisibility&&e._scrollView.vScrollBar.$.addClass("smart-hidden"),"hidden"===e.horizontalScrollBarVisibility&&e._scrollView.hScrollBar.$.addClass("smart-hidden"),"hidden"===e.verticalScrollBarVisibility&&e._scrollView.vScrollBar.$.addClass("smart-hidden"),"visible"===e.horizontalScrollBarVisibility&&e._scrollView.hScrollBar.$.removeClass("smart-hidden"),"visible"===e.verticalScrollBarVisibility&&(e._scrollView.vScrollBar.$.removeClass("smart-hidden"),e.disabled||(e._scrollView.vScrollBar.disabled=e.scrollHeight<=0)),e.computedHorizontalScrollBarVisibility&&e.computedVerticalScrollBarVisibility?(e._scrollView.hScrollBar.$.addClass("bottom-corner"),e._scrollView.vScrollBar.$.addClass("bottom-corner")):(e._scrollView.hScrollBar.$.removeClass("bottom-corner"),e._scrollView.vScrollBar.$.removeClass("bottom-corner")))}},{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this);var e=this;e.$.verticalScrollBar.onChange=function(t){t.detail=t,e._verticalScrollbarHandler(t)},e.$.horizontalScrollBar.onChange=function(t){t.detail=t,e._horizontalScrollbarHandler(t)},e.$.verticalScrollBar.setAttribute("aria-controls",e.id),e.$.horizontalScrollBar.setAttribute("aria-controls",e.id),e._customScrollView||(e._scrollView=new Smart.Utilities.Scroll(e,e.$.horizontalScrollBar,e.$.verticalScrollBar)),e.refresh()}},{key:"refresh",value:function(){var e=this;function t(){var t=e.$.scrollViewerContainer.classList.contains("vscroll");e.$.scrollViewerContainer.classList.remove("vscroll");var n=e.$.scrollViewerContentContainer.offsetWidth-e.$.scrollViewerContainer.offsetWidth;return n>0&&"hidden"!==e.horizontalScrollBarVisibility||"visible"===e.horizontalScrollBarVisibility?e.$.scrollViewerContainer.classList.add("hscroll"):e.$.scrollViewerContainer.classList.remove("hscroll"),t&&e.$.scrollViewerContainer.classList.add("vscroll"),n}function n(){var t,n=e.$.scrollViewerContainer.classList.contains("hscroll");if(e.$.scrollViewerContainer.classList.remove("hscroll"),Smart.Utilities.Core.Browser.Safari){var i=e.$.scrollViewerContentContainer.getBoundingClientRect().height,r=e.$.scrollViewerContainer.getBoundingClientRect().height;t=i&&r?parseInt(i)-parseInt(r):e.$.scrollViewerContentContainer.offsetHeight-e.$.scrollViewerContainer.offsetHeight}else t=e.$.scrollViewerContentContainer.offsetHeight-e.$.scrollViewerContainer.offsetHeight;return e.virtualScrollHeight&&(t=e.virtualScrollHeight),t>
10&&"hidden"!==e.verticalScrollBarVisibility||"visible"===e.verticalScrollBarVisibility?e.$.scrollViewerContainer.classList.add("vscroll"):e.$.scrollViewerContainer.classList.remove("vscroll"),n&&e.$.scrollViewerContainer.classList.add("hscroll"),t}if(e.$.scrollViewerContentContainer){var i=e.scrollWidth,r=e.scrollHeight;e.scrollWidth=t(),e.scrollHeight=n(),e.scrollHeight&&r===e.scrollHeight||(e.scrollWidth=t()),e.scrollWidth&&i===e.scrollWidth||(e.scrollHeight=n()),e.computedVerticalScrollBarVisibility&&(e.scrollHeight+=e._scrollView.hScrollBar.offsetHeight),e.computedHorizontalScrollBarVisibility&&(e.scrollWidth+=e._scrollView.vScrollBar.offsetWidth),0===e.scrollHeight&&e.scrollWidth>0&&e.$.container.offsetHeight-e.$.content.offsetHeight<5&&(e.$.container.style.paddingBottom=e._scrollView.hScrollBar.offsetHeight+"px")}}},{key:"attached",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"attached",this).call(this),e._scrollView||e._customScrollView||(e._scrollView=new Smart.Utilities.Scroll(e,e.$.horizontalScrollBar,e.$.verticalScrollBar))}},{key:"detached",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"detached",this).call(this),e._scrollView&&(e._scrollView.unlisten(),delete e._scrollView)}},{key:"scrollWidth",get:function(){var e=this;return e._scrollView&&e._scrollView.hScrollBar?1===e._scrollView.hScrollBar.max&&"visible"===e.horizontalScrollBarVisibility?0:e._scrollView.hScrollBar.max:-1},set:function(e){var t=this;e<0&&(e=0),t._scrollView&&t._scrollView.hScrollBar&&(t._scrollView.hScrollBar.max=0===e&&"visible"===t.horizontalScrollBarVisibility?0:e,t.refreshScrollBarsVisibility())}},{key:"scrollHeight",get:function(){var e=this;return e._scrollView&&e._scrollView.vScrollBar?1===e._scrollView.vScrollBar.max&&"visible"===e.verticalScrollBarVisibility?0:e._scrollView.vScrollBar.max:0},set:function(e){var t=this;e<0&&(e=0),t._scrollView&&t._scrollView.vScrollBar&&(t._scrollView.vScrollBar.max=0===e&&"visible"===t.verticalScrollBarVisibility?1:e,t.refreshScrollBarsVisibility())}},{key:"scrollLeft",get:function(){var e=this;return e._scrollView&&e._scrollView.hScrollBar?e._scrollView.hScrollBar.value:0},set:function(e){var t=this;e<0&&(e=0),t._scrollView&&t._scrollView.hScrollBar&&(t._scrollView.hScrollBar.value=e)}},{key:"scrollTop",get:function(){var e=this;return e._scrollView&&e._scrollView.vScrollBar?e._scrollView.vScrollBar.value:0},set:function(e){var t=this;e<0&&(e=0),t._scrollView&&t._scrollView.vScrollBar&&(t._scrollView.vScrollBar.value=e)}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i),"animation"!==e&&"theme"!==e&&this.refresh()}}],[{key:"properties",get:function(){return{horizontalScrollBarVisibility:{type:"string",value:"auto",allowedValues:["auto","disabled","hidden","visible"]},touchScrollRatio:{type:"any",value:null},touchVelocityCoefficient:{type:"number",value:50},verticalScrollBarVisibility:{type:"string",value:"auto",allowedValues:["auto","disabled","hidden","visible"]}}}},{key:"listeners",get:function(){return{touchmove:"_touchmoveHandler",touchstart:"_touchstartHandler",wheel:"_mouseWheelHandler","document.up":"_upHandler"}}},{key:"styleUrls",get:function(){return["smart.scrollviewer.css"]}}]),n}(window[n].ContentElement)),window[n].Utilities.Assign("PositionDetection",function(){function e(t,n,i,r){_classCallCheck(this,e);var a=this;if(n){var o="dropDown"+Math.floor(65536*(1+Math.random())).toString(16).substring(1);n.id=o,t.setAttribute("aria-owns",o)}a.context=t,a.dropDown=n,a.defaultParent=i,a.closeMethod=r}return _createClass(e,[{key:"handleAutoPositioning",value:function(){var e=this,t=e.context;if("auto"===t.dropDownPosition&&!t.disabled&&!t.isHidden){var n,i=window.requestAnimationFrame,r=Date.now();return n=i(function a(){t.isHidden||document.hidden||(n=i(a),"auto"===t.dropDownPosition&&!t.disabled&&(t.isInShadowDOM?document.body.contains(t.shadowParent):document.body.contains(t))||cancelAnimationFrame(n),t.isHidden&&cancelAnimationFrame(n),Date.now()-r>=200&&(e.scrollHandler(),r=Date.now()))})}}},{key:"checkBrowserBounds",value:function(e){var t=this.context;if("auto"===t.dropDownPosition&&!t.disabled)switch(e){case"vertically":this.checkBrowserBoundsVertically();break;case"horizontally":this.checkBrowserBoundsHorizontally();break;default:this.checkBrowserBoundsVertically(),this.checkBrowserBoundsHorizontally()}}},{key:"checkBrowserBoundsHorizontally",value:function(){var e,t=this.context,n=this.dropDown,i=0;l.isMobile||window.innerWidth===document.documentElement.clientWidth||(i=window.innerWidth-document.documentElement.clientWidth),null!==t._dropDownParent?e=!0:n.style.left="";var r=window.innerWidth-i,a=t.getBoundingClientRect().left;
1if(a<0&&(n.style.left=(e?0:Math.abs(a))+"px",a=parseFloat(n.style.left)),a+n.offsetWidth>r){var o=a-Math.abs(r-a-n.offsetWidth);e&&(o+=window.pageXOffset),n.style.left=(e?o:o-a)+"px",window.innerWidth===document.documentElement.clientWidth&&(n.style.left=parseFloat(n.style.left)+i+"px"),e&&window.innerHeight===document.documentElement.clientHeight&&this.positionDropDown(!0)}}},{key:"checkBrowserBoundsVertically",value:function(e){var t=this.context,n=this.dropDown,i=t._dropDownListPosition;e||(e=t.getBoundingClientRect()),0!==e.height&&(t._dropDownListPosition=document.documentElement.clientHeight-Math.abs(e.top+e.height+n.offsetHeight)>=0?"bottom":e.top-n.offsetHeight>=0?"top":"overlay-center",this.updatePositionAttribute(i,t._dropDownListPosition))}},{key:"scrollHandler",value:function(){var e=this.context;if(e.parentElement){var t=e.getBoundingClientRect();if(t.top!==e._positionTop){var n=e._dropDownListPosition;this.checkBrowserBoundsVertically(t),e._dropDownListPosition!==n&&this.positionDropDown(),e._positionTop=t.top}}}},{key:"getDropDownParent",value:function(e){var t=this.context,n=this.dropDown,i=t.dropDownAppendTo;t._positionedParent=null,null===i?t._dropDownParent=null:"body"===i||i===document.body?t._dropDownParent=t.getRootNode().host?t.getRootNode().host.shadowRoot:document.body:i instanceof HTMLElement?t._dropDownParent=i:"string"==typeof i?(i=document.getElementById(i))instanceof HTMLElement?t._dropDownParent=i:(t.dropDownAppendTo=null,t._dropDownParent=null):(t.dropDownAppendTo=null,t._dropDownParent=null);var r=t._dropDownParent;if(null!==r){for(;r&&r instanceof HTMLElement&&"static"===window.getComputedStyle(r).position&&r!==t.getShadowRootOrBody();)r=r.parentElement;t._positionedParent=r===document.body?null:r,n&&(n.setAttribute("animation",t.animation),""!==t.theme&&n.$.addClass(t.theme),e&&(t._dropDownParent.appendChild(n),n.$.addClass("smart-drop-down-repositioned")),-1===t.detachedChildren.indexOf(n)&&t.detachedChildren.push(n))}}},{key:"dropDownAppendToChangedHandler",value:function(){var e=this.context,t=this.dropDown,n=e._dropDownParent;this.getDropDownParent(),e._dropDownParent!==n&&(e[this.closeMethod](),["left","top","font-size","font-family","font-style","font-weight"].forEach(function(e){return t.style[e]=null}),null===e._dropDownParent?(this.defaultParent.appendChild(t),t.$.removeClass("smart-drop-down-repositioned")):(e._dropDownParent.appendChild(t),t.$.addClass("smart-drop-down-repositioned")))}}
1,{key:"dropDownPositionChangedHandler",value:function(){var e=this;e.dropDown.style.transition="none",e.context[e.closeMethod](),e.setDropDownPosition(),e.handleAutoPositioning()}},{key:"dropDownAttached",value:function(e){var t=this.context;null!==t._dropDownParent&&(t._dropDownParent.appendChild(this.dropDown),this.handleAutoPositioning(),e&&t[e]())}},{key:"dropDownDetached",value:function(){var e=this.context;null!==e._dropDownParent&&document.body.contains(this.dropDown)&&document.body.contains(e._dropDownParent)&&e._dropDownParent.removeChild(this.dropDown)}},{key:"setDropDownPosition",value:function(){var e=this.context,t=e.dropDownPosition,n=e._dropDownListPosition;"auto"===t?this.checkBrowserBounds():e._dropDownListPosition=t,this.updatePositionAttribute(n,e._dropDownListPosition)}},{key:"updatePositionAttribute",value:function(e,t){var n=this.context,i=this.dropDown;n.$.dropDownButton&&!n.$.dropDownButton.hasAttribute(t)&&(n.$.dropDownButton.removeAttribute(e),n.$.dropDownButton.setAttribute(t,"")),i.hasAttribute(t)||(i.style.transition="none",i.removeAttribute(e),i.setAttribute(t,""),requestAnimationFrame(function(){i.style.transition=null}))}},{key:"positionDropDown",value:function(e){var t=this.context,n=this.dropDown;if(t.opened&&null!==t._dropDownParent){var i,r,a=t.getBoundingClientRect();if(this.customPositionDropDown){var o=this.customPositionDropDown(a);i=o.left,r=o.top}else switch(i=a.left,r=a.top,t._dropDownListPosition){case"bottom":r+=t.$.container.offsetHeight-1;break;case"center-bottom":r+=t.$.container.offsetHeight-1,i+=t.offsetWidth-n.offsetWidth/2;break;case"center-top":r-=n.offsetHeight-1,i+=t.offsetWidth-n.offsetWidth/2;break;case"top":r-=n.offsetHeight-1;break;case"overlay-bottom":break;case"overlay-center":r-=n.offsetHeight/2-t.offsetHeight/2;break;case"overlay-top":r-=n.offsetHeight-t.offsetHeight}var s=this.getDropDownOffset();n.style.top=r+s.y+"px",e||(n.style.left=i+s.x+"px")}}},{key:"getDropDownOffset",value:function(){var e,t,n=this.context._positionedParent;if(n&&"#document-fragment"!==n.nodeName){var i=n.getBoundingClientRect();e=-i.left,t=-i.top}else e=window.pageXOffset,t=window.pageYOffset;return{x:e,y:t}}},{key:"placeOverlay",value:function(){var e=this.context;if(e.dropDownOverlay&&!e._overlay){var t=document.createElement("div");t.classList.add("smart-drop-down-overlay"),t.style.width=document.documentElement.scrollWidth+"px",t.style.height=document.documentElement.scrollHeight+"px",document.body.appendChild(t),e._overlay=t}}},{key:"removeOverlay",value:function(e){var t=this,n=t.context;n._overlay&&(n.hasAnimation&&e?requestAnimationFrame(function e(){t.dropDown.getBoundingClientRect().height>0?requestAnimationFrame(e):(document.body.removeChild(n._overlay),delete n._overlay)}):(document.body.removeChild(n._overlay),delete n._overlay))}}]),e}()),window.Smart.Color=function(){function e(t){_classCallCheck(this,e),this.r=this.g=this.b=0,this.hex="";var n=this.getStandardizedColor(t);n&&this.setHex(n.substring(1))}return _createClass(e,[{key:"getStandardizedColor",value:function(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}},{key:"getInvertedColor",value:function(){return""===this.hex?"transparent":255-(.299*this.r+.587*this.g+.114*this.b)<105?"Black":"White"}},{key:"hexToRgb",value:function(e){var t="00",n="00",i="00";return 6===(e=this.validateHex(e)).length?(t=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6)):(e.length>4&&(t=e.substring(4,e.length),e=e.substring(0,4)),e.length>2&&(n=e.substring(2,e.length),e=e.substring(0,2)),e.length>0&&(i=e.substring(0,e.length))),{r:this.hexToInt(t),g:this.hexToInt(n),b:this.hexToInt(i)}}},{key:"validateHex",value:function(e){return(e=(e=new String(e).toUpperCase()).replace(/[^A-F0-9]/g,"0")).length>6&&(e=e.substring(0,6)),e}},{key:"webSafeDec",value:function(e){return 51*Math.round(e/51)}},{key:"hexToWebSafe",value:function(e){var t,n,i;return 3===e.length?(t=e.substring(0,1),n=e.substring(1,1),i=e.substring(2,1)):(t=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6)),this.intToHex(this.webSafeDec(this.hexToInt(t)))+this.intToHex(this.webSafeDec(this.hexToInt(n)))+this.intToHex(this.webSafeDec(this.hexToInt(i)))}},{key:"rgbToWebSafe",value:function(e){return{r:this.webSafeDec(e.r),g:this.webSafeDec(e.g),b:this.webSafeDec(e.b)}}},{key:"rgbToHex",value:function(e){return this.intToHex(e.r)+this.intToHex(e.g)+this.intToHex(e.b)}},{key:"intToHex",value:function(e){var t=parseInt(e).toString(16);return 1===t.length&&(t="0"+t),t.toUpperCase()}},{key:"hexToInt",value:function(e){return parseInt(e,16)}},{key:"setRgb",value:function(e,t,n){var i=function(e){return e<0||e>255||isNaN(parseInt(e))?0:e};this.r=i(e),this.g=i(t),this.b=i(n),this.hex=this.rgbToHex(this)}},{key:"setHex",value:function(e){this.hex=e;var t=this.hexToRgb(this.hex);this.r=t.r,this.g=t.g,this.b=t.b}}]),e}()}()},9135:function(){Smart("smart-scroll-bar",function(e){_inherits(n,Smart.BaseElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="container" class="smart-container" role="presentation">\n <div id="nearButton" class="smart-scroll-button smart-arrow-left" role="presentation" aria-hidden="true"></div>\n <div id="track" class="smart-track" role="presentation">\n <div id="thumb" class="smart-thumb" role="presentation"></div>\n </div>\n <div id="farButton" class="smart-scroll-button smart-arrow-right" role="presentation" aria-hidden="true"></div>\n </div>'}},{key:"_updateInBoundsFlag",value:function(e){var t=e.target;t._isPointerInBounds=!0,-1!==e.type.indexOf("leave")&&(t._isPointerInBounds=!1),1!==("buttons"in e?e.buttons:e.which)&&this._stopRepeat(e)}},{key:"_startRepeat",value:function(e){var t=this;if(!t.disabled){var n=e.target;n._initialTimer||(n._initialTimer=setTimeout(function(){n._repeatTimer=setInterval(function(){n._isPointerInBounds&&n.$.fireEvent("click",{buttons:"buttons"in e?e.buttons:e.which,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY})},t.clickRepeatDelay)},3*t.clickRepeatDelay))}}},{key:"_stopRepeat",value:function(e){if(!this.disabled){var t=e.target;t._repeatTimer&&(clearInterval(t._repeatTimer),t._repeatTimer=null),t._initialTimer&&(clearTimeout(t._initialTimer),t._initialTimer=null)}}},{key:"_calculateThumbSize",value:function(e){var t=this,n=t.max-t.min,i=0;return n>=1&&("horizontal"===t.orientation?t.$.track.offsetWidth>10:t.$.track.offsetHeight>10)?(i=e/(n+e)*e,t.$.thumb.className.indexOf("smart-hidden")>=0&&t.$thumb.removeClass("smart-hidden")):t.$thumb.addClass("smart-hidden"),Math.max(10,Math.min(i,e))}},{key:"_dragStartHandler",value:function(e){var t=this;t.disabled||(t.thumbCapture=!0,t.dragStartX=e.clientX,t.dragStartY=e.clientY,t.dragStartValue=t.value,e.stopPropagation(),e.preventDefault())}},{key:"_dragHandler",value:function(e){var t=this;if(!0===t.thumbCapture){t._isThumbDragged=!0;var n=(t.max-t.min)/(t.scrollBarSize-t.thumbSize),i="horizontal"===t.orientation?(e.clientX-t.dragStartX)*n:(e.clientY-t.dragStartY)*n,r=i;
1t.rightToLeft&&"horizontal"===t.orientation&&(r=-i),t._updateValue(t.dragStartValue+r),e.stopPropagation(),e.preventDefault(),e.originalEvent&&(e.originalEvent.stopPropagation(),e.originalEvent.preventDefault())}}},{key:"_dragEndHandler",value:function(e){var t=this;t._trackDownTimer&&(clearInterval(t._trackDownTimer),t._trackDownTimer=null),t.thumbCapture&&(t.thumbCapture=!1,t._isThumbDragged=!1,"switchWhenReleased"===t.mechanicalAction?t._updateValue(t.dragStartValue,t.value):"switchUntilReleased"===this.mechanicalAction&&t._updateValue(t.dragStartValue),e.preventDefault(),e.stopPropagation(),e.originalEvent.preventDefault(),e.originalEvent.stopPropagation())}},{key:"_farButtonClickHandler",value:function(){var e=this;if(!e.disabled){var t=e.value;e._updateValue(e.value+("horizontal"===e.orientation&&e.rightToLeft?-1:1)*e.step),"switchUntilReleased"===e.mechanicalAction&&e._updateValue(t)}}},{key:"_nearButtonClickHandler",value:function(){var e=this;if(!e.disabled){var t=e.value;e._updateValue(e.value-("horizontal"===e.orientation&&e.rightToLeft?-1:1)*e.step),"switchUntilReleased"===e.mechanicalAction&&e._updateValue(t)}}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;switch(e){case"min":case"max":case"orientation":case"showButtons":r._layout(),"min"===e?r.setAttribute("aria-valuemin",i):"max"===e?r.setAttribute("aria-valuemax",i):"orientation"===e&&r.setAttribute("aria-orientation",i);break;case"value":r._updateValue(t,i);break;default:r._layout()}}},{key:"render",value:function(){var e=this;e.setAttribute("role","scrollbar"),e.setAttribute("aria-orientation",e.orientation),e.setAttribute("aria-valuemin",e.min),e.setAttribute("aria-valuemax",e.max),e.setAttribute("aria-valuenow",e.value),e._layout(),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"_resizeHandler",value:function(){this._layout()}},{key:"refresh",value:function(){this._layout()}},{key:"beginUpdate",value:function(){this._isUpdating=!0}},{key:"endUpdate",value:function(){this._isUpdating=!1,this.refreshValue()}},{key:"refreshValue",value:function(){var e=this;e._layout(),e._updateValue(e.value)}},{key:"_layout",value:function(){var e=this;e._isUpdating||(e.scrollBarSize="horizontal"===e.orientation?e.$.track.offsetWidth:e.$.track.offsetHeight,e.thumbSize=e._calculateThumbSize(e.scrollBarSize),"horizontal"===e.orientation&&e.$.thumb.style.width!==e.thumbSize+"px"?e.$.thumb.style.width=e.thumbSize+"px":"vertical"===e.orientation&&e.$.thumb.style.height!==e.thumbSize+"px"&&(e.$.thumb.style.height=e.thumbSize+"px"),"horizontal"===e.orientation?(e.$.nearButton.classList.contains("smart-arrow-up")&&e.$.nearButton.classList.remove("smart-arrow-up"),e.$.farButton.classList.contains("smart-arrow-down")&&e.$.farButton.classList.remove("smart-arrow-down"),e.$.nearButton.classList.contains("smart-arrow-left")||e.$.nearButton.classList.add("smart-arrow-left"),e.$.farButton.classList.contains("smart-arrow-right")||e.$.farButton.classList.add("smart-arrow-right")):(e.$.nearButton.classList.contains("smart-arrow-left")&&e.$.nearButton.classList.remove("smart-arrow-left"),e.$.farButton.classList.contains("smart-arrow-right")&&e.$.farButton.classList.remove("smart-arrow-right"),e.$.nearButton.classList.contains("smart-arrow-up")||e.$.nearButton.classList.add("smart-arrow-up"),e.$.farButton.classList.contains("smart-arrow-down")||e.$.farButton.classList.add("smart-arrow-down")),e._updateThumbPosition(),(e.value>e.max||e.value<e.min)&&e._updateValue(e.value,e.value>e.max?e.max:e.min))}},{key:"_selectStartHandler",value:function(e){this.thumbCapture&&e.preventDefault()}},{key:"_trackDownHandler",value:function(e){var t=this;e.target===t.$.track&&(t._trackDownTimer&&clearInterval(t._trackDownTimer),t.thumbCapture||(t._trackDownTimer=setInterval(function(){t._trackClickHandler(e)},t.clickRepeatDelay),e.stopPropagation(),e.preventDefault()))}},{key:"_trackClickHandler",value:function(e){var t=this;if(!t.disabled){if(t._isThumbDragged)return clearInterval(t._trackDownTimer),void(t._trackDownTimer=null);var n=t.$.thumb.getBoundingClientRect(),i=e.pageX-window.pageXOffset,r=e.pageY-window.pageYOffset,a=(t.rightToLeft?-1:1)*t.value;"horizontal"===t.orientation?i>
1(t._isThumbDragged?t.dragStartX:n.right)?t._updateValue(t.value+(t.rightToLeft?-1:1)*t.largeStep):i<(t._isThumbDragged?t.dragStartX:n.left)&&t._updateValue(t.value-(t.rightToLeft?-1:1)*t.largeStep):r>(t._isThumbDragged?t.dragStartY:n.bottom)?t._updateValue(t.value+t.largeStep):r<(t._isThumbDragged?t.dragStartY:n.top)&&t._updateValue(t.value-t.largeStep),"switchUntilReleased"===t.mechanicalAction&&t._updateValue(a)}}},{key:"_trackMoveHandler",value:function(e){"touchmove"===e.originalEvent.type&&e.originalEvent.preventDefault()}},{key:"_updateValue",value:function(e,t){var n=this;if(!n._isUpdating&&(1===arguments.length&&(t=e,e=n.value),(void 0===t||isNaN(t))&&(t=n.min),t>n.max&&(t=n.max),t<n.min&&(t=n.min),n.value=t,e!==t)){if(n.setAttribute("aria-valuenow",t),n._updateThumbPosition(),n.thumbCapture&&"switchWhenReleased"===n.mechanicalAction)return;if(n.onChange)return void n.onChange({value:n.value,oldValue:e,min:n.min,max:n.max,context:n});n.$.fireEvent("change",{value:n.value,oldValue:e,min:n.min,max:n.max})}}},{key:"_updateThumbPosition",value:function(){var e=this,t="horizontal"===e.orientation?e.$.track.offsetWidth:e.$.track.offsetHeight,n=e._calculateThumbSize(t),i=(t-n)/(e.max-e.min)*(e.value-e.min);e.rightToLeft&&"horizontal"===e.orientation&&(i=(t-n)/(e.max-e.min)*(e.max-e.value-e.min)),i=Math.min(t-n,Math.max(0,i)),"vertical"===e.orientation&&e.$.thumb.style.top!==i+"px"?e.$.thumb.style.top=i+"px":"horizontal"===e.orientation&&e.$.thumb.style.left!==i+"px"&&(e.$.thumb.style.left=i+"px")}}],[{key:"properties",get:function(){return{clickRepeatDelay:{type:"integer",value:50},largeStep:{type:"integer",value:100},min:{type:"integer",value:0},max:{type:"integer",value:1e3},mechanicalAction:{value:"switchWhileDragging",allowedValues:["switchUntilReleased","switchWhenReleased","switchWhileDragging"],type:"string"},orientation:{type:"string",value:"horizontal",allowedValues:["horizontal","vertical"]},step:{type:"integer",value:10},showButtons:{type:"boolean",value:!0,defaultReflectToAttribute:!0},value:{type:"integer",value:0}}}},{key:"styleUrls",get:function(){return["smart.scrollbar.css"]}},{key:"listeners",get:function(){return{"nearButton.click":"_nearButtonClickHandler","nearButton.down":"_startRepeat","nearButton.up":"_stopRepeat","nearButton.pointerenter":"_updateInBoundsFlag","nearButton.pointerleave":"_updateInBoundsFlag","farButton.click":"_farButtonClickHandler","farButton.down":"_startRepeat","farButton.up":"_stopRepeat","farButton.pointerenter":"_updateInBoundsFlag","farButton.pointerleave":"_updateInBoundsFlag","track.down":"_trackDownHandler","track.click":"_trackClickHandler","track.move":"_trackMoveHandler","thumb.down":"_dragStartHandler","document.move":"_dragHandler","document.up":"_dragEndHandler",up:"_dragEndHandler","document.selectstart":"_selectStartHandler",resize:"_resizeHandler"}}}]),n}())}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";n(6321),n(9135),n(2612),n(1471),Smart,Smart}()}()},"1Ox4":function(e){e.exports=JSON.parse('{"app":{"Welcome":"Bem-vindo!","Notifications":"Notifica\xe7\xf5es","New":"Novo"},"mainMenu":{"Appointments":"Compromissos","Customers":"Clientes","Products":"Produtos","Orders":"Pedidos","About":"Sobre","Logout":"Sair"},"pageHeader":{"Dashboard":"Painel de Controle","Customers":"Clientes","Products":"Produtos","Orders":"Pedidos","NotFound":"N\xe3o Encontrado","About":"Sobre","Settings":"Configura\xe7\xf5es"},"home":{"NoWidgets1":"Voc\xea n\xe3o possui widgets a serem mostrados. Ir para","NoWidgets2":"configurar widgets dispon\xedveis","StatisticsTitle":"Alguma coisa importante"},"notFound":{"404":"404","pageNotFound":"A p\xe1gina que voc\xea est\xe1 procurando n\xe3o foi encontrada","backToHome":"Voltar para a p\xe1gina principal"},"settings":{"tab":{"Profile":"Perfil","Preferences":"Prefer\xeancias","Users":"Usu\xe1rios","Roles":"Fun\xe7\xf5es"},"header":{"UserProfile":"Perfil de Usu\xe1rio","UserPreferences":"Prefer\xeancias de Usu\xe1rio","UserDepartments":"Departamentos de Usu\xe1rios","UsersManagements":"Gerenciamento de Usu\xe1rios","RolesManagement":"Gerenciamento de Fun\xe7\xf5es"}},"preferences":{"ReloadPreferences":"Recarregar Prefer\xeancias:","ReloadPreferencesHint":"Carregar as prefer\xeancias padr\xe3o (as altera\xe7\xf5es atuais ser\xe3o descartadas)","Language":"Idioma:","Default":"Padr\xe3o","English":"English","French":"Fran\xe7ais","German":"Deutsche","Portuguese":"Portugu\xeas","Arabic":"\u0639\u0631\u0628\u0649","Korean":"\ud55c\uad6d\uc5b4","LanguageHint":"Selecione seu idioma","HomePage":"Principal:","Dashboard":"Painel de Controle","Customers":"Clientes","Products":"Produtos","Orders":"Pedidos","About":"Sobre","Settings":"Configura\xe7\xf5es","HomePageHint":"Selecione a p\xe1gina padr\xe3o para acessar ap\xf3s o login","Theme":"Tema:","DefaultTheme":"Padr\xe3o","CosmoTheme":"Cosmo","SolarTheme":"Solar","CeruleanTheme":"Cerulean","FlatlyTheme":"Solitariamente","SketchyTheme":"Esbo\xe7ado","SlateTheme":"Ard\xf3sia","SpacelabTheme":"Laborat\xf3rioespacial","SuperheroTheme":"Superheroi","UnitedTheme":"Unidos","JournalTheme":"Di\xe1rio","LumenTheme":"L\xfamen","MintyTheme":"Minty","PulseTheme":"Pulso","ThemeHint":"Selecione o tema padr\xe3o","DashboardStatistics":"Estat\xedsticas do Painel de Controle:","DashboardStatisticsHint":"Mostrar o widget gr\xe1fico demonstrativo no Painel de Controle","DashboardNotifications":"Notifica\xe7\xf5es no Painel de Controle:","DashboardNotifications
1Hint":"Mostra as notifica\xe7\xf5es no painel de controle","DashboardTodo":"Tarefas no Painel de Controle:","DashboardTodoHint":"Mostra o widget demonstrativo de Tarefas no painel de controle","DashboardBanner":"Banner no Painel de Controle:","DashboardBannerHint":"Mostra o widget demonstrativo de informa\xe7\xf5es no painle de controle","ResetDefault":"Resetar","SetDefault":"Definir como Padr\xe3o"},"users":{"management":{"Search":"Procurar usu\xe1rio...","NewUser":"Novo Usu\xe1rio","Edit":"Editar","Delete":"Excluir","EditUser":"Editar usu\xe1rio \\"{{name}}\\"","Title":"T\xedtulo","UserName":"Nome de Usu\xe1rio","FullName":"Nome Completo","Email":"E-mail","Roles":"Fun\xe7\xf5es","PhoneNumber":"Telefone"},"editor":{"JobTitle":"Cargo: ","UserName":"Nome de Usu\xe1rio:","UserNameRequired":"Nome de usu\xe1rio \xe9 obrigat\xf3rio (m\xednimo de 2 m\xe1ximo de 200 caracteres)","Password":"Senha:","PasswordHint":"Sua senha \xe9 necess\xe1ria ao alterar o nome do usu\xe1rio","CurrentPasswordRequired":"A senha atual \xe9 necess\xe1ria","Email":"Email:","EmailRequired":"Email \xe9 obrigat\xf3rio (m\xe1ximo de 200 caracteres)","InvalidEmail":"O email especificado n\xe3o \xe9 v\xe1lido","ChangePassword":"Trocar senha","CurrentPassword":"Senha Atual:","NewPassword":"Nova senha:","NewPasswordRequired":"Nova senha \xe9 obrigat\xf3ria (m\xednimo de 6 caracteres)","ConfirmPassword":"Confirme a senha:","ConfirmationPasswordRequired":"Confirma\xe7\xe3o de senha \xe9 obrigat\xf3ria","PasswordMismatch":"Nova senha e Confirma\xe7\xe3o de senha n\xe3o s\xe3o iguais","Roles":"Perfis:","FullName":" Nome Completo:","RoleRequired":" Perfil \xe9 Obrigat\xf3rio","PhoneNumber":"Telefone:","Enabled":"Habilitado","Unblock":"Desbloquear","Close":"Fechar","Edit":"Editar","Cancel":"Cancela","Save":"Salvar","Saving":"Salvando..."}},"roles":{"management":{"Search":"rocurar por Fun\xe7\xe3o...","NewRole":"Nova Fun\xe7\xe3o","Edit":"Editar","Details":"Detalhes","Delete":"Excluir","RoleDetails":"Detalhes da Fun\xe7\xe3o \\"{{name}}\\"","EditRole":"Editar Fun\xe7\xe3o \\"{{name}}\\"","Name":"Nome","Description":"Descri\xe7\xe3o","Users":"Usu\xe1rios"},"editor":{"Name":"Nome:","Description":"Descri\xe7\xe3o:","RoleNameRequired":"Nome da Fun\xe7\xe3o \xe9 Obrigat\xf3rio (m\xednimo de 2 m\xe1ximo de 200 caracteres)","SelectAll":"Selecionar Todos","SelectNone":"Nenhum","Close":"Fechar","Cancel":"Cancelar","Save":"Salvar","Saving":"Salvando..."}},"notifications":{"Delete":"Excluir Notifica\xe7\xe3o","Pin":"Fixar notifica\xe7\xe3o","Date":"Data","Notification":"Notifica\xe7\xe3o"},"todoDemo":{"management":{"Search":"Procurar por Tarefa...","HideCompleted":"Esconder Completas","AddTask":"Adicionar tarefa","Delete":"Excluir tarefa","Important":"Marcar como importante","Task":"Tarefa","Description":"Descri\xe7\xe3o"},"editor":{"NewTask":"Nova Tarefa","Name":"Nome","TaskNameRequired":"T\xedtulo da tarefa \xe9 obrigat\xf3rio","Description":"Descri\xe7\xe3o","Important":"Marcar como importante","AddTask":"Adicionar Tarefa"}}}')},"1ppg":function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},"1rYy":function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(e){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(e)},meridiem:function(e){return e<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":e<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":e<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-\u056b\u0576":e+"-\u0580\u0564";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},"1xZ4":function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%
1d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("wd/R"))},"2QA8":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},"2fFW":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=!1,r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}}},"2fjn":function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n("wd/R"))},"2ykv":function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},"3/ER":function(e,t,n){"use strict";(function(e){var i=n("Ju5/"),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===r?i.a.Buffer:void 0,s=o?o.allocUnsafe:void 0;t.a=function(e,t){if(t)return e.slice();var n=e.length,i=s?s(n):new e.constructor(n);return e.copy(i),i}}).call(this,n("3UD+")(e))},"3E0/":function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("D0XW"),r=n("mlxB"),a=n("7o/Q"),o=n("WMd4");function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a,n=Object(r.a)(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new l(n,t))}}var l=function(){function e(t,n){_classCallCheck(this,e),this.delay=t,this.scheduler
1=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e,this.delay,this.scheduler))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).delay=i,a.scheduler=r,a.queue=[],a.active=!1,a.errored=!1,a}return _createClass(n,[{key:"_schedule",value:function(e){this.active=!0,this.destination.add(e.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}},{key:"scheduleNotification",value:function(e){if(!0!==this.errored){var t=this.scheduler,n=new u(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}}},{key:"_next",value:function(e){this.scheduleNotification(o.a.createNext(e))}},{key:"_error",value:function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(o.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){for(var t=e.source,n=t.queue,i=e.scheduler,r=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var a=Math.max(0,n[0].time-i.now());this.schedule(e,a)}else this.unsubscribe(),t.active=!1}}]),n}(a.a),u=function e(t,n){_classCallCheck(this,e),this.time=t,this.notification=n}},"3E1r":function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"},i=[/^\u091c\u0928/i,/^\u092b\u093c\u0930|\u092b\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924\u0902|\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935|\u0928\u0935\u0902/i,/^\u0926\u093f\u0938\u0902|\u0926\u093f\u0938/i];e.defineLocale("hi",{months:{format:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),standalone:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u0902\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u0902\u092c\u0930_\u0926\u093f\u0938\u0902\u092c\u0930".split("_")},monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},monthsParse:i,longMonthsParse:i,shortMonthsParse:[/^\u091c\u0928/i,/^\u092b\u093c\u0930/i,/^\u092e\u093e\u0930\u094d\u091a/i,/^\u0905\u092a\u094d\u0930\u0948/i,/^\u092e\u0908/i,/^\u091c\u0942\u0928/i,/^\u091c\u0941\u0932/i,/^\u0905\u0917/i,/^\u0938\u093f\u0924/i,/^\u0905\u0915\u094d\u091f\u0942/i,/^\u0928\u0935/i,/^\u0926\u093f\u0938/i],monthsRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u
10932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsShortRegex:/^(\u091c\u0928\u0935\u0930\u0940|\u091c\u0928\.?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908|\u091c\u0941\u0932\.?|\u0905\u0917\u0938\u094d\u0924|\u0905\u0917\.?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930|\u0928\u0935\.?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930|\u0926\u093f\u0938\.?)/i,monthsStrictRegex:/^(\u091c\u0928\u0935\u0930\u0940?|\u092b\u093c\u0930\u0935\u0930\u0940|\u092b\u0930\u0935\u0930\u0940?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\u0932?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\u093e\u0908?|\u0905\u0917\u0938\u094d\u0924?|\u0938\u093f\u0924\u092e\u094d\u092c\u0930|\u0938\u093f\u0924\u0902\u092c\u0930|\u0938\u093f\u0924?\.?|\u0905\u0915\u094d\u091f\u0942\u092c\u0930|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\u092e\u094d\u092c\u0930|\u0928\u0935\u0902\u092c\u0930?|\u0926\u093f\u0938\u092e\u094d\u092c\u0930|\u0926\u093f\u0938\u0902\u092c\u0930?)/i,monthsShortStrictRegex:/^(\u091c\u0928\.?|\u092b\u093c\u0930\.?|\u092e\u093e\u0930\u094d\u091a?|\u0905\u092a\u094d\u0930\u0948\.?|\u092e\u0908?|\u091c\u0942\u0928?|\u091c\u0941\u0932\.?|\u0905\u0917\.?|\u0938\u093f\u0924\.?|\u0905\u0915\u094d\u091f\u0942\.?|\u0928\u0935\.?|\u0926\u093f\u0938\.?)/i,calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924"===t?e<4?e:e+12:"\u0938\u0941\u092c\u0939"===t?e:"\u0926\u094b\u092a\u0939\u0930"===t?e>=10?e:e+12:"\u0936\u093e\u092e"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924":e<10?"\u0938\u0941\u092c\u0939":e<17?"\u0926\u094b\u092a\u0939\u0930":e<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(n("wd/R"))},"3N8a":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;
1return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r.pending=!1,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(i,this.id,t),this}},{key:"requestAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(e.flush.bind(e,this),n)}},{key:"recycleAsyncId",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}},{key:"execute",value:function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(e,t){var n,i=!1;try{this.work(e)}catch(r){i=!0,n=!!r&&r||new Error(r)}if(i)return this.unsubscribe(),n}},{key:"_unsubscribe",value:function(){var e=this.id,t=this.scheduler,n=t.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"schedule",value:function(e){return this}}]),n}(n("quSY").a))},"3UD+":function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},"3f6Y":function(e,t,n){(function(){var e={8536:function(e){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(e,n){var i;if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator])return(i=e[Symbol.iterator]()).next.bind(i);if(Array.isArray(e)||(i=function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(i="Object"===i&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){return u[e]}var r,a=(function(e){e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}}(r={exports:{}}),r.exports),o=/[&<>"']/,s=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(d,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var f=/(^|[^\[])\^/g,p=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},v=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r<i;){var a=e.charAt(i-r-1);if(a!==t||n){if(a===t||!n)break;r++}else r++}return e.substr(0,i-r)}var w=function(e,t){if(t){if(o.test(e))return e.replace(s,i)}else if(l.test(e))return e.replace(c,i);return e},k=h,C=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(f,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n},x={exec:function(){}},S=function(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},M=function(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var i=!1,r=t;0<=--r&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}
1,D=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])i++;else if(e[r]===t[1]&&--i<0)return r;return-1},T=a.defaults,E=_,A=M,P=w,L=D;function O(e,t,n){var i=t.href,r=t.title?P(t.title):null;return t=e[1].replace(/\\([\[\]])/g,"$1"),"!"!==e[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:t}:{type:"image",raw:n,href:i,title:r,text:P(t)}}var I=function(){function e(e){this.options=e||T}var t=e.prototype;return t.space=function(e){if(e=this.rules.block.newline.exec(e))return 1<e[0].length?{type:"space",raw:e[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t)return e=t[0].replace(/^ {1,4}/gm,""),{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:E(e,"\n")}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0];return e=function(e,t){if(null===(e=e.match(/^(\s+)(?:```)/)))return t;var n=e[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null!==t&&t[0].length>=n.length?e.slice(n.length):e}).join("\n")}(n,t[3]||""),{type:"code",raw:n,lang:t[2]&&t[2].trim(),text:e}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();return/#$/.test(n)&&(e=E(n,"#"),!this.options.pedantic&&e&&!/ $/.test(e)||(n=e.trim())),{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){if(e=this.rules.block.nptable.exec(e)){var t={type:"table",header:A(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(t.header.length===t.align.length){for(var n=t.align.length,i=0;i<n;i++)t.align[i]=/^ *-+: *$/.test(t.align[i])?"right":/^ *:-+: *$/.test(t.align[i])?"center":/^ *:-+ *$/.test(t.align[i])?"left":null;for(n=t.cells.length,i=0;i<n;i++)t.cells[i]=A(t.cells[i],t.header.length);return t}}},t.hr=function(e){if(e=this.rules.block.hr.exec(e))return{type:"hr",raw:e[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t)return e=t[0].replace(/^ *> ?/gm,""),{type:"blockquote",raw:t[0],text:e}},t.list=function(e){if(e=this.rules.block.list.exec(e)){for(var t,n,i,r,a,o,s=e[0],l=e[2],c=1<l.length,u={type:"list",raw:s,ordered:c,start:c?+l.slice(0,-1):"",loose:!1,items:[]},d=e[0].match(this.rules.block.item),h=!1,f=d.length,p=this.rules.block.listItemStart.exec(d[0]),m=0;m<f;m++){if(s=t=d[m],this.options.pedantic||(o=t.match(new RegExp("\\n\\s*\\n {0,"+(p[0].length-1)+"}\\S")))&&(n=t.length-o.index+d.slice(m+1).join("\n").length,u.raw=u.raw.substring(0,u.raw.length-n),s=t=t.substring(0,o.index),f=m+1),m!==f-1){if(i=this.rules.block.listItemStart.exec(d[m+1]),this.options.pedantic?i[1].length>p[1].length:i[1].length>=p[0].length||3<i[1].length){d.splice(m,2,d[m]+(!this.options.pedantic&&i[1].length<p[0].length&&!d[m].match(/\n$/)?"":"\n")+d[m+1]),m--,f--;continue}(!this.options.pedantic||this.options.smartLists?i[2][i[2].length-1]!==l[l.length-1]:c==(1===i[2].length))&&(n=d.slice(m+1).join("\n").length,u.raw=u.raw.substring(0,u.raw.length-n),m=f-1),p=i}i=t.length,~(t=t.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(i-=t.length,t=t.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+i+"}","gm"),"")),t=E(t,"\n"),m!==f-1&&(s+="\n"),i=h||/\n\n(?!\s*$)/.test(s),m!==f-1&&(h="\n\n"===s.slice(-2),i=i||h),i&&(u.loose=!0),this.options.gfm&&(a=void 0,(r=/^\[[ xX]\] /.test(t))&&(a=" "!==t[1],t=t.replace(/^\[[ xX]\] +/,""))),u.items.push({type:"list_item",raw:s,task:r,checked:a,loose:i,text:t})}return u}},t.html=function(e){if(e=this.rules.block.html.exec(e))return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):P(e[0]):e[0]}},t.def=function(e){if(e=this.rules.block.def.exec(e))return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},t.table=function(e){if(e=this.rules.block.table.exec(e)){var t={type:"table",header:A(e[1].replace(/^ *| *\| *$/g,"")),al
1ign:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=e[0];for(var n=t.align.length,i=0;i<n;i++)t.align[i]=/^ *-+: *$/.test(t.align[i])?"right":/^ *:-+: *$/.test(t.align[i])?"center":/^ *:-+ *$/.test(t.align[i])?"left":null;for(n=t.cells.length,i=0;i<n;i++)t.cells[i]=A(t.cells[i].replace(/^ *\| *| *\| *$/g,""),t.header.length);return t}}},t.lheading=function(e){if(e=this.rules.block.lheading.exec(e))return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},t.paragraph=function(e){if(e=this.rules.block.paragraph.exec(e))return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},t.text=function(e){if(e=this.rules.block.text.exec(e))return{type:"text",raw:e[0],text:e[0]}},t.escape=function(e){if(e=this.rules.inline.escape.exec(e))return{type:"escape",raw:e[0],text:P(e[1])}},t.tag=function(e,t,n){if(e=this.rules.inline.tag.exec(e))return!t&&/^<a /i.test(e[0])?t=!0:t&&/^<\/a>/i.test(e[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):P(e[0]):e[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;if(e=E(n.slice(0,-1),"\\"),(n.length-e.length)%2==0)return}else-1<(r=L(t[2],"()"))&&(a=(0===t[0].indexOf("!")?5:4)+t[1].length+r,t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]="");var i,r=t[2],a="";return this.options.pedantic?(i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))&&(r=i[1],a=i[3]):a=t[3]?t[3].slice(1,-1):"",r=r.trim(),O(t,{href:(r=/^</.test(r)?this.options.pedantic&&!/>$/.test(n)?r.slice(1):r.slice(1,-1):r)&&r.replace(this.rules.inline._escapes,"$1"),title:a&&a.replace(this.rules.inline._escapes,"$1")},t[0])}},t.reflink=function(e,t){if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){if((e=t[(e=(n[2]||n[1]).replace(/\s+/g," ")).toLowerCase()])&&e.href)return O(n,e,n[0]);var n=n[0].charAt(0);return{type:"text",raw:n,text:n}}},t.emStrong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(e);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
10EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var a,o=i[0].length-1,s=o,l=0,c="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+o);null!=(i=c.exec(t));)if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=a.length,i[3]||i[4])s+=a;else if(!((i[5]||i[6])&&o%3)||(o+a)%3){if(!(0<(s-=a))){if(s+l-a<=0&&!t.slice(c.lastIndex).match(c)&&(a=Math.min(a,a+s+l)),Math.min(o,a)%2)return{type:"em",raw:e.slice(0,o+i.index+a+1),text:e.slice(1,o+i.index+a)};
1if(Math.min(o,a)%2==0)return{type:"strong",raw:e.slice(0,o+i.index+a+1),text:e.slice(2,o+i.index+a-1)}}}else l+=a}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n);return e=/^ /.test(n)&&/ $/.test(n),i&&e&&(n=n.substring(1,n.length-1)),n=P(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){if(e=this.rules.inline.br.exec(e))return{type:"br",raw:e[0]}},t.del=function(e){if(e=this.rules.inline.del.exec(e))return{type:"del",raw:e[0],text:e[2]}},t.autolink=function(e,t){var n;if(e=this.rules.inline.autolink.exec(e))return t="@"===e[2]?"mailto:"+(n=P(this.options.mangle?t(e[1]):e[1])):n=P(e[1]),{type:"link",raw:e[0],text:n,href:t,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n,i,r,a;if(n=this.rules.inline.url.exec(e)){if("@"===n[2])r="mailto:"+(i=P(this.options.mangle?t(n[0]):n[0]));else{for(;a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0],a!==n[0];);i=P(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){if(e=this.rules.inline.text.exec(e))return n=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):P(e[0]):e[0]:P(this.options.smartypants?n(e[0]):e[0]),{type:"text",raw:e[0],text:n}},e}();M=x,D=C,x=S,(C={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:M,table:M,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/}).def=D(C.def).replace("label",C._label).replace("title",C._title).getRegex(),C.bullet=/(?:[*+-]|\d{1,9}[.)])/,C.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,C.item=D(C.item,"gm").replace(/bull/g,C.bullet).getRegex(),C.listItemStart=D(/^( *)(bull) */).replace("bull",C.bullet).getRegex(),C.list=D(C.list).replace(/bull/g,C.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+C.def.source+")").getRegex(),C._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",C._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,C.html=D(C.html,"i").replace("comment",C._comment).replace("tag",C._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),C.paragraph=D(C._paragraph).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.blockquote=D(C.blockquote).replace("paragraph",C.paragraph).getRegex(),C.normal=x({},C),C.gfm=x({},C.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),C.gfm.nptable=D(C.gfm.nptable).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.gfm.table=D(C.gfm.table).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.pedantic=x({},C.normal,{html:D("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",C._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:M,paragraph:D(C.normal._paragraph).replace("hr",C.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",C.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),(M={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:M,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_]*?\*[^_]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^*]*?\_[^*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:M,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"}).punctuation=D(M.punctuation).replace(/punctuation/g,M._punctuation).getRegex(),M.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>
vendor: 17,906 bytes, line 1
1/g,M.escapedEmSt=/\\\*|\\_/g,M._comment=D(C._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),M.emStrong.lDelim=D(M.emStrong.lDelim).replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimAst=D(M.emStrong.rDelimAst,"g").replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimUnd=D(M.emStrong.rDelimUnd,"g").replace(/punct/g,M._punctuation).getRegex(),M._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,M._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,M._email=/[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])?)+(?![-_])/,M.autolink=D(M.autolink).replace("scheme",M._scheme).replace("email",M._email).getRegex(),M._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,M.tag=D(M.tag).replace("comment",M._comment).replace("attribute",M._attribute).getRegex(),M._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,M._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,M._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,M.link=D(M.link).replace("label",M._label).replace("href",M._href).replace("title",M._title).getRegex(),M.reflink=D(M.reflink).replace("label",M._label).getRegex(),M.reflinkSearch=D(M.reflinkSearch,"g").replace("reflink",M.reflink).replace("nolink",M.nolink).getRegex(),M.normal=x({},M),M.pedantic=x({},M.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:D(/^!?\[(label)\]\((.*?)\)/).replace("label",M._label).getRegex(),reflink:D(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",M._label).getRegex()}),M.gfm=x({},M.normal,{escape:D(M.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),M.gfm.url=D(M.gfm.url,"i").replace("email",M.gfm._extended_email).getRegex(),M.breaks=x({},M.gfm,{br:D(M.br).replace("{2,}","*").getRegex(),text:D(M.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var H=a.defaults,j=(M={block:C,inline:M}).block,F=M.inline,R=function(e,t){if(t<1)return"";for(var n="";1<t;)1&t&&(n+=e),t>>=1,e+=e;return n+e};function N(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function B(e){for(var t,n="",i=e.length,r=0;r<i;r++)t=e.charCodeAt(r),n+="&#"+(t=.5<Math.random()?"x"+t.toString(16):t)+";";return n}var Y=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||H,this.options.tokenizer=this.options.tokenizer||new I,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,e={block:j.normal,inline:F.normal},this.options.pedantic?(e.block=j.pedantic,e.inline=F.pedantic):this.options.gfm&&(e.block=j.gfm,e.inline=this.options.breaks?F.breaks:F.gfm),this.tokenizer.rules=e}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,i,r=t.prototype;return r.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},r.blockTokens=function(e,t,n){var i,r,a,o;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),(o=t[t.length-1])&&"paragraph"===o.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text):t.push(i);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),a=i.items.length,r=0;r<a;r++)i.items[r].tokens=this.blockTokens(i.items[r].text,[],!1);t.push(i)}else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.def(e)))e=e.substring(i.raw.length),this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.paragraph(e)))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(o=t[t.length-1])&&"text"===o.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text):t.push(i);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return t},r.inline=function(e){for(var t,n,i,r,a,o=e.length,s=0;s<o;s++)switch((a=e[s]).type){case"paragraph":case"text":case"heading":a.tokens=[],this.inlineTokens(a.text,a.tokens);break;case"table":for(a.tokens={header:[],cells:[]},i=a.header.length,t=0;t<i;t++)a.tokens.header[t]=[],this.inlineTokens(a.header[t],a.tokens.header[t]);for(i=a.cells.length,t=0;t<i;t++)for(r=a.cells[t],a.tokens.cells[t]=[],n=0;n<r.length;n++)a.tokens.cells[t][n]=[],this.inlineTokens(r[n],a.tokens.cells[t][n]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(i=a.items.length,t=0;t<i;t++)this.inline(a.items[t].tokens)}return e},r.inlineTokens=function(e,t,n,i){var r;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===i&&(i=!1);var a,o,s,l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(0<c.length)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+R("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+R("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(s=""),o=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i)){e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock;var u=t[t.length-1];u&&"text"===r.type&&"text"===u.type?(u.raw+=r.raw,u.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),u=t[t.length-1],"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,i),t.push(r)):u&&"text"===r.type&&"text"===u.type?(u.raw+=r.raw,u.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,s))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,B))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,B))){if(r=this.tokenizer.inlineText(e,i,N))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),o=!0,(d=t[t.length-1])&&"text"===d.type?(d.raw+=r.raw,d.text+=r.text):t.push(r);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(r.raw.length),t.push(r);return t},n=t,i=[{key:"rules",get:function(){return{block:j,inline:F}}}],(r=null)&&e(n.prototype,r),i&&e(n,i),t}(),z=a.defaults,V=function(e,t,n){if(e){var i;try{i=decodeURIComponent(h(n)).replace(p,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!m.test(n)&&(n=function(e,t){g[" "+e]||(g[" "+e]=v.test(e)?e+"/":_(e,"/",!0));var n=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(y,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(b,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},U=w,$=function(){function e(e){this.options=e||z}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];return!this.options.highlight||null!=(t=this.options.highlight(e,i))&&t!==e&&(n=!0,e=t),e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+U(i,!0)+'">'+(n?e:U(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:U(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n"+(t=t&&"<tbody>"+t+"</tbody>")+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){return null===(e=V(this.options.sanitize,this.options.baseUrl,e))?n:(e='<a href="'+U(e)+'"',t&&(e+=' title="'+t+'"'),e+">"+n+"</a>")},t.image=function(e,t,n){return null===(e=V(this.options.sanitize,this.options.baseUrl,e))?n:(n='<img src="'+e+'" alt="'+n+'"',t&&(n+=' title="'+t+'"'),n+(this.options.xhtml?"/>":">"))},t.text=function(e){return e},e}(),W=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),q=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n))for(i=this.seen[e];n=e+"-"+ ++i,this.seen.hasOwnProperty(n););return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),G=a.defaults,X=k,Q=function(){function e(e){this.options=e||G,this.options.renderer=this.options.renderer||new $,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new W,this.slugger=new q}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);for(var n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v="",y=e.length,b=0;b<y;b++)switch((c=e[b]).type){case"space":continue;case"hr":v+=this.renderer.hr();continue;case"heading":v+=this.renderer.heading(this.parseInline(c.tokens),c.depth,X(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":v+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(s=u="",r=c.header.length,n=0;n<r;n++)s+=this.renderer.tablecell(this.parseInline(c.tokens.header[n]),{header:!0,align:c.align[n]});for(u+=this.renderer.tablerow(s),l="",r=c.cells.length,n=0;n<r;n++){for(s="",a=(o=c.tokens.cells[n]).length,i=0;i<a;i++)s+=this.renderer.tablecell(this.parseInline(o[i]),{header:!1,align:c.align[i]});l+=this.renderer.tablerow(s)}v+=this.renderer.table(u,l);continue;case"blockquote":l=this.parse(c.tokens),v+=this.renderer.blockquote(l);continue;case"list":for(u=c.ordered,_=c.start,d=c.loose,r=c.items.length,l="",n=0;n<r;n++)p=(f=c.items[n]).checked,m=f.task,h="",f.task&&(g=this.renderer.checkbox(p),d?0<f.tokens.length&&"text"===f.tokens[0].type?(f.tokens[0].text=g+" "+f.tokens[0].text,f.tokens[0].tokens&&0<f.tokens[0].tokens.length&&"text"===f.tokens[0].tokens[0].type&&(f.tokens[0].tokens[0].text=g+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:g}):h+=g),h+=this.parse(f.tokens,d),l+=this.renderer.listitem(h,m,p);v+=this.renderer.list(l,u,_);continue;case"html":v+=this.renderer.html(c.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(l=c.tokens?this.parseInline(c.tokens):c.text;b+1<y&&"text"===e[b+1].type;)l+="\n"+((c=e[++b]).tokens?this.parseInline(c.tokens):c.text);v+=t?this.renderer.paragraph(l):l;continue;default:var _='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(_);throw new Error(_)}return v},t.parseInline=function(e,t){t=t||this.renderer;for(var n,i="",r=e.length,a=0;a<r;a++)switch((n=e[a]).type){case"escape":case"text":i+=t.text(n.text);break;case"html":i+=t.html(n.text);break;case"link":i+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":i+=t.image(n.href,n.title,n.text);break;case"strong":i+=t.strong(this.parseInline(n.tokens,t));break;case"em":i+=t.em(this.parseInline(n.tokens,t));break;case"codespan":i+=t.codespan(n.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(n.tokens,t));break;default:var o='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}return i},e}(),K=S,Z=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},J=w,ee=(w=a.getDefaults,a.changeDefaults);function te(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=K({},te.defaults,t||{}),Z(t),n){var i,r=t.highlight;try{i=Y.lex(e,t)}catch(e){return n(e)}var a=function(e){var a;if(!e)try{a=Q.parse(i,t)}catch(a){e=a}return t.highlight=r,e?n(e):n(null,a)};if(!r||r.length<3)return a();if(delete t.highlight,!i.length)return a();var o=0;return te.walkTokens(i,function(e){"code"===e.type&&(o++,setTimeout(function(){r(e.text,e.lang,function(t,n){return t?a(t):(null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),void(0==--o&&a()))})},0))}),void(0===o&&a())}try{var s=Y.lex(e,t);return t.walkTokens&&te.walkTokens(s,t.walkTokens),Q.parse(s,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+J(e.message+"",!0)+"</pre>";throw e}}return a=a.defaults,te.options=te.setOptions=function(e){return K(te.defaults,e),ee(te.defaults),te},te.getDefaults=w,te.defaults=a,te.use=function(e){var t,n=K({},e);e.renderer&&function(){var t,i=te.defaults.renderer||new $;for(t in e.renderer)!function(t){var n=i[t];i[t]=function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var s=e.renderer[t].apply(i,a);return!1===s?n.apply(i,a):s}}(t);n.renderer=i}(),e.tokenizer&&function(){var t,i=te.defaults.tokenizer||new I;for(t in e.tokenizer)!function(t){var n=i[t];i[t]=function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var s=e.tokenizer[t].apply(i,a);return!1===s?n.apply(i,a):s}}(t);n.tokenizer=i}(),e.walkTokens&&(t=te.defaults.walkTokens,n.walkTokens=function(n){e.walkTokens(n),t&&t(n)}),te.setOptions(n)},te.walkTokens=function(e,t){for(var i,r=n(e);!(i=r()).done;){var a=i.value;switch(t(a),a.type){case"table":for(var o=n(a.tokens.header);!(s=o()).done;){var s=s.value;te.walkTokens(s,t)}for(var l,c=n(a.tokens.cells);!(l=c()).done;)for(var u=n(l.value);!(d=u()).done;){var d=d.value;te.walkTokens(d,t)}break;case"list":te.walkTokens(a.items,t);break;default:a.tokens&&te.walkTokens(a.tokens,t)}}},te.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=K({},te.defaults,t||{}),Z(t);try{var n=Y.lexInline(e,t);return t.walkTokens&&te.walkTokens(n,t.walkTokens),Q.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+J(e.message+"",!0)+"</pre>";throw e}},te.Parser=Q,te.parser=Q.parse,te.Renderer=$,te.TextRenderer=W,te.
vendor: 4,475 bytes, line 1
1Lexer=Y,te.lexer=Y.lex,te.Tokenizer=I,te.Slugger=q,te.parse=te}()},2737:function(e){var t=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},r=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",o=i.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(A){s=function(e,t,n){return e[t]=n}}function l(e,t,n,i){var r=Object.create((t&&t.prototype instanceof m?t:m).prototype),a=new D(i||[]);return r._invoke=function(e,t,n){var i=u;return function(r,a){if(i===h)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw a;return{value:void 0,done:!0}}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===u)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=h;var l=c(e,t,n);if("normal"===l.type){if(i=n.done?f:d,l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=f,n.method="throw",n.arg=l.arg)}}}(e,n,a),r}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(A){return{type:"throw",arg:A}}}e.wrap=l;var u="suspendedStart",d="suspendedYield",h="executing",f="completed",p={};function m(){}function g(){}function v(){}var y={};y[r]=function(){return this};var b=Object.getPrototypeOf,_=b&&b(b(T([])));_&&_!==t&&n.call(_,r)&&(y=_);var w=v.prototype=m.prototype=Object.create(y);function k(e){["next","throw","return"].forEach(function(t){s(e,t,function(e){return this._invoke(t,e)})})}function C(e,t){function i(r,a,o,s){var l=c(e[r],e,a);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&n.call(d,"__await")?t.resolve(d.__await).then(function(e){i("next",e,o,s)},function(e){i("throw",e,o,s)}):t.resolve(d).then(function(e){u.value=e,o(u)},function(e){return i("throw",e,o,s)})}s(l.arg)}var r;this._invoke=function(e,n){function a(){return new t(function(t,r){i(e,n,t,r)})}return r=r?r.then(a,a):a()}}function x(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,x(e,t),"throw"===t.method))return p;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=c(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var r=i.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:E}}function E(){return{value:void 0,done:!0}}return g.prototype=w.constructor=v,v.constructor=g,g.displayName=s(v,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,s(e,o,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(C.prototype),C.prototype[a]=function(){return this},e.AsyncIterator=C,e.async=function(t,n,i,r,a){void 0===a&&(a=Promise);var o=new C(l(t,n,i,r),a);return e.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},k(w),s(w,o,"Generator"),w[r]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=T,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
1h(M),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return o.type="throw",o.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;M(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}(e.exports);try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}},2612:function(){Smart("smart-button",function(e){_inherits(n,Smart.ContentElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return"<button class=\"smart-button smart-unselectable\" inner-h-t-m-l='[[innerHTML]]' id='button' type='[[type]]' name='[[name]]' value='[[value]]' disabled='[[disabled]]' role=\"presentation\"></button>"}},{key:"refresh",value:function(){}},{key:"focus",value:function(){var e=this;e.$.button?e.$.button.focus():HTMLElement.prototype.focus.call(e)}},{key:"blur",value:function(){var e=this;e.$.button?e.$.button.blur():HTMLElement.prototype.blur.call(e)}},{key:"_upHandler",value:function(e){var t=this;if(e.stopPropagation(),t.$.setAttributeValue("active",!1),t.dataset.target){var n=document.querySelector(t.dataset.target),i=t.dataset.toggle,r="smart-window".toLowerCase();if(n&&n.nodeName.toLowerCase()===r&&"modal"===i&&(i="openModal"),"tab"===i||"pill"===i||"list"===i){var a=this.closest(".nav, .list-group"),o=!a||"UL"!==a.nodeName&&"OL"!==a.nodeName?a.children(".active"):a.querySelectorAll("li > .active");if(a){for(var s=a.querySelectorAll('[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]'),l=0;l<s.length;l++)s[l].classList.remove("primary");for(var c=0;c<o.length;c++)o[c].classList.remove("active");for(var u=t.parentNode;u;){if("LI"===u.nodeName){u.classList.add("active");break}u=u.parentNode}t.classList.add("primary")}return n.parentNode.querySelectorAll(".active").forEach(function(e){e.classList.remove("active"),e.classList.add("smart-hidden")}),n.classList.add("active"),void n.classList.remove("smart-hidden")}i&&n&&!n[i]&&"collapse"===i&&(setTimeout(function(){n.classList.contains("smart-hidden")?n.classList.remove("smart-hidden"):n.classList.add("smart-hidden")}),e.originalEvent.preventDefault()),i&&n&&!n[i]&&"dropdown"===i?(setTimeout(function(){n.opened=!n.opened}),e.originalEvent.preventDefault()):i&&n&&n[i]&&(setTimeout(function(){n[i]()},50),e.originalEvent.preventDefault())}}},{key:"_focusHandler",value:function(){this.$.setAttributeValue("focus",!0),this.$.fireEvent("focus")}},{key:"_blurHandler",value:function(){this.$.setAttributeValue("focus",!1),this.$.fireEvent("blur")}},{key:"_clickHandler",value:function(e){var t=this;("release"!==t.clickMode&&"pressAndRelease"!==t.clickMode||t.readonly)&&(e.preventDefault(),e.stopPropagation())}},{key:"_downHandler",value:function(e){var t=this;if(!(t.disabled||(t.hasRippleAnimation&&Smart.Utilities.Animation.Ripple.animate(t,e.pageX,e.pageY),t.$.setAttributeValue("active",!0),"press"!==t.clickMode&&"pressAndRelease"!==t.clickMode||t.readonly))){if(t.hasAttribute("smart-blazor"))return void t.$.dispatchEvent(new Event("click"));t.$.fireEvent("click",{buttons:"buttons"in e?e.buttons:e.which,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY})}}},{key:"_mouseEnterHandler",value:function(e){var t=this;if(!t.readonly&&(t.$button.setAttributeValue("hover",!0),t.$.setAttributeValue("hover",!0),"hover"===t.clickMode)){var n="buttons"in e?e.buttons:e.which;if(t.hasAttribute("smart-blazor"))return void t.$.dispatchEvent(new Event("click"));t.$.fireEvent("click",{buttons:n,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY})}}},{key:"_touchEndHandler",value:function(){var e=this;setTimeout(function(){e.$button.setAttributeValue("hover",!1),e.$.setAttributeValue("hover",!1)},300)}},{key:"_mouseLeaveHandler",value:function(){this.$button.setAttributeValue("hover",!1),this.$.setAttributeValue("hover",!1)}}
1,{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;"disabled"===e?(r._setFocusable(),r.$button&&r.$button.setAttributeValue("hover",!1),r.$.setAttributeValue("hover",!1),r instanceof Smart.RepeatButton&&r._stopRepeat()):"unfocusable"===e&&r._setFocusable()}},{key:"_setFocusable",value:function(){var e=this,t=e.$.button?e.$.button:e;if(e.disabled||e.unfocusable)return t.removeAttribute("tabindex"),void(t.tabIndex=-1);t.tabIndex=e.tabIndex>0?e.tabIndex:0}},{key:"ready",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ready",this).call(this),e.setAttribute("role","button"),e._setFocusable(),e.enableShadowDOM&&e.$.hiddenInput&&e.appendChild(e.$.hiddenInput)}}],[{key:"properties",get:function(){return{value:{type:"string"},name:{type:"string"},type:{value:"button",type:"string"},clickMode:{allowedValues:["hover","press","release","pressAndRelease"],type:"string",value:"release"}}}},{key:"styleUrls",get:function(){return["smart.button.css"]}},{key:"listeners",get:function(){return{"button.down":"_downHandler","button.mouseenter":"_mouseEnterHandler","button.mouseleave":"_mouseLeaveHandler","button.touchend":"_touchEndHandler","button.click":"_clickHandler","button.up":"_upHandler",up:"_upHandler","button.focus":"_focusHandler","button.blur":"_blurHandler"}}}]),n}()),Smart("smart-repeat-button",function(e){_inherits(n,Smart.Button);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_clickHandler",value:function(e){var t=this;("release"!==t.clickMode||t.preventDefaultClick||t.readonly||t.disabled)&&(e.preventDefault(),e.stopPropagation(),t.preventDefaultClick=!1)}},{key:"_updateInBoundsFlag",value:function(e){var t=this;-1!==e.type.indexOf("leave")?(t._isPointerInBounds=!1,t.$button.setAttributeValue("hover",!1),t.$.setAttributeValue("hover",!1)):(t._isPointerInBounds=!0,t.$button.setAttributeValue("hover",!0),t.$.setAttributeValue("hover",!0)),1!==("buttons"in e?e.buttons:e.which)&&t._stopRepeat(e)}},{key:"_startRepeat",value:function(e){var t=this;t.setAttribute("active",""),t._initialTimer||t.readonly||(t._initialTimer=setTimeout(function(){t._repeatTimer=setInterval(function(){if(t._isPointerInBounds){if(t.hasAttribute("smart-blazor"))return t.$.dispatchEvent(new Event("click")),void(t.preventDefaultClick=!0);t.$.fireEvent("click",{buttons:"buttons"in e?e.buttons:e.which,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY}),t.preventDefaultClick=!0}},t.delay)},t.initialDelay))}},{key:"_stopRepeat",value:function(e){var t=this;t.readonly||e&&("pointercancel"===e.type||e.originalEvent&&"pointercancel"===e.originalEvent.type)||(t.$.setAttributeValue("active",!1),t._repeatTimer&&(clearInterval(t._repeatTimer),t._repeatTimer=null),t._initialTimer&&(clearTimeout(t._initialTimer),t._initialTimer=null))}},{key:"_touchmoveHandler",value:function(e){this.preventDefaultClick&&e.cancelable&&(e.preventDefault(),e.stopPropagation())}},{key:"_overriddenHandler",value:function(){}}],[{key:"properties",get:function(){return{delay:{value:50,type:"number"},initialDelay:{value:150,type:"number"}}}},{key:"listeners",get:function(){return{"button.down":"_startRepeat","button.mouseenter":"_overriddenHandler","button.mouseleave":"_overriddenHandler","button.pointerenter":"_updateInBoundsFlag","button.pointerleave":"_updateInBoundsFlag","button.touchmove":"_touchmoveHandler","document.up":"_stopRepeat"}}}]),n}()),Smart("smart-toggle-button",function(e){_inherits(n,Smart.Button);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this),this._setAriaState()}},{key:"_setAriaState",value:function(){var e=this.checked;this.setAttribute("aria-pressed",null!==e?e:"mixed")}},{key:"_buttonClickHandler",value:function(){}},{key:"_buttonMouseLeaveHandler",value:function(){this.removeAttribute("hover")}},{key:"_buttonMouseEnterHandler",value:function(){var e=this;e.setAttribute("hover",""),e.disabled||e.readonly||"hover"!==e.clickMode||(e._changeCheckState("pointer"),e.focus(),e._updateHidenInputNameAndValue())}},{key:"_documentUpHandler",value:function(e){var t=this;t._pressed&&(t._pressed=!1,t.disabled||t.readonly||"press"===t.clickMode||"pointercancel"===e.originalEvent.type||(t._changeCheckState("pointer"),t.focu
1s(),t._updateHidenInputNameAndValue()))}},{key:"_downHandler",value:function(e){var t=this;t.disabled||t.readonly||(t.hasRippleAnimation&&Smart.Utilities.Animation.Ripple.animate(t,e.pageX,e.pageY),t._pressed=!0,"press"!==t.clickMode&&"pressAndRelease"!==t.clickMode||(t._changeCheckState("pointer"),t.hasAttribute("smart-blazor")?t.$.dispatchEvent(new Event("click")):t.$.fireEvent("click"),t._updateHidenInputNameAndValue()),"press"===t.clickMode&&(e.preventDefault(),e.stopPropagation()))}},{key:"_dragStartHandler",value:function(e){e.preventDefault()}},{key:"_keyHandler",value:function(e){var t=this;if(!0!==t.disabled&&!t.readonly&&32===e.keyCode){if("keydown"===e.type)return void e.preventDefault();if("none"===t.switchMode)return;t._changeCheckState("keyboard"),t._updateHidenInputNameAndValue()}}},{key:"_changeCheckState",value:function(e){var t=this,n=null;null===t.checked?t.checked=!0:(n=t.checked,t.checked=!t.checked),t._handleTextSelection(),t.$.fireEvent("change",{value:t.checked,oldValue:n,changeType:e}),t.$.fireEvent(t.checked?"checkValue":"uncheckValue",{changeType:e}),t._setAriaState()}},{key:"_handleTextSelection",value:function(){var e=this;e.$.addClass("smart-unselectable"),e.timer&&clearTimeout(e.timer),e.timer=setTimeout(function(){return e.$.removeClass("smart-unselectable")},500)}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;if("checked"===e)return r.$.fireEvent("change",{value:i,oldValue:t,changeType:"api"}),void r._setAriaState();switch(e){case"trueTemplate":r._handleTemplate(!0);break;case"falseTemplate":r._handleTemplate(!1);break;case"indeterminateTemplate":r._handleTemplate()}}},{key:"_htmlBindOnInitialization",value:function(){var e=this;e._bindContentProperty("trueContent","smart-true-content"),e._bindContentProperty("falseContent","smart-false-content"),e._bindContentProperty("indeterminateContent","smart-indeterminate-content")}},{key:"_bindContentProperty",value:function(e,t){var n=this;if(n.$[e+"Container"]){var i=document.createElement("div");i.innerHTML=n.innerHTML;var r,a=i.getElementsByClassName(t);if(a.length>0)for(var o=0;o<a.length;o++)r=a[o];""===n[e]&&(n[e]=void 0===r?"":r.outerHTML),n.$[e+"Container"].innerHTML=n[e]}}},{key:"_updateContentProperties",value:function(){var e=this;function t(t){e.$[t+"Container"]&&(e[t]=e.$[t+"Container"].innerHTML)}t("trueContent"),t("falseContent"),t("indeterminateContent")}},{key:"_updateHidenInputValue",value:function(){var e,t=this;t.$.hiddenInput&&(e=null===t.checked?"null":!1===t.checked?"off":t.value||"on",t.$.hiddenInput.setAttribute("value",e))}},{key:"_updateHidenInputName",value:function(){var e=this;e.$.hiddenInput&&e.$.hiddenInput.setAttribute("name",!1===e.checked?"":e.name||"")}},{key:"_updateHidenInputNameAndValue",value:function(){this._updateHidenInputName(),this._updateHidenInputValue()}},{key:"_handleTemplate",value:function(e,t){var n,i,r,a=this;if(!0===e?(n=a.trueTemplate,i=a.$.trueContentContainer,r=a.trueContent):!1===e?(n=a.falseTemplate,i=a.$.falseContentContainer,r=a.falseContent):(n=a.indeterminateTemplate,i=a.$.indeterminateContentContainer,r=a.indeterminateContent),t&&(i.innerHTML=r||""),null!==n&&n)if("function"!=typeof n)if("content"in document.createElement("template"))if(null!==(n=document.getElementById(n))&&"content"in n){for(var o,s=n.content,l=s.childNodes.length,c=/{{\w+}}/g,u=[],d=0;d<l;d++)for(o=c.exec(s.childNodes[d].innerHTML);o;)u.push({childNodeIndex:d,bindingString:o[0]}),o=c.exec(s.childNodes[d].innerHTML);for(var h,f,p=u.length,m=document.importNode(n.content,!0),g=0;g<p;g++){h=m.childNodes[u[g].childNodeIndex],f=u.length;for(var v=0;v<f;v++)h.innerHTML=h.innerHTML.replace(u[g].bindingString,r)}i.innerHTML="";for(var y=0;y<m.childNodes.length;y++)m.childNodes[y].outerHTML&&(i.innerHTML+=m.childNodes[y].outerHTML)}else a.error(a.localize("invalidTemplate",{elementType:a.nodeName.toLowerCase(),property:"template"}));else a.error(a.localize("htmlTemplateNotSuported",{elementType:a.nodeName.toLowerCase()}));else n(i,{value:r})}}],[{key:"properties",get:function(){return{checked:{value:!1,type:"boolean?"},falseContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminateContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminate:{value:!1,type:"boolean"},trueContent:{value:"",reflectToAttribute:!1,type:"string"},indeterminateTemplate:{value:null,type:"any"},trueTemplate:{value:null,type:"any"},falseTemplate:{value:null,type:"any"},type:{value:"toggle",type:"string",defaultReflectToAttribute:!0,readonly:!0}}}},{key:"listeners",get:function(){return{keydown:"_keyHandler",keyup:"_keyHandler",dragstart:"_dragStartHandler","button.click":"_buttonClickHandler","button.mouseenter":"_buttonMouseEnterHandler","button.mouseleave":"_buttonMouseLeaveHandler","document.up":"_documentUpHandler"}}}]),n}())},9097:function(){Smart("smart-check-box",function(e){_inherits(n,Smart.ToggleButton);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return"<div id='container' class='smart-container' role=\"presentation\">\n <div class='smart-overlay' role=\"presentation\"></div>
1\n <span id='checkBoxInput' class='smart-input' aria-hidden=\"true\"></span>\n <span id='checkBoxLabel' inner-h-t-m-l='[[innerHTML]]' class='smart-label'><content></content></span>\n <input id='hiddenInput' class='smart-hidden-input' type='hidden'>\n </div>"}},{key:"_focusHandler",value:function(){this.$.setAttributeValue("focus",!0)}},{key:"_blurHandler",value:function(){this.$.setAttributeValue("focus",!1)}},{key:"_mouseEnterHandler",value:function(){this.$.setAttributeValue("hover",!0)}},{key:"_mouseLeaveHandler",value:function(){this.$.setAttributeValue("hover",!1)}},{key:"ready",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ready",this).call(this),e.setAttribute("role","checkbox"),e.indeterminate&&(e._valueCache=e.checked,e.checked=null,e._setAriaState()),e.classList.add("smart-toggle-box"),e._updateHidenInputNameAndValue()}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;switch(r._updateContentProperties(),e){case"indeterminate":i?(r._valueCache=r.checked,r.checked=null):r.checked=r._valueCache,r._setAriaState(),r._updateHidenInputNameAndValue();break;case"value":case"checked":r._updateHidenInputNameAndValue();break;case"name":r._updateHidenInputName()}}},{key:"_documentUpHandler",value:function(e){var t=this;if(t._pressed&&"pointercancel"!==e.originalEvent.type){var n=t.enableShadowDOM?e.originalEvent.composedPath()[0]:e.originalEvent.target;if(t._pressed=!1,t.$.setAttributeValue("active",!1),!(t.disabled||t.readonly||"input"===t.checkMode&&n!==t.$.checkBoxInput||"label"===t.checkMode&&n!==t.$.checkBoxLabel)){if("press"===t.clickMode)return e.preventDefault(),void e.stopPropagation();t._changeCheckState("pointer"),t.focus(),t._handleTextSelection(),t._updateHidenInputNameAndValue()}}}},{key:"_downHandler",value:function(e){var t=this,n=t.enableShadowDOM?e.originalEvent.composedPath()[0]:e.originalEvent.target;if(!(t.disabled||t.readonly||"input"===t.checkMode&&n!==t.$.checkBoxInput||"label"===t.checkMode&&n!==t.$.checkBoxLabel)){if(t.$.setAttributeValue("active",!0),t.hasRippleAnimation){var i=t.$.checkBoxInput.getBoundingClientRect(),r=window.scrollX||window.pageXOffset,a=window.scrollY||window.pageYOffset;Smart.Utilities.Animation.Ripple.animate(t.$.checkBoxInput,i.left+i.width/2+r,i.top+i.height/2+a)}t._pressed=!0,"press"!==t.clickMode&&"pressAndRelease"!==t.clickMode||(t._changeCheckState("pointer"),t.$.fireEvent("click"),t.focus(),t._updateHidenInputNameAndValue())}}},{key:"_setAriaState",value:function(){var e=this.checked;this.setAttribute("aria-checked",null!==e?e:"mixed")}}],[{key:"properties",get:function(){return{checkMode:{value:"both",allowedValues:["both","input","label"],type:"string"},type:{value:"checkbox",type:"string",defaultReflectToAttribute:!0,readonly:!0}}}},{key:"listeners",get:function(){return{down:"_downHandler","document.up":"_documentUpHandler","checkBoxInput.mouseenter":"_mouseEnterHandler","checkBoxInput.mouseleave":"_mouseLeaveHandler",focu
1s:"_focusHandler",blur:"_blurHandler"}}},{key:"styleUrls",get:function(){return["smart.toggle.css"]}}]),n}())},4896:function(){Smart("smart-color-input",function(e){_inherits(n,Smart.Input);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="inputContainer" role="presentation">\n <div class="smart-content">\n <div class="smart-buttons-container" role="presentation" id="buttonsContainer">\n <div class="smart-action-button" id="actionButton">\n <div id="colorSampleContainer" class="smart-color-box color-picker-sample-container" role="presentation">\n <div id="colorSample" class="color-picker-sample"></div>\n </div>\n <input class="smart-input smart-color-input" id=\'input\' readonly=\'[[readonly]]\' placeholder=\'[[placeholder]]\' type=\'[[type]]\' name=\'[[name]]\'\n value=\'[[value]]\' disabled=\'[[disabled]]\' aria-label="[[placeholder]]" spellcheck="false" />\n </div>\n <div id="dropDownButton" tabindex=-1 class="smart-drop-down-button" role="button" aria-label="Toggle popup">\n <div id="arrow" class="smart-drop-down-button-icon" aria-hidden="true"></div>\n </div>\n </div>\n <span id="hint" class="smart-hint smart-hidden" inner-h-t-m-l="[[hint]]"></span>\n </div>\n </div>'}},{key:"open",value:function(){var e,t=this;t.dropDownDataSource?(t.query="",e="function"==typeof t.dataSource?t.dataSource(t.query):t.dataSource):e="function"==typeof t.dropDownDataSource?t.dropDownDataSource(t.query):t.dropDownDataSource,t._process(e);var n=t.$.menu.querySelector(".color-sample.selected");if(n)for(var i=t.$.input.dataValue,r=t.$.menu.querySelectorAll(".color-sample"),a=0;a<r.length;a++){var o=r[a],s=o.getAttribute("data-label"),l=o.getAttribute("value");if(void 0!==i&&l===i||void 0===i&&s===t.$.input.value){n.removeAttribute("aria-current"),n.classList.remove("selected"),o.classList.add("selected"),o.setAttribute("aria-current",!0),t._setActiveDescendant(o),t.$.input.dataValue=l;break}}t.ensureVisible(),t.$.input.focus(),setTimeout(function(){t.$.input.focus()},25)}},{key:"_blurHandler",value:function(){var e=this;e.opened||(e.removeAttribute("focus"),e.$.actionButton.removeAttribute("focus"),e.$.dropDownButton.removeAttribute("focus")),delete e._preventLookup,e._isValidColor(e.value)||(e.$.input.value=e.$.input.dataValue=e.value="",e.$colorSampleContainer.addClass("no-color"))}},{key:"_focusHandler",value:function(){var e=this;e.setAttribute("focus",""),e.$.actionButton.setAttribute("focus",""),e.$.dropDownButton.setAttribute("focus",""),e.readonly||0!==e.minLength||0!==e.$.input.value.length||e._preventLookup?delete e._preventLookup:e._lookup()}},{key:"_lookup",value:function(e){var t=this,n=[];t.query=t.$.input.value,t.$.input.readonly&&(t._incrementalSearchQuery||(t._incrementalSearchQuery=""),t._incrementalSearchQuery+=e.key,t._incrementalSearchTimer&&clearTimeout(t._incrementalSearchTimer),t.query=t._incrementalSearchQuery,t._incrementalSearchTimer=setTimeout(function(){t._incrementalSearchQuery=""},700)),t.query.length<t.minLength?t.close():(n="function"==typeof t.dataSource?t.dataSource(t.query):t.dataSource,clearTimeout(t._autoCompleteTimeout),t._autoCompleteTimeout=setTimeout(function(){var e=t.context;t.context=t,t._process(n),t.context=e},t.autoCompleteDelay))}},{key:"_getDefaultColors",value:function(){var e=this._generateColors();if("grid"===this.displayMode)return e;for(var t=[],n=0;n<e.length;n++)t=t.concat(Object.values(e[n])[0]);return t}},{key:"_generateColors",value:function(){var e=this;return"default"===e.displayMode?e._defaultModeColors?e._defaultModeColors:e._defaultModeColors=[{themeColors:["#FFFFFF","#000000","#E6E6E6","#495469","#5671C2","#D48439","#A5A5A5","#EEC328","#7399D3","#85AA4C"]},{themeShadeColors:["#F2F2F2","#808080","#D0CECE","#D6DCE4","#DDEBF7","#FCE4D6","#EBEBEB","#FFF2CC","#DDE5F7","#E2EFDA","#D8D8D8","#595959","#AEAAAA","#ACB9CA","#BDD7EE","#F6CAAD","#DBDBDB","#F
1FE699","#B4C6E7","#C6E0B4","#BFBFBF","#404040","#757171","#8497B0","#9BC2E6","#F4B084","#C0C0C0","#FFD966","#8EA9DB","#A9D08E","#A6A6A6","#262626","#312F2F","#333F4F","#2F75B5","#C65911","#7B7B7B","#BF8F00","#305496","#548235","#808080","#0D0D0D","#161616","#222B35","#1F4E78","#833C0C","#525252","#806000","#203764","#375623"]},{standardColors:["#A52A0D","#DB3A15","#EEC328","#FEFE33","#A6CD57","#62AC54","#65ADEE","#3F6FBE","#10205F","#64379E"]}]:e._gridColors?e._gridColors:e._gridColors=["rgba(255, 255, 255, 0)","rgb(0, 0, 0)","rgb(153, 51, 0)","rgb(51, 51, 0)","rgb(0, 51, 0)","rgb(0, 51, 102)","rgb(0, 0, 128)","rgb(51, 51, 153)","rgb(51, 51, 51)","rgb(128, 0, 0)","rgb(255, 102, 0)","rgb(128, 128, 0)","rgb(0, 128, 0)","rgb(0, 128, 128)","rgb(0, 0, 255)","rgb(102, 102, 153)","rgb(128, 128, 128)","rgb(255, 0, 0)","rgb(255, 153, 0)","rgb(153, 204, 0)","rgb(51, 153, 102)","rgb(51, 204, 204)","rgb(51, 102, 255)","rgb(128, 0, 128)","rgb(153, 153, 153)","rgb(255, 0, 255)","rgb(255, 204, 0)","rgb(255, 255, 0)","rgb(0, 255, 0)","rgb(0, 255, 255)","rgb(0, 204, 255)","rgb(153, 51, 102)","rgb(192, 192, 192)","rgb(255, 153, 204)","rgb(255, 204, 153)","rgb(255, 255, 153)","rgb(204, 255, 204)","rgb(204, 255, 255)","rgb(153, 204, 255)","rgb(204, 153, 255)","rgb(255, 255, 255)"]}},{key:"_downHandler",value:function(e){(this.readonly||e.originalEvent.target.closest(".smart-color-box"))&&this._dropDownButtonDownHandler(e)}},{key:"_documentUpHandler",value:function(e){var t=this,n=t.shadowRoot||t.isInShadowDOM?e.originalEvent.composedPath()[0]:e.originalEvent.target;n===t||n.closest&&n.closest(".smart-buttons-container")===t.$.buttonsContainer||(t.$.scrollView.contains(n.shadowParent||n)?t._isPointerDown&&(t._isPointerDown=!1,t.opened&&(t._preventLookup=!0),t.$.input.focus()):(t.opened&&(t._preventLookup=!0),t._isPointerDown=!1,"manual"!==t.dropDownOpenMode&&t.close()))}},{key:"_formatValue",value:function(e){var t=this;if(!t._isValidColor(e))return"";var n=t._getRGBA(e);switch(t.valueFormat){case"hex":e=t._rgbArrayToHEX([n.r,n.g,n.b,n.a]);break;case"rgb":e="rgb("+n.r+", "+n.g+", "+n.b+")";break;case"rgba":e=null!==n.r&&null!==n.g&&null!==n.b?"rgba("+n.r+", "+n.g+", "+n.b+", "+n.a+")":null}return e||null}},{key:"_getRGBA",value:function(e){var t=this,n=e||t.value,i=1;n&&(t._isRGBA(n)&&/rgba\((\d*.\d+|\d+),(\d*.\d+|\d+),(\d*.\d+|\d+)\,(\d*.\d+|\d+)\)/gi.test(n.replace(/\s/g,""))?i=/rgba\((\d*.\d+|\d+),(\d*.\d+|\d+),(\d*.\d+|\d+)\,(\d*.\d+|\d+)\)/gi.exec(n.replace(/\s/g,""))[4]:t._isHEX(e)&&/(^#[0-9A-F]{8}$)/gi.test(e.replace(/\s/g,""))&&(i=parseInt(/(^#[0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2}$)/gi.exec(e.replace(/\s/g,""))[4],16)/255),i=Math.min(1,Math.max(0,parseFloat(i))),isNaN(i)&&(i=1)),e=t._HSVtoRGBA(t._colorToHSV(n),i);var r=/rgba\((\d*.\d+|\d+),(\d*.\d+|\d+),(\d*.\d+|\d+)\,(\d*.\d+|\d+)\)/gi.exec(e.replace(/\s/g,""));return{r:parseInt(r[1]),g:parseInt(r[2]),b:parseInt(r[3]),a:parseFloat(r[4])}}},{key:"_colorToHSV",value:function(e){if(this._isValidColor(e)){e=this._toRGBA(e).replace(/\s/g,"");var t=/rgba\((\d*.\d+|\d+),(\d*.\d+|\d+),(\d*.\d+|\d+)\,(\d*.\d+|\d+)\)/gi.exec(e),n=Math.min(255,Math.max(0,parseFloat(t[1])))/255,i=Math.min(255,Math.max(0,parseFloat(t[2])))/255,r=Math.min(255,Math.max(0,parseFloat(t[3])))/255,a={h:0,s:0,v:0},o=0,s=0;if(n>=i&&n>=r?(s=n,o=i>r?r:i):i>=r&&i>=n?(s=i,o=n>r?r:n):(s=r,o=i>n?n:i),a.v=s,a.s=s?(s-o)/s:0,a.s){var l=s-o;a.h=n===s?(i-r)/l:i===s?2+(r-n)/l:4+(n-i)/l,a.h=60*a.h,a.h<0&&(a.h+=360)}else a.h=0;return a.s=parseFloat(a.s),a.v=parseFloat(a.v),a}}},{key:"_rgbArrayToHEX",value:function(e){var t="#";if(Array.isArray(e)&&null===e[0])return null;for(var n=0;n<3;n++){var i=parseInt(e[n]).toString(16).toUpperCase();t+=i=1===i.length?0+i:i}var r=parseFloat(e[3]);return isNaN(r)||"FF"!==(r=parseInt(255*r).toString(16).toUpperCase())&&(t=t.slice(0,7)+(1===r.length?0+r:r)),t}},{key:"_HSVtoRGBA",value:function(e,t){var n,i,r,a,o,s,l,c,u,d=(e=e||{h:0,s:0,v:0}).h,h=e.v,f=h*e.s,p=d/60,m=f*(1-Math.abs(p%2-1));p>=0&&p<=1?(l=(n=[f,m,0])[0],c=n[1],u=n[2]):p>=1&&p<=2?(l=(i=[m,f,0])[0],c=i[1],u=i[2]):p>=2&&p<=3?(l=(r=[0,f,m])[0],c=r[1],u=r[2]):p>=3&&p<=4?(l=(a=[0,m,f])[0],c=a[1],u=a[2]):p>=4&&p<=5?(l=(o=[m,0,f])[0],c=o[1],u=o[2]):p>=5&&p<=6&&(l=(s=[f,0,m])[0],c=s[1],u=s[2]);var g=h-f;return"rgba("+Math.round(255*(l+g))+", "+Math.round(255*(c+g))+", "+Math.round(255*(u+g))+", "+(void 0!==t?t:this._getRGBA().a||0)+")"}},{key:"_toRGBA",value:function(e,t){var n=this,i=n.value;function r(e){var n=/^#(.)(.)(.)$/gi.exec(e),i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(e),r=n?parseInt(n[1]+n[1],16):parseInt(i[1],16),a=n?parseInt(n[2]+n[2],16):parseInt(i[2],16),o=n?parseInt(n[3]+n[3],16):parseInt(i[3],16),s=n?parseInt(n[4]+n[4],16):parseInt(i[4],16);return t?"rgba("+r+", "+a+", "+o+", 1)":"rgba("+r+", "+a+", "+o+", "+(isNaN(s)?"1":s/255)+")"}if(n._isRGBA(e))return t?"rgba("+e.match(/(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})/gi)+", 1)":e;if(n._isValidColorName(e))i=r(n._cssColorNamesHEX[e.trim().toLowerCase()]);else if(n._isHEX(e))i=r(e);else{if(!n._isRGB(e))return!1;
1i=(i=(i=e.toLowerCase()).replace("rgb","rgba")).replace(")",", 1)")}return i}},{key:"_isHEX",value:function(e){return/(^#[0-9A-F]{3}$)|(^#[0-9A-F]{6}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"_isRGB",value:function(e){return/rgb\((\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\)/i.test(e)}},{key:"_isValidColorName",value:function(e){return!(!e||void 0===this._cssColorNamesHEX[e.trim().toLowerCase()])}},{key:"_isRGBA",value:function(e){return/rgba\((\d*.\d+|\d+)\s*,\s*(\d*.\d+|\d+)\s*,\s*(\d*.\d+|\d+)\s*,\s*(\d*.\d+|\d+)\)/i.test(e)}},{key:"_isValidColor",value:function(e){return this._isHEX(e)||this._isRGB(e)||this._isRGBA(e)||this._isValidColorName(e)}},{key:"_performSelect",value:function(e){var t,n,i,r=this;r.opened?(n=(t=r.$.menu.querySelector(".selected")||r.$.menu.querySelector(".color-sample")).getAttribute("data-label"),i=t.getAttribute("value")):n=i=r.$.input.value;var a=e||r.value,o=r.$.input.dataValue;r.set("value",r.$.colorSample.style.backgroundColor=r._formatValue(n)),r.$.input.dataValue=i,r.setAttribute("data-value",i),r._isValidColor(r.value)?(r.$colorSampleContainer.removeClass("no-color"),r.$.colorSample.setAttribute("aria-label",r.value)):(r.$colorSampleContainer.addClass("no-color"),r.$.colorSample.setAttribute("aria-label","No color")),t&&(t.classList.add("selected"),t.setAttribute("aria-current",!0)),!r.isRendered||n===a&&i===o||r.$.fireEvent("change",{value:i,label:n,oldValue:o,oldLabel:a}),r.close()}},{key:"_process",value:function(e){var t=this;if(e||(e=[]),"string"==typeof(e=e.slice(0))&&(e=t.$.deserialize(e,"array")),t.matcher)e=e.filter(function(e){return t.matcher(e)>-1});else if(t.query){var n=[];for(var i in t._cssColorNamesHEX)t._matcher(i,!0)>-1&&n.push(t._cssColorNamesHEX[i]);if(n.length)e=n;else if(e.length||null!=t.dataSource)e=e.filter(function(e){return t._matcher(e)>-1});else{var r=t._generateColors();"default"===t.displayMode&&(r=[].concat.apply([],r.map(function(e){return Object.values(e)[0]}))),e=r.filter(function(e){return t._matcher(e)>-1})}}!e.length&&t.opened&&t.close(),t.query.length>0&&!e.length||!e.length&&null!=t.dataSource||(t._render(t.query.length>0?e.slice(0,t.items):e),t._open(),t._refreshMenu(),t.ensureVisible())}},{key:"_matcher",value:function(e,t){var n=this,i=n.query;if(e=t?e.label||e:n._formatValue(e.label||e),!i)return-1;switch(n.queryMode){case"startsWith":return e.startsWith(i);case"startsWithIgnoreCase":return e.toLowerCase().startsWith(i.toLowerCase());case"doesNotContain":return e.indexOf(i)<0;case"doesNotContainIgnoreCase":return e.toLowerCase().indexOf(i.toLowerCase())<0;case"contains":return e.indexOf(i)>-1;default:case"containsIgnoreCase":return e.toLowerCase().indexOf(i.toLowerCase());case"equals":return 0===e.localeCompare(i);case"equalsIgnoreCase":return 0===e.toLowerCase().localeCompare(i.toLowerCase());case"endsWith":return e.endsWith(i);case"endsWithIgnoreCase":return e.toLowerCase().endsWith(i.toLowerCase())}}},{key:"_render",value:function(e){var t=this;if(t.$.menu.innerHTML="",e.length)t.$.menu.appendChild(t._createColorGroup(t._createColorSamples(e)));else if(null==t.dataSource&&!t.query.length)if(e=t._generateColors(),"default"===t.displayMode)for(var n=t._generateColors(),i=0;i<n.length;i++){var r=Object.keys(n[i])[0],a=Object.values(n[i])[0],o=document.createElement("div");o.classList.add("standard-colors-label"),o.innerHTML=t.localize(r),o.id=t.id+r+"Label",t.$.menu.appendChild(o),t.$.menu.appendChild(t._createColorGroup(t._createColorSamples(a),r+"Label"))}else t.$.menu.appendChild(t._createColorGroup(t._createColorSamples(e)))}},{key:"_createColorGroup",value:function(e,t){var n=this,i=document.createElement("div");function r(){var e=n.$.menu.getElementsByClassName("selected");e[0]&&(e[0].removeAttribute("aria-current"),e[0].classList.remove("selected")),this.classList.add("selected"),this.setAttribute("aria-current",!0),n._setActiveDescendant(this)}i.classList.add("grid-samples-container"),i.setAttribute("role","menu"),t&&i.setAttribute("aria-labelledby",n.id+t);for(var a=0;a<e.length;a++){var o=e[a];i.appendChild(o),o.onmouseenter=r,o.onclick=r,o.onmouseleave=function(){this.removeAttribute("aria-current"),this.classList.remove("selected"),n._setActiveDescendant(null)}}return i}},{key:"_createColorSamples",value:function(e){for(var t=this,n=[],i=0;i<e.length;i++){var r=e[i],a=r,o=r;"object"==typeof r&&(a=r.label,o=r.value||a);var s=document.createElement("div");s.id=t.id+"Item"+Math.floor(65536*(1+Math.random())).toString(16).substring(1),s.setAttribute("data-label",a),s.setAttribute("value",o),s.setAttribute("role","menuitem"),s.setAttribute("aria-label",a),s.classList.add("color-sample"),s.style.backgroundColor=a,"rgba(255, 255, 255, 255)"!==a&&"#FFFFFF"!==a&&"#FFFFFFFF"!==a||(s.style.borderColor="var(--smart-border)",s.style.borderStyle="solid",s.style.borderWidth="1px"),"rgba(255, 255, 255, 0)"===a||"#FFFFFF00"===a||"transparent"===a?s.setAttribute("transparent",""):s.removeAttribute("transparent"),s.classList[a||o?"remove":"add"]("no-color"),n.push(s)}if(n.length>0&&!t.$.menu.querySelector(".selected")){var l=Math.max(0,e.indexOf(t.value));n[l].classList.add("selected"),n[l].setAttribute("aria-current",!0),t._setActiveDescendant(n[0])}return n}},{key:"ensureVisible",value:function(){this.$.menu.querySelector(".color-sample.selected")}},{key:"_next",value:function(){var e=this,t=e.$.menu.querySelector(".color-sample.selected");if(!t){var n=e.$.menu.querySelector(".color-sample");return n.classList.add("selected"),n.setAttribute("aria-current",!0),void e._setActiveDescendant(n)}t.removeAttribute("aria-current"),t.classList.remove("selected");var i=t.nextElementSibling;if(!i){for(var r=t.parentElement.nextElementSibling;r;
1){if(r.classList.contains("grid-samples-container")){i=r.children[0];break}r=r.nextElementSibling}i||(i=e.$.menu.querySelector(".color-sample"))}i.classList.add("selected"),i.setAttribute("aria-current",!0),e._setActiveDescendant(i),e.ensureVisible()}},{key:"_prev",value:function(){var e=this,t=e.$.menu.querySelector(".color-sample.selected");if(!t){var n=e.$.menu.querySelector(".color-sample");return n.classList.add("selected"),n.setAttribute("aria-current",!0),void e._setActiveDescendant(n)}t.removeAttribute("aria-current"),t.classList.remove("selected");var i=t.previousElementSibling;if(!i){for(var r=t.parentElement.previousElementSibling;r;){if(r.classList.contains("grid-samples-container")){i=r.children[r.children.length-1];break}r=r.previousElementSibling}i||(i=e.$.menu.querySelector(".grid-samples-container:last-of-type .color-sample:last-of-type"))}i.classList.add("selected"),i.setAttribute("aria-current",!0),e._setActiveDescendant(i),e.ensureVisible()}},{key:"_move",value:function(e){var t=this;if(t.opened){switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 37:case 38:e.preventDefault(),t[t.rightToLeft?"_next":"_prev"]();break;case 39:case 40:e.preventDefault(),t[t.rightToLeft?"_prev":"_next"]()}e.stopPropagation()}}},{key:"_inputSelectHandler",value:function(){var e=this;e.readonly&&(e.$.input.selectionStart=e.$.input.selectionEnd)}},{key:"_inputChangeHandler",value:function(e){e.stopPropagation(),this._performSelect()}},{key:"_keyDownHandler",value:function(e){var t=this;t._suppressKeyPressRepeat=![37,38,39,40,9,13,27,16,17,18].includes(e.keyCode),e.shiftKey||e.ctrlKey||(e.altKey?"ArrowUp"===e.key?t.close():"ArrowDown"===e.key&&t.open():t._move(e))}},{key:"_keyUpHandler",value:function(e){var t=this;if(!(e.shiftKey||e.altKey||e.ctrlKey))switch(e.keyCode){case 40:case 39:case 38:case 37:case 16:case 17:case 18:40===e.keyCode&&e.altKey&&t.open(),38===e.keyCode&&e.altKey&&t.close();break;case 9:case 13:if(!t.opened)return void(13===e.keyCode&&t.open());t._performSelect(),e.stopPropagation(),e.preventDefault();break;case 27:if(!t.opened)return;t.close(),e.stopPropagation(),e.preventDefault();break;default:if(t.readonly)return void(32!==e.keyCode||t.opened||t.open());t._lookup(e),!t.opened||e.ctrlKey||e.shiftKey||(e.stopPropagation(),e.preventDefault()),t.$.input.dataValue=t.$.input.value,t._isValidColor(t.value)||(t.$colorSampleContainer.addClass("no-color"),t.$.colorSample.setAttribute("aria-label","No color"),t.$.colorSample.style.backgroundColor="")}}},{key:"propertyChangedHandler",value:function(e,t,i){var r=this;if("dropDownHeight"===e)r.$.scrollView.style.setProperty("--smart-input-drop-down-menu-height",r.dropDownHeight+"px");else if("opened"===e)r.opened=t,i?r.open():r.close();else if("placeholder"===e){if(r.readonly){var a=r.getAttribute("aria-label");if(a&&a!==t)return;i?r.setAttribute("aria-label",i):r.removeAttribute("aria-label")}}else"readonly"===e?r._setAriaRelations():"theme"===e?r.$.scrollView.setAttribute(e,i):"rightToLeft"===e?i?r.$.scrollView.setAttribute("right-to-left",""):r.$.scrollView.removeAttribute("right-to-left"):"valueFormat"===e?(r.value=r._formatValue(r.value),r.$.input.dataValue=r.value):"displayMode"===e?r.open():"value"===e?(r.$.input.value=i,r._performSelect(t)):_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i)}},{key:"_createElement",value:function(){var e=this,t=document.createElement("div"),n=document.createElement("div");n.classList.add("smart-color-input-drop-down-menu","smart-color-panel"),n.setAttribute("theme",e.theme),e.$.scrollView=n,e.rightToLeft?e.$.scrollView.setAttribute("right-to-left",""):e.$.scrollView.removeAttribute("right-to-left"),e.$.menu=t,e.$.menu.classList.add("default-samples-container","grid-mode-container","smart-container"),e.$.scrollView.onclick=function(t){t.stopPropagation(),t.preventDefault(),e._performSelect(),e.$.input.focus()},e.classList.add("smart-drop-down-box","smart-color-picker"),e.value?(e.$colorSampleContainer.removeClass("no-color"),e.$.colorSample.setAttribute("aria-label",e.value)):(e.$colorSampleContainer.addClass("no-color"),e.$.colorSample.
1setAttribute("aria-label","No color")),e._cssColorNamesHEX={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},e._performSelect(e.value)}},{key:"_setAriaRelations",value:function(){var e=this,t=e.getAttribute("aria-label");e.readonly?(e.setAttribute("role","button"),!t&&e.placeholder&&e.setAttribute("aria-label",e.placeholder),e.$.input.setAttribute("aria-hidden",!0),e.$.input.removeAttribute("aria-activedescendant"),e.$.input.removeAttribute("aria-controls"),e.$.dropDownButton.setAttribute("aria-hidden",!0)):(e.setAttribute("role","combobox"),t&&t===e.placeholder&&e.removeAttribute("aria-label"),e.$.input.setAttribute("role","searchbox"),e.$.input.removeAttribute("aria-hidden",!0),e.$.dropDownButton.removeAttribute("aria-hidden")),e.setAttribute("aria-expanded",e.opened),e.setAttribute("aria-haspopup","listbox"),e.$.scrollView.setAttribute("role","listbox")}}],[{key:"properties",get:function(){return{dataSource:{type:"any",value:null},displayMode:{value:"default",allowedValues:["default","grid"],type:"string"},dropDownHeight:{type:"any",value:"auto"},messages:{value:{en:{standardColors:"Standard colors",themeShadeColors:"",themeColors:"Theme colors"}},type:"object",extend:!0},placeholder:{value:"Please Select Color",type:"string"},valueDisplayMode:{value:"default",allowedValues:["default","colorBox","colorCode"],type:"string"},valueFormat:{value:"hex",allowedValues:["rgb","rgba","hex"],type:"string"}}}},{key:"listeners",get:function(){return{"input.focus":"_focusHandler","input.blur":"_blurHandler","input.ke
1ydown":"_keyDownHandler","input.keyup":"_keyUpHandler","input.keypress":"_keyPressHandler","input.select":"_inputSelectHandler","input.change":"_inputChangeHandler","dropDownButton.down":"_dropDownButtonDownHandler","inputContainer.down":"_downHandler","document.up":"_documentUpHandler"}}}]),n}())},7855:function(){Smart("smart-editor",function(e){_inherits(n,Smart.ContentElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="container" role="presentation">\n <div id="toolbar" class="smart-editor-toolbar" role="presentation">\n <div id="toolbarItemsPrimary" class="smart-editor-toolbar-items-primary" role="toolbar"></div>\n <div id="toolbarToggleButton" class="smart-editor-toolbar-toggle-button" role="button"></div>\n <div id="toolbarItemsSecondary" class="smart-editor-toolbar-items-secondary" role="toolbar"></div>\n </div>\n <div id="contentContainer" class="smart-editor-content-container" role="presentation">\n <div class="smart-editor-editable" contenteditable="true" id="editableElement" aria-placeholder="[[placeholder]]"\n inner-h-t-m-l="[[innerHTML]]" spellcheck="false" role="textbox" aria-multiline="true"><content></content></div>\n <textarea name="[[name]]" id="input" class="smart-hidden" placeholder="[[placeholder]]" aria-placeholder="[[placeholder]]"\n spellcheck="false" autocapitalize="none" autocomplete="off"></textarea>\n </div>\n </div>'}},{key:"propertyChangedHandler",value:function(e,t,i){var r=this;switch(e){case"contentFiltering":case"contentFiltering_attributes":case"contentFiltering_attributeFilterMode":case"contentFiltering_tags":case"contentFiltering_tagFilterMode":case"contentFiltering_styleAttributes":case"contentFiltering_styleAttributeFilterMode":r._handleContentFiltering();break;case"disabled":case"disableEditing":r.$.input.readonly=i,r.$.editableElement.setAttribute("contenteditable",!i),"disabled"===e&&r._setFocusable();break;case"disableSearchBar":r._closeSearchToolbar();break;case"enableHtmlEncode":var a=r.$.input;a.classList.contains("smart-hidden")||(a.value=r._getInputValue());break;case"hideToolbar":i&&r._updateToolbarItems(void 0,r.$.toolbar);break;case"innerHTML":case"value":r._handleInputContent(e,i),r.$.fireEvent("change",{oldValue:r._value||t,value:r._value=r._getCurrentValue()});break;case"editMode":r._handleEditMode(i);break;case"hideInlineToolbar":var o=r.$.inlineToolbar;o&&o.visible&&o.classList.contains("smart-editor-inline-toolbar")&&o.close();break;case"toolbarViewMode":r._toggleToolbar("toggle"===i);break;case"toolbarMode":case"toolbarRibbonConfig":r._handleToolbarMode();break;case"locale":delete r._toolbarItemsObj,delete r._inlineToolbarItemsObj,r._refreshToolbarItems(r._getToolbarItems()),r._closeToolbar(),r._closeWindow();break;case"iframeSettings":r._handleInputElement();break;case"maxCharCount":r._handleMaxCharCount(),r._setCharCount();break;case"name":i&&"markdown"!==r.editMode&&(r.$.input.value=r._getInputValue(r.$.editableElement.innerHTML.trim()));break;case"placeholder":r._handlePlaceholder();break;case"pasteFormat":r._closeWindow();break;case"readonly":r.$.input.readonly=i,r.$.editableElement.setAttribute("contenteditable","markdown"!==r.editMode&&!i),r._closePopups(),r._setResizeFrame(),r._closeWindow();break;case"showCharCount":r._setCharCount();break;case"rightToLeft":case"animation":case"theme":r._updateIframeBody();break;case"toolbarItems":r._handleToolbarItems();break;default:_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i)}}},{key:"_handleToolbarItems",value:function(){var e=this,t=e.$.toolbarItemsPrimary,n=e.$.toolbarItemsSecondary;if(t.innerHTML=n.innerHTML="",delete e._toolbarItemsObj,delete e._inlineToolbarItemsObj,e._refreshToolbarItems(e._getToolbarItems()),"toggle"===e.toolbarViewMode){var i=e.$.toolbarToggleButton;t.scrollHeight!==t.offsetHeight||n.children.length?i.classList.remove("smart-visibility-hidden"):i.classList.add("smart-visibility-hidden")}}},{key:"render",value:function(){var e=this;e._isMobile=Smart.Utilities.Core.isMobile,e._isFireFox=Smart.Utilities.Core.Browser.Firefox,e._isSafari=Smart.Utilities.Core.Browser.Safari,e._isMacOS=(window.navigator.platform||"").indexOf("Mac")>-1,e._handleMaxCharCount(),e._handleInputContent(),e._setToolbarVisibility(),e._handleToolbarMode(),e._handleInputElement(),e._handleEditMode(),e._predefPropertyGetter(),e._setCharCount(),e._setFocusable(),e._setAriaSettings(),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"detached",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"detached",this).call(this),delete e._dragDetails,delete e._resizeFrameObj,delete e._toolbarItemClick,e._endInlineToolbarClick(),e._closeWindow(),e._closeToolbarItemDropDown(e.$.inputPopup),e._closeToolbarItemDropDown(e.$.colorInputPopup),e._closeContextMenu(),e._closeToolbar(),e._handleTableSelection()}},{key:"focus",value:function(){var e=this,t="markdown"===e.editMode?e.$.input:e.$.editableElement;t&&t.focus()}},{key:"blur",value:function(){var e=this,t="markdown"===e.editMode?e.$.input:e.$.editableElement;t&&t.blur()}},{key:"clearState",value:function(){var e=this;
1e.id?window.localStorage.removeItem("smartEditor"+e.id):e.warn(e.localize("noId"))}},{key:"collapseToolbar",value:function(){this._toggleToolbar(!0)}},{key:"disableToolbarItem",value:function(e){this._setToolbarItemAttr(e,"disabled",!0)}},{key:"enableToolbarItem",value:function(e){this._setToolbarItemAttr(e,"disabled",!1)}},{key:"expandToolbar",value:function(){this._toggleToolbar()}},{key:"executeCommand",value:function(e,t){return this.$.editableElement.getRootNode().execCommand(e,!1,t)}},{key:"exportData",value:function(e,t){this._handleDataExport(e,t)}},{key:"importData",value:function(e,t){"string"==typeof e&&(e={url:e}),t||(t={}),this._ajax(e,t)}},{key:"fullScreenMode",value:function(e){var t=this;t.$.fireEvent("actionStart",{name:"fullScreenMode"}).defaultPrevented||(t._handleFullScreenMode(t._toggleItem("fullscreen",e)),t.$.fireEvent("actionEnd",{name:"fullScreenMode"}))}},{key:"getCharCount",value:function(){var e=this;if("html"===e.editMode){var t=e.$.editableElement,n=t.innerText.length;return n&&t.textContent.length?n:0}return e.$.input.value.length}},{key:"getSelectionRange",value:function(){return this._selectionRange}},{key:"clearContent",value:function(){var e=this;e._setResizeFrame(),e.$.editableElement.innerHTML=e.$.input.value=""}},{key:"getHTML",value:function(){var e=this;if("markdown"===e.editMode){var t=e.$.input;return window.marked?window.marked(t.value):t.value}return e.$.editableElement.innerHTML}},{key:"getText",value:function(){var e=this;return"markdown"===e.editMode?e.$.input.value:e.$.editableElement.textContent}},{key:"loadState",value:function(e){var t=this;t.id?(e||(e=window.localStorage.getItem("smartEditor"+t.id)),"string"==typeof e&&(t.set("value",e),t.$.editableElement.innerHTML=t.$.input.value=e)):t.warn(t.localize("noId"))}},{key:"showMessage",value:function(e,t){var n=this;if(e&&n.isRendered)if(Smart.Toast){n._setToast();var i=n.$.toast;if(i){var r;if("object"==typeof t)for(var a in t)"iconType"===a?r=t[a]:i[a]=t[a];if(!n.$.container.contains(i)){var o=n.$toast;n._toastVisibilityHandler||(n._toastVisibilityHandler=function(e){var t=e.type;"close"===e.type&&e.detail.instance===n._requiredMessage&&delete n._requiredMessage,e.stopPropagation(),n.$.fireEvent("message"+t.slice(0,1).toUpperCase()+t.slice(1),e.detail)},o.listen("open",n._toastVisibilityHandler),o.listen("close",n._toastVisibilityHandler)),n.$.container.appendChild(i)}return i.open(e+"",r)}}else n.error(n.localize("missingReference",{elementType:n.nodeName.toLowerCase(),methodName:"showMessage",files:"smart.toast.js"}))}},{key:"hideMessage",value:function(e){var t=this.$.toast;t&&(void 0===e?t.closeAll():t.closeItem(e))}},{key:"hideLastMessage",value:function(){var e=this.$.toast;e&&e.closeLast()}},{key:"selectAll",value:function(){this._selectAll()}},{key:"selectRange",value:function(e,t){var n=this,i=n.$.editableElement.getRootNode();if(i){e=parseInt(e),t=parseInt(t),e=Math.min(e,t),t=Math.max(e,t);var r=n.$.input,a=n.$.editableElement,o="markdown"===n.editMode||n.$.editableElement.classList.contains("smart-hidden")?r:a,s=n.$.iframe,l=_slicedToArray(s?[s.contentWindow,s.contentDocument]:[window,document],2),c=l[0],u=l[1],d=c.getSelection(),h=i.activeElement;if((!h||h!==r&&h!==a||h.classList.contains("smart-hidden"))&&(o.focus(),h=o),d.removeAllRanges(),delete n._selectionRange,!isNaN(e)&&!isNaN(t)&&e!==t){if(h===r)r.setSelectionRange(e,t),n._selectionRange={selectionStart:e,selectionEnd:t};else for(var f=n._getNodes(a,e,t).nodes,p=0,m=f.length;p<m;p+=1){var g=f[p],v=g.node,y=g.index,b=g.startIndex,_=u.createRange();v.nodeType===Node.TEXT_NODE?(_.setStart(v,Math.max(0,b)),_.setEnd(v,Math.min(y,v.nodeValue.length))):_.selectNodeContents(v),d.addRange(_),n._selectionRange=_}n._updateToolbarItems()}}}},{key:"saveState",value:function(){var e=this;e.id?window.localStorage.setItem("smartEditor"+e.id,e.$.editableElement.innerHTML):e.warn(e.localize("noId"))}},{key:"splitMode",value:function(e){var t=this;t.$.fireEvent("actionStart",{name:"splitMode"}).defaultPrevented||(t._handleSplitMode(t._toggleItem("splitmode",e)),t.$.fireEvent("actionEnd",{name:"splitMode"}))}},{key:"previewMode",value:function(e){var t=this;t.$.contentContainer.hasAttribute("split-mode")||t.$.fireEvent("actionStart",{name:"sourcecode"}).defaultPrevented||(t._handleSourceCodeMode(t._toggleItem("sourcecode",e)),t.$.fireEvent("actionEnd",{name:"sourcecode"}))}},{key:"print",value:function(){this._handlePrint()}},{key:"updateToolbarItem",value:function(e,t){var n,i=this,r=i.toolbarItems;if("string"==typeof e?n=r.find(function(t){return t.name===e}):"number"==typeof e&&(n=r[e]),n){for(var a in i._closePopups(),i._closeWindow(),delete i._toolbarItemsObj[n.name],delete i._inlineToolbarItemsObj[n.name],t)n[a]=t[a];return i._refreshToolbarItems(i._getToolbarItems()),!0}}},{key:"_toggleItem",value:function(e,t){var n=this._toolbarItemsObj;if(n){var i=n[e],r=this.$.toolbar.querySelector('.smart-editor-toolbar-item[item-name="'.concat(e,'"]'));return i&&r?((t=i.value=void 0===t?!i.value:!!t)?(r.setAttribute("checked",""),r.setAttribute("aria-pressed",!0)):(r.removeAttribute("checked"),r.setAttribute("aria-pressed",!1)),r):void 0}}},{key:"_ajax",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="GET",i=e.url,r=null,a=!0;if(e.type&&(n=e.type),e.data)if("GET"===n){for(var o in i+="?",e.data)Object.prototype.hasOwnProperty.call(e.data,o)&&(i+=encodeURI(o+"="+e.data[o]+"&"));"&"===i.charAt(i.length-1)&&(i=i.slice(0,i.length-1))}else"POST"===n&&(r=JSON.stringify(e.data));t&&!1===t.async&&(a=!1),void 0!==window.fetch&&a?this._ajaxFetch(e,t,n,i,r):this._ajaxXMLHttpRequest(e,t,n,i,r,a)}},{key:"_ajaxFetch",value:function(e,t,n,i,r){var a,o,s,l=this,c={method:n};t&&t.contentType&&(c.headers=new Headers({"Content-Type":t.contentType})),null!==r&&(c.body=r),e.timeout&&(o=setTimeout(function(){s=!0},e.timeout)),t.beforeSend&&!1===t.beforeSend(c,t)||fetch(i,c).then(function(e){if(s)throw a=408,l.error(l.localize("timeout",{elementType:l.nodeName.toLowerCase()}));if(o&&clearTimeout(o),a=e.status,!e.ok)throw l.error(l.localize("importError",{elementType:l.nodeName.toLowerCase(),status:e.statusText}));return e.text()}).then(function(e){return l._ajaxComplete(t,e,a)}).catch(function(e){t&&t.loadError&&t.loadError(a,e)})}},{key:"_ajaxXMLHttpRequest",value:function(e,t,n,i,r,a){var o=new XMLHttpRequest,s=this;o.open(n,i,a),o.ontimeout=function(){t&&t.loadError&&t.loadError(408,"timeout")},o.onload=function(){if(4===o.readyState){var n=o.status,i=o.response;n>=200&&n<=299?("json"===e.dataType&&(i=JSON.parse(i)),s._ajaxComplete(t,i,n)):t&&t.loadError&&t.loadError(n,i)}},o.onerror=function(){t&&t.loadError&&t.loadError(o.status,o.response)},t&&t.contentType&&o.setRequestHeader("Content-Type",t.contentType),a&&e.timeout&&(o.timeout=e.timeout),t.beforeSend&&!1===t.beforeSend(o,t)||o.send(r)}},{key:"_ajaxComplete",value:function(e,t){if(e){if(e.beforeLoadComplete){var n=e.beforeLoadComplete(t);n&&(t=n)}this._handleInputContent("value",t)}}},{key:"_afterInputHandler",value:function(e){var t,n,i=this,r=i._beforeInputObj,a=i.$.editableElement,o=!a.innerHTML;if(r&&r.type&&(t=r.type,n=r.rangeDetails),delete i._beforeInputObj,o&&(i._setResizeFrame(),i._closeToolbar()),"insertParagraph"===t||o){var s=i._getSelectionRange().startContainer;if(s.nodeType===Node.TEXT_NODE&&(s=s.parentElement),s&&s.classList&&(s.closest(".smart-editor-image-caption")||s.closest(".smart-editor-editable table")))return;var l=i.$.iframe,c=_slicedToArray(l?[l.contentWindow,l.contentDocument]:[window,document],2),u=c[0],d=c[1];("div"===u.getSelection().anchorNode.nodeName.toLowerCase()||s===a&&o)&&d.execCommand("insertHTML",!1,"<p><br></p>")}else if(t&&n&&t.indexOf("delete")>-1){var h=i._resizeFrameObj;h&&h.target&&!a.contains(h.target)&&i._setResizeFrame()}a.textContent.length&&a.innerText.length?a.removeAttribute("show-placeholder"):a.setAttribute("show-placeholder",""),i.name&&e.target===i.$.editableElement&&"markdown"!==i.editMode&&(i.$.input.value=i._getInputValue(i.$.editableElement.innerHTML.trim())),i._setCharCount()}},{key:"_beforeInputHandler",value:function(e){var t,n=this,i=n.$.iframe,r=n.$.contentContainer,a=n.$.editableElement,o=(i?i.contentWindow:window).getSelection().getRangeAt(0),s=e.inputType,l=o.startContainer;if(s&&(t=s.indexOf("delete")>-1,n._beforeInputObj={type:s,rangeDetails:{startOffset:o.startOffset,endOffset:o.endOffset,startContainer:o.startContainer,endContainer:o.endContainer}}
1),t&&a.contains(l))if(l===o.endContainer&&o.startOffset===o.endOffset){var c=n._resizeFrameObj,u=l;if(c&&c.target&&c.target.contains(l))return;if(u.nodeType!==Node.TEXT_NODE&&u.innerHTML.length){if(u===a)return;u.remove()}else{for(var d=u.parentElement,h=u.previousElementSibling;!h&&d;)h=d.previousElementSibling,d=d.parentElement;a!==h&&a.contains(h)&&!h.innerHTML.length&&h.remove()}}else o.deleteContents(),e.preventDefault();if(!r.classList.contains("char-count-maxed")||t){if("insertParagraph"===s){var f=n._getSelectionRange().startContainer;f.nodeType===Node.TEXT_NODE&&f.parentElement===a&&a.getRootNode().execCommand("formatBlock",!1,"p")}}else e.preventDefault()}},{key:"_changeHandler",value:function(e){var t=this,n=e.target,i=e.detail,r=n.closest(".smart-editor-toolbar-item");if(e.stopPropagation(),t._toolbarItemsObj||t._inlineToolbarItemsObj)return r&&n===t.$.inputPopup||n===t.$.colorInputPopup?(t._ignoreSelectionChange=!0,t._updateToolbarItem(r,i),void delete t._ignoreSelectionChange):void 0}},{key:"_contextMenuHandler",value:function(e){var t=this,n=t.contextMenu;"browser"!==n?(e.preventDefault(),"none"!==n?t._openContextMenu(e):t._closeContextMenu()):t._closeContextMenu()}},{key:"_closeContextMenu",value:function(){var e=this.$.inlineToolbar,t=this.$.fireEvent("dropDownToolbarClosing",{target:e}).defaultPrevented;e&&e.visible&&e.classList.contains("smart-editor-context-menu")&&!t&&e.close()}},{key:"_openContextMenu",value:function(e){var t=this,n=e.target,i=t.$.inlineToolbar;if(i||(i=t._createToolbar()),!t.$.fireEvent("contextMenuOpening",{target:i}).defaultPrevented){t._setupToolbar(n,"context"),i.parentElement||t.getShadowRootOrBody().appendChild(i),i.clear(),t._setContextMenuContent(n);var r=t.getBoundingClientRect();i.style.left=Math.min(e.pageX+1,r.right+window.pageXOffset-i.offsetWidth)+"px",i.style.top=Math.min(e.pageY+1,r.bottom+window.pageYOffset-i.offsetHeight)+"px",i.open()}}},{key:"_setContextMenuContent",value:function(e){var t=this;if(e){var n=t._contextList,i=t._getContextMenuTargetType(e),r=t._getContextMenuDataSource(e,i);n||(t._contextList=n=document.createElement("div"),n.classList.add("smart-editor-context-menu-item-container"));for(var a=document.createDocumentFragment(),o=r.length,s=n.children;s.length>o;)s[0].remove();s=Array.from(s);for(var l=0;l<o;l++){var c=r[l],u=void 0,d=void 0,h=s[l];if("object"==typeof c?(u=c.label,d=c.value):u=d=c+"",h||((h=document.createElement("div")).classList.add("smart-editor-context-menu-item"),h.setAttribute("role","option")),h.removeAttribute("disabled"),"deleteLink"!==c||"image"!==i||e.closest(".smart-editor-editable a")){if("cut"===c||"copy"===c){var f=t._getSelectionRange();(void 0!==f.selectionStart?f.selectionStart:f.startOffset)===(void 0!==f.selectionEnd?f.selectionEnd:f.endOffset)&&h.setAttribute("disabled","")}}else h.setAttribute("disabled","");h.parentElement||a.appendChild(h),h.innerHTML=t.localize(u)||u,h.setAttribute("value",d)}n.appendChild(a),t.$.inlineToolbar.appendChild(n)}}},{key:"_getContextMenuTargetType",value:function(e){return e.closest(".smart-editor-editable table")?"table":e.closest(".smart-editor-editable img")?"image":e.closest(".smart-editor-video-container")?"video":e.closest(".smart-editor-editable a")?"link":"text"}},{key:"_getContextMenuDataSource",value:function(e,t){if(!t)return[];var n,i=this.contextMenuDataSource;switch(t){case"table":n=["tableProperties","insertRowAfter","insertRowBefore","insertColumnLeft","insertColumnRight","deleteRow","deleteColumn","deleteTable","selectAll"];break;case"image":n=["imageProperties","copyImage","cutImage","createLink","deleteLink","deleteImage","caption"];break;case"video":n=["videoProperties","copyVideo","cutVideo","deleteVideo","caption"];break;case"link":n=["linkProperties","deleteLink","selectAll"];break;default:n=["copy","cut","paste","selectAll"]}return i&&(n="function"==typeof i?i(e,t,n):Array.isArray(i)?i:[]),n}},{key:"_updateToolbarItem",value:function(e,t){var n=this,i=n.editMode,r=e.getAttribute("item-name"),a=n.$.toolbarItemsPrimary,o=n.$.toolbarItemsSecondary,s=n.$.inlineToolbar,l="markdown"===i?n.$.input:n.$.editableElement,c=function(e,i,r){i&&(i.label=t["alignment"===i.name?"value":"label"],i.value=t.value,e&&n._setItemValue(e,i),r&&n._updateToolbarTarget(i))};if(s&&s.contains(e)?(c(e,n._inlineToolbarItemsObj[r],!0),n._toolbarItemsObj&&n._toolbarItemsObj[r]&&c(n.$.toolbar.querySelector(".smart-editor-toolbar-item[item-name=".concat(r,"]")),n._toolbarItemsObj[r])):(a.contains(e)||o.contains(e))&&n._toolbarItemsObj&&(c(e,n._toolbarItemsObj[r],!0),s&&s.visible&&n._inlineToolbarItemsObj&&c(s.querySelector(".smart-editor-toolbar-item[item-name=".concat(r,"]")),n._inlineToolbarItemsObj[r])),l.getRootNode().activeElement!==l){var u=n._selectionRange,d=l.scrollTop;u&&("markdown"===i?n._setSelectionRange(l,u.selectionStart,u.selectionEnd):n._setSelectionRange(u.startContainer,u.startOffset,u.endOffset)),l.focus({preventScroll:!0}),n._isSafari&&d&&(l.scrollTop=d)}}},{key:"_updateToolbarTarget",value:function(e){var t=this,n=t._resizeFrameObj;if(e){var i,r=t.$.inlineToolbar;n&&n.target?i=n.target:r&&r.visible&&(i=(i=r.selector).closest?i.closest(".smart-editor-editable img")||i.closest(".smart-editor-editable table"):void 0);var a=i?i.nodeName.toLowerCase():"";if(i&&"img"===a)return"alignment"===e.name&&(i.closest(".smart-editor-image-container")||i).setAttribute("alignment",e.value),t._setResizeFrame(i),void(r&&r.visible&&r.reposition());if(i&&"table"===a)t._handleTableToolbarAction(e,i);else{var o=t._getSelectionRange();if(o&&(o.startContainer||void 0!==o.selectionStart)){var s=e.name;if(t.$.fireEvent("actionStart",{name:s}).defaultPrevented)return;
1switch(s){case"backgroundcolor":t._handleBackgroundColor(e);break;case"fontcolor":t._handleFontColor(e);break;case"alignment":t._handleTextAlignment(e);break;case"fontsize":t._handleFontSize(e);break;case"fontname":t._handleFontName(e);break;case"formats":t._handleFormats(e);break;case"paste":t._handlePaste(e);break;default:var l=o.startContainer.closest?o.startContainer:o.startContainer.parentElement;return void(l&&l.closest&&l.setAttribute(e.name,e.value))}s&&t.$.fireEvent("actionEnd",{name:s})}}}}},{key:"_setSelectionRange",value:function(e,t,n){var i,r=this,a=r.$.iframe;if(!r.disabled)if("markdown"===r.editMode||r.$.editableElement.classList.contains("smart-hidden")){i=r.$.input,r._selectionRange={selectionStart:void 0!==t?t:i.selectionStart,selectionEnd:void 0!==n?n:i.selectionEnd};var o=r._selectionRange;r._selectionChangeFired||i.setSelectionRange(o.selectionStart,o.selectionEnd)}else{var s,l=(a?a.contentWindow:window).getSelection();if(i=r.$.editableElement,e){if(s=document.createRange(),"number"==typeof t&&"number"==typeof n)try{s.setStart(e,parseInt(t)),s.setEnd(e,parseInt(n))}catch(t){s.selectNodeContents(e)}else"img"===e.nodeName.toLowerCase()||e.classList.contains("smart-editor-video-container")?(s.setStartBefore(e),s.setEndAfter(e),s.selectNode(e)):s.selectNodeContents(e);l.removeAllRanges(),l.addRange(s)}else l.rangeCount&&(s=l.getRangeAt(0));try{s&&s.startContainer&&i.contains(s.startContainer)&&(r._selectionRange=s)}catch(e){}r._selectionRange||((s=document.createRange()).selectNodeContents(i),s.collapse(!0),r._selectionRange=s)}}},{key:"_getSelectionRange",value:function(){var e=this,t=e.editMode,n=e._selectionRange;return n&&("markdown"===t&&void 0===n.selectionStart||"html"===t&&void 0===n.startContainer)&&(delete e._selectionRange,n=void 0),n||e._setSelectionRange(),e._selectionRange}},{key:"_setCharCount",value:function(){var e=this,t=e.$.contentContainer;if(e.showCharCount){var n,i,r=e.maxCharCount;if("html"===e.editMode){var a=e.$.editableElement,o=a.innerText.length;i=o&&a.textContent.length?o:0}else i=e.$.input.value.length;if(n=e.charCountFormatFunction?e.charCountFormatFunction(i,r)+"":r?"".concat(i," / ").concat(r):i+"",t.setAttribute("char-count",n),null!==r){var s=parseFloat((i/r).toFixed(2));t.classList[s>=.7&&s<=.9?"add":"remove"]("char-count-warning"),t.classList[s>=.9?"add":"remove"]("char-count-error"),t.classList[i>=r?"add":"remove"]("char-count-maxed")}else t.classList.remove("char-count-low","char-count-medium")}else t.removeAttribute("char-count")}},{key:"_documentDownHandler",value:function(e){var t=this,n=t.$.iframe,i=t.$.inlineToolbar,r=t.$.window,a=e.originalEvent||e,o=t.shadowRoot||t.isInShadowDOM?a.composedPath()[0]:a.target;if(i&&i.contains(o)){var s=o.closest(".smart-editor-toolbar-item");return t._handleToolbarItemDown(s,o),void a.preventDefault()}if(t.$.container.contains(o)||n&&n.contentDocument.body.contains(o))t._handleDownInside(a,o);else{var l,c=o.closest(".smart-input-drop-down-menu");if(c&&(l=c.ownerElement),r&&r.opened&&!r.contains(l||o)&&r.close(),t._handleTableSelection(),l&&(t.$.toolbarItemsPrimary.contains(l)||t.$.toolbarItemsSecondary.contains(l)||i&&i.contains(l)))return t._toolbarItemClick={},void a.preventDefault();t._setResizeFrame(),t._closePopups()}}},{key:"_handleDownInside",value:function(e,t){var n=this,i=e.originalEvent||e,r=t.closest(".smart-editor-toolbar-item"),a=n.$.inlineToolbar,o=t.classList.contains("smart-editor-video-container")?t:null,s=n.$.window,l=n._editorVideoItemClick;if(l&&(o&&l.dragElement&&l.dragElement.remove(),delete n._editorVideoItemClick,l=void 0),t===n.$.toolbarToggleButton)n._toolbarItemClick={},e.preventDefault();else{if(r)return n._handleToolbarItemDown(r,t),void e.preventDefault();if(t.closest(".smart-editor-toolbar-tab"))e.preventDefault();else if(o)l||(l=n._editorVideoItemClick={target:t,originalSelectionRange:n._selectionRange}),e.preventDefault(),!1!==o.getAttribute("draggable")&&o.querySelector("video")?(l.dragElement=n._createWhiteSpaceChar(t,o),n._setSelectionRange(t)):l.dragElement&&(l.dragElement.remove(),delete l.dragElement);else if(t.closest(".smart-editor-search-bar"))n._searchBarDown={target:t},t.closest(".smart-search-input")||e.preventDefault();else{var c={x:i.pageX+window.pageXOffset,y:i.pageY+window.pageYOffset};s&&s.opened&&s.close();var u=n._getInlineToolbarTarget(t,c);if(u){var d=n.$.contentContainer;d.contains(d.getRootNode().activeElement)||n._focusEditableElement(),n._handleInlineToolbarItemDown(u,c)}else!a||a.contains(t)&&a.classList.contains("smart-editor-drop-down-toolbar")||(n._closeToolbar(),n._handleTableSelection())}}n._closeToolbarItemDropDown(n.$.inputPopup),n._closeToolbarItemDropDown(n.$.colorInputPopup)}},{key:"_handleToolbarItemDown",value:function(e,t){var n=this,i=n.$.inlineToolbar,r=n.$.window;if(e){var a=e.getAttribute("item-type"),o=e.getAttribute("item-name");switch(!r||!r.opened||r._target&&r._target.item.name===o||r.close(),n._toolbarItemClick={toolbarItem:e},n._resizeFrameObj&&n._resizeFrameObj.target?n._toolbarItemClick.target=n._resizeFrameObj.target:n._setResizeFrame(),n._setSelectionRange(),a){case"button":["hyperlink","createlink","image","video"].includes(o)?n._toolbarItemClick.callback=n._toggleWindow:"table"===o&&(n._toolbarItemClick.callback=i&&i.contains(e)?n._toggleWindow:n._toggleDropDownToolbar);break;case"toggle":e.toggleAttribute("checked"),e.hasAttribute("checked")?e.setAttribute("aria-pressed",!0):e.setAttribute("aria-pressed",!1),n._closeToolbarItemDropDown(n.$.inputPopup),n._closeToolbarItemDropDown(n.$.colorInputPopup);break;case"drop-down":n._toolbarItemClick.callback=n._toggleItemDropDown;break;
1case"color-input":t.closest(".smart-editor-item-drop-down-button")&&(n._toolbarItemClick.callback=n._toggleItemDropDown)}}}},{key:"_handleInlineToolbarItemDown",value:function(e,t){var n=this,i=e.closest(".smart-editor-editable table"),r=n.$.editableElement;if(n._inlineToolbarClickObj&&n._inlineToolbarClickObj.target&&(n._inlineToolbarClickObj.target.removeAttribute("drag-id"),n._inlineToolbarClickObj.dragElement&&n._inlineToolbarClickObj.dragElement.removeAttribute("drag-id")),n._inlineToolbarClickObj={},e)if("img"===e.nodeName.toLowerCase())e.setAttribute("drag-id",Math.random().toString(36).substr(2,5));else if(e.classList.contains("smart-editor-video-container")){var a=e.querySelector("video, iframe");a&&(a.setAttribute("drag-id",Math.random().toString(36).substr(2,5)),n._inlineToolbarClickObj.dragElement=a)}if(i&&r.hasAttribute("table-cell-resize")){var o=r.getAttribute("table-cell-resize");n._inlineToolbarClickObj.resizeDetails={x:t.x,y:t.y,position:o,target:"vertical"===o?e.closest("tr"):e,table:i},e=void 0}n._handleTableSelection(e),n._inlineToolbarClickObj.target=e,n._inlineToolbarClickObj.dragTarget=e}},{key:"_getInlineToolbarTarget",value:function(e,t){var n,i=this,r=e.closest(".smart-editor-editable img")||e.closest(".smart-editor-editable a")||e.closest(".smart-editor-video-container");return r||(n=e.closest(".smart-editor-editable table"))&&(r=e.closest(".smart-editor-editable td")||e.closest(".smart-editor-editable th")),e.closest(".smart-editor-resize-frame")&&i._resizeFrameObj?(i._resizeFrameObj.resizeDetails={x:t.x,y:t.y,position:e.getAttribute("position")},r=i._resizeFrameObj.target):r&&(r&&"img"===r.nodeName.toLowerCase()||n||r.classList.contains("smart-editor-video-container"))||i._setResizeFrame(),r}},{key:"_documentMoveHandler",value:function(e){var t=this,n=t._resizeFrameObj,i=t._inlineToolbarClickObj,r=e.originalEvent||e;n&&n.resizeDetails?t._handleFrameResize(r):i&&i.resizeDetails&&t._handleTableCellResize(r)}},{key:"_touchmoveHandler",value:function(e){var t=this,n=t._resizeFrameObj;t._isMobile&&n&&n.target&&(n.resizeDetails?(e.preventDefault(),e.stopPropagation()):(t._closeToolbar(),t._setResizeFrame()))}},{key:"_dragStartHandler",value:function(e){var t=this,n=t._resizeFrameObj,i=t._inlineToolbarClickObj;if(n&&n.resizeDetails||i&&i.resizeDetails)return e.preventDefault(),void delete t._dragDetails;if(t.$.contentContainer.contains(e.target))if(i&&i.target){var r=t._inlineToolbarClickObj.target;if(r&&(["img","table"].indexOf(r.nodeName.toLowerCase())>-1||r.classList.contains("smart-editor-video-container"))){if("false"===r.getAttribute("draggable"))return void e.preventDefault();var a=e.target,o=a.parentElement,s=a.closest(".smart-editor-image-container");t._closeToolbar(),t._setResizeFrame(),t._dragDetails={target:a,scrollTop:t.$.editableElement.scrollTop,container:s,anchor:o&&"a"===o.nodeName.toLowerCase()?o:void 0,caption:s?s.querySelector(".smart-editor-image-caption"):void 0}}}else e.preventDefault()}},{key:"_dropHandler",value:function(){this._isFireFox&&this._dragEndHandler()}},{key:"_dragEndHandler",value:function(){var e=this,t=e.$.inlineToolbar,n=e._dragDetails;if(n){var i=n.container,r=e.$.editableElement,a=r.querySelector('[drag-id="'.concat(n.target.getAttribute("drag-id"),'"]'));if(a){var o=n.anchor;if(a.removeAttribute("drag-id"),i&&!i.contains(a)&&a.parentElement){var s=n.caption,l=a.parentElement;if(l.classList.contains("smart-editor-video-container")){var c=l;l=l.parentElement,c.remove(),l.appendChild(a)}i.remove(),i.innerHTML="",l.insertBefore(i,a),i.appendChild(a),s&&i.appendChild(s)}o&&a.parentElement!==o&&(o.innerHTML="",a.parentElement.insertBefore(o,a),o.appendChild(a)),void 0!==n.scrollTop&&(r.scrollTop=n.scrollTop),requestAnimationFrame(function(){return e._setResizeFrame(a)});var u=e._resizeFrameObj;if(e._editorVideoItemClick){for(var d=r.querySelectorAll('.smart-editor-video-white-space, div[pseudo="-webkit-media-controls"]'),h=0,f=d.length;h<f;h+=1)d[h].remove();delete e._editorVideoItemClick}(!t||t&&!t.visible)&&u&&u.target&&e._openInlineToolbar(u.target)}delete e._dragDetails}else{e._setSelectionRange();
1var p=e._getSelectionRange();p&&p.startOffset!==p.endOffset&&(e._handleInlineToolbar(p.startContainer),e._focusEditableElement())}}},{key:"_documentUpHandler",value:function(e){var t=this,n=t._resizeFrameObj,i=t.$.inlineToolbar,r=e.originalEvent||e,a=t.shadowRoot||t.isInShadowDOM?r.composedPath()[0]:r.target;if(n&&(n.resizeDetails&&n.target&&(n.target.removeAttribute("dragged"),t.$.fireEvent("resizeEnd",{target:n.target})),delete n.resizeDetails),t._dragDetails)return t._endInlineToolbarClick(),void delete t._toolbarItemClick;var o=t.$.iframe;if(t.$.container.contains(a)||i&&i.contains(a)||o&&o.contentDocument.body.contains(a)){var s=a.closest(".smart-editor-toolbar-item");s?t._handleToolbarUp(s):t._handleContentUp(r,a)}t._endInlineToolbarClick(),delete t._searchBarDown,delete t._dragDetails,delete t._toolbarItemClick}},{key:"_handleToolbarUp",value:function(e){var t=this,n=t._toolbarItemClick,i=e.getAttribute("item-type");n&&n.toolbarItem===e&&"custom"!==i&&(t._handleToolbarItemClick(event,n.toolbarItem),t._focusEditableElement())}},{key:"_handleContentUp",value:function(e,t){var n=this,i=n._inlineToolbarClickObj,r=n.$.toolbarToggleButton,a=n._editorVideoItemClick,o=void 0!==e.button&&2===e.button;if(o||t!==r&&!r.contains(t))if(t.classList.contains("smart-editor-toolbar-tab"))n.$.toolbar.hasAttribute("expanded")?t.hasAttribute("checked")||n._selectToolbarTab(t):(n._selectToolbarTab(t),n._toggleSecondaryToolbar(t.hasAttribute("checked")));else if(a&&t.classList.contains("smart-editor-video-container")&&t===a.target)n._setResizeFrame(t),n._focusEditableElement();else if(i){var s=i.target;s&&(s===t||s.contains(t))&&(o?n._setResizeFrame(s):n._handleInlineToolbar(s),n._focusEditableElement())}else if(!o&&(n.$.editableElement.contains(t)||"markdown"===n.editMode&&t===n.$.input)){var l=n.$.iframe,c=l?l.contentWindow:window;requestAnimationFrame(function(){l&&n._setSelectionRange();var e=n._getSelectionRange();e instanceof c.Range&&e.startOffset!==e.endOffset&&(n._handleInlineToolbar(e.startContainer),n._focusEditableElement())})}else!o&&t.closest(".smart-editor-search-bar")&&n._handleSearchButtonClick(t.closest(".smart-search-button"));else n._toggleToolbar(n.$.toolbar.hasAttribute("expanded"))}},{key:"_toggleSecondaryToolbar",value:function(e){var t=this,n=t.$.toolbar,i=t.$.toolbarItemsPrimary,r=t.$.toolbarItemsSecondary,a=function(){n.hasAttribute("expanded")?(r.classList.remove("smart-drop-down"),n.contains(r)||n.appendChild(r),r.style.top=""):(r.classList.add("smart-drop-down"),n.contains(r)&&n.parentElement.insertBefore(r,n.nextElementSibling),r.style.top=i.offsetTop+i.offsetHeight+"px")};if(!e&&(r.classList.add("smart-visibility-hidden"),t.hasAnimation))return r.addEventListener("transitionend",a,{once:!0}),void r.addEventListener("transitioncancel",a,{once:!0});a(),e&&(t._setToolbarGroupHeight(),r.classList.remove("smart-visibility-hidden"))}},{key:"_setToolbarGroupHeight",value:function(){var e=this.$.toolbarItemsSecondary,t=e.children;if(e.style.height="","menu"!==this.toolbarMode){for(var n,i=0,r=t.length;i<r;i+=1){var a=t[i].offsetHeight;(void 0===n||n<a)&&(n=a)}void 0!==n&&(e.style.height=n+"px")}}},{key:"_endInlineToolbarClick",value:function(){var e=this,t=e._inlineToolbarClickObj;if(t){var n=t.resizeDetails;if(!e._dragDetails&&t.target&&(t.target.removeAttribute("drag-id"),t.dragElement&&t.dragElement.removeAttribute("drag-id")),n&&n.target){if("horizontal"===n.position){var i=n.cells,r=n.table.offsetWidth;i&&i.forEach(function(e){e.style.width&&(e.style.width=100*parseFloat((e.offsetWidth/r).toFixed(2))+"%")})}e.$.editableElement.removeAttribute("table-cell-resize"),n.target.removeAttribute("resizing"),n.isInlineToolbarOpened&&e._handleInlineToolbar(n.target)}delete e._inlineToolbarClickObj}}},{key:"_updateToolbarItems",value:function(e,t){var n=this;if(!(n._dragDetails||n.readonly||n.disabled))if("markdown"!==n.editMode){var i,r,a=n._getSelectionRange(),o=n.$.inlineToolbar;if(a&&(t||(t=n.$.toolbar),o&&t!==o&&!n.hideInlineToolbar&&o.visible&&(n._updateToolbarItems(e,o),i=!0),t!==n.$.toolbar||n.hideToolbar?i||n.hideInlineToolbar||(r=n._inlineToolbarItemsObj):r=n._toolbarItemsObj,r)){var s,l=n.$.editableElement,c=a.startOffset>a.endOffset?a.endContainer:a.startContainer;if(c&&(c.closest||(c=c.parentElement),c&&c.closest)){e||(e=["alignment","bold","italic","strikethrough","underline","fontsize","fontname","formats","fontcolor","backgroundcolor","orderedlist","unorderedlist","subscript","superscript"]);for(var u=0,d=e.length;u<d;u+=1){var h=e[u],f=r[h];if(f){var p=void 0;if("alignment"===h)p=c.style.textAlign;else if("bold"===h)p=!!n._getNodeFromList(c,["b","strong","h1","h2","h3","h4","h5","h6"]);else if("italic"===h)p=!!n._getNodeFromList(c,["i"]);else if("underline"===h)p=!!n._getNodeFromList(c,["u"]);else if("strikethrough"===h)p=!!n._getNodeFromList(c,["strike"]);else if("fontsize"===h){var m=c.closest(".smart-editor-editable font");m&&(p=m.style.fontSize),p||(s||(s=window.getComputedStyle(c)),p=s.fontSize),p=parseInt(p),isNaN(p)&&(p="")}else if("fontname"===h){var g=c.closest(".smart-editor-editable font");g&&g.hasAttribute("face")?p=g.getAttribute("face"):(s||(s=window.getComputedStyle(c)),p=s.fontFamily.split(",")[0])}else if("formats"===h&&c!==l){var v=f.dataSource;if(p="",v){var y=v.map(function(e){return e.value});p=n._getNodeFromList(c,y)||""}}else if("fontcolor"===h){var b=c.closest(".smart-editor-editable font");b?p=b.color:(s||(s=window.getComputedStyle(c)),p=s.color)}
1else"backgroundcolor"===h?(p=n._getNodeBackgroundColor(c))||(s||(s=window.getComputedStyle(c)),p=s.backgroundColor):"orderedlist"===h||"unorderedlist"===h?p=!!c.closest(".smart-editor-editable ".concat("orderedlist"===h?"ol":"ul"," li")):"subscript"===h?p=!!c.closest(".smart-editor-editable sub"):"superscript"===h&&(p=!!c.closest(".smart-editor-editable sup"));if(!p&&f.dataSource){var _=f.dataSource[0];_&&(p=_.value||_)}null!==p&&(f.value=p,n._setItemValue(t.querySelector(".smart-editor-toolbar-item[item-name=".concat(h,"]")),f))}}}}}else n._updateToolbarItemsMarkdown(e)}},{key:"_updateToolbarItemsMarkdown",value:function(e){var t=this,n=t._getSelectionRange();if(n&&void 0!==n.selectionStart){var i=n.selectionStart;e||(e=["bold","italic","strikethrough","underline","formats","orderedlist","unorderedlist","subscript","superscript"]);for(var r=0,a=e.length;r<a;r+=1){var o=e[r],s=t._toolbarItemsObj[o];if(s){var l=void 0;if("bold"===o)(l=!!t._getMarkdownItem(i,"**"))||(l=!!t._getMarkdownItem(i,"__"));else if("italic"===o)(l=!!t._getMarkdownItem(i,"*"))||(l=!!t._getMarkdownItem(i,"_"));else if("strikethrough"===o)l=!!t._getMarkdownItem(i,"~~");else if("underline"===o)l=!!t._getMarkdownItem(i,"<ins>","</ins>");else if("formats"===o){var c=s.dataSource;if(l="",c){var u=c.map(function(e){return e.value});e:for(var d=0,h=u.length;d<h;d+=1)if((l=t._getMarkdownFormat(i,u[d]))&&void 0!==l.formatName){l=l.formatName;break e}}}else"orderedlist"===o||"unorderedlist"===o?l=!!t._getMarkdownFormat(i,o):"subscript"===o?l=!!t._getMarkdownItem(i,"<sub>","</sub>"):"superscript"===o&&(l=!!t._getMarkdownItem(i,"<sup>","</sup>"));if(!l&&s.dataSource){var f=s.dataSource[0];f&&(l=f.value||f)}null!==l&&(s.value=l,t._setItemValue(t.$.toolbar.querySelector(".smart-editor-toolbar-item[item-name=".concat(o,"]")),s))}}}}},{key:"_getMarkdownItem",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=this.$.input.value,r=i.lastIndexOf(t,Math.max(0,e-1)),a=i.indexOf(n,r>-1?r+t.length:e);if(!(r<0||r>e||a<0||a<e||i.slice(r,e).indexOf("\n")>-1||i.slice(e,a).indexOf("\n")>-1))return" "!==i[r+1]&&i[r-1]!==t&&i[r+1]!==t&&" "!==i[a-1]&&i[a-1]!==t&&i[a+1]!==t?{startIndex:r,endIndex:a+n.length}:void 0}},{key:"_getMarkdownFormat",value:function(e,t){var n,i=this.$.input.value,r=i.lastIndexOf("\n",Math.max(0,e-1))+1,a=i.slice(r,e);switch(t){case"h1":n="# ";break;case"h2":n="## ";break;case"h3":n="### ";break;case"h4":n="#### ";break;case"h5":n="##### ";break;case"h6":n="###### ";break;case"code":case"pre":n="```";break;case"blockquote":n="> ";break;case"orderedlist":var o=/^[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*([0-9]+\.{1}[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)/g.exec(a);return o?{formatName:t,occuranceIndex:r+o.input.indexOf(o[1])}:void 0;case"unorderedlist":var s=/^[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*([\*\+\x2D]{1}[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+)/g.exec(a);return s?{formatName:t,occuranceIndex:r+s.input.indexOf(s[1])}:void 0;default:n=t+""}var l=a.indexOf(n);if(l>=0&&l<=3&&a.slice(l,n.length)===n)return{formatName:t,occuranceIndex:r+l,markdown:n}}},{key:"_getNodeFromList",value:function(e,t){var n=this.$.editableElement;if(e&&t)for(;e&&e!==n;){var i=e.nodeName.toLocaleLowerCase();if(t.indexOf(i)>-1)return i;e=e.parentElement}}},{key:"_getNodeBackgroundColor",value:function(e){for(var t=this.$.editableElement;e&&e!==t;){var n=e.style.backgroundColor;if(n)return n;e=e.parentElement}}},{key:"_editableElementBlurHandler",value:function(e){var t=this,n=t.$.editableElement,i=t.$.contentContainer;if(!t._toolbarItemClick&&!i.contains(i.getRootNode().activeElement)){var r=t._value,a=function(){i.removeAttribute("required"),t._requiredMessage&&(t.hideMessage(t._requiredMessage),delete t._requiredMessage)},o=t._getCurrentValue();if(t.required){var s=t.$.editableElement;"markdown"===t.editMode&&!t.$.input.value||"markdown"!==t.editMode&&!s.textContent&&!s.querySelectorAll("img, table").length?(i.hasAttribute("required")||i.setAttribute("required",""),t._requiredMessage||(t._requiredMessage=t.showMessage(t.localize("requiredMessage"),{autoClose:!1,iconType:"error"}))):a()}else a();r!==o&&(t.$.fireEvent("change",{oldValue:r,value:o}),t.name&&e.target===n&&"markdown"!==t.editMode&&(t.$.input.value=t._getInputValue(n.innerHTML.trim()))),t.removeAttribute("focus"),t.removeAttribute("aria-activedescendant")}}},{key:"_editableElementFocusHandler",value:function(e){var t=this,n=t.editMode,i="markdown"===n?t.$.input:t.$.editableElement,r=t._autoSaveObj;t.setAttribute("focus",""),e.target.id&&t.setAttribute("aria-activedescendant",e.target.id),t._value=t._getCurrentValue(),t.autoSave?(r||(r=t._autoSaveObj={}),clearInterval(r.interval),r.interval=setInterval(function(){i.getRootNode().activeElement!==i&&clearInterval(r.interval),window.localStorage.setItem("smartEditor"+t.id,"markdown"===n?i.value:i.innerHTML)},t.autoSaveInterval)):r&&(clearInterval(r.interval),delete t._autoSaveObj)}},{key:"_inputChangeEvent",value:function(e){e.stopPropagation()}},{key:"_updateOnInputChange",value:function(e){var t=this,n=t.$.editableElement,i=e.target,r=t.$.input,a=i.classList.contains("smart-search-input"),o=function(){var e=h===r?r.value:t.$.editableElement.innerHTML;void 0!==f&&e!==f&&t.$.fireEvent("changing",{value:e,oldValue:t._changingV
1alue})};if("paste"===e.type&&n.contains(i)){var s=e.clipboardData;if(s&&s.types.length){var l=s.types.indexOf("text/html")>-1?"text/html":"text/plain",c="\x3c!--StartFragment--\x3e",u="\x3c!--EndFragment--\x3e",d=s.getData(l);e.preventDefault(),d.indexOf(c)>-1&&d.indexOf(u)>-1&&(d=d.slice(d.indexOf(c),d.indexOf(u))),t._handlePasteAction(d,{advanced:!0,value:t.pasteFormat},l)}}var h=n.getRootNode().activeElement,f=t._changingValue;if(!t.$.contentContainer.hasAttribute("split-mode")){if(clearTimeout(t._refreshTimeout),delete t._refreshTimeout,a){var p=t.findAndReplaceTimeout,m=e.key;if(clearTimeout(t._findAndReplaceTimeout),!m||"enter"===m.toLowerCase())return;return void(p?t._findAndReplaceTimeout=setTimeout(function(){return t._applySearching(e.target.value)},p):t._applySearching(e.target.value))}var g=t._resizeFrameObj?t._resizeFrameObj.target:void 0;return g&&!g.parentElement&&(t._setResizeFrame(),t._closeToolbar()),void o()}o(),clearTimeout(t._refreshTimeout);var v=t.$.input.value;t._refreshTimeout=setTimeout(function(){clearTimeout(t._refreshTimeout),"markdown"===t.editMode?t.$.editableElement.innerHTML=window.marked?window.marked(v):v:h===r?t.$.editableElement.innerHTML=t._getInputValue(v,!0):t.$.input.value=t._getInputValue(t.$.editableElement.innerHTML.trim())},t.splitModeRefreshTimeout)}},{key:"_editableElementWheelHandler",value:function(){var e=this.$.inlineToolbar;this._setResizeFrame(),e&&e.visible&&e.close()}},{key:"_editableElementKeyDownHandler",value:function(e){var t=this,n=t.$.editableElement,i=t.$.input,r=e.target.getRootNode().activeElement,a=e.key.toLowerCase(),o=t._isMacOS&&e.metaKey||e.ctrlKey;if(!t.disabled&&!t.readonly){switch(a){case"a":if(!o){t._changingV
1alue=r===n?n.innerHTML:i.value;break}if(r.classList.contains("smart-editor-image-caption"))return e.preventDefault(),t._setSelectionRange(r),void t._handleInlineToolbar(t._getSelectionRange().startContainer);if(t._tableCell)return e.preventDefault(),t._setSelectionRange(t._tableCell),void t._handleInlineToolbar(t._getSelectionRange().startContainer);break;case"backspace":case"delete":var s=t._resizeFrameObj?t._resizeFrameObj.target:void 0;s&&("img"===s.nodeName.toLowerCase()||s.classList.contains("smart-editor-video-container"))&&(e.preventDefault(),t._deleteResizeFrameTarget(s)),t._changingValue=r===n?n.innerHTML:i.value;break;case"enter":if(!t.disableSearchBar){var l=t._searchToolbar;l&&!l.classList.contains("smart-visibility-hidden")&&(e.preventDefault(),t._highlightSearchResult(!e.shiftKey))}break;case"escape":r===n?t._closeToolbar():r.classList.contains("smart-search-input")&&t._closeSearchToolbar();break;case"tab":t.enableTabKey&&(e.preventDefault(),t._handleTabInsert());break;default:t._handleToolbarShortcuts(e,r)}t._closeToolbar()}}},{key:"_handleToolbarShortcuts",value:function(e,t){var n=this,i=n.$.editableElement,r=e.key,a=n._isMacOS&&e.metaKey||e.ctrlKey;if(a){var o,s=n._resizeFrameObj;switch(s&&s.target&&(o=s.target),r.toLocaleLowerCase()){case"b":e.preventDefault(),n._handleTextDecorations("bold");break;case"c":a&&o&&n._handleImageCopy(o);break;case"x":a&&o&&n._handleImageCut(o);break;case"k":e.preventDefault(),n._openWindow({name:"hyperlink"});break;case"i":e.shiftKey?(e.preventDefault(),n._openWindow({name:"image"},o)):(e.preventDefault(),n._handleTextDecorations("italic"));break;case"e":e.shiftKey?(e.preventDefault(),n._openWindow({name:"table"},o)):(e.preventDefault(),n._updateToolbarTarget({name:"alignment",value:"center"}));break;case"u":e.shiftKey?(e.preventDefault(),n._handleTextCase("uppercase")):(e.preventDefault(),n._handleTextDecorations("underline"));break;case"s":e.shiftKey&&(e.preventDefault(),n._handleTextDecorations("strikethrough"));break;case"l":e.shiftKey?(e.preventDefault(),n._handleTextCase("lowercase")):(e.preventDefault(),n._updateToolbarTarget({name:"alignment",value:"left"}));break;case"+":e.shiftKey&&(e.preventDefault(),n._handleSubSuperScript("superscript"));break;case"=":e.shiftKey?(e.preventDefault(),n._handleSubSuperScript("superscript")):(e.preventDefault(),n._handleSubSuperScript("subscript"));break;case"]":e.preventDefault(),n._handleIndentation("indent");break;case"[":e.preventDefault(),n._handleIndentation("outdent");break;case"h":if(e.shiftKey){var l=n._toolbarItemsObj.sourcecode;l&&(l.value=void 0===l.value||!l.value),e.preventDefault(),n._handleSourceCodeMode()}break;case"f":if(e.shiftKey){var c=n._toolbarItemsObj.fullscreen;c&&(c.value=void 0===c.value||!c.value),e.preventDefault(),n._handleFullScreenMode()}else!a||n.disableSearchBar||"html"!==n.editMode||i.classList.contains("smart-hidden")||(e.preventDefault(),n._openSearchBar());break;case"j":e.preventDefault(),n._updateToolbarTarget({name:"alignment",value:"justify"});break;case"r":e.shiftKey?(e.preventDefault(),n._handleClearFormat()):(e.preventDefault(),n._updateToolbarTarget({name:"alignment",value:"right"}));break;case"o":e.shiftKey?(e.preventDefault(),n._handleList("orderedlist")):e.altKey&&(e.preventDefault(),n._handleList("unorderedlist"))}}else n._changingValue=t===i?i.innerHTML:n.$.input.value}},{key:"_editableElementMoveHandler",value:function(e){var t=this,n=t.$.editableElement,i=e.originalEvent||e,r=i.clientX,a=i.clientY,o=t.shadowRoot||t.isInShadowDOM?i.composedPath()[0]:i.target;if(e.stopPropagation(),o&&o.closest&&!t._isMobile&&"false"!==n.getAttribute("contenteditable")){var s=t._inlineToolbarClickObj;if(!(s&&s.resizeDetails||t._dragDetails)){var l=o.tagName.toLowerCase();if(!o.closest(".smart-editor-editable table")||"td"!==l&&"th"!==l)n.removeAttribute("table-cell-resize");else{var c=o.getBoundingClientRect();a<c.bottom+5&&a>c.bottom-5?n.setAttribute("table-cell-resize","vertical"):r<c.right+5&&r>c.right-5&&o.nextElementSibling?n.setAttribute("table-cell-resize","horizontal"):n.removeAttribute("table-cell-resize")}}}else n.removeAttribute("table-cell-resize")}},{key:"_focusEditableElement",value:function(){var e=this,t=e.$.iframe,n=e.editMode,i=e.$.editableElement;if(("markdown"===n||i.classList.contains("smart-hidden"))&&(i=e.$.input),t&&t.focus({preventScroll:!0}),i.getRootNode().activeElement!==i){var r=e._getSelectionRange(),a=i.scrollTop,o=t?t.contentWindow:window;if(i.focus({preventScroll:!0}),e._isSafari&&a&&(i.scrollTop=a),"markdown"===n||i.classList.contains("smart-hidden"))return void(void 0!==r.selectionStart&&e._setSelectionRange(r.selectionStart,r.selectionEnd));if(r instanceof o.Range){var s=(t?t.contentWindow:window).getSelection();s.removeAllRanges(),s.addRange(r)}}}},{key:"_getTextFromCarret",value:function(){var e,t,n=this._getSelectionRange(),i=n.startContainer,r=i.textContent;if(!n.toString()&&r.length>0&&r.indexOf(" ")>-1){var a=r.slice(0,n.startOffset).lastIndexOf(" ")+1,o=r.slice(n.endOffset).indexOf(" ");o<0&&(o=r.length-1),e=a>
1-1?a:n.startOffset,t=Math.max(n.endOffset,n.endOffset+o)}else e=0,t=i.length;return{selectionStartIndex:e,selectionEndIndex:t}}},{key:"_handleSearchButtonClick",value:function(e){var t=this;if(e){var n=e.classList;n.contains("smart-search-button")&&(n.contains("prev")?t._highlightSearchResult():n.contains("next")?t._highlightSearchResult(!0):n.contains("close")&&t._closeSearchToolbar())}}},{key:"_highlightSearchResult",value:function(e){for(var t=this,n=t.$.contentContainer,i=t.$.editableElement.querySelectorAll(".find-and-replace-match"),r=n.querySelector(".smart-search-input-container"),a=i.length,o=0,s=a;o<s;o+=1){var l=i[o];if(l.classList.contains("selected")){var c=e?Math.min(a-1,o+1):Math.max(0,o-1),u=i[c];return u&&(u.classList.add("selected"),r.setAttribute("selected",c+1),t._scrollToMarker(u)),void(u!==l&&l.classList.remove("selected"))}}}},{key:"_handleToolbarItemClick",value:function(e,t){var n=this;if(t){var i,r,a=n.$.inlineToolbar,o=n._toolbarItemClick,s=t.getAttribute("item-type"),l=t.getAttribute("item-name");if(e&&(i=e.originalEvent||e,r=n.shadowRoot||n.isInShadowDOM?i.composedPath()[0]:i.target),"custom"!==s&&i&&(n.hasRippleAnimation&&"delimiter"!==s&&Smart.Utilities.Animation.Ripple.animate(r,i.pageX,i.pageY),o&&o.callback))return o.callback.call(n,t,o.target),void n.$.fireEvent("toobarItemClick",{value:l,originalEvent:i});n.$.fireEvent("actionStart",{name:l}).defaultPrevented||(n._handleToolbarItemAction(t),n._closeToolbarItemDropDown(n.$.inputPopup),n._closeToolbarItemDropDown(n.$.colorInputPopup),a&&a.close(),i&&n.$.fireEvent("toobarItemClick",{value:l,originalEvent:i}),l&&n.$.fireEvent("actionEnd",{name:l}))}}},{key:"_handleToolbarItemAction",value:function(e){var t=this,n=t._toolbarItemClick;if(e){var i=e.getAttribute("item-type"),r=e.getAttribute("item-name");if("custom"!==i)switch(r){case"bold":case"italic":case"underline":case"strikethrough":t._handleTextDecorations(r);break;case"clearformat":t._handleClearFormat();break;case"redo":case"undo":t._handleUndoRedo(r);break;case"lowercase":case"uppercase":t._handleTextCase(r);break;case"backgroundcolor":t._handleBackgroundColor(e.getAttribute("item-value"));break;case"fontcolor":t._handleFontColor(e.getAttribute("item-value"));break;case"findandreplace":case"editlink":t._openWindow(e);break;case"openlink":var a=t.$.inlineToolbar;if(a&&a.contains(e)){var o,s=a.selector;s.nodeName!==Node.TEXT_NODE&&(o=s.closest(".smart-editor-editable a")),o&&window.open(o.href,o.target)}break;case"caption":if(!n)break;var l=n.target;if(l&&"img"===l.nodeName.toLowerCase()){var c,u=l.closest(".smart-editor-image-container");u&&u.querySelector(".smart-editor-image-caption")||(c=t.localize("captionPlaceholder")),t._handleImgCaption(l,{caption:c,focusCaption:!0})}else if(l.classList.contains("smart-editor-video-container")){var d,h=l.querySelectorAll(".smart-editor-video-container > video, .smart-editor-video-container > iframe");l.querySelector(".smart-editor-image-caption")||(d=t.localize("captionPlaceholder")),t._handleVideoCaption(h[0]||h[1],{caption:d,focusCaption:!0})}break;case"cut":case"copy":case"paste":t._handleClipboardAction(r);break;case"delete":t._resizeFrameObj&&t._resizeFrameObj.target?t._deleteResizeFrameTarget(n.target):t._handleTextDelete();break;case"removelink":n&&t._handleLinkRemove(n.target);break;case"tableheader":case"tablerows":case"tablecolumns":case"tablevalign":case"tablestyle":t._handleTableToolbarAction(e);break;case"sourcecode":t._handleSourceCodeMode(e);break;case"splitmode":t._handleSplitMode(e);break;case"fullscreen":t._handleFullScreenMode(e);break;case"orderedlist":case"unorderedlist":t._handleList(r);break;case"indent":case"outdent":t._handleIndentation(r);break;case"subscript":case"superscript":t._handleSubSuperScript(r);break;case"print":t._handlePrint();break;default:t._inlineToolbarItemsObj?t._updateEditorViaWindow(t._inlineToolbarItemsObj[r]):t._toolbarItemsObj&&t._updateEditorViaWindow(t._toolbarItemsObj[r])}}}},{key:"_handleCommonToolbarAction",value:function(e,t){var n=this;if("html"===n.editMode){var i,r=n._getSelectionRange(),a=n.$.iframe,o=_slicedToArray(a?[a.contentDocument,a.contentWindow]:[document,window],2),s=o[0],l=o[1],c=r.startContainer;if(!c)return;if(r.startOffset===r.endOffset&&c.nodeType===Node.TEXT_NODE){var u=n._getTextFromCarret(),d=u.selectionStartIndex,h=u.selectionEndIndex;i=r.startOffset-d,n._setSelectionRange(c,d,h)}(function(e){return"string"==typeof e?("removeFormat"===e&&n.removeStylesOnClearFormat&&n._removeNodeStyles(r.commonAncestorContainer),s.execCommand(e)):"object"==typeof e?s.execCommand(e.name,!1,e.value):void 0})(e)&&void 0!==i&&n._setSelectionRange(l.getSelection().focusNode,i,i),t&&n._updateToolbarItems(t)}}},{key:"_handleClearFormat",value:function(){this._handleCommonToolbarAction("removeFormat")}},{key:"_handleFontName",value:function(e){this._handleCommonToolbarAction(e)}},{key:"_handleFontSize",value:function(e){var t=this;if("markdown"!==t.editMode){var n,i=t._getSelectionRange(),r=i.startContainer;if(r){if(i.startOffset===i.endOffset){if(r.nodeType!==Node.TEXT_NODE){var a=document.createElement("font");return i.insertNode(a),t._setSelectionRange(a),void(a.style.fontSize=e.value+"px")}var o=t._getTextFromCarret(),s=o.selectionStartIndex,l=o.selectionEndIndex;n=i.startOffset-s,t._setSelectionRange(r,s,l)}if((t.$.editableElement.getRootNode()||document).execCommand("fontSize",!1,3)){var c=t.$.iframe,u=c?c.contentWindow:window;if(i.commonAncestorContainer.closest)for(var d=i.commonAncestorContainer.querySelectorAll("font[size]"),h=0,f=d.length;h<f;h+=1){var p=d[h];p.removeAttribute("size"),p.style.fontSize=e.value+"px"}else{var m=u.getSelection().focusNode;if(!m)return;var g=m.closest?m.closest(".smart-editor-editable font"):m.parentElement;"font"===g.nodeName.toLowerCase()&&(g.removeAttribute("size"),g.style.fontSize=e.value+"px")}void 0!==n&&t._setSelectionRange(u.getSelection().focusNode,n,n)}}}}},{key:"_handleFormats",value:function(e){var t=this;if("markdown"!==t.editMode)t._getSelectionRange().startContainer&&t.$.editableElement.getRootNode().execCommand("formatBlock",!1,e.value);else{var n;switch(e.value){case"h1":n="#";break;case"h2":n="##";break;case"h3":n="###";break;case"h4":n="####";break;case"h5":n="#####";break;case"h6":n="######";break;case"code":case"pre":n="```\n\n```";break;case"blockquote":n=">";break;case"p":n="";break;default:n=e.value}var i=e.dataSource,r=t.$.input.selectionStart;if(i)for(var a=i.map(function(e){return e.value}),o=0,s=a.length;o<s;o+=1){var l=t._getMarkdownFormat(r,a[o]);if(l&&void 0!==l.formatName){t._removeMarkDown(l.markdown,l.occuranceIndex,!0);break}}0===n.indexOf("#")||0===n.indexOf(">")?(n+=" ",t._insertMarkDown(n,t.$.input.selectionStart+n.length,!0)):t._insertMarkDown(n,t.$.input.selectionStart+n.length/2)}}},{key:"_handleSubSuperScript",value:function(e){var t=this;"markdown"!==t.editMode?t._handleCommonToolbarAction(e,["subscript","superscript"]):t._handleMarkdownItem(e)}},{key:"_handleMarkdownItem",value:function(e){var t,n,i,r=this,a=r.$.input,o=r._getSelectionRange(),s=o.selectionStart,l=o.selectionEnd,c=a.value;switch(e){case"bold":n="**",i="**";break;case"italic":n="*",i="*";break;case"underline":n="<ins>",i="</ins>";break;case"strikethrough":n="~~",i="~~";break;case"subscript":n="<sub>",i="</sub>";break;case"superscript":n="<sup>",i="</sup>"}if(void 0!==s&&s!==l){var u=n.length,d=i.length;if(t=c.slice(s,l),c.slice(s-u,s)===n&&c.slice(l,l+d)===i)return a.value=c.slice(0,s-u)+t+c.slice(l+d),r._refreshMarkdownPreview(),void r._setSelectionRange(a,s-u,l-u)}n&&i&&r._insertMarkDown(n+i,a.selectionStart+n.length)}},{key:"_handleTextDecorations",value:function(e){var t=this;if("markdown"!==t.editMode){var n,i=t._getSelectionRange(),r=i.startContainer;if(r){if(i.startOffset===i.endOffset&&r.nodeType===Node.TEXT_NODE){var a=t._getTextFromCarret(),o=a.selectionStartIndex,s=a.selectionEndIndex;n=i.startOffset-o,t._setSelectionRange(r,o,s)}if((t.$.editableElement.getRootNode()||document).execCommand(e))if(void 0!==n){var l=t.$.iframe,c=l?l.contentWindow:window,u=c.getSelection().focusNode;u.textContent=u.textContent.trim(),t._setSelectionRange(c.getSelection().focusNode,n,n)}else t._setSelectionRange();t._updateToolbarItems([e])}}else t._handleMarkdownItem(e)}},{key:"_handlePasteAction",value:function(e,t,n){if(e){var i=this;
1if(t&&!t.name&&"prompt"===i.pasteFormat){var r={name:"paste",text:e,textType:n};return t&&(r.value=t.value,r.advanced=t.advanced),void i._openWindow(r)}i._handleTextPaste(e,t,n)}}},{key:"_handleTextPaste",value:function(e,t,n){var i=this,r=i.$.input;if(!i.$.contentContainer.classList.contains("char-count-maxed")){if("markdown"===i.editMode)return i._insertMarkDown(e),void i._setCharCount();e=e.replace(/<!--StartFragment-->|<!--EndFragment-->/gi,"");var a,o,s=i.pasteFormat;if(t&&t.advanced&&(s=t.value),!n||"plainText"===s){var l=document.createElement("div");l.innerHTML=e,e=l.innerText}var c=e.toLocaleLowerCase();if((a=document.createElement("span")).innerHTML=e,c.indexOf("<video")>-1||c.indexOf("<iframe")>-1||c.indexOf("smart-editor-image-caption")>-1){for(var u=a.querySelectorAll("video, iframe"),d=a.querySelector(".smart-editor-image-caption"),h=u.length>0,f=document.createDocumentFragment(),p=0,m=u.length;p<m;p+=1)f.appendChild(u[p]);if(d&&(d.removeAttribute("style"),f.appendChild(d)),h||d){var g=document.createElement("span");a.classList.add("smart-editor-image-container"),h&&a.classList.add("smart-editor-video-container"),a.setAttribute("contenteditable",!1),f.childElementCount&&(a.innerHTML="",a.appendChild(f)),g.appendChild(a),a=g}}if("cleanFormat"===s&&i._removeNodeStyles(a),n&&"text/plain"!==n||(a=document.createTextNode(a.innerHTML),o=Node.TEXT_NODE),r.getRootNode().activeElement===r){var v=r.value;return r.value=v.slice(0,r.selectionStart)+(o===Node.TEXT_NODE?a.textContent:a.innerHTML)+v.slice(r.selectionEnd),void i._setCharCount()}var y=i._getSelectionRange(),b=i.$.iframe,_=_slicedToArray(b?[b.contentWindow,b.contentDocument]:[window,document],2),w=_[0],k=_[1];if(!(y instanceof w.Range))return k.execCommand("paste"),void i._handleContentFiltering();if(y.deleteContents(),a.childNodes.length)for(;a.lastChild;)y.insertNode(a.lastChild);else y.insertNode(a);y.collapse(),i._handleContentFiltering()}}},{key:"_removeNodeStyles",value:function(e){if(e&&e.nodeType!==Node.TEXT_NODE){for(var t=e.querySelectorAll("style, [style]"),n=0,i=t.length;n<i;n+=1){var r=t[n];"style"===r.nodeName.toLowerCase()?r.remove():t[n].removeAttribute("style")}e.removeAttribute("style")}}},{key:"_handlePaste",value:function(e){var t=this,n=navigator.clipboard,i=n.read?"read":"readText",r=function(){n[i]&&n[i]().then(function(n){if(Array.isArray(n)&&n.length){var i=n[0],r=i.types.indexOf("text/html")>-1?"text/html":"text/plain";i.getType(r).then(function(n){n.text().then(function(n){return t._handlePasteAction(n,e,r)})})}else"string"==typeof n&&t._handlePasteAction(n,e)})};if(navigator.permissions&&navigator.permissions.query&&!t._isFireFox)try{navigator.permissions.query({name:"clipboard-read"}).then(function(e){("granted"===e.state||"prompt"===e.state&&n[i])&&r()})}catch(e){t.error(t.localize("permissionsRequired",{elementType:t.nodeName.toLowerCase(),actionName:"paste"}))}else if(n[i])return void r();t.$.editableElement.getRootNode().execCommand("paste")}},{key:"_handlePasteViaWindow",value:function(e){var t=this,n=t._getItemOptionsViaWindow(e);if(e&&"paste"===e.name){var i=t.pasteFormat;for(var r in n)if(n[r]){i=r;break}e.value=i,t._handleTextPaste(e.text,e,e.textType)}}},{key:"_handleClipboardAction",value:function(e){var t=this,n=t.editMode,i=t.$.input;if("paste"!==e){var r=t._getSelectionRange();if(("copy"===e||"cut"===e)&&(document.execCommand("copy"),"cut"===e))if("markdown"===n){var a=i.value,o=i.selectionStart;i.value=a.slice(0,o)+a.slice(i.selectionEnd),t._setSelectionRange(i,o,o),t._refreshMarkdownPreview()}else r.deleteContents()}else t._handlePaste()}},{key:"_handleLinkRemove",value:function(e){var t;if(e&&"img"===e.nodeName.toLowerCase())(t=e.closest(".smart-editor-editable a"))&&(t.parentElement.insertBefore(e,t),t.remove());else{var n,i,r=this.$.iframe;r?(n=r.contentDocument,i=r.contentWindow):(n=document,i=window);var a=i.getSelection(),o=this._getSelectionRange();a.removeAllRanges(),a.addRange(o);var s=a.anchorNode?a.anchorNode.parentElement:void 0;if(!s||"a"!==s.nodeName.toLowerCase())return;o.selectNode(a.anchorNode),n.execCommand("unlink",!1,!1)}}}
1,{key:"_handleBackgroundColor",value:function(e){var t=this;if("markdown"!==t.editMode){var n,i=t.$.iframe,r="string"==typeof e?e:e.value,a=_slicedToArray(i?[i.contentDocument,i.contentWindow]:[document,window],2),o=a[0],s=a[1],l=t.$.inlineToolbar,c=t._getSelectionRange(),u=l&&l.visible?l.selector:c.commonAncestorContainer;if(u&&["th","td"].indexOf(u.nodeName.toLowerCase())>-1){if(c.startOffset===c.endOffset)return void(u.style.backgroundColor=r);n=u.style.backgroundColor}var d,h=c.startOffset,f=c.endOffset,p=c.startContainer;if(p&&p.nodeType===Node.TEXT_NODE&&c.startOffset===c.endOffset){var m=t._getTextFromCarret(),g=m.selectionStartIndex,v=m.selectionEndIndex;d=c.startOffset-g,t._setSelectionRange(p,g,v)}else p.closest&&h!==f&&t._setSelectionRange(p,h,f);var y=o.execCommand("hiliteColor",!1,r&&"transparent"!==r?r:"transparent");u&&n?u.style.backgroundColor=n:y&&void 0!==d&&t._setSelectionRange(s.getSelection().focusNode,d,d)}}},{key:"_handleFontColor",value:function(e){var t=this;if("markdown"!==t.editMode){var n,i=t._getSelectionRange(),r="string"==typeof e?e:e.value,a=i.startContainer,o=t.$.iframe,s=r?"foreColor":"removeFormat",l=_slicedToArray(o?[o.contentDocument,o.contentWindow]:[document,window],2),c=l[0],u=l[1];if(a&&a.nodeType===Node.TEXT_NODE&&i.startOffset===i.endOffset){var d=a.parentElement;if("font"===d.nodeName.toLocaleLowerCase())return void(d.color=r);var h=t._getTextFromCarret(),f=h.selectionStartIndex,p=h.selectionEndIndex;n=i.startOffset-f,t._setSelectionRange(a,f,p)}c.execCommand(s,!1,r)&&void 0!==n&&t._setSelectionRange(u.getSelection().focusNode,n,n)}}},{key:"_handlePrint",value:function(){var e=this,t=e.dataExport.fileName;e.dataExport.fileName=null;var n=window.open("","","width=800,height=500"),i=n.document.open(),r='<!DOCTYPE html><html><head><meta charset="utf-8" /><title>'+t+"</title></head><body>"+e._handleDataExport("html")+"</body></html>";try{i.write(r),i.close(),setTimeout(function(){n.print(),n.close()},100)}catch(e){}e.dataExport.fileName=t}},{key:"_handleDataExport",value:function(e,t){var n=this;if(Smart.Utilities.DataExporter){try{new JSZip}catch(e){return void n.error(n.localize("missingReference",{elementType:n.nodeName.toLowerCase(),methodName:"exportData",files:"jszip.min.js"}))}if("pdf"!==e||window.pdfMake){if("pdf"!==e){var i;if("markdown"===n.editMode){var r=n.$.input;i="md"!==e&&window.marked?window.marked(r.value):r.value}else i=n.$.editableElement["pdf"===e?"textContent":"innerHTML"];var a=new Smart.Utilities.DataExporter({exportHeader:!1,pageOrientation:n.dataExport.pageOrientation,style:n.dataExport.style}),o=[{value:i}];return n._setExportStyles(a,e),a.exportData(o,e,n.dataExport.fileName,t)}n._exportToPDF(n.dataExport.fileName,e)}else n.error(n.localize("missingReference",{elementType:n.nodeName.toLowerCase(),methodName:"exportData",files:"pdfMake.min.js"}))}else n.error(n.localize("missingReference",{elementType:n.nodeName.toLowerCase(),methodName:"exportData",files:"smart.export.js"}))}},{key:"_exportToPDF",value:function(e,t){var n=this,i=n.$.editableElement,r=window.getComputedStyle(n),a=n.dataExport.style,o={pageOrientation:n.pageOrientation||"portrait",info:{title:"smartEditor",creator:"Smart",producer:"Smart"}};if(a&&(o.styles=a),o.defaultStyle={fontSize:parseFloat(r.fontSize)},"markdown"===n.editMode){var s,l=n.$.input,c=document.createElement("div");"md"!==t?i.classList.contains("smart-hidden")?(c.innerHTML=window.marked?window.marked(l.value):l.value,s=n._processHTMLAsPDFObject(c,[])):s=n._processHTMLAsPDFObject(i,[]):(c.innerHTML=l.value,s=n._processHTMLAsPDFObject(c,[])),o.content=s}else o.content=n._processHTMLAsPDFObject(n.$.editableElement,[]);try{pdfMake.createPdf(o).download(e)}catch(e){console.error(n.localize("exportError",{elementType:n.nodeName.toLowerCase(),status:e.toString()}))}}},{key:"_processHTMLAsPDFObject",value:function(e,t,n){for(var i=this,r={},a=["left","center","right"],o=e.childNodes,s=["td","th"].indexOf(e.nodeName.toLowerCase())>-1,l=0,c=o.length;l<c;l+=1){var u=o[l],d=u.nodeName.toLowerCase(),h=u.nodeType===Node.TEXT_NODE,f=void 0;if("table"===d)!function(){var e=u.querySelectorAll("thead tr"),t=u.querySelectorAll("thead tr:last-of-type td, thead tr:last-of-type th"),n=u.querySelectorAll("tbody tr:last-of-type td, tbody tr:last-of-type th"),r=t.length?t:n,a=u.querySelectorAll("body tr"),o=e.length;if(!o)for(var s=0,l=a.length;s<l&&Array.from(a[s].children).every(function(e){return"th"===e.n
1odeName.toLowerCase()});s+=1)o++;f={table:{headerRows:o,widths:function(){for(var e=Math.round(100/r.length)+"%",t=[],n=0,i=r.length;n<i;n+=1)t.push(e);return t}(),body:function(){for(var e=[],t=0,n=a.length;t<n;t+=1){for(var o=a[t],s=o.children,l=[],c=0,u=o.childElementCount;c<u;c+=1){var d=i._processHTMLAsPDFObject(s[c],[],!0);if(o.childElementCount<r.length){var h=void 0;for((h=Array.isArray(d)&&1===d.length?d[0]:{text:d}).colSpan=Math.round(r.length/o.childElementCount),l.push(h);l.length<r.length;)l.push({text:""})}else l.push(1===d.length?d[0]:d)}e.push(l)}return e}()}}}();else if("ul"===d)f={ul:i._processHTMLAsPDFObject(u,[])};else if("ol"===d)f={ol:i._processHTMLAsPDFObject(u,[])};else if("img"===d){var p=document.createElement("canvas"),m=p.getContext("2d"),g=void 0;p.width=u.naturalWidth||u.width,p.height=u.naturalHeight||u.height,m.drawImage(u,0,0);try{g=p.toDataURL("image/png")}catch(e){console.error(i.localize("exportError",{elementType:i.nodeName.toLowerCase(),status:e.toString()}));continue}if(g.indexOf("image/png")<0){console.error(i.localize("exportError",{elementType:i.nodeName.toLowerCase(),status:"Invalid image"}));continue}f={image:g,width:u.width,height:u.height}}else"a"===d?(f={},u.childElementCount?u.querySelector("img")&&(f=i._processHTMLAsPDFObject(u,[],!0)[0]||{}):f.text=u.textContent,f.link=u.href):u.childElementCount?t=t.concat(i._processHTMLAsPDFObject(u,[],!0)):f={text:u.textContent.trim()?u.textContent:"\n"};if(f){var v=window.getComputedStyle(h?e:u);if(!h||s){var y=v.backgroundColor,b=parseFloat(v.fontSize);isNaN(b)||(f.fontSize=b),f.alignment=r.alignment=a.indexOf(v.textAlign)>-1?v.textAlign:a[0],"rgba(0, 0, 0, 0)"!==y&&"transparent"!==y&&(f.fillColor=r.fillColor=i._RGBAtoHex(y)),parseInt(v.fontWeight)>500&&(f.bold=!0),"italic"===v.fontStyle&&(f.italics=!0)}f.inlineElement=h||v.display.indexOf("inline")>-1,f.color=r.color=i._RGBAtoHex(v.color),t.push(f)}}return 1===t.length?t:n||s?(r[t.every(function(e){return e.inlineElement&&!e.image})?"text":"stack"]=t,[r]):t}},{key:"_RGBAtoHex",value:function(e){var t=/rgb[a]?\(\s*(\d+),\s*(\d+),\s*(\d+),?\s*(\d*.\d+|\d+)?\)/gi.exec(e.replace(/\s/g,""));if(null===t)return e;var n=parseFloat(t[1]).toString(16).toUpperCase(),i=parseFloat(t[2]).toString(16).toUpperCase(),r=parseFloat(t[3]).toString(16).toUpperCase();return"#"+"0".repeat(2-n.length)+n+"0".repeat(2-i.length)+i+"0".repeat(2-r.length)+r}},{key:"_setExportStyles",value:function(e,t){var n=this;if(!e.style){var i=window.getComputedStyle(n),r=i.getPropertyValue("--smart-border-width")||"1px",a=i.getPropertyValue("--smart-border")||"black",o=i.getPropertyValue("--smart-editor-table-column-width")||"initial",s=i.getPropertyValue("--smart-editor-table-cell-min-height")||"20px",l=i.getPropertyValue("--smart-editor-table-cell-min-width")||s,c=i.getPropertyValue("--smart-surface")||"#333",u=i.getPropertyValue("--smart-alternation-index0-background")||c;e.style={border:"initial",width:"100%",height:n.$.editableElement.scrollHeight+"px",removeDefault:!0,custom:"\n ".concat("html"===t&&n.rightToLeft?"body { direction: rtl; }":"","\n\n .column table {\n width: 100%;\n border-collapse: collapse;\n empty-cells: show;\n border-spacing: 0;\n table-layout: fixed;\n }\n \n .column td, .column th {\n border: ").concat(r," solid ").concat(a,";\n width: ").concat(o,";\n min-height: ").concat(s,";\n min-width: ").concat(l,";\n padding: 2px 5px;\n vertical-align: middle;\n }\n \n .column table img {\n max-width: 100%;\n }\n \n .column table table {\n width: 100%;\n }\n \n .column table th {\n background: ").concat(c,";\n }\n\n .column th:empty::before,\n .column td:empty::before {\n content: 'A';\n visibility: hidden;\n }\n \n .column table[dashed-borders] th, .column table[dashed-borders] td {\n border-style: dashed;\n }\n \n .column table[alternation] tr:nth-child(2n) {\n background-color: ").concat(u,';\n }\n \n .column .smart-editor-image-container {\n display: inline-block;\n }\n \n .column .smart-editor-image-container[display="block"] {\n display: block;\n }\n \n .column .smart-editor-image-container[display="block"][alignment="left"] img {\n margin-left: 0;\n }\n \n .column .smart-editor-image-container[display="block"][alignment="left"] .smart-editor-image-caption {\n text-align: left;\n }\n \n .column .smart-editor-image-container[display="block"][alignment="right"] img {\n margin-right: 0;\n }\n \n .column .smart-editor-image-container[display="block"][alignment="right"] .smart-editor-image-caption {\n text-align: right;\n }\n \n .column .smart-editor-image-container:not([display="block"])[alignment="left"] {\n float: left;\n }\n \n .column .smart-editor-image-container:not([display="block"])[alignment="right"] {\n float: right;\n }\n \n .column .smart-editor-image-container .smart-editor-image-caption {\n display: block;\n text-align: center;\n outline: none;\n }')}}}},{key:"_handleSourceCodeMode",value:function(e){var t,n=this,i=n.editMode,r=n._toolbarItemsObj.sourcecode;if(!n.$.contentContainer.hasAttribute("split-mode")){e?t=e.hasAttribute("checked"):(t=r?r.value:!n.classList.contains("preview-mode"),e=n.$.toolbar.querySelector('.smart-editor-toolbar-item[item-name="sourcecode"]')),n._closePopups(),n._closeWindow(),n._closeSearchToolbar(),n._setResizeFrame(),n._handleTableSelection();var a=n.$.editableElement,o=n.$.input;"markdown"===i?t&&a.classList.contains("smart-hidden")?(a.innerHTML=window.marked?window.marked(o.value):o.value,a.classList.remove("smart-hidden"),o.classList.add("smart-hidden"),a.focus({preventScroll:!0})):!t&&o.classList.contains("smart-hidden")&&(a.classList.add("smart-hidden"),o.classList.remove("smart-hidden"),o.focus({preventScroll:!0})):t&&o.classList.contains("smart-hidden")?(o.value=n._getInputValue(a.innerHTML),a.classList.add("smart-hidden"),o.classList.remove("smart-hidden"),o.focus({preventScroll:!0})):!t&&a.classList.contains("smart-hidden")&&(a.innerHTML=n._getInputValue(o.value,!0),o.classList.add("smart-hidden"),a.classList.remove("smart-hidden"),a.focus({preventScroll:!0}),n._handleContentFiltering()),t?n.classList.add("preview-mode"):n.classList.remove("preview-mode"),r&&(r.value=t),e&&r&&(t?(e.setAttribute("checked",""),e.setAttribute("aria-pressed",!0)):(e.removeAttribute("checked"),e.setAttribute("aria-pressed",!1)),n._setTextSelection(),n._setToolbarItemAttr("sourcecode","disabled",r.disabled))}}},{key:"_setTextSelection",value:function(){var e=this,t=e.$.input,n=e.$.editableElement,i=e._selectionRange;if(i){var r=i.commonAncestorContainer;if(r){if(t.classList.contains("smart-hidden"))return;var a=e._getParentCharDetails(i.startContainer,r),o=e._getParentCharDetails(i.endContainer,r),s=e._getSiblingsCharOffset(a.parentElement,o.parentElement),l=e._getParentCharDetails(r,n).charOffset;e._setSelectionRange(t,i.startOffset+a.charOffset+l,i.endOffset+o.charOffset+s+l)}else if(!n.classList.contains("smart-hidden")){var c=i.selectionStart,u=i.selectionEnd;if(void 0===c||void 0===u||c===u&&(t.value.length===c||0===c))return;if(0===c&&u===n.innerHTML.length)return void e._setSelectionRange(n);var d=e._getNodeByChartOffset(n.firstChild,c,u);if(!d)return;var h=d.node,f=d.charOffset;e._setSelectionRange(h,c-f,u-f)}
1}}},{key:"_getNodeByChartOffset",value:function(e,t,n){for(var i=0;e;){var r=e.outerHTML||e.textContent,a=r.length;if(i<=t&&i+a>=n){e.tagName&&(i+=e.outerHTML.slice(0,r.indexOf(e.innerHTML)).length);var o=this._getNodeByChartOffset(e.firstChild,t-i,n-i);return o?{node:o.node,charOffset:o.charOffset+i}:{node:e,charOffset:i}}e=e.nextSibling,i+=a}}},{key:"_getParentCharDetails",value:function(e,t){var n=0;if(e===t)return{charOffset:n,parentElement:e.parentElement};for(var i=e,r=e.innerHTML||e.textContent,a=e.parentElement;a&&a!==t&&t.contains(a);){var o=a.outerHTML;n+=o.indexOf(r),r=o,i=a,a=a.parentElement}return{charOffset:n+=(t.innerHTML||t.textContent).indexOf(r),parentElement:i}}},{key:"_getPreSiblingOffset",value:function(e,t){for(var n=0,i=e.textContent,r=e.previousSibling;r&&t.contains(r);){var a=r.outerHTML||r.textContent;i=a+i,n+=a.length,r=r.previousSibling}return n}},{key:"_getSiblingsCharOffset",value:function(e,t){var n=0,i=e.nextSibling;if(e===t)return n;for(;i&&i!==t;)n+=(i.outerHTML||i.textContent).length,i=i.nextSibling;return n}},{key:"_handleFullScreenMode",value:function(e){var t,n=this,i=n._toolbarItemsObj.fullscreen;e?t=e.hasAttribute("checked"):(t=i?i.value:!n.classList.contains("full-screen-mode"),e=n.$.toolbar.querySelector('.smart-editor-toolbar-item[item-name="fullscreen"]')),n._closePopups(),n._setResizeFrame(),n._handleTableSelection(),t?(n.classList.add("full-screen-mode"),n._lastToolbarExpandedState=n.$.toolbar.hasAttribute("expanded")):(n.classList.remove("full-screen-mode"),n._lastToolbarExpandedState&&n._toggleToolbar()),i&&(i.value=t),e&&i&&(t?(e.setAttribute("cheched",""),e.setAttribute("aria-pressed",!0)):(e.removeAttribute("checked"),e.setAttribute("aria-pressed",!1)),i.disabled?(e.setAttribute("disabled",""),e.setAttribute("aria-disabled",!0)):(e.removeAttribute("disabled"),e.removeAttribute("aria-disabled")))}},{key:"_handleSplitMode",value:function(e){var t=this,n=t.$.editableElement,i=t.$.input,r=t.$.contentContainer,a=t._toolbarItemsObj,o=a.splitmode,s=a.sourcecode,l=e?e.hasAttribute("checked"):!r.hasAttribute("split-mode"),c=t.editMode;t._closePopups(),l?("markdown"===c?n.innerHTML=window.marked?window.marked(i.value):i.value:i.value=n.innerHTML.trim(),r.setAttribute("split-mode",""),i.classList.remove("smart-hidden"),n.classList.remove("smart-hidden"),s&&t._setToolbarItemAttr("sourcecode","disabled",!0)):(r.removeAttribute("split-mode",""),"markdown"===c?n.classList.add("smart-hidden"):i.classList.add("smart-hidden"),s&&t._setToolbarItemAttr("sourcecode","disabled",!1)),o&&(o.value=l),e||(e=t.$.toolbar.querySelector('.smart-editor-toolbar-item[item-name="splitmode"]')),e&&(l?(e.setAttribute("checked",""),e.setAttribute("aria-pressed",!0)):(e.removeAttribute("checked"),e.setAttribute("aria-pressed",!1))),t._resizeFrameObj&&t._setResizeFrame(t._resizeFrameObj.target),t.classList.contains("preview-mode")&&t._handleSourceCodeMode()}},{key:"_handleUndoRedo",value:function(e){this.$.editableElement.getRootNode().execCommand(e)}},{key:"_handleTextCase",value:function(e){var t,n,i=this;if("markdown"!==i.editMode){var r=i._getSelectionRange(),a=r.startContainer;if(a){var o,s,l,c,u=a.textContent,d=r.startOffset;a.nodeType===Node.TEXT_NODE&&r.startOffset===r.endOffset?(l=(t=i._getTextFromCarret()).selectionStartIndex,c=t.selectionEndIndex,s=u.slice(l,c)):(l=(n=[d,r.endOffset])[0],c=n[1],s=u.slice(d,r.endOffset),o=r.endOffset),s="lowercase"===e?s.toLowerCase():s.toUpperCase(),a.textContent=u.slice(0,l)+s+u.slice(c),i._setSelectionRange(a,d,o||d)}}}},{key:"_handleList",value:function(e){var t=this;if(e)if("markdown"!==t.editMode){var n,i,r=t._getSelectionRange();if(r.startContainer===r.endContainer&&(n=r.startOffset,i=r.endOffset),t.$.editableElement.getRootNode().execCommand("insert"+e,!1)){var a=t.$.iframe;r=(a?a.contentWindow:window).getSelection(),void 0!==i&&void 0!==i&&t._setSelectionRange(r.focusNode,n,i),t._updateToolbarItems(["orderedlist","unorderedlist"])}}else{var o="orderedlist"===e?"1. ":"- ",s=t.$.input.selectionStart,l=t._getMarkdownFormat(s,"orderedlist"),c=t._getMarkdownFormat(s,"unorderedlist");if(l&&(t._removeMarkDown(o,l.occuranceIndex,"orderedlist"!==e),"orderedlist"===e))return;if(c&&(t._removeMarkDown(o,c.occuranceIndex,"unorderedlist"!==e),"unorderedlist"===e))return;t._insertMarkDown(o,t.$.input.selectionStart+o.length,!0)}}},{key:"_handleIndentation",value:function(e){"markdown"!==this.editMode&&this.$.editableElement.getRootNode().execCommand(e,!1)}},{key:"_handleTextDelete",value:function(){this.$.editableElement.getRootNode().execCommand("delete")}},{key:"_handleTabInsert",value:function(){this.$.editableElement.getRootNode().execCommand("insertHTML",!1,"	")}},{key:"_handleTableToolbarAction",value:function(e,t){var n=this,i=n._toolbarItemClick;if(!t&&i&&(t=i.target),t&&"table"===t.nodeName.toLowerCase()&&e){var r=e.getAttribute?e.getAttribute("item-name"):e.name,a=n.$.inlineToolbar,o=e;if(o.closest){var s=n.$.inlineToolbar;o=(s&&s.contains(o)?n._inlineToolbarItemsObj:n._toolbarItemsObj)[r]}if(i||!n.$.fireEvent("actionStart",{name:r}).defaultPrevented){switch(r){case"backgroundcolor":n._handleBackgroun
1dColor(o);break;case"fontcolor":n._handleFontColor(o);break;case"fontsize":n._handleFontSize(o);break;case"tableheader":n._handleTableHeader(t);break;case"tablerows":n._handleTableRows(t,o);break;case"tablecolumns":n._handleTableColumns(t,o);break;case"tablevalign":n._handleTableVAlignment(t,o);break;case"alignment":n._handleTextAlignment(o);break;case"tablestyle":n._handleTableStyle(t,o);break;default:n._handleToolbarItemAction(e)}!i&&r&&n.$.fireEvent("actionEnd",{name:r}),a&&a.visible&&(n.$.editableElement.contains(a.selector)?a.reposition():n._closeToolbar());var l,c=n._getSelectionRange().startContainer;if(c.nodeType===Node.TEXT_NODE){var u=c.parentElement;l=u.closest("th")||u.closest("td")}else l=["th","td"].indexOf(c.nodeName.toLowerCase())>-1;n._setResizeFrame(l&&t.contains(c)?t:void 0)}}}},{key:"_handleTableHeader",value:function(e,t){var n,i,r=e.querySelector("th"),a=e.querySelector("tbody tr"),o=e.querySelector("thead");if(a&&(i=Array.from(a.children)),t||!o&&!r){if(void 0===t||!0===t){var s=e.querySelectorAll("tbody tr:first-of-type td").length;o||(o=document.createElement("thead")),(n=o.querySelector("tr"))||(n=document.createElement("tr"));for(var l=Array.from(n.children);l.length>s;)l.pop().remove();for(var c=l.length;c<s;c+=1){var u=document.createElement("th");i[c]&&(u.style.width=i[c].style.width,i[c].style.width=""),n.appendChild(u)}o.appendChild(n),e.insertBefore(o,e.querySelector("tbody")||e.querySelector("tr"))}}else o&&o.remove(),r&&((n=r.closest("tr"))&&n.remove(),Array.from(n.children).forEach(function(e,t){return i[t].style.width=e.style.width}))}},{key:"_handleTableRows",value:function(e,t){if(e){var n,i=this,r=i.$.inlineToolbar.selector,a=r.nodeName.toLocaleLowerCase();if(r&&["th","td"].indexOf(a)>-1&&(n=r.closest("tr"))){var o=t.value,s=n.closest("thead");switch(o){case"insertRowAfter":case"insertRowBefore":var l=document.createElement("tr"),c=n.parentElement;if(!c)break;for(var u=e.querySelector("tr").childElementCount,d="th"===a?"th":"td",h=0;h<u;h+=1)l.appendChild(document.createElement(d));c.insertBefore(l,o.indexOf("Before")>-1?n:n.nextElementSibling);break;case"deleteRow":i._closeToolbar(),n.remove(),s&&!s.children.length&&s.remove()}var f=e.querySelectorAll("tr").length;f?(e.setAttribute("aria-rowcount",f),i._resizeFrameObj&&i._setResizeFrame(i._resizeFrameObj.target)):e.remove()}}}},{key:"_handleTableColumns",value:function(e,t){if(e){var n=this,i=n.$.inlineToolbar.selector;if(i&&["th","td"].indexOf(i.nodeName.toLowerCase())>-1){var r=t.value,a=Array.from(e.querySelectorAll("tr"));if(!a.length)return n._closeToolbar(),void e.remove();var o=Array.from(i.parentElement.children).indexOf(i);switch(r){case"insertColumnLeft":case"insertColumnRight":for(var s=r.indexOf("Left")>-1,l=0,c=a.length;l<c;l+=1){var u=a[l],d=u.children[o];if(d){var h="th"===d.tagName.toLowerCase()?"th":"td";u.insertBefore(document.createElement(h),s?d:d.nextElementSibling)}}break;case"deleteColumn":n._closeToolbar();for(var f=0,p=a.length;f<p;f+=1){var m=a[f].children[o];m&&m.remove()}}var g=a[0].children.length;g?(e.setAttribute("aria-colcount",g),n._resizeFrameObj&&n._setResizeFrame(n._resizeFrameObj.target)):e.remove()}}}},{key:"_handleTextAlignment",value:function(e){if("markdown"!==this.editMode){var t="justify"===e.value?"full":e.value;this.$.editableElement.getRootNode().execCommand("justify"+t.charAt(0).toUpperCase()+t.slice(1),!1,null)}}},{key:"_handleTableVAlignment",value:function(e,t){var n=this.$.inlineToolbar;if(n){var i=n.selector;i&&["th","td"].indexOf(i.nodeName.toLowerCase())>-1&&(i.style.verticalAlign=t.value)}}},{key:"_handleTableStyle",value:function(e,t){var n=this.$.inlineToolbar.selector;if(n&&["th","td"].indexOf(n.nodeName.toLowerCase())>-1)switch(t.value){case"altrows":e.toggleAttribute("alternation");break;case"dashedborders":e.toggleAttribute("dashed-borders")}}},{key:"_handleInlineToolbar",value:function(e){var t=this,n=e.nodeName.toLowerCase();"a"===n?(t._openInlineToolbar(e),t._refreshToolbarTabs()):"img"===n||["td","th"].indexOf(n)>-1?(t._setResizeFrame(e),t._openInlineToolbar(e),t._refreshToolbarTabs()):e.nodeType===Node.TEXT_NODE&&e.textContent.trim().length&&t._openInlineToolbar(e)}},{key:"_handleTableCellResize",value:function(e){var t=this,n=t._inlineToolbarClickObj,i=n?n.resizeDetails:void 0;if(i){var r=i.target,a=i.position,o=t.$.inlineToolbar;switch(i.started||t.$.fireEvent("resizeStart",{target:r}),r.setAttribute("resizing",""),i.started=!0,o&&o.visible&&(i.isInlineToolbarOpened=!0,t._closeToolbar()),a){case"horizontal":var s=e.pageX+window.pageXOffset;if(t._setTableResizeDetails(i),!i.shrinkingCell)break;t._handleHorizontalTableCellResize(i,s);break;case"vertical":var l=i.table;l.style.height&&(l.querySelectorAll("tr").forEach(function(e){return e.style.height=e.offsetHeight+"px"}),l.style.height=""),t._resizeFrameObj&&t._resizeFrameObj.target&&t._setResizeFrame();var c=e.pageY+window.pageYOffset,u=r.offsetHeight;u-=i.y-c,r.style.height=Math.max(1,u)+"px",u===r.offsetHeight&&(i.y=c+Math.abs(Math.min(0,u)))}}}},{key:"_setTableResizeDetails",value:function(e){var t,n=e.target,i=e.expandingCell,r=e.shrinkingCell,a=e.isLastCell,o=e.areAllCellsResized;if(!i){var s=e.table.querySelector("tr"),l=Array.from(n.parentElement.children).indexOf(n);t=e.cells=Array.from(s.children),i=e.expandingCell=t[l]}e.shrinkingCell||(r=e.shrinkingCell=i.nextElementSibling,o=e.areAllCellsResized=!t.some(function(e){return e!==i&&e!==r&&!e.style.width}
1),a=e.isLastCell=o&&null===r.nextElementSibling,o&&!e.lastCell&&(e.lastCell=t[t.length-1]),a&&(r.style.width=""))}},{key:"_handleHorizontalTableCellResize",value:function(e,t){var n=30,i=e.expandingCell,r=e.shrinkingCell,a=i.offsetWidth,o=r.offsetWidth,s=e.x-t,l=e.x-a+n,c=e.x+r.offsetWidth-n;if(e.isLastCell){var u=a+o-n;i.style.width=Math.min(Math.max(n,a-s),u)+"px",i.offsetWidth!==a&&(e.x=Math.min(c,Math.max(l,t)))}else{var d,h,f;s>0&&(i=(d=[r,i])[0],r=d[1],a=(h=[o,a])[0],o=h[1],s*=-1),r.style.width=Math.max(n,o+s)+"px",f=r.offsetWidth-o,i.style.width=Math.max(n,i.offsetWidth-f)+"px",0!==f&&(e.x=Math.min(c,Math.max(l,t))),e.lastCell&&(e.lastCell.style.width="")}}},{key:"_handleFrameResize",value:function(e){var t=this,n=t._resizeFrameObj;if(n){t._closeToolbar();var i,r,a=n.resizableElement||n.target,o=n.resizeDetails,s=o.position,l=e.pageX+window.pageXOffset,c=e.pageY+window.pageYOffset,u=o.x-l,d=o.y-c;i=a.offsetWidth,r=a.offsetHeight,o.started||(n.target.setAttribute("dragged",""),t.$.fireEvent("resizeStart",{target:a})),o.started=!0;var h=i,f=r,p=t.rightToLeft?-1:1;switch(s){case"top-left":a.style.width=Math.max(0,h+p*u)+"px",a.style.height=Math.max(0,f+d)+"px",i=a.offsetWidth,r=a.offsetHeight,h!==i&&(o.x-=p*(i-h)),f!==r&&(o.y-=r-f);break;case"bottom-left":a.style.width=Math.max(0,h+p*u)+"px",a.style.height=Math.max(0,f-d)+"px",i=a.offsetWidth,r=a.offsetHeight,h!==i&&(o.x-=p*(i-h)),f!==r&&(o.y+=r-f);break;case"bottom-right":a.style.width=Math.max(0,h-p*u)+"px",a.style.height=Math.max(0,f-d)+"px",i=a.offsetWidth,r=a.offsetHeight,h!==i&&(o.x+=p*(i-h)),f!==r&&(o.y+=r-f);break;case"top-right":a.style.width=Math.max(0,h+p*-u)+"px",a.style.height=Math.max(0,f+d)+"px",i=a.offsetWidth,f!==(r=a.offsetHeight)&&(o.y-=r-f),h!==i&&(o.x+=p*(i-h));break;case"top-center":a.style.height=Math.max(0,f+d)+"px",f!==(r=a.offsetHeight)&&(o.y-=r-f);break;case"bottom-center":a.style.height=Math.max(0,f-d)+"px",f!==(r=a.offsetHeight)&&(o.y+=r-f);break;case"left-center":a.style.width=Math.max(0,h+p*u)+"px",h!==(i=a.offsetWidth)&&(o.x-=p*(i-h));break;case"right-center":a.style.width=Math.max(0,h-p*u)+"px",h!==(i=a.offsetWidth)&&(o.x+=p*(i-h))}t._positionResizeHandles()}}},{key:"_deleteResizeFrameTarget",value:function(e){var t=this,n=t._getSelectionRange();if(e)if("img"===e.nodeName.toLowerCase()){var i=e.closest(".smart-editor-editable .smart-editor-image-container"),r=(i||e).parentElement,a=r&&"a"===r.nodeName.toLowerCase()?r:void 0;t._setResizeFrame(),(a||i||e).remove(),URL.revokeObjectURL(e.src)}else if(e.classList.contains("smart-editor-video-container")){var o=e.querySelector(".smart-editor-video-container video, .smart-editor-video-container > iframe");t._setResizeFrame(),e.remove(),o&&URL.revokeObjectURL(o.src)}else if("table"===e.nodeName.toLowerCase()){var s=e.closest(".smart-editor-editable table");s&&(t._setResizeFrame(),s.remove())}t._setCharCount(),t._setSelectionRange(n.startContainer,n.startOffset,n.endOffset),t._focusEditableElement()}},{key:"_setResizeFrame",value:function(e,t){var n,i=this,r=i.$.editableElement,a=e?e.nodeName.toLowerCase():"",o=i._resizeFrameObj;if("td"!==a&&"th"!==a||(e=e.closest(".smart-editor-editable table")),a=e?e.nodeName.toLowerCase():"",e&&e.parentElement&&("img"===a||"table"===a||e.classList.contains("smart-editor-video-container"))&&"false"!==r.getAttribute("contenteditable"))if(o?n=o.element:((n=(o=i._resizeFrameObj={}).element=document.createElement("span")).classList.add("smart-editor-resize-frame"),n.innerHTML='<span position="top-left"></span><span position="top-right"></span>\n <span position="bottom-left"></span><span position="bottom-right"></span>\n <span position="top-center"></span><span position="bottom-center"></span>\n <span position="left-center"></span><span position="right-center"></span>'),o.target&&o.target.removeAttribute("show-resize-frame"),o.target=e,e.classList.contains("smart-editor-video-container")?o.resizableElement=e.querySelector("video, iframe"):delete o.resizableElement,i._refreshToolbarTabs(),"false"!==e.getAttribute("resizable")){if(e.setAttribute("show-resize-frame",""),i._positionResizeHandles(),n.parentElement||i.$.contentContainer.appendChild(n),!t&&"img"===a){var s=i.$.iframe;(s?s.contentWindow:window).getSelection().collapse(null),i._updateToolbarItems()}}else e.removeAttribute("show-resize-frame");else{if(o){if(o.element.remove(),o.target)for(var l=r.querySelectorAll("[show-resize-frame]"),c=0,u=l.length;c<u;c+=1)l[c].removeAttribute("show-resize-frame");delete o.target}i._refreshToolbarTabs()}}},{key:"_setToast",value:function(){var e=this,t=e.$.toast;return t||(e.$.toast=t=document.createElement("smart-toast"),t.appendTo=e.$.container,t.showCloseButton=!0,t.itemClass="smart-editor-message",e.$toast=Smart.Utilities.Extend(t)),t.rightToLeft=e.rightToLeft,t.theme=e.theme,t.animation=e.animation,t}},{key:"_positionResizeHandles",value:function(){var e=this,t=e._resizeFrameObj;if(e._resizeFrameObj){var n,i=t.element,r=e.rightToLeft,a=r?"right":"left",o=(t.resizableElement||t.target).getBoundingClientRect(),s=i.children,l=s[0],c=s[1],u=s[2],d=s[3],h=s[4],f=s[5],p=s[6],m=s[7],g=e.$.editableElement,v=e.$.contentContainer.getBoundingClientRect(),y=o.top-v.top+g.offsetTop,b=o.width,_=o.height;r?(n=v.right-o.right+(g.offsetLeft+g.offsetWidth-v.width),l.style.left=u.style.left=p.style.left=""):(n=o.left-v.left+g.offsetLeft,l.style.right=u.style.right=p.style.right=""),l.style.top=c.style.top=h.style.top=y+"px",l.style[a]=u.style[a]=p.style[a]=n+"px",u.style.top=d.style.top=f.style.top=y+_+"px",c.style[a]=d.style[a]=m.style[a]=b+n+"px",h.style[a]=f.style[a]=n+b/2+"px",p.style.top=m.style.top=y+_/2+"px"}}},{key:"_openInlineToolbar",value:function(e){var t=this,n=t.$.editableElement,i=t.$.inlineToolbar;if(t._closeToolbarItemDropDown(t.$.inputPopup),t._closeToolbarItemDropDown(t.$.colorInputPopup),"false"===n.getAttribute("contenteditable")||t.hideInlineToolbar)i&&i.visible&&i.close();
1else if(i||(i=t._createToolbar()),!t.$.fireEvent("inlineToolbarOpening",{target:i}).defaultPrevented){t._setupToolbar(e,"inline"),i.parentElement||t.getShadowRootOrBody().appendChild(i);var r=t._getInlineToolbarContent(e);i.clear(),r instanceof DocumentFragment&&(i.appendChild(r),i.open(),t._setAriaOwns(i)),t._updateToolbarItems(void 0,i)}}},{key:"_closeToolbar",value:function(){var e=this.$.inlineToolbar;if(e){var t=e.classList,n=t.contains("smart-editor-context-menu")?"contextMenu":t.contains("smart-editor-inline-toolbar")?"inlineToolbar":"dropDownToolbar";if(this.$.fireEvent(n+"Closing",{target:e}).defaultPrevented)return;e.close()}}},{key:"_closePopups",value:function(){var e=this;e._closeToolbar(),e._closeToolbarItemDropDown(e.$.inputPopup),e._closeToolbarItemDropDown(e.$.colorInputPopup)}},{key:"_createToolbar",value:function(){var e=this,t=e.$.inlineToolbar;return t||(t=document.createElement("smart-tooltip"),e.$.inlineToolbar=t,e.$inlineToolbar=Smart.Utilities.Extend(t),t)}},{key:"_setupToolbar",value:function(e,t){var n=this,i=n.$.iframe,r=n.$.inlineToolbar,a=n.$inlineToolbar;if(!r.visible){a.unlisten("open"),a.unlisten("close"),a.unlisten("change"),a.unlisten("click"),a.unlisten("transitionend"),a.listen("open",function(e){return n._tooltipVisibilityHandler.call(n,e)}),a.listen("close",function(e){return n._tooltipVisibilityHandler.call(n,e)}),a.listen("change",function(e){return n._tooltipChangeHandler.call(n,e)}),a.listen("click",function(e){return n._tooltipClickHandler.call(n,e)}),a.listen("transitionend",function(e){return n._tooltipTransitionEndHandler.call(n,e)})}if(r.locale=n.locale,r.rightToLeft=n.rightToLeft,r.theme=n.theme,r.animation=n.animation,r.openMode="manual","inline"===t)r.position="auto",r.iframeRect=i?i.getBoundingClientRect():null,r.arrow=!0,r.align="center",r.offset=n.inlineToolbarOffset,r.classList.add("smart-editor-toolbar","smart-editor-inline-toolbar"),r.classList.remove("smart-editor-drop-down-toolbar","smart-editor-context-menu"),r.setAttribute("role","tooltip"),r.setAttribute("aria-label","Inline Toolbar");else{if("context"!==t)return r.position="auto",r.iframeRect=null,r.arrow=!1,r.align=n.rightToLeft?"right":"left",r.offset=[0,-5],r.selector=e,r.classList.add("smart-editor-toolbar","smart-editor-drop-down-toolbar"),r.classList.remove("smart-editor-inline-toolbar","smart-editor-context-menu"),r.setAttribute("role","tooltip"),void r.setAttribute("aria-label","Drop Down Toolbar");r.position="absolute",r.arrow=!1,r.classList.add("smart-editor-context-menu"),r.classList.remove("smart-editor-toolbar","smart-editor-drop-down-toolbar","smart-editor-inline-toolbar"),r.setAttribute("role","listbox"),r.setAttribute("aria-label","Context Menu")}if(r.selector&&!r.selector.closest&&delete r.selector.getBoundingClientRect,e.closest)r.selector=e;else{var o=e.parentElement,s=n._getSelectionRange();o.getBoundingClientRect=function(){return s.getBoundingClientRect()},r.selector=o}}},{key:"_getInlineToolbarContent",value:function(e){var t=this,n=t.$.inlineToolbar;if(!n.innerHTML||n.selector.nodeName!==e.nodeName){var i,r,a=t._toolbarItemsObj,o=e.nodeName.toLowerCase(),s=function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=0,i=t.length;n<i;n+=1){var r=a[t[n]];if(r){e=r;break}}return e};switch(o){case"a":r=s(["hyperlink","createlink"]);break;case"#text":r=s(["cut","copy","paste"]);break;case"img":r=s(["image"]);break;case"td":case"th":r=s(["table"]);break;default:return}return(i=r&&Array.isArray(r.inlineToolbarItems)?r.inlineToolbarItems:t._getDefaultInlineToolbarItems(e,o)).length?t._getToolbarItems(n,i):void 0}}},{key:"_getDefaultInlineToolbarItems",value:function(e,t){var n;switch(t){case"a":n=["openlink","editlink","removelink"];break;case"#text":n=["cut","copy","paste"];break;case"img":n=["image","alignment","createlink","delete","caption"],e.closest(".smart-editor-editable a")&&n.splice(n.indexOf("createlink")+1,0,"openlink","removelink");break;case"td":case"th":n=["table","tableheader","tablerows","tablecolumns","backgroundcolor","delete","alignment","tablevalign","tablestyle"];break;default:return[]}return n}},{key:"_getNodes",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=this,a=e.childNodes,o=[],s=0,l=a.length;s<l;s+=1){var c=a[s];if(c.childElementCount){var u=r._getNodes(c,t,n,i);
1if(i=u.index,u.nodes.length&&(o=o.concat(u.nodes)),i>=n)break}else if(c.nodeType===Node.TEXT_NODE){var d=c.nodeValue;if(!d.trim())continue;var h=d.length;if(i+h>t&&o.push({node:c,index:n-i,startIndex:Math.max(0,t-i)}),(i+=h)>n)break}else if((i+=(c.textContent||c.innerText||c.innerHTML).length)>t&&o.push({node:c,index:i}),i>n)break}return{nodes:o,index:i}}},{key:"_tooltipChangeHandler",value:function(e){var t=this,n=e.target,i=t.$.inlineToolbar;i&&i.classList.contains("smart-editor-drop-down-toolbar")&&i.visible&&i.contains(n)?n.classList.contains("smart-table-picker")&&(t._handleTableInsert({cells:e.detail.value}),i.close()):t._changeHandler(e)}},{key:"_tooltipClickHandler",value:function(e){var t=this,n=e.target,i=t.$.inlineToolbar;if(i&&i.classList.contains("smart-editor-drop-down-toolbar")&&i.contains(e.target)&&n.closest(".smart-table-picker-button")){var r,a=t._getSelectionRange();return a.startContainer&&["th","td"].indexOf(a.startContainer.nodeName.toLowerCase())>-1&&(r=a.startContainer.closest(".smart-editor-editable table")),void t._openWindow(i.selector,r)}if(i&&i.classList.contains("smart-editor-context-menu")){var o=n.closest(".smart-editor-context-menu-item");if(o)return void t._handleContextMenuItemClick(e,o)}}},{key:"_tooltipVisibilityHandler",value:function(e){var t=this,n=t.$.inlineToolbar,i=e.type;if(e.target===n){var r,a=t.$.inlineToolbar,o=t.$inlineToolbar;r=n.classList.contains("smart-editor-toolbar")?(n.classList.contains("smart-editor-drop-down-toolbar")?"inline":"dropDown")+"Toolbar":"contextMenu",e.stopPropagation(),"close"===e.type?(a.selector&&!a.selector.closest&&delete a.selector.getBoundingClientRect,a.hasAnimation||(o.unlisten(e.type),o.unlisten("change"),o.unlisten("click"),a.remove(),t._focusEditableElement()),t._setAriaOwns(n)):"open"===e.type&&t._setAriaOwns(n),t.$.fireEvent(r+i.slice(0,1).toUpperCase()+i.slice(1),Object.assign({target:e.target},e.detail))}}},{key:"_tooltipTransitionEndHandler",value:function(e){var t=this;if(e.target instanceof Smart.Tooltip){var n=t.$.inlineToolbar;n.visible||(t.$inlineToolbar.unlisten("transitionend"),n.style.top=n.style.left=0,n.remove(),t._setAriaOwns(n))}}},{key:"_toggleItemDropDown",value:function(e){var t,n=this,i=e.getAttribute("item-type");if("drop-down"===i?(n.$.inputPopup||(n.$.inputPopup=document.createElement("smart-input")),t=n.$.inputPopup):"color-input"===i&&(n.$.colorInputPopup||(n.$.colorInputPopup=document.createElement("smart-color-input")),t=n.$.colorInputPopup),t.noRipple=!0,n.$.inputPopup&&t===n.$.colorInputPopup&&n.$.inputPopup.parentElement?n._closeToolbarItemDropDown(n.$.inputPopup):n.$.colorInputPopup&&t===n.$.inputPopup&&n.$.colorInputPopup.parentElement&&n._closeToolbarItemDropDown(n.$.colorInputPopup),t)if(t.locale=n.locale,t.rightToLeft=n.rightToLeft,t.theme=n.theme,t.animation=n.animation,e.contains(t)&&t.opened)n._closeToolbarItemDropDown(t);else{var r=n.$.inlineToolbar;r&&!r.contains(e)&&n._closeToolbar(),t.remove(),n._openToolbarItemDropDown(e,t)}}},{key:"_toggleDropDownToolbar",value:function(e){var t=this;if(e&&"table"===e.getAttribute("item-name")){var n=t.$.inlineToolbar;if(n&&n.visible&&n.classList.contains("smart-editor-drop-down-toolbar")){if(n.contains(e)){var i,r=t._getSelectionRange();return r.startContainer&&["th","td"].indexOf(r.startContainer.nodeName.toLowerCase())>-1&&(i=r.startContainer.closest(".smart-editor-editable table")),void t._openWindow(e,i)}n.classList.contains("smart-editor-drop-down-toolbar")&&n.close()}else t._closeToolbarItemDropDown(t.$.inputPopup),t._closeToolbarItemDropDown(t.$.colorInputPopup),t._openDropDownToolbar(e)}}},{key:"_openDropDownToolbar",value:function(e){var t=this,n=t.$.inlineToolbar;n||(n=t._createToolbar()),t.$.fireEvent("dropDownToolbarOpening",{target:n}).defaultPrevented||(t._setupToolbar(e,"dropDown"),n.parentElement||t.getShadowRootOrBody().appendChild(n),t._setDropDownToolbarContent(e),n.open(),t._setAriaControls(e,n))}},{key:"_setDropDownToolbarContent",value:function(e){var t=this,n=t.$.inlineToolbar,i=e.getAttribute("item-name"),r=t._dropDownToolbarObj;r||(r=t._dropDownToolbarObj={});var a=r[i];a||(a=document.createElement("smart-table-picker"),r[i]=a),a.rightToLeft=t.rightToLeft,a.locale=t.locale,a.messages=t.messages,a.value=[],n.contains(a)||(n.clear(),n.appendChild(a))}},{key:"_openSearchBar",value:function(){var e=this,t=e.$.contentContainer,n=e._searchToolbar;if(e.disableSearchBar||e.$.editableElement.classList.contains("smart-hidden"))n&&n.remove();else{n||((n=e._searchToolbar=document.createElement("div")).classList.add("smart-editor-search-bar"),n.innerHTML='<span class="smart-search-input-container">\n <input class="smart-search-input"></input>\n </span>\n <smart-button class="smart-search-button prev"></smart-button>\n <smart-button class="smart-search-button
1next"></smart-button>\n <smart-button class="smart-search-button close"></smart-button>'),n.ontransitionend=null;for(var i,r=e.animation,a=e.theme,o=e.rightToLeft,s=n.children,l=0,c=s.length;l<c;l+=1){var u=s[l];if(u.classList.contains("smart-search-input-container")){var d=u.firstElementChild;d.placeholder=e.localize("searchPlaceholder"),i=d}u.animation=r,u.theme=a,u.rightToLeft=o}if(t.contains(n)||t.appendChild(n),n.classList.remove("smart-visibility-hidden"),i){var h=e.$.iframe,f=(h?h.contentWindow:window).getSelection().toString();i.value=f,i.focus({preventScroll:!0}),f&&e._applySearching(f)}delete e._lastSearchQuery}}},{key:"_closeSearchToolbar",value:function(){var e=this,t=e._searchToolbar;if(t&&!t.classList.contains("smart-visibility-hidden")){t.classList.add("smart-visibility-hidden"),t.ontransitionend=function(){t.remove(),t.ontransitionend=null};for(var n=Array.from(e.$.editableElement.querySelectorAll(".find-and-replace-match")),i=0,r=n.length;i<r;i+=1){var a=n[i];a.outerHTML=a.textContent}e._focusEditableElement()}}},{key:"_toggleWindow",value:function(e,t){var n=this;if(e){var i=e.getAttribute("item-name"),r=n.$.window;if(r){var a=r._target?r._target.item:void 0;!a||a.name!==i||a.name===i&&!r.opened?n._openWindow(e,t):r.close()}else n._openWindow(e,t)}}},{key:"_openWindow",value:function(e,t){var n=this;if(e&&n._toolbarItemsObj&&(!n._window||!n._window.opened)){var i;t&&t.classList.contains("smart-editor-video-container")&&(t=t.querySelector(".smart-editor-video-container > video, .smart-editor-video-container > iframe"));var r=n.$.editableElement;if(e.closest){if(!e.classList.contains("smart-editor-toolbar-item"))return;i=(e.closest(".smart-editor-inline-toolbar")?n._inlineToolbarItemsObj:n._toolbarItemsObj)[e.getAttribute("item-name")]}else"object"==typeof e&&"string"==typeof e.name&&(i=e);if(i&&("findandreplace"!==i.name||!r.classList.contains("smart-hidden"))){var a=n._createWindow(i);n.$.fireEvent("dialogOpening",{target:a,item:i}).defaultPrevented||(n._closeToolbarItemDropDown(n.$.inputPopup),n._closeToolbarItemDropDown(n.$.colorInputPopup),a._target={item:i,itemTarget:t,originalTarget:e},n._closeToolbar(),a.parentElement||n.getShadowRootOrBody().appendChild(a),a.isCompleted?n._setupWindow():a.whenReady(function(){return n._setupWindow()}))}}}},{key:"_closeWindow",value:function(){var e=this.$.window;e&&e.opened&&(this.$.fireEvent("dialogClosing",{target:e,item:e._target.item}).defaultPrevented||e.close())}},{key:"_setupWindow",value:function(){var e=this,t=e.$.window,n=t._target,i=n.item;function r(){e._positionWindow(),t.opened?(t.bringToFront(),t._handleActiveState(),t._onOpenCallback&&t._onOpenCallback()):t.open()}if(t.locale=e.locale,t.rightToLeft=e.rightToLeft,t.theme=e.theme,t.animation=e.animation,e.windowCustomizationFunction?e.windowCustomizationFunction(t,i):(e._setPopupWindowTemplate("header",i),e._setPopupWindowTemplate("footer",i),e._setPopupWindowTemplate("content",i)),!t.opened){var a=e.$window;a.unlisten("transitionend"),a.unlisten("open"),a.unlisten("close"),a.unlisten("click"),a.unlisten("change"),a.unlisten("keydown"),a.unlisten("keyup"),a.unlisten("uploadCompleted"),a.unlisten("uploadError"),t._onOpenCallback=function(){((t.shadowRoot||t).querySelector(".smart-editor-window-editor:not(.smart-hidden) .smart-input.smart-element")||t).focus({preventScroll:!0})},t.hasAnimation&&a.listen("transitionend",function(t){return e._windowTransitionendHandler.call(e,t)}),a.listen("open",function(t){return e._windowOpenHandler.call(e,t)}),a.listen("close",function(t){return e._windowCloseHandler.call(e,t)}),a.listen("click",function(t){return e._windowClickHandler.call(e,t)}),a.listen("change",function(t){return e._windowChangeHandler.call(e,t)}),a.listen("keydown",function(t){return e._windowKeyDownHandler.call(e,t)}),a.listen("keyup",function(t){return e._windowKeyUpHandler.call(e,t)}),a.listen("uploadCompleted",function(t){return e._fileUploadCompletedHandler.call(e,t)}),a.listen("uploadError",function(t){return e._fileUploadErrorHandler.call(e,t)})}t.shadowRoot?e._onShadowDomLoaded(t,"smart.window.css",r):r(),e._setAriaOwns(t),e._setAriaControl
1s(n.originalTarget,t)}},{key:"_setPopupWindowTemplate",value:function(e,t){var n=this,i=n.$.window;if(i)if("content"!==e){if(i[e+"Template"]||(i[e+"Template"]=n._createWindowTemplate(e)),"header"===e)i.label=n.localize(i._target.item.name)||"";else if("footer"===e)for(var r=(i.shadowRoot||i).querySelectorAll(".smart-editor-window-button"),a="findandreplace"===t.name,o=0;o<r.length;o++){var s=r[o];s.innerHTML='<span class="smart-icon"></span>',s.theme=n.theme,s.rightToLeft=n.rightToLeft,s.animation=n.animation,s.classList.contains("ok")?a?(s.classList.add("replace"),s.innerHTML+=n.localize("replace"),s.setAttribute("aria-label","replace")):(s.classList.remove("replace"),s.innerHTML+=n.localize("ok"),s.setAttribute("aria-label","ok")):s.classList.contains("cancel")?(s.innerHTML+=n.localize("cancel"),s.setAttribute("aria-label","cancel")):a?(s.classList.contains("replace-all")&&(s.innerHTML+=n.localize("replaceAll"),s.setAttribute("aria-label","replaceAll")),s.classList.remove("smart-hidden")):s.classList.add("smart-hidden");var l=s.querySelector(".smart-ripple");l&&l.parentElement.removeChild(l)}}else n._setWindowContent(t)}},{key:"_setWindowContent",value:function(e){var t=this.$.window,n=t._target.originalTarget,i=[].slice.call(t.getElementsByClassName("smart-editor-window-editor"));if((!t.innerHTML||i.length)&&n){switch(e.name){case"createlink":case"editlink":case"hyperlink":case"image":case"video":case"table":case"paste":case"findandreplace":this._createWindowEditors(e)}n.id&&t.setAttribute("aria-controls",n.id)}}},{key:"_createWindowEditors",value:function(e){var t,n=this,i=n.$.window,r=e.name,a=n._windowEditors,o=i.querySelector(".smart-editor-window-content-wrapper");o||((o=document.createElement("div")).classList.add("smart-editor-window-content-wrapper"),i.appendChild(o)),n._windowEditors||(a=n._windowEditors={}),a&&(t=a[r]),t||((t=document.createElement("div")).classList.add("smart-editor-window-".concat(r)),t.innerHTML=n._getWindowEditorTemplate(r),a[r]=t),o.contains(t)||(o.innerHTML="",o.appendChild(t));for(var s=t.querySelectorAll(".smart-editor-window-editor[type]"),l=0;l<s.length;l++)n._setPopupWindowEditor(s[l])}},{key:"_getWindowEditorTemplate",value:function(e){switch(e){case"createlink":case"editlink":case"hyperlink":return'\n <div class="smart-editor-window-editor" type="address">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="text">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="title">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="target">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>';case"image":return'\n <div class="smart-editor-window-editor" type="file">\n <smart-file-upload item-editor></smart-file-upload>\n </div>\n <div class="smart-editor-window-editor" type="url">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="width">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="height">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="alt">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="title">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="caption">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="display">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="alignment">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="draggable">\n <smart-check-box item-editor></smart-check-box>\n </div>\n <div class="smart-editor-window-editor" type="resizable">\n <smart-check-box item-editor></smart-check-box>\n </div>';case"table":return'\n <div class="smart-editor-window-editor" type="cols">\n <label></label>\n <smart-number-input item-editor></smart-number-input>\n </div>\n <div class="smart-editor-window-editor" type="rows">\n <label></label>\n <smart-number-input item-editor></smart-number-input>\n </div>\n <div class="smart-editor-window-editor" type="width">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="height">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="tableheader">\n <smart-check-box item-editor></smart-check-box>\n </div>\n <div class="smart-editor-window-editor" type="altrows">\n <smart-check-box item-editor></smart-check-box>\n </div>\n <div class="smart-editor-window-editor" type="dashedborders">\n <smart-check-box item-editor></smart-check-box>\n </div>\n <div class="smart-editor-window-editor" type="resizable">\n <smart-check-box item-editor></smart-check-box>\n </div>';case"paste":return'\n <div class="smart-editor-window-editor" type="keepFormat">\n <label></label>\n <smart-radio-button checked group-name="editorPasteViaWindow" item-editor></smart-radio-button>
1\n </div>\n <div class="smart-editor-window-editor" type="cleanFormat">\n <smart-radio-button group-name="editorPasteViaWindow" item-editor></smart-radio-button>\n </div>\n <div class="smart-editor-window-editor" type="plainText">\n <smart-radio-button group-name="editorPasteViaWindow" item-editor></smart-radio-button>\n </div>';case"findandreplace":return'\n <div class="smart-editor-window-editor" type="find">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="replaceWith">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="results">\n <label></label>\n <smart-list-box virtualized item-editor></smart-list-box>\n </div>\n <div class="smart-editor-window-editor" type="matchCase">\n <smart-check-box item-editor></smart-check-box>\n </div>';case"video":return'\n <div class="smart-editor-window-editor" type="file">\n <smart-file-upload item-editor></smart-file-upload>\n </div>\n <div class="smart-editor-window-editor" type="src">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="width">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="height">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="thumbnail">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="videoUrl">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="alt">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="title">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="caption">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="display">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="alignment">\n <label></label>\n <smart-input item-editor></smart-input>\n </div>\n <div class="smart-editor-window-editor" type="draggable">\n <smart-check-box item-editor></smart-check-box>\n </div>\n <div class="smart-editor-window-editor" type="resizable">\n <smart-check-box item-editor></smart-check-box>\n </div>';default:return""}}},{key:"_setPopupWindowEditor",value:function(e){var t,n=this,i=e.getAttribute("type"),r=e.querySelector("label"),a=n.$.window._target,o=a.item,s="markdown"===n.editMode,l=o.editor,c=e.querySelector("[item-editor]");
1if(r&&("paste"===o.name?(r.id=n.id+"pasteLabel",r.innerHTML=n.localize("pasteLabel")||""):(r.id=n.id+i+"Label",r.innerHTML=n.localize(i)||"")),c){var u,d=n._toolbarItemClick;switch(u=d?d.target:a.itemTarget,o.name){case"hyperlink":case"createlink":case"editlink":var h=n._getSelectionRange(),f=h.startContainer;f&&"a"!==f.nodeName.toLowerCase()&&(f=f.parentElement),f&&"a"===f.nodeName.toLowerCase()?"address"===i?t=f.getAttribute("href"):"text"===i?t=f.textContent:"title"===i?t=f.title:"target"===i&&(t=f.target):t="text"===i?s?n.$.input.value.slice(h.selectionStart,h.selectionEnd):h.toString():l&&void 0!==l[i]?l[i]+"":"","target"===i&&s||u&&"img"===u.nodeName.toLowerCase()&&["title","text"].indexOf(i)>-1?e.classList.add("smart-hidden"):e.classList.remove("smart-hidden");break;case"video":case"image":var p=n._toolbarItemClick,m=p?p.target:a.itemTarget;if(m&&["img","video","iframe"].indexOf(m.nodeName.toLowerCase())>-1){var g=m.closest(".smart-editor-image-container");switch(i){case"file":m.file instanceof File&&(t=m.file);break;case"url":case"src":t=m.file instanceof File?"":m.getAttribute("src")||"";break;case"alt":t=m.alt;break;case"title":t=m.title;break;case"width":if(!(t=m.style.width||(g?g.style.width:""))){var v=m.getAttribute("width");v&&(t=v)}break;case"height":if(!(t=m.style.height||(g?g.style.height:""))){var y=m.getAttribute("height");y&&(t=y)}break;case"caption":if(g){var b=g.querySelector(".smart-editor-image-caption");b&&(t=b.textContent)}void 0===t&&(t="");break;case"alignment":t=(g||m).getAttribute("alignment")||"";break;case"display":t=(g||m).getAttribute("display")||"";break;case"draggable":case"resizable":var _=("video"===o.name?g:m).getAttribute(i);t=null==_||"true"===_}}else t=l?("draggable"===i||"resizable"===i)&&void 0===l[i]||(void 0!==l[i]?l[i]+"":""):"width"===i?480:"height"===i?270:"draggable"===i||"resizable"===i||"";s&&["file","url","videoUrl","alt","title","thumbnail"].indexOf(i)<0||!s&&"video"===o.name&&["alt","thumbnail","videoUrl"].indexOf(i)>-1?e.classList.add("smart-hidden"):e.classList.remove("smart-hidden");break;case"table":var w=a.itemTarget&&"table"===a.itemTarget.nodeName.toLowerCase()?a.itemTarget:void 0;switch(i){case"width":case"height":t=w?w.style[i]:l&&void 0!==l[i]?l[i]:"";break;case"cols":t=w?w.querySelector("tbody > tr").children.length+"":l&&void 0!==l[i]?l[i]:"1";break;case"rows":t=w?w.querySelectorAll("tbody > tr").length+"":l&&void 0!==l[i]?l[i]:"1";break;case"tableheader":t=!!s||(w?null!==w.querySelector("thead"):!(!l||void 0===l[i])&&l[i]);break;case"altrows":t=w?w.hasAttribute("alternation"):!(!l||void 0===l[i])&&l[i];break;case"dashedborders":t=w?w.hasAttribute("dashed-borders"):!(!l||void 0===l[i])&&l[i];break;case"resizable":t=w?!("false"===w.getAttribute("resizable")):!l||void 0===l[i]||l[i]}s&&["cols","rows","tableheader"].indexOf(i)<0?e.classList.add("smart-hidden"):e.classList.remove("smart-hidden");break;case"paste":t=i===n.pasteFormat;break;case"findandreplace":t=l&&void 0!==l[i]?l[i]:""}n._setupEditorElement(c,i,t),n._setEditorCommonProperties(c)}}},{key:"_setupEditorElement",value:function(e,t,n){var i=this,r=i.$.window._target.item,a=r.editor,o="markdown"===i.editMode;if((e instanceof Smart.CheckBox||e instanceof Smart.RadioButton)&&(e.innerHTML=i.localize(t)||"",e.checked=!!n),e instanceof Smart.NumberInput)e.min=1,e.value=parseInt(n);else{if(e instanceof Smart.FileUpload)return"file"===t&&e.isCompleted&&(e.cancelAll(),n&&e.addFile(n)),e.uploadUrl="",e.removeUrl="",e.autoUpload=!1,a&&(a.uploadUrl&&(e.uploadUrl=a.uploadUrl,e.autoUpload=!0),a.removeUrl&&(e.removeUrl=a.removeUrl)),e.dropZone=e.parentElement,e.accept=r.allowedTypes||(o||"video"!==r.name?"image/*":"video/mp4,video/x-m4v,video/*"),void(e.hideFooter=!0);if(e instanceof Smart.ListBox)e.selectionMode="one",e.itemHeight=35;else{if("string"==typeof e.placeholder&&(e.placeholder=i.localize(t+"Placeholder")||""),e.dropDownClassList&&(e.dropDownClassList=["smart-editor-input"]),void 0!==e.dataSource){if("target"===t||"alignment"===t||"display"===t){e.dataSource.length||(e.dataSource=i._getDefaultDataSource(t)),"alignment"!==t||n||(n="center");var s=n?e.dataSource.find(function(e){return"object"==typeof e&&e.value===n}):void 0;s&&"object"==typeof s&&(n=s.label||n),e.readonly=!s&&!n||s&&""!==s.value}else e.dataSource=[];"string"==typeof e.dropDownButtonPosition&&(e.dropDownButtonPosition=e.dataSource.length?
1i.rightToLeft?"left":"right":"none")}e.value=void 0===n?"":n+""}}}},{key:"_setEditorCommonProperties",value:function(e){var t=this;if(e){var n=e.messages,i=t.messages,r=t.locale;for(var a in n.en){var o=i[r][a];void 0!==o&&(n[r]||(n[r]={}),n[r][a]=o)}e.locale=t.locale,e.rightToLeft=t.rightToLeft,e.animation=t.animation,e.theme=t.theme}}},{key:"_createWindow",value:function(){var e=this,t=e.$.window;if(t)return t;var n=document.createElement("smart-window");return n.classList.add("smart-editor-window"),n.id=e.id+"Window",n.setAttribute("smart-id","window"),e.$.window=n,e.$window=Smart.Utilities.Extend(n),n.rightToLeft=e.rightToLeft,n.theme=e.theme,n.animation=e.animation,n.disableSnap=!0,n.headerButtons=["close"],n}},{key:"_createWindowTemplate",value:function(e){var t,n=this,i=n.animation,r=n.theme,a=n.rightToLeft;return"footer"===e&&((t=document.createElement("template")).innerHTML='<smart-button class="smart-editor-window-button primary replace replace-all smart-hidden"\n animation="'.concat(i,'" theme="').concat(r,'" ').concat(a?"right-to-left":"",'>\n </smart-button>\n <smart-button class="smart-editor-window-button ok primary"\n animation="').concat(i,'" theme="').concat(r,'" ').concat(a?"right-to-left":"",'>\n </smart-button>\n <smart-button class="smart-editor-window-button cancel"\n animation="').concat(i,'" theme="').concat(r,'" ').concat(a?"right-to-left":"",">\n </smart-button>")),t}},{key:"_positionWindow",value:function(){var e=this,t=e.getShadowRootOrBody(),n=e.$.window;if(n&&t.contains(n)){var i=e.getBoundingClientRect();n.opened||(n.style.left=n.style.top=""),n.style.left=Math.max(i.left+window.pageXOffset,i.left+window.pageXOffset+i.width/2-n.offsetWidth/2)+"px",n.style.top=Math.max(i.top+window.pageYOffset,i.top+window.pageYOffset+i.height/2-n.offsetHeight/2)+"px"}}},{key:"_windowChangeHandler",value:function(e){var t=this,n=e.detail,i=t.$.window._target.item,r=(e.originalEvent||e).target,a=r.closest(".smart-editor-window-editor");if(r.hasAttribute("item-editor")&&i&&a){var o=a.getAttribute("type");if(i.name.indexOf("link")>0&&"target"===o&&r instanceof Smart.Input)r.readonly=!!n.value.length;else if(t._windowEditors&&i.name.indexOf("findandreplace")>-1)if("results"===o&&r instanceof Smart.ListBox)t._handleMarkerSelection(e.target);else if("matchCase"===o&&r instanceof Smart.CheckBox){var s=a.parentElement.querySelector('.smart-editor-window-editor[type="find"] [item-editor]');s&&t._findMatches(s.value)}}}},{key:"_windowClickHandler",value:function(e){var t=this,n=(e.originalEvent||e).target;n.shadowRoot&&(n=(e.originalEvent||e).composedPath()[0]);var i=t.$.window,r=i._target,a=n.closest(".smart-editor-window-button");if(i&&a&&r){if("findandreplace"===r.item.name){var o=a.classList,s=a.classList.contains("replace-all");if(s||o.contains("ok"))return void t._replaceMatches(i._target.item,s)}else if(a.classList.contains("ok")&&!1===t._updateEditorViaWindow(r.item))return;i.close(),delete i._target}}},{key:"_windowCloseHandler",value:function(e){var t=this,n=e.target;if(n.classList.contains("smart-editor-window")){var i=t.$window;if(i){t.$.fireEvent("dialogClose",{target:e.target,item:e.target._target.item}),i.unlisten("close"),i.unlisten("click"),i.unlisten("change"),i.unlisten("keydown"),i.unlisten("uploadCompleted"),i.unlisten("uploadError"),t.hasAttribute("aria-owns")&&t.removeAttribute("aria-owns"),t.hasAnimation||(n.remove(),t._setAriaOwns(n));var r=n._target,a=r.itemTarget;if("findandreplace"===r.item.name&&t._findMatches(""),t._focusEditableElement(),a&&["img","th","td","table"].indexOf(a.nodeName.toLowerCase())>-1)return void t._setResizeFrame(a)}}}},{key:"_windowKeyDownHandler",value:function(e){var t=this.$.window;if("Enter"===e.key&&t._target){var n=t._target.item,i=t.getRootNode().activeElement;if(n&&i.closest(".smart-editor-window-editor")){if(!1===this._updateEditorViaWindow(n))return;e.stopPropagation(),e.preventDefault(),t.close(),delete t._target}}}},{key:"_windowKeyUpHandler",value:function(e){var t=this,n=e.target;if(n.closest('.smart-editor-window-editor[type="find"]')){var i=n.closest("[item-editor]");
1if(i){var r=t.findAndReplaceTimeout;if(clearTimeout(t._findAndReplaceTimeout),"html"!==t.editMode)return;r?t._findAndReplaceTimeout=setTimeout(function(){return t._findMatches(i.value)},r):t._findMatches(i.value)}}}},{key:"_windowOpenHandler",value:function(e){var t=this,n=e.target;if(n.classList.contains("smart-editor-window")){var i=t.$window;if(i){var r=n._target.item;if(t._setAriaOwns(n),t.$.fireEvent("dialogOpen",{target:e.target,item:r}),i.unlisten("open"),"findandreplace"===r.name){var a=n.querySelector('.smart-editor-window-editor[type="find"] [item-editor]');t._findMatches(a?a.value:"")}}}}},{key:"_windowTransitionendHandler",value:function(e){var t=this,n=e.target;n.classList.contains("smart-editor-window")&&(n.opened||"visibility"!==e.propertyName||(t.$window.unlisten("transitionend"),t.$.window.remove(),t._setAriaOwns(n)))}},{key:"_updateEditorViaWindow",value:function(e){var t=this;if(e&&t._windowEditors){var n,i,r=t.$.iframe;t.$.contentContainer.contains(t.$.editableElement.getRootNode().activeElement)||t._focusEditableElement(),r?i=(n=r.contentWindow).getSelection():(n=window,i=window.getSelection());var a,o=t._windowEditors[e.name],s=t._getSelectionRange();if(o&&!t.$.fireEvent("actionStart",{name:e.name}).defaultPrevented){switch(s instanceof n.Range&&(i.removeAllRanges(),i.addRange(s)),e.name){case"editlink":case"createlink":case"hyperlink":a=t._handleLinksInsert(e);break;case"image":a=t._handleImageInsert(e);break;case"table":t._handleTableInsert(t._getItemOptionsViaWindow(e));break;case"paste":t._handlePasteViaWindow(e);break;case"video":a=t._handleVideoInsert(e)}return t.$.fireEvent("actionEnd",{name:e.name}),a?(a(),!1):void 0}}}},{key:"_focusFirstInputCallback",value:function(e,t){var n=this._windowEditors[e];if(n)return function(){var e=n.querySelector('.smart-editor-window-editor[type="'.concat(t,'"] .smart-input[item-editor]'));e&&e.focus({preventScroll:!0})}}},{key:"_fileUploadCompletedHandler",value:function(e){var t,n=this.$.window;n&&n.opened&&n._target&&(t=n._target.item),e.stopPropagation(),this.$.fireEvent("imageUploadSuccess",Object.assign({target:e.target,toolbarItem:t},e.detail))}},{key:"_fileUploadErrorHandler",value:function(e){var t,n=this.$.window;n&&n.opened&&n._target&&(t=n._target.item),e.stopPropagation(),this.$.fireEvent("imageUploadFailed",Object.assign({target:e.target,toolbarItem:t},e.detail))}},{key:"_replaceMatches",value:function(e,t){var n=this,i=n.$.editableElement;if(e&&n._windowEditors&&"html"===n.editMode&&!i.classList.contains("smart-hidden")){var r=n._getItemOptionsViaWindow(e),a=n._windowEditors[e.name],o=a.querySelector('.smart-editor-window-editor[type="results"] smart-list-box[item-editor]'),s=a.querySelector('.smart-editor-window-editor[type="results"] label'),l=o.selectedIndexes;if(r&&l&&l.length){for(var c=r.replaceWith,u=Array.from(i.querySelectorAll(".find-and-replace-match")),d=0,h=u.length;d<h;d+=1){var f=u[d];(t||l.indexOf(d)>-1)&&(f.outerHTML=c)}t?o.dataSource=[]:l.forEach(function(e){return o.removeAt(e)}),n._setFindAndReplaceLabel(s,o)}}}},{key:"_findMatches",value:function(e){var t=this,n=t.$.editableElement,i=t._windowEditors,r=i?i.findandreplace:void 0,a=r.querySelector('.smart-editor-window-editor[type="results"] smart-list-box[item-editor]'),o=r.querySelector('.smart-editor-window-editor[type="results"] label'),s=r.querySelector('.smart-editor-window-editor[type="matchCase"] smart-check-box[item-editor]'),l=t.$.window.querySelectorAll(".smart-editor-window-button.replace");a&&"smart-list-box"===a.nodeName.toLowerCase()&&(a.dataSource=[]),t._findAndReplaceTimeout&&(clearTimeout(t._findAndReplaceTimeout),delete t._findAndReplaceTimeout);for(var c=Array.from(n.querySelectorAll(".find-and-replace-match")),u=0,d=c.length;u<d;u+=1){var h=c[u];h.outerHTML=h.textContent}if("html"===t.editMode)if(e){a.dataSource=t._getFindMarkers(n,new RegExp(e,"gm"+(s.checked?"":"i")),[]),a.select("0"),t._setFindAndReplaceLabel(o,a);for(var f=0,p=l.length;f<p;f+=1)l[f].disabled=!1}else{t._setFindAndReplaceLabel(o);for(var m=0,g=l.length;m<g;m+=1)l[m].disabled=!0}}},{key:"_clearSearchToolbar",value:function(){var e=this._searchToolbar;e&&!e.classList.contains("smart-visibility-hidden")&&(e.value="",delete this._lastSearchQuery)}},{key:"_applySearching",value:function(e){var t=this,n=t.$.editableElement;if(t._lastSearchQuery!==e&&!n.classList.contains("smart-hidden")){var i,r=t.$.contentContainer.querySelector(".smart-search-input-container");t._findAndReplaceTimeout&&(clearTimeout(t._findAndReplaceTimeout),delete t._findAndReplaceTimeout);for(var a=Array.from(n.querySelectorAll(".find-and-replace-match")),o=0,s=a.length;o<s;o+=1){var l=a[o];l.outerHTML=l.textContent}if("html"===t.editMode){if(e){i=t._getFindMarkers(n,new RegExp(e,"gmi"),[]).length;var c=n.querySelector(".find-and-replace-match");c&&(c.classList.add("selected"),t._scrollToMarker(c))}r&&(r.setAttribute("matches",i||0),r.setAttribute("selected",i?1:0)),t._lastSearchQuery=e}}}},{key:"_scrollToMarker",value:function(e){var t=this,n=t._searchToolbar,i=n&&!t._searchToolbar.classList.contains("smart-visibility-hidden")?n.offsetHeight:0,r=t.$.editableElement,a=r.getBoundingClientRect(),o=e.getBoundingClientRect(),s=r.scrollLeft,l=r.scrollTop,c=a.height,u=a.width,d=o.height,h=o.width,f=o.top-a.top+l,p=o.left-a.left+s;l+i>f||s>p?r.scrollTo(p-u,f-i-10):(l+c<f+d||s+u<p+h)&&r.scrollTo(p+h-u,f+d-c)}},{key:"_setFindAndReplaceLabel",value:function(e,t){if(e){var n=t?t.items.length:0;if(!t||!n)return e.removeAttribute("matches"),void e.removeAttribute("selected");if(e){var i=t.selectedIndexes[0];e.setAttribute("matches",n),e.setAttribute("selected",i?i+1:1)}}}},{key:"_getFindMarkers",value:function(e,t,n){for(var i=Array.from(e.childNodes),r=0,a=i.length;r<a;r+=1){var o=i[r];if(o.childElementCount)this._getFindMarkers(o,t,n);else if(o.textContent){if("continue"===function(){var e,i=document.createDocumentFragment(),r=o.textContent,a=void 0,s=0;if(r.matchAll)a=Array.from(r.matchAll(t));else for(a=[];e=t.exec(r);)a.push(e);
1if(a.forEach(function(e){var t=e.input,r=e.index,a=e[0],o=t.substring(s,r),l=n.length,c=document.createElement("span");o.length&&i.appendChild(document.createTextNode(o)),c.classList.add("find-and-replace-match"),c.setAttribute("match-id",l),c.textContent=a,i.appendChild(c);var u=t.substring(Math.max(0,r-10),r),d=t.substr(r+a.length,10);n.push({label:"".concat(r>0?"...":"").concat(u,"<b>").concat(a,"</b>").concat(d).concat(r<t.length-1?"...":""),value:l}),s=r+a.length}),!i.childElementCount)return"continue";var l=o.textContent.substr(s);l&&i.appendChild(document.createTextNode(l)),o.nodeType===Node.TEXT_NODE?(o.parentElement.insertBefore(i,o),o.remove()):(o.innerHTML="",o.appendChild(i))}())continue}}return n}},{key:"_handleMarkerSelection",value:function(e){for(var t,n=this,i=e.selectedValues[0],r=n.$.editableElement.querySelectorAll('.find-and-replace-match.selected, .find-and-replace-match[match-id="'.concat(i,'"]')),a=0,o=r.length;a<o;a+=1){var s=r[a];s.getAttribute("match-id")===i?(s.classList.add("selected"),t=s):s.classList.remove("selected")}t&&n._scrollToMarker(t);var l=n._windowEditors,c=l?l.findandreplace:void 0,u=c?c.querySelector('.smart-editor-window-editor[type="results"] label'):void 0;if(u){var d=e.selectedIndexes;u.setAttribute("selected",d.length?d[0]+1:0)}}},{key:"_handleImageInsert",value:function(e){var t=this,n=t._getItemOptionsViaWindow(e),i=t.$.window;if(i){var r,a,o,s,l,c=i._target.itemTarget;if(n.file.length?(s=n.file[0],r=URL.createObjectURL(s)):n.url&&(r=n.url+""),!r&&n)return t._focusFirstInputCallback(e.name,"url");if("markdown"===t.editMode)return a=n.title?' "'.concat(n.title,'"'):"",void t._insertMarkDown(".concat(r).concat(a,")"));var u=t.$.iframe,d=t.$.editableElement,h=u?u.contentDocument:document;if(!c||"img"!==c.nodeName.toLowerCase()){var f=t.id+"newImage"+Math.random().toString(36).substr(2,5);l=h.execCommand("insertHTML",!1,'<img id="'.concat(f,'"></img>')),c=d.querySelector("#"+f)}if(c&&"img"===c.nodeName.toLowerCase()){var p="inline"===n.display.toLowerCase()?"inline":"block",m=n.width+"",g=n.height+"";if(t._handleImgCaption(c,n),l&&(c.id=""),URL.revokeObjectURL(c.src),c.src=r,s&&(c.file=s,"base64"===t.imageFormat)){var v=new FileReader;v.readAsDataURL(s),v.onload=function(){return c.src=v.result}}if(c.removeAttribute("width"),c.removeAttribute("height"),c.style.width=m&&"auto"!==m?parseFloat(m)+(m.indexOf("%")>-1?"%":"px"):"",c.style.height=g&&"auto"!==g?parseFloat(g)+(g.indexOf("%")>-1?"%":"px"):"",n.alt&&(c.alt=n.alt),n.title&&(c.title=n.title),n.alignment){var y=n.alignment.toLowerCase();o=y.indexOf("left")>-1?"left":y.indexOf("right")>-1?"right":"center"}c.setAttribute("resizable",n.resizable),c.setAttribute("draggable",n.draggable);var b=c.closest(".smart-editor-image-container");b?(b.setAttribute("alignment",o),b.setAttribute("display",p),c.removeAttribute("alignment"),c.removeAttribute("display")):(c.setAttribute("alignment",o),c.setAttribute("display",p))}}}},{key:"_handleVideoInsert",value:function(e){var t=this,n=t._getItemOptionsViaWindow(e),i=t.$.window;if(i){var r,a,o,s,l=i._target.itemTarget;if(n.file.length?(o=n.file[0],r=URL.createObjectURL(o),l&&"video"!==l.nodeName.toLowerCase()&&(l.remove(),l=void 0)):(n.src||n.videoUrl)&&(r=(n.src||n.videoUrl)+"",l&&"iframe"!==l.nodeName.toLowerCase()&&(l.remove(),l=void 0)),l&&l.file&&(o=l.file),!r&&!o&&n)return t._focusFirstInputCallback(e.name,"src");if("markdown"===t.editMode)return a=n.title?' "'.concat(n.title,'"'):"",void t._insertMarkDown("[.concat(r||n.thumbnail||"",")](").concat(n.videoUrl," ").concat(a,")"));var c=t.$.iframe,u=t.$.editableElement,d=c?c.contentDocument:document;if(!o||l&&"video"===l.nodeName.toLowerCase()){if(!(o||l&&"iframe"===l.nodeName.toLowerCase())){var h=t.id+"newVideo"+Math.random().toString(36).substr(2,5);s=d.execCommand("insertHTML",!1,'<iframe id="'.concat(h,'" frameborder="0" allowfullscreen></iframe>')),l=u.querySelector("#"+h)}}else{var f=t.id+"newVideo"+Math.random().toString(36).substr(2,5);s=d.execCommand("insertHTML",!1,'<video id="'.concat(f,'"></video>')),l=u.querySelector("#"+f)}if(l){if(s&&l.removeAttribute("id"),URL.revokeObjectURL(l.src),l.controls=!0,l.frameborder=0,l.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",t._handleVideoCaption(l,n),void 0!==n.width){var p=n.width+"";l.style.width=p?p+(p.indexOf("%")<0?"px":""):""}if(void 0!==n.height){var m=n.height+"";l.style.height=m?m+(m.indexOf("%")<0?"px":""):""}if(o){if(l.file===o)return;if(l.file=o,"base64"===t.imageFormat){var g=new FileReader;
1g.readAsDataURL(o),g.onload=function(){return l.src=g.result}}}else l.src!==r&&(l.src=r)}}}},{key:"_insertMarkDown",value:function(e,t,n){var i=this;if("markdown"===i.editMode){var r,a=i.$.input,o=i._getSelectionRange(),s=o.selectionStart,l=o.selectionEnd,c=a.value;if(void 0!==s&&s!==l&&(r=c.slice(s,l)),n){for(var u=c.lastIndexOf("\n",s-1)+1;" "===c[u+1];)u++;a.value=c.slice(0,u)+e+c.slice(u)}else a.value=c.slice(0,a.selectionStart)+e+c.slice(a.selectionEnd);void 0!==s&&(void 0===t&&(t=s+e.length),r?n?i._setSelectionRange(a,s+e.length,l+e.length):(c=a.value,a.value=c.slice(0,t)+r+c.slice(t),i._setSelectionRange(a,t,t+r.length)):i._setSelectionRange(a,t,t)),i._refreshMarkdownPreview()}}},{key:"_removeMarkDown",value:function(e,t,n){var i=this,r=i.$.input,a=r.value,o=i._getSelectionRange(),s=o.selectionStart,l=o.selectionEnd,c=e.length;r.value=a.slice(0,t)+a.slice(t+c),i._setSelectionRange(r,s-c,l-c),n||i._refreshMarkdownPreview()}},{key:"_handleLinksInsert",value:function(e){var t,n=this,i=n.$.window,r=n.editMode,a=n._getItemOptionsViaWindow(e);if(!a.address)return n._focusFirstInputCallback(e.name,"address");if("markdown"===r)return t=a.title?"[".concat(a.text,"](").concat(a.address,', "').concat(a.title,'")'):"[".concat(a.text,"](").concat(a.address,")"),void n._insertMarkDown(t);var o,s,l=n.$.iframe,c=_slicedToArray(l?[l.contentDocument,l.contentWindow]:[document,window],2),u=c[0],d=c[1].getSelection(),h=d.anchorNode?d.anchorNode.parentElement:void 0,f=i&&i._target?i._target.itemTarget:void 0;f&&"img"===f.nodeName.toLowerCase()?(h=(o=i._target.itemTarget).parentElement)&&"a"===h.nodeName.toLowerCase()||(h=document.createElement("a"),o.parentElement.insertBefore(h,o),h.appendChild(o)):h=d.anchorNode?d.anchorNode.parentElement:void 0,a.address&&"a"!==h.nodeName.toLowerCase()&&(s=u.execCommand("createLink",!1,a.address),h=d.anchorNode.parentElement),"a"===h.nodeName.toLowerCase()&&(a.address?s||h.setAttribute("href",a.address):h.setAttribute("href",""),a.text?h.textContent=a.text:h.innerHTML||(h.textContent=a.address||""),h.title=a.title||"",h.target=a.target||"",o||d.selectAllChildren(h))}},{key:"_refreshMarkdownPreview",value:function(){var e=this,t=e.$.input;if(e.$.contentContainer.hasAttribute("split-mode")){var n=t.value;e.$.editableElement.innerHTML=window.marked?window.marked(n):n}}},{key:"_handleImgCaption",value:function(e,t){var n=this;if(t){var i,r=e.closest(".smart-editor-image-container"),a=e.nodeName.toLowerCase(),o="video"===a||"iframe"===a&&e.src.indexOf("/embed")>-1;if(t.caption||o){if(r||((r=document.createElement("span")).classList.add("smart-editor-image-container"),r.setAttribute("draggable",!1),r.setAttribute("contenteditable",!1),e.hasAttribute("alignment")&&r.setAttribute("alignment",e.getAttribute("alignment")),e.hasAttribute("display")&&r.setAttribute("display",e.getAttribute("display")),e.parentElement.insertBefore(r,e),r.appendChild(e)),r.classList[o?"add":"remove"]("smart-editor-video-container"),(i=r.querySelector(".smart-editor-image-caption"))||((i=document.createElement("span")).setAttribute("contenteditable",!0),i.classList.add("smart-editor-image-caption"),r.appendChild(i)),i.textContent=t.caption,t.focusCaption)return delete n._toolbarItemClick,n._setSelectionRange(i),n._setResizeFrame(),void n.$.editableElement.scrollTo(i.offsetLeft,i.offsetTop)}else!t.caption&&r&&(r.hasAttribute("alignment")&&e.setAttribute("alignment",r.getAttribute("alignment")),r.hasAttribute("display")&&e.setAttribute("display",r.getAttribute("display")),r.parentElement.insertBefore(e,r),r.remove());n._resizeFrameObj&&n._resizeFrameObj.target&&n._setResizeFrame(n._resizeFrameObj.target,!0)}}},{key:"_handleVideoCaption",value:function(e,t){var n=this,i=e?e.nodeName.toLowerCase():void 0;if(t&&("video"===i||"iframe"===i)){var r=e.closest(".smart-editor-video-container");if(r||((r=document.createElement("span")).classList.add("smart-editor-image-container","smart-editor-video-container"),r.setAttribute("contenteditable",!1),e.parentElement.insertBefore(r,e),r.appendChild(e)),r.setAttribute("resizable",t.resizable),!1===t.draggable?r.setAttribute("draggable",!1):r.removeAttribute("draggable"),t.title&&(e.title=t.title),t.alignment){var a=t.alignment.toLowerCase();a=a.indexOf("left")>-1?"left":a.indexOf("right")>-1?"right":"center",r.setAttribute("alignment",a)}if(t.display){var o="inline"===t.display.toLowerCase()?"inline":"block";r.setAttribute("display",o)}if(t.caption){var s=r.querySelector(".smart-editor-image-caption");if(s||((s=document.createElement("span")).setAttribute("contenteditable",!0),s.classList.add("smart-editor-image-caption"),r.appendChild(s)),s.textContent=t.caption,t.focu
1sCaption)return delete n._toolbarItemClick,n._setSelectionRange(s),n._setResizeFrame(),void n.$.editableElement.scrollTo(s.offsetLeft,s.offsetTop)}else if(!t.caption){var l=r.querySelector(".smart-editor-image-caption");l&&l.remove()}n._resizeFrameObj&&n._resizeFrameObj.target&&n._setResizeFrame(n._resizeFrameObj.target,!0)}}},{key:"_handleTableInsert",value:function(e){var t=this;if(e)if("markdown"!==t.editMode){var n,i,r,a,o=t._getSelectionRange();if(e.cells){var s=e.cells,l=[s[1],s[0]];r=l[0],a=l[1]}else{var c,u=o.startContainer;r=(c=[parseInt(e.cols),parseInt(e.rows)])[0],a=c[1],u.nodeType===Node.TEXT_NODE&&(u=u.parentElement),n=u&&u.closest&&u.closest(".smart-editor-editable table")}if(!n){var d=t.$.editableElement,h=t.$.iframe,f=(h?h.contentWindow:window).getSelection();f.removeAllRanges(),f.addRange(o);var p=t.id+"newTable"+Math.random().toString(36).substr(2,5);i=(h?h.contentDocument:document).execCommand("insertHTML",!1,'<table id="'.concat(p,'"><tbody></tbody></table>')),n=d.querySelector("#"+p)}if(n&&"table"===n.nodeName.toLowerCase()){var m,g=n.querySelector("tbody");for(g?m=Array.from(g.children):(n.innerHTML="<tbody></tbody>",g=n.firstElementChild,m=[]);m.length>a;)m.pop().remove();for(var v=m.length,y=a;v<y;v+=1)m.push(document.createElement("tr"));for(var b=0,_=m.length;b<_;b+=1){for(var w=m[b],k=Array.from(w.children);k.length>r;)k.pop().remove();for(var C=0,x=r;C<x;C+=1){var S=k[C];S||(S=w.appendChild(document.createElement("td")))}w.parentElement||g.appendChild(w)}void 0===e.tableheader?e.tableheader=!!n.querySelector("th"):void 0===e.altrows?e.altrows=n.hasAttribute("alternation"):void 0===e.dashedborders?e.dashedborders=n.hasAttribute("dashed-borders"):void 0===e.resizable&&(e.resizable="false"!==n.getAttribute("resizable")),t._handleTableHeader(n,e.tableheader),e.altrows?n.setAttribute("alternation",""):n.removeAttribute("alternation"),e.dashedborders?n.setAttribute("dashed-borders",""):n.removeAttribute("dashed-borders");var M=e.width,D=e.height;n.style.width=M?M+(M.indexOf("%")<0?"px":""):"",n.style.height=D?D+(D.indexOf("%")<0?"px":""):"",i&&n.removeAttribute("id"),n.setAttribute("aria-rowcount",a),n.setAttribute("aria-colcount",r),n.setAttribute("resizable",e.resizable)}t._setResizeFrame(n)}else t._insertTableMarkdown(e)}},{key:"_insertTableMarkdown",value:function(e){var t=this,n=e.cells,i=_slicedToArray(n?[n[1],n[0]]:[parseInt(e.cols),parseInt(e.rows)],2),r=i[0],a=i[1],o=t.localize("alphabet"),s=t.localize("header"),l=t.localize("column"),c="";if(!1!==e.tableheader){for(var u="",d=Math.max(3,s.length)+3;d>0;)u+="-",d--;for(var h=1;h<=r;h+=1)c+="| ".concat(s," ").concat(h," ");c+="|\n";for(var f=0;f<r;f++)c+="|".concat(u," ");c+="|\n"}for(var p=0;p<a;p++){for(var m=o[Math.max(0,p-1)%o.length].toUpperCase(),g=1;g<=r;g+=1)c+="| ".concat(l," ").concat(m," ").concat(g," ");c+="|\n"}t._insertMarkDown(c)}},{key:"_handleTableSelection",value:function(e){var t=this,n=t.$.editableElement;if(t._tableCell&&t._tableCell.removeAttribute("selected"),"false"!==n.getAttribute("contenteditable"))return e&&["th","td"].indexOf(e.nodeName.toLowerCase())>-1?(t._tableCell=e,void e.setAttribute("selected","")):void delete t._tableCell}},{key:"_getItemOptionsViaWindow",value:function(e){var t=this._windowEditors[e.name];if(t){for(var n=t.children,i={},r=0,a=n.length;r<a;r+=1){var o=n[r].getAttribute("type"),s=n[r].querySelector("[item-editor]"),l=void 0;if(o){if(s instanceof Smart.Input)if(void 0===s.$.input.dataValue&&s.dataSource&&s.dataSource.length){var c=s.dataSource[0];l="string"==typeof c?c:c.value||c.label}else l=s.$.input.dataValue||s.value;else s instanceof Smart.CheckBox||s instanceof Smart.RadioButton?l=s.checked:s instanceof Smart.FileUpload?l=s.value:s instanceof Smart.ListBox&&(l=s.selectedIndexes);i[o]=l}}return i}}},{key:"_closeToolbarItemDropDown",value:function(e){var t=function(){e.opened||e.remove()};e&&(e.opened?(e.hasAnimation&&(e.removeEventListener("transitionend",t),e.addEventListener("transitionend",t,{once:!0})),e.close(),this._setAriaOwns(e)):t())}},{key:"_openToolbarItemDropDown",value:function(e,t){var n=this,i=e.getBoundingClientRect();n._setupDropDown(e,t),t.style.width=i.width+"px",t.style.height=i.height+"px",e.contains(t)||e.appendChild(t),t.open(),n._setAriaOwns(t),n._setAriaControl
1s(e,t)}},{key:"_setupDropDown",value:function(e,t){var n,i=this,r=i.$.inlineToolbar,a=r&&r.contains(e)?i._inlineToolbarItemsObj:i._toolbarItemsObj,o=a?a[e.getAttribute("item-name")]:void 0;if(o&&(n=o.dataSource),n||(n=[]),t instanceof Smart.ColorInput?t.dropDownClassList=["smart-editor-color-input"]:(t.dropDownClassList=["smart-editor-input"],t.dropDownHeight=300),t.classList.add("smart-editor-item-drop-down"),t.readonly=!0,t.dataSource=n,t.dropDownOpenMode="manual",t.dropDownButtonPosition=i.rightToLeft?"left":"right",void 0!==o.value){var s=o.name;t.value=s.indexOf("table")>-1||s.indexOf("paste")>-1?"":o.value+""}else t.value=""}},{key:"_toggleToolbar",value:function(e){var t=this,n=t.$.toolbar,i=t.$.contentContainer,r=t.toolbarViewMode,a="toggle"===r,o=t.$.toolbarToggleButton,s=t.$.toolbarItemsPrimary,l=t.hasAnimation;n.style.transition=l&&a?"none":"",n.style.height="";var c=n.offsetHeight,u=i.offsetHeight;if(e&&"toggle"===r){if(o.removeAttribute("checked"),o.setAttribute("aria-pressed",!1),!n.hasAttribute("expanded"))return void(n.style.transition="");n.removeAttribute("expanded")}else{if(o.setAttribute("checked",""),o.setAttribute("aria-pressed",!0),n.hasAttribute("expanded"))return n.style.transition="",void(t.$.toolbarItemsSecondary.innerHTML&&t._refreshToolbarItems());"scroll"!==r?n.setAttribute("expanded",""):n.removeAttribute("expanded")}if(t._refreshToolbarItems(),"menu"===t.toolbarMode){if(a){var d=n.offsetHeight,h=t.$.inlineToolbar;h&&h.visible&&h.reposition(),t._resizeFrameObj&&t._setResizeFrame(t._resizeFrameObj.target),n.style.height=c+"px",i.style.height=u+"px",l&&requestAnimationFrame(function(){n.style.transition="",n.style.height=d+"px",i.style.height=u+c-d+"px",requestAnimationFrame(function(){return n.style.height=i.style.height=""})})}}else n.hasAttribute("expanded")?(s.querySelector(".smart-editor-toolbar-tab[checked]")||t._selectToolbarTab(s.firstElementChild),t._toggleSecondaryToolbar(!0)):(t._selectToolbarTab(null),t._toggleSecondaryToolbar())}},{key:"_predefPropertyGetter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"value",t=this;Object.defineProperty(t,e,{get:function(){return t.context===t?t.properties[e].value:t._getCurrentValue()},set:function(n){t._properties[e].value=t._getCurrentValue(),t.updateProperty(t,t._properties[e],n)}})}},{key:"_getCurrentValue",value:function(){var e=this;if("markdown"===e.editMode)return e.$.input.value;var t=e.$.editableElement.innerHTML;return e.enableHtmlEncode&&(t=t.replaceAll("<","<").replaceAll(">",">")),t}},{key:"_getInputValue",value:function(e,t){return void 0===e&&(e=this.$.input.value),!t&&this.enableHtmlEncode?e.replaceAll("<","<").replaceAll(">",">"):e.replaceAll("<","<").replaceAll(">",">")}},{key:"_handleEditMode",value:function(e){var t=this,n=t.$.input,i=t.$.editableElement,r=t.editMode,a=t._toolbarItemsObj.sourcecode,o=!!a&&a.value;t._closePopups(),"html"===e?o?n.value=i.innerHTML:i.innerHTML=n.value:"markdown"===e&&(o?i.innerHTML=window.marked?window.marked(n.value):n.value:n.value=i.textContent,t._closeSearchToolbar()),t.$.contentContainer.hasAttribute("split-mode")||("markdown"===r?o?(n.classList.add("smart-hidden"),i.classList.remove("smart-hidden")):(n.classList.remove("smart-hidden"),i.classList.add("smart-hidden")):o?(n.classList.remove("smart-hidden"),i.classList.add("smart-hidden")):(n.classList.add("smart-hidden"),i.classList.remove("smart-hidden"))),t.readonly||t.disableEditing||t.$.editableElement.setAttribute("contenteditable","markdown"!==r)}},{key:"_handleInputContent",value:function(e,t){var n=this,i=n.$.editableElement,r=n.$.input,a=n.editMode;if(!n.isRendered&&n.autoLoad){var o=window.localStorage.getItem("smartEditor"+n.id);o&&n.set("value",o)}var s=n.value;void 0===t&&s&&(t=s),void 0!==t?"html"===a?n.$.editableElement.innerHTML=t:n.$.input.value=t:t||"markdown"!==a||(n.$.input.value=n.$.editableElement.textContent),n.$.contentContainer.hasAttribute("split-mode")?"markdown"===a?i.innerHTML=window.marked?window.marked(r.value):r.value:r.value=i.innerHTML.trim():n.classList.contains("preview-mode")&&("markdown"===a?i.innerHTML=window.marked?window.marked(r.value):r.value:r.value=i.innerHTML),i.textContent.length&&i.innerText.length?(i.removeAttribute("show-placeholder"),n._handleContentFiltering()):i.setAttribute("show-placeholder",""),n._clearSearchToolbar()}},{key:"_sanitize",value:function(e,t){return this.sanitized?t.replaceAll(/(<[\/]?script[>]?)|([on].*=['"`]?.*['"`]?)|(SRC=['"`]?javascript:['"`]?)/gim,""):t}},{key:"_handleContentFiltering",value:function(){var e=this,t=e.contentFiltering;if("html"!==!e.editMode){var n=t.tags.map(function(e){return e.trim()}),i=t.attributes.map(function(e){return e.trim()}),r=t.styleAttributes.map(function(e){return e.trim()});if(n.length||i.length||r.length){var a=t.tagFilterMode,o=t.attributeFilterMode,s=t.styleAttributeFilterMode,l=e.$.editableElement.innerHTML;if(n.length){for(var c,u=new RegExp(/<\s*\/?\s*([a-z0-9]+).*?>/,"gmi"),d=[];null!==(c=u.exec(l));){var h=n.indexOf(c[1])>-1;(h&&"blackList"===a||!h&&"whiteList"===a)&&d.push(c[0])}
1d.forEach(function(e){return l=l.replace(e,"")})}e.$.editableElement.innerHTML=l;for(var f=e.$.editableElement.querySelectorAll("*"),p=0,m=f.length;p<m;p+=1){var g=f[p];if(i.length)for(var v=Array.from(g.attributes),y=0,b=v.length;y<b;y+=1){var _=v[y].name,w=i.indexOf(_)>-1;(w&&"blackList"===o||!w&&"whiteList"===o)&&g.removeAttribute(_)}if(r.length){var k=g.getAttribute("style");if(!k)continue;for(var C=k.split(";"),x=[],S=0,M=C.length;S<M;S+=1){var D=C[S],T=D.indexOf(":"),E=r.indexOf(D.slice(0,T>0?T:void 0))>-1;(E&&"whiteList"===s||!E&&"blackList"===s)&&x.push(D)}C.length&&(x.length?g.setAttribute("style",x.join(";")):g.removeAttribute("style"))}}e._setCharCount()}}}},{key:"_handleContextMenuItemClick",value:function(e,t){if(t&&t.classList.contains("smart-editor-context-menu-item")){var n=this,i=n.$.inlineToolbar,r=t.getAttribute("value");if(i){var a=i.selector;switch(r){case"imageProperties":n._openWindow({name:"image"},a.closest(".smart-editor-editable img"));break;case"linkProperties":n._openWindow({name:"hyperlink"});break;case"tableProperties":n._openWindow({name:"table"},a.closest(".smart-editor-editable table"));break;case"videoProperties":var o=a.closest(".smart-editor-video-container");if(o){var s=o.querySelectorAll(".smart-editor-video-container > video, .smart-editor-video-container > iframe");n._openWindow({name:"video"},s[0]||s[1])}break;case"insertRowAfter":case"insertRowBefore":case"deleteRow":n._handleTableRows(a.closest(".smart-editor-editable table"),{value:r});break;case"insertColumnLeft":case"insertColumnRight":case"deleteColumn":n._handleTableColumns(a.closest(".smart-editor-editable table"),{value:r});break;case"deleteImage":case"deleteTable":var l=n._resizeFrameObj?n._resizeFrameObj.target:void 0;l&&n._deleteResizeFrameTarget(l);break;case"deleteVideo":var c=a.closest(".smart-editor-video-container");if(c){var u=n._resizeFrameObj?n._resizeFrameObj.target:void 0;if(u===c){n._deleteResizeFrameTarget(u);break}c.remove()}break;case"createLink":n._openWindow({name:"hyperlink"},a.closest(".smart-editor-editable img"));break;case"deleteLink":n._handleLinkRemove(a);break;case"copyImage":n._handleImageCopy(a.closest(".smart-editor-editable img"));break;case"cutImage":n._handleImageCut(a.closest(".smart-editor-editable img"));break;case"copyVideo":n._handleImageCopy(a.closest(".smart-editor-video-container"));break;case"cutVideo":n._handleImageCut(a.closest(".smart-editor-video-container"));break;case"copy":case"cut":case"paste":n._handleClipboardAction(r);break;case"caption":var d,h=a.closest(".smart-editor-editable img");if(h&&"img"===h.nodeName.toLowerCase()){var f=h.closest(".smart-editor-image-container");f&&f.querySelector(".smart-editor-image-caption")||(d=n.localize("captionPlaceholder")),n._handleImgCaption(h,{caption:d,focusCaption:!0})}else if(a.classList.contains("smart-editor-video-container")){var p=a.querySelectorAll(".smart-editor-video-container > video, .smart-editor-video-container > iframe");a.querySelector(".smart-editor-image-caption")||(d=n.localize("captionPlaceholder")),n._handleVideoCaption(p[0]||p[1],{caption:d,focusCaption:!0})}break;case"selectAll":n._selectAll()}n.$.fireEvent("contextMenuItemClick",{originalEvent:e,value:r}),n._closeContextMenu()}}}},{key:"_handleImageCopy",value:function(e){var t=this;if(e&&("img"===e.nodeName.toLowerCase()||e.classList.contains("smart-editor-video-container"))){var n=t._createWhiteSpaceChar(e,e.classList.contains("smart-editor-video-container")?e:void 0);t._setSelectionRange(e),t.$.editableElement.getRootNode().execCommand("copy"),n&&n.remove()}}},{key:"_handleImageCut",value:function(e){var t=this;if(e&&("img"===e.nodeName.toLowerCase()||e.classList.contains("smart-editor-video-container"))){var n=t._createWhiteSpaceChar(e,e.classList.contains("smart-editor-video-container")?e:void 0);t._setSelectionRange(e),t.$.editableElement.getRootNode().execCommand("cut"),t._setResizeFrame(),n&&n.remove()}}},{key:"_createWhiteSpaceChar",value:function(e,t){if(t){var n=document.createElement("span");return n.innerHTML=" ",n.classList.add("smart-editor-video-white-space"),e.appendChild(n),n}}},{key:"_handleInputElement",value:function(){var e=this,t=e.iframeSettings,n=e.$.contentContainer,i=e.$.container,r=e.$.editableElement,a=e.$.input,o=e.readonly,s=e.disableEditing;if(r.contentEditable=!o&&!s,a.readonly=o||s,e._handlePlaceholder(),e._closePopups(),t.enabled?e._handleIframeSettings():i.
1contains(n)||(i.appendChild(n),r.setAttribute("contenteditable",!0),e.$.iframe&&(e.$.iframe.remove(),e._removeIframeEventListeners(),delete e.$.iframe)),"markdown"===e.editMode){var l=e.$.editableElement;e.$.input.classList.remove("smart-hidden"),l.classList.add("smart-hidden")}}},{key:"_handleToolbarMode",value:function(){var e=this,t=e.$.toolbar,n=e.$.toolbarItemsSecondary,i=e.toolbarMode;e.$.toolbarItemsPrimary.innerHTML=n.innerHTML="","menu"===i?(n.classList.remove("smart-drop-down"),n.style.top=n.style.height="",t.contains(n)||t.appendChild(n),e._refreshToolbarItems(e._getToolbarItems())):(e._setToolbarTabs(),e._setToolbarItemGroups(),e._toolbarItemsObj||(e._toolbarItemsObj={}),e._refreshToolbarItems()),e._setToolbarGroupHeight()}},{key:"_setToolbarTabs",value:function(){for(var e,t=this,n=t.toolbarRibbonConfig,i=t.$.toolbarToggleButton,r=t.$.toolbarItemsPrimary,a=r.querySelectorAll(".smart-editor-toolbar-tab"),o=document.createDocumentFragment(),s=0,l=n.length;s<l;s+=1){var c=n[s],u=a[s];u||(u=document.createElement("div")),u.classList.add("smart-editor-toolbar-tab"),u.setAttribute("tab-name",c.name),u.textContent=t.localize(c.name),!e&&u.hasAttribute("checked")&&(e=u),e!==u&&u.removeAttribute("checked"),u.classList[c.hidden?"add":"remove"]("smart-hidden"),o.appendChild(u)}i.hasAttribute("checked")&&!e&&o.children[0].setAttribute("checked",""),r.appendChild(o)}},{key:"_setToolbarItemGroups",value:function(){var e=this,t=e.toolbarRibbonConfig,n=Array.from(e.$.toolbarItemsPrimary.querySelectorAll(".smart-editor-toolbar-tab")).find(function(e){return e.hasAttribute("checked")});if(t&&n){var i=n.getAttribute("tab-name"),r=t.find(function(e){return e.name===i}),a=r?r.groups:null,o=e.$.toolbarItemsSecondary,s="singleLineRibbon"===e.toolbarMode;if(o.innerHTML="",Array.isArray(a)){for(var l=o.querySelectorAll(".smart-editor-toolbar-tab-group"),c=document.createDocumentFragment(),u=0,d=a.length;u<d;u+=1){var h=a[u],f=h.name,p=l[u];if(p||(p=document.createElement("div")),s)p.innerHTML="",p.appendChild(e._getToolbarItems(e.$.toolbar,h.items));else{p.innerHTML='<div class="smart-editor-tab-group-container"></div><div class="smart-editor-tab-group-label"></div>';var m=p.firstElementChild;p.lastElementChild.innerHTML=e.localize(f),m.appendChild(e._getToolbarItems(e.$.toolbar,h.items))}p.classList.add("smart-editor-toolbar-tab-group"),p.setAttribute("group-name",f),c.appendChild(p)}o.appendChild(c),o.classList.remove("smart-visibility-hidden"),e._refreshToolbarTabs()}}}},{key:"_refreshToolbarTabs",value:function(){var e=this,t=e._resizeFrameObj,n=Array.from(e.$.toolbarItemsPrimary.children).find(function(e){return"layouttab"===(e.getAttribute("tab-name")||"").toLowerCase()});if(n){if(!t||!t.target||"singleLineRibbon"!==e.toolbarMode)return n.classList.add("smart-hidden"),void(n.hasAttribute("checked")&&e._selectToolbarTab(e.$.toolbarItemsPrimary.firstElementChild));for(var i,r,a,o=e.$.toolbarItemsSecondary.children,s=t.target,l=s.nodeName.toLowerCase(),c=0,u=o.length;c<u;c+=1){var d=o[c],h=d.getAttribute("group-name");"tableGroup"===h?(r=d).classList.add("smart-hidden"):"imageGroup"===h?(i=d).classList.add("smart-hidden"):"videoGroup"===h&&(a=d).classList.add("smart-hidden")}"table"===l?(n.classList.remove("smart-hidden"),r&&r.classList.remove("smart-hidden")):"img"===l?(n.classList.remove("smart-hidden"),i&&i.classList.remove("smart-hidden")):s.classList.contains("smart-editor-video-container")?(n.classList.remove("smart-hidden"),a&&a.classList.remove("smart-hidden")):n.classList.add("smart-hidden")}}},{key:"_handlePlaceholder",value:function(){var e=this.$.editableElement,t=this.placeholder;t?e.setAttribute("placeholder",t):e.removeAttribute("placeholder")}},{key:"_handleIframeSettings",value:function(){var e=this;if(e.iframeSettings.enabled){var t=e.$.iframe;t||(t=e.$.iframe=document.createElement("iframe")),t.parentElement||e.$.container.appendChild(t),!t.contentWindow.marked&&window.marked&&(t.contentWindow.marked=window.marked),e._handleIframeBody(),e._handleIframeAttributes(),e._handleIframeResources()}}},{key:"_removeIframeEventListeners",value:function(){var e=this,t=e.$.iframe.contentDocument,n=e.$iframe;n&&(n.unlisten("down"),n.unlisten("move"),n.unlisten("up")),t.removeEventListener("dragstart",e._iframeDragStartHandler),t.removeEventListener("dragend",e._iframeDragEndHandler),t.removeEventListener("selectionchange",e._iframeSelectionChangeHandler)}},{key:"_handleIframeBody",value:function(){var e=this,t=e.$.iframe.contentDocument,n=t.body;if(n){var i=e.$iframe;n.classList.add("smart-editor","smart-element","smart-editor-iframe-body"),n.appendChild(e.$.contentContainer),e._updateIframeBody(),i||(i=e.$iframe=Smart.Utilities.Extend(n)),e._iframeDownHandler=function(t){return e._documentDownHandler.call(e,t)},e._iframeMoveHandler=function(t){return e._documentMoveHandler.call(e,t)},e._iframeUpHandler=function(t){return e._documentUpHandler.call(e,t)},e._iframeDragStartHandler=function(t){return e._dragStartHandler.call(e,t)},e._iframeDragEndHandler=function(t){return e._dragEndHandler.call(e,t)},e._iframeSelectionChangeHandler=function(t){return e._selectionChangeHandler.call(e,t)},e._removeIframeEventListeners(),i.listen("down",e._iframeDownHandler),i.listen("move",e._iframeMoveHandler),i.listen("up",e._iframeUpHandler),t.addEventListener("dragstart",e._iframeDragStartHandler),t.addEventListener("dragend",e._iframeDragEndHandler),t.addEventListener("selectionchange",e._iframeSelectionChangeHandler)}}},{key:"_updateIframeBody",value:function(){var e=this,t=e.$.iframe;if(t){var n=t.contentDocument.body;n&&(e.rightToLeft?n.setAttribute("right-to-left",""):n.removeAttribute("right-to-left"),e.theme?n.setAttribute("theme",e.theme):n.removeAttribute("theme"),n.setAttribute("animation",e.animation))}}},{key:"_handleIframeAttributes",value:function(){var e=this,t=e.$.iframe,n=e.iframeSettings.attributes;if(t&&(t.hasAttribute("title")||t.setAttribute("title",e.localize("iframeTitle")),n&&"object"==typeof n)){var i=e.$.editableElement;for(var r in n){var a=n[r];"readonly"===r?i.setAttribute("contenteditable",!a):t[r]=a}}}},{key:"_handleIframeResources",value:function(){var e=this.iframeSettings.resources,t=this.$.iframe;if(t&&"object"==typeof e){var n=document.styleSheets,i=t.contentDocument,r=i.head,a=i.body;for(var o in n){var s=n[o],l=s.ownerNode;"text/css"===s.type&&l&&["link","style"].indexOf(l.nodeName.toLocaleLowerCase())>-1&&t.contentDocument.head.appendChild(s.ownerNode.cloneNode())}for(var c in e){var u=c,d=e[c],h=void 0;if((u+"").indexOf("style")>-1||"link"===u?((h=document.createElement("link")).rel="stylesheet",h.type="text/css","string"==typeof d&&(h.href=d)):"script"===u&&((h=document.createElement("script")).type="text/javascript","string"==typeof d&&(h.src=d)),"object"==typeof d&&"[object Object]"===d.toString())for(var f in d)h[f]=d[f];"module"===h.type?a.appendChild(h):r.appendChild(h)}}}},{key:"_handleMaxCharCount",value:function(){var e=this,t=e.$.input;null!==e.maxCharCount?t.maxLength=e.maxCharCount:t.removeAttribute("maxlength")}},{key:"_getToolbarItems",value:function(e,t){var n=this;e||(e=n.$.toolbar),t||(t=n.toolbarItems);for(var i=e===n.$.toolbar?"toolbar":"inlineToolbar",r=e.querySelectorAll(".smart-editor-toolbar-item"),a=document.createDocumentFragment(),o=0,s=t.length;o<s;o+=1){var l=n._getToolbarItemDetails(i,t[o]),c=l.name,u=l.type,d=r[o];if(d?"custom"===d.getAttribute("item-type")&&(d.innerHTML=""):(d=document.createElement("div")).classList.add("smart-editor-toolbar-item"),"color-input"===u)d.innerHTML||(d.innerHTML='<div class="smart-editor-item-action-button" item-name="'.concat(c,'"></div>\n <div class="smart-editor-item-drop-down-button"></div>'));else if("custom"===u){var h=l.template;d.innerHTML="",h&&h.closest&&!d.contains(h)?d.appendChild(h):"string"!=typeof h||d.innerHTML?"function"==typeof h&&h(d,l):d.innerHTML=h||""}else"toggle"===u&&(l.value?(d.setAttribute("checked",""),d.setAttribute("aria-pressed",!0)):(d.removeAttribute("checked"),d.setAttribute("aria-pressed",!1)),d.innerHTML&&(d.innerHTML=""));l.disabled||"paste"===c&&n._isFireFox?(d.setAttribute("disabled",""),d.setAttribute("aria-disabled",!0)):(d.removeAttribute("disabled"),d.removeAttribute("aria-disabled")),d.setAttribute("role","delimiter"===u?"separator":"button"),"color-input"===u||"drop-down"===u?d.setAttribute("aria-haspopup",!0):d.removeAttribute("aria-haspopup"),n._setItemValue(d,l),l.title?d.setAttribute("title",l.title):d.removeAttribute("title"),d.setAttribute("item-name",c),d.setAttribute("item-type",u),d.style.width=l.width||"",a.appendChild(d)}return a}},{key:"_setItemValue",value:function(e,t){var n=t.value;e&&t&&("button"===t.type?n?(e.setAttribute("checked",""),e.setAttribute("aria-pressed",!0)):(e.removeAttribute("checked"),e.setAttribute("aria-pressed",!1)):(n||"color-input"!==t.type?["fontname","formats"].indexOf(t.name)>-1&&(n=this.localize(t.value)||t.label||t.value):n="transparent",n?(e.setAttribute("item-value",n),e.style.setProperty("--item-value",n)):(e.removeAttribute("item-value"),e.style.removeProperty("--item-value"))))}},{key:"_refreshToolbarItems",value:function(e){var t=this,n=t.$.toolbar,i=t.$.toolbarToggleButton,r=t.$.toolbarItemsPrimary,a=t.$.toolbarItemsSecondary;if("menu"===t.toolbarMode){if(r.scrollTop=r.scrollLeft=0,e)r.appendChild(e);else{for(var o=Array.from(a.children),s=document.createDocumentFragment(),l=o.length,c=0;c<l;c+=1)s.appendChild(o[c]);l>0&&r.appendChild(s)}if("toggle"===t.toolbarViewMode){var u=r.offsetHeight;if(n.hasAttribute("expanded")){var d=[];e:for(;r.scrollHeight>u;){var h=r.lastElementChild;if(!h)break e;d.push(h),h.remove()}d.reverse();for(var f=0,p=d.length;f<p;f+=1)a.appendChild(d[f])}else r.scrollHeight===u&&i.classList.add("smart-visibility-hidden")}}else i.classList.remove("smart-visibility-hidden")}},{key:"_resizeHandler",value:function(e){var t=this,n=t.$.inlineToolbar;if(e.target===t){if("toggle"===t.toolbarViewMode){var i=t.$.toolbarItemsPrimary,r=t.$.toolbarItemsSecondary;t.$.toolbar.hasAttribute("expanded")&&t._refreshToolbarItems();var a=t.$.toolbarToggleButton;i.scrollHeight!==i.offsetHeight||r.children.length?a.classList.remove("smart-visibility-hidden"):a.classList.add("smart-visibility-hidden")}if("menu"===t.toolbarMode||t.$.toolbarItemsSecondary.classList.contains("smart-visibility-hidden")||t._setToolbarGroupHeight(),n&&n.visible){var o=n.selector;o.classList.contains("smart-editor-toolbar-item")&&o.offsetTop>=t.$.toolbar.offsetHeight?n.close():n.reposition()}t._positionWindow(),t._resizeFrameObj&&t._setResizeFrame(t._resizeFrameObj.target)}}},{key:"_setToolbarItemAttr",value:function(e,t,n){for(var i=this,r=i.$.toolbar,a=i.$.inlineToolbar,o=[i._toolbarItemsObj,i._inlineToolbarItemsObj],s=0,l=o.length;s<l;s+=1){var c=o[s],u=c?c[e]:void 0;if(u){var d=c==c?r:a;if(u[t]=n,!d||!d.parentElement)continue;var h=d.querySelector('.smart-editor-toolbar-item[item-name="'.concat(e,'"]'));if(!h)continue;null==n||!1===n?(h.removeAttribute(t),"disabled"===t&&h.removeAttribute("aria-disabled")):(h.setAttribute(t,n),"disabled"===t&&h.setAttribute("aria-disabled",!0))}}}},{key:"_setToolbarVisibility",value:function(){var e=this,t=e.$.toolbar;"toggle"!==e.toolbarViewMode||e.$.toolbarToggleButton.hasAttribute("checked")?t.setAttribute("expanded",""):t.removeAttribute("expanded")}},{key:"_getToolbarItemDetails",value:function(e,t){var n,i=this,r=i["_".concat(e,"ItemsObj")];
1if(n=(n="string"==typeof t?t:"object"==typeof t&&t.name?t.name+"":"").trim().toLowerCase(),r){if(void 0!==r[n])return r[n]}else r=i["_".concat(e,"ItemsObj")]={};var a=r[n]={};return a.title=t.title||i.localize(n),a.name=n,a.toolbarName=e,a.advanced=!!t.advanced,a.inlineToolbarItems=t.inlineToolbarItems,i._setItemType(t,a,n),i._setItemData(t,a,n),i._setItemTemplate(t,a,n),i._setItemSpecifics(t,a,n),a}},{key:"_setItemType",value:function(e,t,n){var i;if(t){switch(n){case"sourcecode":case"splitmode":case"fullscreen":i="toggle";break;case"alignment":case"fontname":case"fontsize":case"formats":case"tablerows":case"tablecolumns":case"tablevalign":case"tablestyle":i="drop-down";break;case"backgroundcolor":case"fontcolor":i="color-input";break;case"bold":case"italic":case"underline":case"strikethrough":case"delete":case"redo":case"undo":case"indent":case"outdent":case"openlink":case"editlink":case"createlink":case"removelink":case"hyperlink":case"cut":case"copy":case"image":case"video":case"lowercase":case"uppercase":case"print":case"caption":case"clearformat":case"table":case"tableheader":case"orderedlist":case"unorderedlist":case"subscript":case"superscript":case"findandreplace":i="button";break;case"paste":i=t.advanced?"drop-down":"button";break;default:i="string"==typeof e?"delimiter":"custom"}t.type=i}}},{key:"_setItemData",value:function(e,t,n){var i,r;if(t&&e){var a=t.type,o=e.width;if("drop-down"===a||"color-input"===a){if("object"==typeof e&&(i=e.dataSource,void 0!==e.value&&(r=e.value+"")),i&&Array.isArray(i)||(i=this._getDefaultDataSource(n,t)),void 0===r&&("fontsize"===t.name&&(r=parseInt(window.getComputedStyle(this.$.editableElement).fontSize)),isNaN(r)&&i.length)){var s=i[0];r=s["alignment"===n?"value":"label"]||s}n.indexOf("table")>-1&&(r="")}void 0!==o&&("number"==typeof o?o+="px":(o+="").includes("%")||(o=parseFloat(e.width),o=isNaN(o)?"":o+"px")),t.dataSource=i,t.value=r,t.disabled=!!e.disabled,t.width=o}}},{key:"_setItemSpecifics",value:function(e,t,n){if(t&&"object"==typeof e){var i=e.editor,r=t.editor;if(r||(r=t.editor={}),i){var a=[],o=[];switch(n){case"createlink":case"removelink":case"hyperlink":a=["address","text","target"];break;case"image":a=["allowedTypes","uploadUrl","removeUrl","path","display"],o=["draggable","resizable"];break;case"table":a=["cols","rows","tableheader"],o=["altrows","dashedborders","resizable"]}for(var s in i){var l=i[s];void 0!==l&&(a.indexOf(s)>-1?"display"===s?l="block"===l?"block":"inline":l+="":o.indexOf(s)>-1?l=!!l:"width"!==s&&"height"!==s||"string"==typeof l||(l+="px"),r[s]=l)}}}}},{key:"_getDefaultDataSource",value:function(e,t){var n=this,i=[];switch(e){case"alignment":i=[{label:n.localize("alignLeft"),value:"left",icon:"editor-icon"},{label:n.localize("alignCenter"),value:"center",icon:"editor-icon"},{label:n.localize("alignRight"),value:"right",icon:"editor-icon"}],t&&"toolbar"===t.toolbarName&&i.push({label:n.localize("alignJustify"),value:"justify",icon:"editor-icon"});break;case"display":i=[{label:n.localize("displayInline"),value:"inline"},{label:n.localize("displayBlock"),value:"block"}];break;case"fontname":["segoeUi","arial","georgia","impact","tahoma","timesNewRoman","verdana"].forEach(function(e){i.push({label:n.localize(e),value:e})});break;case"fontsize":["8","10","12","14","18","24","36"].forEach(function(e){i.push({label:e,value:e})});break;case"formats":["p","pre","blockquote","h1","h2","h3","h4"].forEach(function(e){i.push({label:n.localize(e),value:e})});break;case"backgroundcolor":case"fontcolor":["#000000","#FFFFFF","#D50000","#E67C73","#F4511E","#F6BF26","#33B679","#0B8043","#039BE5","#3F51B5","#7986CB","#8E24AA","#616161",""].forEach(function(e){i.push({label:e,value:e})});break;case"paste":i=[{label:n.localize("plainText"),value:"plainText"},{label:n.localize("keepFormat"),value:"keepFormat"},{label:n.localize("cleanFormat"),value:"cleanFormat"}];break;case"target":i=[{label:n.localize("linkBlankDescr"),value:"_blank"},{label:n.localize("linkSelfDescr"),value:"_self"},{label:n.localize("linkParentDescr"),value:"_parent"},{label:n.localize("linkTopDescr"),value:"_top"},{label:n.localize("linkCustomDescr"),value:""}];break;case"tablerows":i=[{label:n.localize("insertRowBefore"),value:"insertRowBefore",icon:"editor-icon"},{label:n.localize("insertRowAfter"),value:"insertRowAfter",icon:"editor-icon"},{label:n.localize("deleteRow"),value:"deleteRow",icon:"editor-icon"}];break;case"tablecolumns":i=[{label:n.localize("insertColumnLeft"),value:"insertColumnLeft",icon:"editor-icon"},{label:n.localize("insertColumnRight"),value:"insertColumnRight",icon:"editor-icon"},{label:n.localize("deleteColumn"),value:"deleteColumn",icon:"editor-icon"}];break;case"tablevalign":i=[{label:n.localize("alignTop"),value:"top"},{label:n.localize("alignMiddle"),value:"middle"},{label:n.localize("alignBottom"),value:"bottom"}];break;case"tablestyle":i=[{label:n.localize("dashedborders"),value:"dashedborders"},{label:n.localize("altrows"),value:"altrows"}]}return i}},{key:"_setItemTemplate",value:function(e,t){var n=e.template;t&&(n?(n&&n.closest?n="content"in n?document.importNode(n.content,!0):n:"function"==typeof n?n=n.bind(this):"string"==typeof n&&(n=document.getElementById(n)||n),t.template=n):delete t.template)}},{key:"_setAriaSettings",value:function(){var e=this,t=e.$.input,n=e.$.editableElement;e.setAttribute("role","application"),e.setAttribute("aria-roledescription",e.localize("roleDescription")),e.$.toolbarToggleButton.setAttribute("aria-label",e.localize("toolbarButtonAriaLabel")),e.$.toolbarItemsPrimary.setAttribute("aria-label",e.localize("primaryToolbarAriaLabel")),e.$.toolbarItemsSecondary.setAttribute("aria-label",e.localize("secondaryToolbarAriaLabel")),t.setAttribute("aria-label",e.localize("inputAreaLabel")),t.id=e.id+"TextArea",n.id=e.id+"EditableElement",n.setAttribute("aria-label",e.localize("inputAriaLabel"))}}
1,{key:"_setAriaControls",value:function(e,t){e&&e.nodeName&&(t.id||(t.id=this.id+"Popup"+Math.floor(65536*(1+Math.random())).toString(16).substring(1)),e.setAttribute("aria-controls",t.id))}},{key:"_setAriaOwns",value:function(e){var t=this;if(e){var n=e.id,i=(t.getAttribute("aria-owns")||"").split(" ").filter(function(e){return e.length}),r=i.indexOf(n);if(r>-1){if(e.parentElement&&(e.opened||e.visible))return;i.splice(r,1)}else i.push(n);i.length?t.setAttribute("aria-owns",i.join(" ")):t.removeAttribute("aria-owns")}}},{key:"_setFocusable",value:function(){var e=this,t=e.$.editableElement;e.disabled||e.unfocusable?t&&t.removeAttribute("tabindex"):t&&(t.tabIndex=e.tabIndex>0?e.tabIndex:0)}},{key:"_selectAll",value:function(){var e=this,t=e.$.input,n=e.$.editableElement;t.classList.contains("smart-hidden")||t.select(),n.classList.contains("smart-hidden")||e._setSelectionRange(n)}},{key:"_selectStartHandler",value:function(e){var t=this._resizeFrameObj,n=this._inlineToolbarClickObj;(t&&t.resizeDetails||n&&n.resizeDetails)&&e.preventDefault()}},{key:"_selectionChangeHandler",value:function(e){var t=this;if(!t.disabled&&e.target.getSelection){var n=e.target.getSelection().focusNode;if(t.$.contentContainer.contains(n)){if(t._ignoreSelectionChange||n.classList&&n.classList.contains("smart-search-input"))return;t._selectionChangeFired=!0,t._setSelectionRange(),t._updateToolbarItems(),delete t._selectionChangeFired}}}},{key:"_selectToolbarTab",value:function(e){for(var t=this,n=t.$.toolbar,i=t.$.toolbarItemsPrimary,r=e&&!e.hasAttribute("checked"),a=i.querySelectorAll(".smart-editor-toolbar-tab"),o=0,s=a.length;o<s;o+=1){var l=a[o];e===l&&r?l.setAttribute("checked",""):l.removeAttribute("checked")}var c=t._tabSelectionBar;c||(t._tabSelectionBar=c=document.createElement("div"),c.classList.add("smart-editor-toolbar-tab-selection-bar")),c.classList.add("smart-visibility-hidden"),e&&e.hasAttribute("checked")?(n.setAttribute("toolbar-tab-selected",""),c.style.left=e.offsetLeft+"px",c.style.width=e.offsetWidth+"px",i.contains(c)||i.appendChild(c),t._setToolbarItemGroups(),requestAnimationFrame(function(){return c.classList.remove("smart-visibility-hidden")})):n.removeAttribute("toolbar-tab-selected")}}],[{key:"properties",get:function(){return{autoLoad:{value:!1,type:"boolean"},autoSave:{value:!1,type:"boolean"},autoSaveInterval:{value:1e3,type:"number"},charCountFormatFunction:{value:null,type:"function?"},contentFiltering:{value:{attributes:{value:[],type:"array"},attributeFilterMode:{allowedValues:["blackList","whiteList"],value:"blackList",type:"string"},tags:{value:[],type:"array"},tagFilterMode:{allowedValues:["blackList","whiteList"],value:"blackList",type:"string"},styleAttributes:{value:[],type:"array"},styleAttributeFilterMode:{allowedValues:["blackList","whiteList"],value:"blackList",type:"string"}},type:"object"},contextMenu:{allowedValues:["default","browser","none"],value:"default",type:"string"},contextMenuDataSource:{value:null,type:"any",reflectToAttribute:!1},dataExport:{value:{style:{value:null,type:"object"},fileName:{value:"smartEditor",type:"string?"},pageOrientation:{value:"portrait",type:"string"}},type:"object"},disableEditing:{value:!1,type:"boolean"},disableSearchBar:{value:!1,type:"boolean"},editMode:{allowedValues:["html","markdown"],value:"html",type:"string"},enableHtmlEncode:{value:!1,type:"boolean"},enableTabKey:{value:!1,type:"boolean"},findAndReplaceTimeout:{value:50,type:"number"},hideToolbar:{value:!1,type:"boolean"},hideInlineToolbar:{value:!1,type:"boolean"},imageFormat:{allowedValues:["blob","base64"],value:"base64",type:"string"},innerHTML:{type:"string",validator:"_sanitize",reflectToAttribute:!1},inlineToolbarOffset:{value:[0,-5],type:"array"},iframeSettings:{value:{attributes:{value:null,type:"object?"},enabled:{value:!1,type:"boolean"},resources:{value:null,type:"object?"}},type:"object"},maxCharCount:{value:null,type:"number?"},messages:{extend:!0,value:{en:{invalidValue:"{{elementType}}: Invalid {{property}} value. {{property}} should be of type {{typeOne}} or {{typeTwo}}.",incorrectArgument:"{{elementType}}: Incorrect argument {{argumentName}} in method {{methodName}}.",permissionsRequired:"{{elementType}}: Permissions are required for the following action {{actionName}}.",timeout:"{{elementType}}
1: The import request has timed out.",importError:"{{elementType}}: The import request errored with the following status: {{status}}.",exportError:"{{elementType}}: The Export request errored with the following status: {{status}}.",ok:"Ok",cancel:"Cancel",alignLeft:"Align Left",alignCenter:"Align Center",alignRight:"Align Right",alignJustify:"Align Justify",segoeUi:"Segoe UI",arial:"Arial",georgia:"Georgia",impact:"Impact",tahoma:"Tahoma",timesNewRoman:"Times New Roman",verdana:"Verdana",p:"Paragraph",pre:"Code",code:"Code",blockquote:"Quotation",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",bold:"Bold",italic:"Italic",underline:"Underline",strikethrough:"Strikethrough",orderedlist:"Ordered List",unorderedlist:"Unordered List",subscript:"Subscript",superscript:"Superscript",alignment:"Alignments",fontname:"Font Name",fontsize:"Font Size",formats:"Formats",backgroundcolor:"Background Color",fontcolor:"Font Color",redo:"Redo",undo:"Undo",indent:"Indent",outdent:"Outdent",createlink:"Hyperlink",hyperlink:"Hyperlink",editlink:"Hyperlink",removelink:"Remove link",openlink:"Open link",image:"Image",video:"Video",table:"Table",lowercase:"Lower Case",uppercase:"Upper Case",print:" Print",cut:" Cut",copy:" Copy",paste:" Paste",clearformat:"Clear Format",fullscreen:"Full Screen",restore:"Restore Screen",sourcecode:"Source Code",preview:"Preview",splitmode:"Split Editor",address:"Web Address",text:"Display Text",addressPlaceholder:"http://example.com",textPlaceholder:"Enter Text",targetPlaceholder:"Select Target",titlePlaceholder:"Enter a Title",urlPlaceholder:"http://example.com/image.png",srcPlaceholder:"https://www.youtube.com/embed/video_link",thumbnail:"Or provide a URL as a video thumbnail",thumbnailPlaceholder:"https://www.link-to-thumbnail.jpg",videoUrl:"Video URL",videoUrlPlaceholder:"https://www.youtube.com/video_link",captionPlaceholder:"Caption",altPlaceholder:"Alternative Text",widthPlaceholder:"auto",heightPlaceholder:"auto",target:"Open Link in",linkBlankDescr:"New Window",linkSelfDescr:"Same Window",linkParentDescr:"Parent Frame",linkTopDescr:"Full Body of the Window",linkCustomDescr:"Custom Frame Name",title:"Title",url:"Or provide the URL to an image",src:"Or provide the URL to an embed video",width:"Width",height:"Height",alt:"Alternative Text",caption:"Caption",display:"Display",displayPlaceholder:"Display",displayBlock:"Block",displayInline:"Inline",draggable:"Enable Dragging",resizable:"Enable Resizing",browse:"Browse",connectionError:"{{elementType}}: File Upload requires connection to the server.",wrongItemIndex:"{{elementType}}: There is no file with such an index in the list of uploaded files.",tooLongFileName:"{{elementType}}: File name is too long.",totalFiles:"Total files: ",cancelFile:"Cancel File",dashedborders:"Dashed Borders",altrows:"Alternate Rows",insertRowBefore:"Insert Row Before",insertRowAfter:"Insert Row After",deleteRow:"Delete Row",insertColumnLeft:"Insert Column Left",insertColumnRight:"Insert Column Right",deleteColumn:"Delete Column",alignTop:"Align Top",alignMiddle:"Align Middle",alignBottom:"Align Bottom",delete:"Delete",tablerows:"Table Rows",tablecolumns:"Table Columns",tablevalign:"Table Cell Vertical Align",tablestyle:"Table Style",tableheader:"Table Header",buttonLabel:"Custom Table",pasteLabel:"Choose the paste format action:",cols:"Columns",rows:"Rows",alphabet:"abcdefghijklmnopqrstuvwxyz",header:"Header",column:"Column",plainText:"Plain Text",keepFormat:"Keep Format",cleanFormat:"Clean Format",roleDescription:"Text Editor",iframeTitle:"Editor Content is Encloused in it's own DOM inside an iFrame",toolbarButtonAriaLabel:"Toolbar Toggle Button",primaryToolbarAriaLabel:"Primary Toolbar",secondaryToolbarAriaLabel:"Secondary Toolbar",inputAriaLabel:"Enter Text",homeTab:"Home",viewTab:"View",insertTab:"Insert",layoutTab:"Layout",undoGroup:"Undo",clipboardGroup:"Clipboard",fontGroup:"Font",paragraphGroup:"Paragraph",editingGroup:"Editing",tableGroup:"Tables",imageGroup:"Images",videoGroup:"Videos",linkGroup:"Links",viewsGroup:"Views",deleteGroup:"Delete",findandreplace:"Find and Replace",requiredMessage:"The content of the Editor cannot be empty",tableProperties:"Table Properties",imageProperties:"Image Properties",videoProperties:"Video Properties",linkProperties:"Link Properties",selectAll:"Select All",deleteTable:"Delete Table",deleteImage:"Delete Image",deleteVideo:"Delete Video",createLink:"Create Link",deleteLink:"Delete Link",copyImage:"Copy",cutImage:"Cut",copyVideo:"Copy",cutVideo:"Cut",find:"Find",findPlaceholder:"",replace:"Replace",replaceWith:"Replace With",replaceAll:"Replace All",replacePlaceholder:"",results:"Results",resultsPlaceholder:"No match",matchCase:"Match Case",searchPlaceholder:"Search..."}}},name:{value:null,type:"string?"},pasteFormat:{allowedValues:["prompt","plainText","keepFormat","cleanFormat"],value:"keepFormat",type:"string"},placeholder:{value:"",type:"string"},removeStylesOnClearFormat:{value:!1,type:"boolean"},required:{value:!1,type:"boolean"},sanitized:{value:!1,type:"boolean"},showCharCount:{value:!1,type:"boolean"},splitModeRefreshTimeout:{value:100,type:"number"},toolbarItems:{value:["bold","italic","underline","|","formats","alignment","orderedList","unorderedList","|","hyperlink","image","video","|","sourceCode","undo","redo"],reflectToAttribute:!1,type:"array"},toolbarMode:{allowedValues:["menu","singleLineRibbon"],value:"menu",type:"string"},toolbarRibbonConfig:{value:[{name:"homeTab",groups:[{name:"undoGroup",items:["undo","redo"]},{name:"clipboardGroup",items:["cut","copy","paste"]},{name:"fontGroup",items:["fontName","fontSize","backgroundColor","fontColor","clearFormat","formats","bold","italic","underline","strikethrough","superscript","subscript"]},{name:"paragraphGroup",items:["orderedList","unorderedList","indent","outdent","alignment"]},{name:"editingGroup",items:["findAndReplace"]}]},{name:"insertTab",groups:[{name:"tableGroup",items:["table"]},{name:"imageGroup",items:["image"]},{name:"videoGroup",items:["video"]},{name:"linkGroup",items:["createLink","removeLink"]}]},{name:"viewTab",groups:[{name:"viewsGroup",items:["fullScreen","sourceCode","splitMode"]}]},{name:"layoutTab",hidden:!0,groups:[{name:"deleteGroup",items:["delete"]},{name:"tableGroup",items:["table","tableHeader","tableRows","tableColumns","tableVAlign","tableStyle",""]},{name:"imageGroup",items:["image","caption"]},{name:"videoGroup",items:["video","caption"]}]}],type:"array"},toolbarViewMode:{allowedValues:["toggle","multiRow","scroll"],value:"toggle",type:"string"},toolbarSticky:{value:!1,type:"boolean"},value:{value:"",type:"string",validator:"_sanitize",reflectToAttribute:!1},windowCustomizationFunction:{value:null,reflectToAttribute:!1,type:"function?"}}}},{key:"listeners",get:function(){return{"document.down":"_documentDownHandler","document.move":"_documentMoveHandler","document.up":"_documentUpHandler","document.dragstart":"_dragStartHandler","document.selectstart":"_selectStartHandler","document.selectionchange":"_selectionChangeHandler","container.dragend":"_dragEndHandler","container.drop":"_dropHandler","container.change":"_changeHandler","container.beforeinput":"_beforeInputHandler","container.input":"_afterInputHandler","contentContainer.contextmenu":"_contextMenuHandler","contentContainer.keydown":"_editableElementKeyDownHandler","contentContainer.keyup":"_updateOnInputChange","contentContainer.paste":"_updateOnInputChange","input.focus":"_editableElementFocusHandler","input.blur":"_editableElementBlurHandler","input.change":"_inputChangeEvent","editableElement.focus":"_editableElementFocusHandler","editableElement.blur":"_editableElementBlurHandler","editableElement.wheel":"_editableElementWheelHandler","editableElement.move":"_editableElementMoveHandler",touchmove:"_touchmoveHandler",resize:"_resizeHandler"}}},{key:"requires",get:function(){return{"Smart.Button":"smart.button.js","Smart.Window":"smart.window.js","Smart.Tooltip":"smart.tooltip.js"}}},{key:"styleUrls",get:function(){return["smart.editor.css"]}}]),n}()),Smart("smart-table-picker",function(e){_inherits(n,Smart.BaseElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="container" role="presentation">\n <div id="tableGrid" class="smart-table-picker-grid" role="presentation"></div>\n <div class="smart-table-picker-separator" role="separator"></div>\n <smart-button id="tableButton" class="smart-table-picker-button" right-to-left="[[rightToLeft]]"></smart-button>\n </div>'}}
1,{key:"propertyChangedHandler",value:function(e,t,i){var r=this;switch(e){case"value":r._selectCell(i,t,!0);break;case"rows":case"columns":r._createTableGrid();break;case"messages":r._setTableButton();break;default:_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i)}}},{key:"render",value:function(){var e=this;e._isMobile=Smart.Utilities.Core.isMobile,e._createTableGrid(),e._setTableButton(),e._setAria(),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"_setAria",value:function(){this.setAttribute("role","grid")}},{key:"_createTableGrid",value:function(){for(var e=this,t=e.$.tableGrid,n=e.columns,i=e.rows,r=t.children,a=document.createDocumentFragment(),o=r.length;o>i;){var s=r[0];if(!s)break;s.remove(),o--}for(var l=o,c=i;l<c;l+=1){var u=document.createElement("div");u.setAttribute("role","row"),a.appendChild(u)}a.children.length&&t.appendChild(a);for(var d=0,h=i;d<h;d+=1){for(var f=r[d],p=f.children,m=p.length;m>n&&p[0];)p[0].remove(),m--;for(var g=m,v=n;g<v;g+=1){var y=document.createElement("span");y.setAttribute("role","gridcell"),y.classList.add("smart-table-picker-cell"),f.appendChild(y)}}e._selectCell(e.value)}},{key:"_cellOver",value:function(e){var t=this,n=e.target,i=[];if(t.$.tableGrid.contains(n)){var r=n.closest(".smart-table-picker-cell");if(r){var a=r.parentElement,o=Array.from(a.children);i[0]=Math.max(0,Array.from(t.$.tableGrid.children).indexOf(a)+1),i[1]=Math.max(0,o.indexOf(r)+1),t._selectCell(i,t.value,"click"===e.type)}}else t._selectCell(t.value)}},{key:"_cellLeave",value:function(){this._selectCell(this.value)}},{key:"_selectCell",value:function(e,t,n){var i=this,r=i.$.tableGrid,a=Array.from(r.children),o=0,s=0;e&&(o=e[0]||0,s=e[1]||0);for(var l=0,c=a.length;l<c;l+=1){var u=a[l].children;if(o<l+1)for(var d=0,h=u.length;d<h;d+=1)u[d].removeAttribute("selected");else for(var f=0,p=u.length;f<p;f+=1)s>=f+1?u[f].setAttribute("selected",""):u[f].removeAttribute("selected")}r.setAttribute("value",o+"x"+s),n&&(void 0===t&&(t=i.value),i.set("value",[o,s]),t[0]===o&&t[1]===s||i.$.fireEvent("change",{value:e,oldValue:t}))}},{key:"_setTableButton",value:function(){this.$.tableButton.innerHTML=this.localize("buttonLabel")}}],[{key:"properties",get:function(){return{columns:{value:10,type:"number"},messages:{extend:!0,value:{en:{buttonLabel:"Insert Table"}}},rows:{value:3,type:"number"},value:{value:[],type:"array"}}}},{key:"listeners",get:function(){return{"tableGrid.mouseover":"_cellOver","tableGrid.mouseleave":"_cellLeave","tableGrid.click":"_cellOver"}}}]),n}())},6321:function(){!function(){var e="11.0.0",t=[],n="Smart";if(window[n]&&window[n].Version){if(window[n].Version===e)return;if(window[n].Version!==e)n+=e;else for(var i=2;window[n];)n+=i.toString(),i++}var r=navigator.userAgent.indexOf("Edge")>-1&&navigator.appVersion.indexOf("Edge")>-1;document.elementsFromPoint||(document.elementsFromPoint=document.msElementsFromPoint);var a=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isBoolean",value:function(e){return"boolean"==typeof e}},{key:"isFunction",value:function(e){return!!(e&&e.constructor&&e.call&&e.apply)}},{key:"isArray",value:function(e){return Array.isArray(e)}},{key:"isObject",value:function(e){return e&&("object"==typeof e||this.isFunction(e))||!1}},{key:"isDate",value:function(e){return e instanceof Date}},{key:"isString",value:function(e){return"string"==typeof e}},{key:"isNumber",value:function(e){return"number"==typeof e}},{key:"getType",value:function(e){var t=this,n=["Boolean","Number","String","Function","Array","Date","Object"].find(function(n){if(t["is"+n](e))return n});return n?n.toLowerCase():void 0}}]),e}(),o=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"animate",value:function(e,t,i,r){var a=e;if(a&&a instanceof HTMLElement!=0){if(0===a.getElementsByClassName("smart-ripple").length){var o=document.createElement("span");o.classList.add("smart-ripple"),o.setAttribute("role","presentation");var s=!0,l=null;if(window[n].EnableShadowDOM&&a.enableShadowDOM&&!0!==a.isInShadowDOM){for(var c=0;c<a.shadowRoot.host.shadowRoot.children.length;c++)"link"!==a.shadowRoot.host.shadowRoot.children[c].tagName.toLowerCase()&&(l=a.shadowRoot.host.shadowRoot.children[c]);a.shadowRoot.host.shadowRoot.querySelector(".smart-ripple")&&(s=!1)}else l=a.firstElementChild;s&&(l&&!l.noRipple&&l.offsetHeight>0?l.appendChild(o):a.appendChild(o))}var u=null;if(u=window[n].EnableShadowDOM&&a.shadowRoot?a.shadowRoot.host.shadowRoot.querySelector(".smart-ripple"):a.getElementsByClassName("smart-ripple")[0]){u.innerHTML="",u.classList.remove("smart-animate"),u.style.height=u.style.width=Math.max(a.offsetHeight,a.offsetWidth)+"px";var d=window.getComputedStyle(u.parentElement),h=parseInt(d.borderLeftWidth)||0,f=parseInt(d.borderTopWidth)||0,p=a.getBoundingClientRect(),m=t-(p.left+window.pageXOffset)-u.offsetWidth/2-h,g=i-(p.top+window.pageYOffset)-u.offsetHeight/2-f;u.style.left=m+"px",u.style.top=g+"px",u.classList.add("smart-animate"),u.addEventListener("animationend",function e(){u.parentElement&&u.parentElement.removeChild(u),r&&r(),u.removeEventListener("animationend",e),u.removeEventListener("animationcancel",e)}),u.addEventListener("animationcancel",function e(){u.parentElement&&u.parentElement.removeChild(u),r&&r(),u.removeEventListener("animationcancel",e),u.removeEventListener("animationend",e)})}}}}]),e}(),s=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"easeInQuad",value:function(e,t,n,i){return n*(e/=i)*e+t}},{key:"easeOutQuad",value:function(e,t,n,i){return-n*(e/=i)*(e-2)+t}},{key:"easeInOutQuad",value:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}},{key:"easeInCubic",value:function(e,t,n,i){return n*(e/=i)*e*e+t}},{key:"easeOutCubic",value:function(e,t,n,i){return n*((e=e/i-1)*e*e+1)+t}},{key:"easeInOutCubic",value:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e+t:n/2*((e-=2)*e*e+2)+t}},{key:"easeInQuart",value:function(e,t,n,i){return n*(e/=i)*e*e*e+t}},{key:"easeOutQuart",value:function(e,t,n,i){return-n*((e=e/i-1)*e*e*e-1)+t}},{key:"easeInOutQuart",value:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e*e+t:-n/2*((e-=2)*e*e*e-2)+t}},{key:"easeInQuint",value:function(e,t,n,i){return n*(e/=i)*e*e*e*e+t}},{key:"easeOutQuint",value:function(e,t,n,i){return n*((e=e/i-1)*e*e*e*e+1)+t}},{key:"easeInOutQuint",value:function(e,t,n,i){return(e/=i/2)<1?n/2*e*e*e*e*e+t:n/2*((e-=2)*e*e*e*e+2)+t}},{key:"easeInSine",value:function(e,t,n,i){return-n*Math.cos(e/i*(Math.PI/2))+n+t}},{key:"easeOutSine",value:function(e,t,n,i){return n*Math.sin(e/i*(Math.PI/2))+t}},{key:"easeInOutSine",value:function(e,t,n,i){return-n/2*(Math.cos(Math.PI*e/i)-1)+t}},{key:"easeInExpo",value:function(e,t,n,i){return 0===e?t:n*Math.pow(2,10*(e/i-1))+t}},{key:"easeOutExpo",value:function(e,t,n,i){return e===i?t+n:n*(1-Math.pow(2,-10*e/i))+t}},{key:"easeInOutExpo",value:function(e,t,n,i){return 0===e?t:e===i?t+n:(e/=i/2)<1?n/2*Math.pow(2,10*(e-1))+t:n/2*(2-Math.pow(2,-10*--e))+t}},{key:"easeInCirc",value:function(e,t,n,i){return-n*(Math.sqrt(1-(e/=i)*e)-1)+t}},{key:"easeOutCirc",value:function(e,t,n,i){return n*Math.sqrt(1-(e=e/i-1)*e)+t}},{key:"easeInOutCirc",value:function(e,t,n,i){return(e/=i/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+t:n/2*(Math.sqrt(1-(e-=2)*e)+1)+t}},{key:"easeInElastic",value:function(e,t,n,i){var r=1.70158,a=0,o=n;return 0===e?t:1==(e/=i)?t+n:(a||(a=.3*i),o<Math.abs(n)?(o=n,r=a/4):r=a/(2*Math.PI)*Math.asin(n/o),-o*Math.pow(2,10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/a)+t)}},{key:"easeOutElastic",value:function(e,t,n,i){var r=1.70158,a=0,o=n;return 0===e?t:1==(e/=i)?t+n:(a||(a=.3*i),o<Math.abs(n)?(o=n,r=a/4):r=a/(2*Math.PI)*Math.asin(n/o),o*Math.pow(2,-10*e)*Math.sin((e*i-r)*(2*Math.PI)/a)+n+t)}},{key:"easeInOutElastic",value:function(e,t,n,i){var r=1.70158,a=0,o=n;return 0===e?t:2==(e/=i/2)?t+n:(a||(a=i*(.3*1.5)),o<Math.abs(n)?(o=n,r=a/4):r=a/(2*Math.PI)*Math.asin(n/o),e<1?o*Math.pow(2,10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/a)*-.5+t:o*Math.pow(2,-10*(e-=1))*Math.sin((e*i-r)*(2*Math.PI)/a)*.5+n+t)}},{key:"easeInBack",value:function(e,t,n,i,r){return void 0===r&&(r=1.70158),n*(e/=i)*e*((r+1)*e-r)+t}},{key:"easeOutBack",value:function(e,t,n,i,r){return void 0===r&&(r=1.70158),n*((e=e/i-1)*e*((r+1)*e+r)+1)+t}},{key:"easeInOutBack",value:function(e,t,n,i,r){return void 0===r&&(r=1.70158),(e/=i/2)<1?n/2*(e*e*((1+(r*=1.525))*e-r))+t:n/2*((e-=2)*e*((1+(r*=1.525))*e+r)+2)+t}},{key:"easeInBounce",value:function(e,t,n,i){return n-this.easeOutBounce(i-e,0,n,i)+t}},{key:"easeOutBounce",value:function(e,t,n,i){return(e/=i)<1/2.75?n*(7.5625*e*e)+t:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+t:n*(7.5625*(e-=2.625/2.75)*e+.984375)+t}},{key:"easeInOutBounce",value:function(e,t,n,i){return e<i/2?.5*this.easeInBounce(2*e,0,n,i)+t:.5*this.easeOutBounce(2*e-i,0,n,i)+.5*n+t}}]),e}(),l=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"isMobile",get:function(){return/(iphone|ipod|ipad|android|iemobile|blackberry|bada)/.test(window.navigator.userAgent.toLowerCase())||["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}},{key:"Browser",get:function(){var e,t=function(t){var n=t.indexOf(e);if(-1!==n){var i=t.indexOf("rv:");return"Trident"===e&&-1!==i?parseFloat(t.substring(i+3)):parseFloat(t.substring(n+e.length+1))}},n={};return n[function(){for(var t=[{string:navigator.userAgent,subString:"Edge",identity:"Edge"},{string:navigator.userAgent,subString:"MSIE",identity:"IE"},{string:navigator.userAgent,subString:"Trident",identity:"IE"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Opera",identity:"Opera"},{string:navigator.userAgent,subString:"OPR",identity:"Opera"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"Safari",identity:"Safari"}],n=0;n<t.length;n++)if(e=t[n].subString,-1!==t[n].string.indexOf(t[n].subString))return t[n].identity;return"Other"}()]=!0,n.version=t(navigator.userAgent)||t(navigator.appVersion)||"Unknown",n}},{key:"toCamelCase",value:function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}},{key:"toDash",value:function(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}},{key:"unescapeHTML",value:function(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}},{key:"escapeHTML",value:function(e){var t={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(e).replace(/[&<>"'`=\/]/g,function(e){return t[e]})}},{key:"sanitizeHTML",value:function(e){var t=this;if(e&&(e.indexOf("onclick")>=0||e.indexOf("onload")>=0||e.indexOf("onerror")>=0))return this.escapeHTML(e);var n=new RegExp("<s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)[^>]*>(.*?)<s*/s*(applet|audio|base|bgsound|embed|form|iframe|isindex|keygen|layout|link|meta|object|script|svg|style|template|video)>","ig");return String(e).replace(n,function(e){return t.escapeHTML(e)})}},{key:"createGUID",value:function(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}},{key:"getScriptLocation",value:function(){return"./"!==window[n].BaseUrl?window[n].BaseUrl:function(){if(document.currentScript){var e=document.currentScript.src,t=e.lastIndexOf("/");return e=e.substring(0,t)}var n=new Error,i="(",r=")";if(Smart.Utilities.Core.Browser.Safari&&(i="@",r="\n"),n.fileName)return n.fileName.replace("/smart.element.js","");var a=n.stack.split(i);return(a=(a=(a=a[1]).split(r)[0]).split(":")).splice(-2,2),(a=a.join(":")).replace("/smart.element.js","")}()}},{key:"CSSVariablesSupport",value:function(){return window.CSS&&window.CSS.supports&&window.CSS.supports("(--fake-var: 0)")}},{key:"assign",value:function(e,t){var n=this,i=function(e){return e&&"object"==typeof e&&!Array.isArray(e)&&null!==e},r=Object.assign({},e);return i(e)&&i(t)&&Object.keys(t).forEach(function(a){i(t[a])&&a in e?r[a]=n.assign(e[a],t[a]):Object.assign(r,_defineProperty({},a,t[a]))}),r}},{key:"html",value:function(e,t){var n="",i=e.childNodes;if(!t){for(var r,a=0,o=i.length;a<o&&(r=i[a]);a++)if(r instanceof HTMLElement||r.tagName&&["strong"].indexOf(r.tagName.toLowerCase())>=0){for(var s,l=r.tagName.toLowerCase(),c=r.attributes,u="<"+l,d=0;s=c[d];d++)u+=" "+s.name+'="'+s.value.replace(/[&\u00A0"]/g,y.Core.escapeHTML)+'"';u+=">",["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"][l]&&(n+=u),n=n+u+this.html(r)+"</"+l+">"}else{if(8===r.nodeType)continue;n+=r.textContent.replace(/[&\u00A0<>]/g,y.Core.escapeHTML)}return n}e.innerHTML=t.replace(/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,"<$1></$2>")}}]),e}(),c=[],u=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"watch",value:function(t){switch(t.nodeName.toLowerCase()){case"smart-grid":case"smart-kanban":case"smart-table":case"smart-pivot-table":case"smart-scheduler":case"smart-tabs":case"smart-card-view":case"smart-list-box":case"smart-combo-box":case"smart-drop-down-list":case"smart-calendar":case"smart-gauge":case"smart-numeric-text-box":case"smart-menu":case"smart-tree":c.push(t);break;default:return}e.start()}},{key:"start",value:function(){e.isStarted||(e.isStarted=!0,e.interval&&clearInterval(e.interval),0===c.length||document.hidden?e.isStarted=!1:e.interval=setInterval(function(){e.observe()},100))}},{key:"stop",value:function(){e.isStarted=!1,e.interval&&clearInterval(e.interval)}},{key:"observeElement",value:function(t){var n=t;if("test"===window.Smart.Mode||document.hidden)e.interval&&clearInterval(e.interval);else{var i=t._computedStyle||"resize"!==n.hasStyleObserver?document.defaultView.getComputedStyle(n,null):{},r=!0,a="resize"!==n.hasStyleObserver?["paddingLeft","paddingRight","paddingTop","paddingBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth","display","visibility","font-size","font-family","font-style","font-weight","max-height","min-height","max-width","min-width","overflow","overflow-x","overflow-y"]:[];if(t.styleProperties&&(a=a.concat(t.styleProperties)),t.observableStyleProperties&&(a=t.observableStyleProperties),n._styleInfo){if(t.isHidden||"none"!==i.display&&(0!==t.offsetWidth&&0!==t.offsetHeight||(t.isHidden=!0)),t.isHidden){if(t.visibilityChangedH
1andler(),t.isHidden)return;r=!1}for(var o=[],s=0;s<a.length;s++){var l=a[s],c=l.startsWith("--")?i.getPropertyValue(l):i[l];n._styleInfo[l]!==c&&(o[l]={oldValue:n._styleInfo[l],value:c},o.length++),n._styleInfo[l]=c}o.length>0&&(n.$.fireEvent("styleChanged",{styleProperties:o},{bubbles:!1,cancelable:!0}),o.display&&r&&n.$.fireEvent("resize",n,{bubbles:!1,cancelable:!0}))}else{n._styleInfo=[];for(var u=0;u<a.length;u++){var d=a[u],h=d.startsWith("--")?i.getPropertyValue(d):i[d];n._styleInfo[d]=h}}}}},{key:"observe",value:function(){for(var e=0;e<c.length;e++)this.observeElement(c[e])}},{key:"unwatch",value:function(t){e.stop();var n=c.indexOf(t);-1!==n&&c.splice(n,1),e.start()}}]),e}(),d=[],h=[],f=["resize","down","up","move","tap","taphold","swipeleft","swiperight","swipetop","swipebottom"],p=function(){function e(t){_classCallCheck(this,e);var n=this;n.target=t,n.$target=new g(t),n.$document=t.$document?t.$document:new g(document),n.id=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase();var i={handlers:{},boundEventTypes:[],listen:n.listen.bind(n),unlisten:n.unlisten.bind(n)};return n.tapHoldDelay=750,n.swipeMin=10,n.swipeMax=5e3,n.swipeDelay=1e3,n.tapHoldDelay=750,n.inputEventProperties=["clientX","clientY","pageX","pageY","screenX","screenY"],f.forEach(function(e){i[e]=function(t){i.handlers[e]=t},n[e]=function(e){if(!i.handlers[e.type]){if(("mousemove"===e.type||"pointermove"===e.type||"touchmove"===e.type)&&i.handlers.move){var t=n.createEvent(e,"move");i.handlers.move(t)}return!0}return i.handlers[e.type](e)}}),n.listen(),n.handlers=i.handlers,i}return _createClass(e,[{key:"listen",value:function(e){var t=this;if("resize"===e&&t.target!==document&&t.target!==window&&!1!==t.target.hasResizeObserver)if(Smart.Utilities.Core.Browser.Firefox){if(!t.target.resizeObserver){var i,r,a,o=!1,s=t.target.offsetWidth,l=t.target.offsetHeight,c=new ResizeObserver(function(){if(o){var e=new CustomEvent("resize",{bubbles:!1,cancelable:!0});r=t.target.offsetWidth,a=t.target.offsetHeight,i=r!==s||a!==l,t.target.requiresLayout&&(i=!0),i&&(t.resize(e),t.target.requiresLayout=!1)}else o=!0});c.observe(t.target),t.target.resizeObserver=c}}else if(!t.target.resizeTrigger){var u=document.createElement("div");u.className="smart-resize-trigger-container",u.innerHTML='<div class="smart-resize-trigger-container"><div class="smart-resize-trigger"></div></div><div class="smart-resize-trigger-container"><div class="smart-resize-trigger-shrink"></div></div>',u.setAttribute("aria-hidden",!0),window[n].EnableShadowDOM&&t.target.shadowRoot?t.target.shadowRoot.appendChild(u):t.target.appendChild(u),t.target.resizeTrigger=u;var d,h,f,p,m=u.childNodes[0],g=m.childNodes[0],v=u.childNodes[1],y=function(){g.style.width="100000px",g.style.height="100000px",m.scrollLeft=1e5,m.scrollTop=1e5,v.scrollLeft=1e5,v.scrollTop=1e5},b=t.target.offsetWidth,_=t.target.offsetHeight;if(0===b||0===_){t.target.addEventListener("resize",function e(){y(),t.target.removeEventListener("resize",e)}),y()}else y();t.target.resizeHandler=function(){h||(h=requestAnimationFrame(function(){if(h=0,f=t.target.offsetWidth,p=t.target.offsetHeight,d=f!==b||p!==_,t.target.requiresLayout&&(d=!0),d){b=f,_=p;var e=new CustomEvent("resize",{bubbles:!1,cancelable:!0});t.resize(e),t.target.requiresLayout=!1}})),y()},m.addEventListener("scroll",t.target.resizeHandler),v.addEventListener("scroll",t.target.resizeHandler)}t.isListening||(t.isListening=!0,t.isPressed=!1,t.isReleased=!1,t.isInBounds=!1,window.PointerEvent?(t.$target.listen("pointerdown.inputEvents"+t.id,t.pointerDown.bind(t)),t.$target.listen("pointerup.inputEvents"+t.id,t.pointerUp.bind(t)),t.$target.listen("pointermove.inputEvents"+t.id,t.pointerMove.bind(t)),t.$target.listen("pointercancel.inputEvents"+t.id,t.pointerCancel.bind(t))):("ontouchstart"in window&&(t.$target.listen("touchmove.inputEvents"+t.id,t.touchMove.bind(t)),t.$target.listen("touchstart.inputEvents"+t.id,t.touchStart.bind(t)),t.$target.listen("touchend.inputEvents"+t.id,t.touchEnd.bind(t)),t.$target.listen("touchcancel.inputEvents"+t.id,t.touchCancel.bind(t))),t.$target.listen("mousedown.inputEvents"+t.id,t.mouseDown.bind(t)),t.$target.listen("mouseup.inputEvents"+t.id,t.mouseUp.bind(t)),t.$target.listen("mousemove.inputEvents"+t.id,t.mouseMove.bind(t)),t.$target.listen("mouseleave.inputEvents"+t.id,t.mouseLeave.bind(t))),t.target._handleDocumentUp||(t.target._handleDocumentUp=t.handleDocumentUp.bind(t),t.target._handleDocumentUpId=t.
1id,t.$document.listen("mouseup.inputEvents"+t.target._handleDocumentUpId,t.target._handleDocumentUp)))}},{key:"unlisten",value:function(e){var t=this;if(t.isListening=!1,window.PointerEvent?(t.$target.unlisten("pointerdown.inputEvents"+t.id),t.$target.unlisten("pointerup.inputEvents"+t.id),t.$target.unlisten("pointermove.inputEvents"+t.id),t.$target.unlisten("pointercancel.inputEvents"+t.id)):("ontouchstart"in window&&(t.$target.unlisten("touchstart.inputEvents"+t.id),t.$target.unlisten("touchmove.inputEvents"+t.id),t.$target.unlisten("touchend.inputEvents"+t.id),t.$target.unlisten("touchcancel.inputEvents"+t.id)),t.$target.unlisten("mousedown.inputEvents"+t.id),t.$target.unlisten("mouseup.inputEvents"+t.id),t.$target.unlisten("mousemove.inputEvents"+t.id),t.$target.unlisten("mouseleave.inputEvents"+t.id)),t.target._handleDocumentUp&&(t.$document.unlisten("mouseup.inputEvents"+t.target._handleDocumentUpId,t.target._handleDocumentUp),delete t.target._handleDocumentUp,delete t.target._handleDocumentUpId),"resize"===e)if(Smart.Utilities.Core.Browser.Firefox)t.target.resizeObserver&&(t.target.resizeObserver.unobserve(t.target),delete t.target.resizeObserver);else if(t.target.resizeTrigger){var n=t.target.resizeTrigger,i=n.childNodes[1];n.childNodes[0].removeEventListener("scroll",t.target.resizeHandler),i.removeEventListener("scroll",t.target.resizeHandler),t.target.resizeHandler=null,n.parentNode.removeChild(n),delete t.target.resizeTrigger}}},{key:"handleDocumentUp",value:function(e){var t=this;t.isPressed=!1,t.isReleased=!1,t.resetSwipe(e)}},{key:"createEvent",value:function(e,t){var n=this,i=e.touches,r=e.changedTouches,a=i&&i.length?i[0]:r&&r.length?r[0]:void 0,o=new CustomEvent(t,{bubbles:!0,cancelable:!0,composed:void 0!==n.$target.element.getRootNode().host});if(o.originalEvent=e,a){for(var s=0;s<n.inputEventProperties.length;s++){var l=n.inputEventProperties[s];o[l]=a[l]}return o}for(var c in e)c in o||(o[c]=e[c]);return o}},{key:"fireTap",value:function(e){if(clearTimeout(this.tapHoldTimeout),!this.tapHoldFired&&this.isInBounds){var t=this.createEvent(e,"tap");this.tap(t)}}},{key:"initTap",value:function(e){var t=this;t.isInBounds=!0,t.tapHoldFired=!1,t.tapHoldTimeout=setTimeout(function(){if(t.isInBounds){t.tapHoldFired=!0;var n=t.createEvent(e,"taphold");t.taphold(n)}},t.tapHoldDelay)}},{key:"pointerDown",value:function(e){return this.handleDown(e)}},{key:"mouseDown",value:function(e){var t=this;if(!(t.isPressed||t.touchStartTime&&new Date-t.touchStartTime<500))return t.handleDown(e)}},{key:"touchStart",value:function(e){var t=this;return t.touchStartTime=new Date,t.isTouchMoved=!0,t.handleDown(e)}},{key:"mouseUp",value:function(e){var t=this;if(!(t.isReleased||t.touchEndTime&&new Date-t.touchEndTime<500))return t.handleUp(e)}},{key:"handleDown",value:function(e){var t=this;t.isReleased=!1,t.isPressed=!0;var n=t.createEvent(e,"down");return(t.handlers.tap||t.handlers.taphold)&&t.initTap(n),(t.handlers.swipeleft||t.handlers.swiperight||t.handlers.swipetop||t.handlers.swipebottom)&&t.initSwipe(n),t.down(n)}},{key:"handleUp",value:function(e){var t=this;t.isReleased=!0,t.isPressed=!1;var n=t.createEvent(e,"up"),i=t.up(n);return(t.handlers.tap||t.handlers.taphold)&&t.fireTap(n),t.resetSwipe(n),i}},{key:"handleMove",value:function(e){var t=this,n=t.move(e);return t.isPressed&&(t._maxSwipeVerticalDistance=Math.max(t._maxSwipeVerticalDistance,Math.abs(t._startY-e.pageY)),t._maxSwipeHorizontalDistance=Math.max(t._maxSwipeHorizontalDistance,Math.abs(t._startX-e.pageX)),n=t.handleSwipeEvents(e)),n}},{key:"touchEnd",value:function(e){return this.touchEndTime=new Date,this.handleUp(e)}},{key:"pointerUp",value:function(e){return this.handleUp(e)}},{key:"pointerCancel",value:function(e){this.pointerUp(e)}},{key:"touchCancel",value:function(e){this.touchEnd(e)}},{key:"mouseLeave",value:function(){this.isInBounds=!1}},{key:"mouseMove",value:function(e){if(!this.isTouchMoved)return this.handleMove(e)}},{key:"pointerMove",value:function(e){return this.handleMove(e)}},{key:"touchMove",value:function(e){for(var t=this,n=e.touches,i=e.changedTouches,r=n&&n.length?n[0]:i&&i.length?i[0]:void 0,a=0;a<t.inputEventProperties.length;a++){var o=t.inputEventProperties[a];void 0===e[o]&&(e[o]=r[o])}return t.isTouchMoved=!0,t.handleMove(e)}},{key:"handleSwipeEvents",value:function(e){var t=this,n=!0;return(t.handlers.swipetop||t.handlers.swipebottom)&&(n=this.handleVerticalSwipeEvents(e)),!1===n||(t.handlers.swipeleft||t.handlers.swiperight)&&(n=this.handleHorizontalSwipeEvents(e)),n}},{key:"handleVerticalSwipeEvents",value:function(e){var t;return t=e.pageY-this._startY,this.swiped(e,t,"vertical")}},{key:"handleHorizontalSwipeEvents",value:function(e){var t;return t=e.pageX-this._startX,this.swiped(e,t,"horizontal")}},{key:"swiped",value:function(e,t,n){var i=this;if(n=n||0,Math.abs(t)>=i.swipeMin&&!i._swipeEvent&&!i._swipeLocked){var r=t<0?"swipeleft"
1:"swiperight";if("horizontal"===n?i._swipeEvent=i.createEvent(e,r):(r=t<0?"swipetop":"swipebottom",i._swipeEvent=i.createEvent(e,t<0?"swipetop":"swipebottom")),i[r]&&(i[r](this._swipeEvent),Math.abs(t)<=this.swipeMax))return e.stopImmediatePropagation(),!1}return!0}},{key:"resetSwipe",value:function(){this._swipeEvent=null,clearTimeout(this._swipeTimeout)}},{key:"initSwipe",value:function(e){var t=this;t._maxSwipeVerticalDistance=0,t._maxSwipeHorizontalDistance=0,t._startX=e.pageX,t._startY=e.pageY,t._swipeLocked=!1,t._swipeEvent=null,t._swipeTimeout=setTimeout(function(){t._swipeLocked=!0},t.swipeDelay)}}]),e}(),m=function(){function e(t,n,i){_classCallCheck(this,e);var r=this;r.container=t,r.horizontalScrollBar=n,r.verticalScrollBar=i,r.disableSwipeScroll=!1,r.listen()}return _createClass(e,[{key:"scrollWidth",get:function(){return this.horizontalScrollBar?this.horizontalScrollBar.max:-1},set:function(e){e<0&&(e=0),this.horizontalScrollBar&&(this.horizontalScrollBar.max=e)}},{key:"scrollHeight",get:function(){return this.verticalScrollBar?this.verticalScrollBar.max:-1},set:function(e){e<0&&(e=0),this.verticalScrollBar&&(this.verticalScrollBar.max=e)}},{key:"scrollLeft",get:function(){return this.horizontalScrollBar?this.horizontalScrollBar.value:-1},set:function(e){e<0&&(e=0),this.horizontalScrollBar&&(this.horizontalScrollBar.value=e)}},{key:"scrollTop",get:function(){return this.verticalScrollBar?this.verticalScrollBar.value:-1},set:function(e){e<0&&(e=0),this.verticalScrollBar&&(this.verticalScrollBar.value=e)}},{key:"vScrollBar",get:function(){return this.verticalScrollBar}},{key:"hScrollBar",get:function(){return this.horizontalScrollBar}},{key:"listen",value:function(){var e,t,n,i,r,a,o,s,c=this,u=l.isMobile,d=c.horizontalScrollBar,h=c.verticalScrollBar;c.inputEvents=new p(c.container);var f,m=function(e){return{amplitude:0,delta:0,initialValue:0,min:0,max:e.max,previousValue:0,pointerPosition:0,targetValue:0,scrollBar:e,value:0,velocity:0}},g=m(d),v=m(h),b=function(){var e=c.container.touchVelocityCoefficient||50;a=Date.now(),o=a-i,i=a;var t=function(t){t.delta=t.value-t.previousValue,t.previousValue=t.value,t.velocity=e*t.delta/(1+o)*.8+.2*t.velocity};t(v),t(g)},_=function(e){return s.value=e>s.max?s.max:e<s.min?s.min:e,s.scrollBar.value=s.value,e>s.max?"max":e<s.min?"min":"value"};function w(){var e,n;s.amplitude&&(c.container.$.fireEvent("kineticScroll"),e=Date.now()-i,(n=-s.amplitude*Math.exp(-e/500))>5||n<-5?(_(s.targetValue+n),cancelAnimationFrame(t),t=0,t=requestAnimationFrame(w)):_(s.targetValue))}c.inputEvents.down(function(t){if(u){var a=t.originalEvent.target,o=a&&a.closest?a.closest("smart-scroll-bar"):void 0;if(o!==c.horizontalScrollBar&&o!==c.verticalScrollBar){n=!0,e=!1;var s=function(e,t){e.amplitude=0,e.pointerPosition=t,e.previousValue=e.value,e.value=e.scrollBar.value,e.initialValue=e.value,e.max=e.scrollBar.max};s(v,t.clientY),s(g,t.clientX),i=Date.now(),clearInterval(r),r=setInterval(b,500)}}}),c.inputEvents.up(function(){if(!n)return!0;if(clearInterval(r),c.disableSwipeScroll)n=!1;else{var e=function(e){s=e,e.amplitude=.8*e.velocity,e.targetValue=Math.round(e.value+e.amplitude),i=Date.now(),cancelAnimationFrame(t),t=requestAnimationFrame(w),e.velocity=0};v.velocity>10||v.velocity<-10?e(v):(g.velocity>10||g.velocity<-10)&&e(g),n=!1}}),c.inputEvents.move(function(t){if(!n)return!0;if(!c.disableSwipeScroll&&(e&&(t.originalEvent.preventDefault(),t.originalEvent.stopPropagation()),g.visible=c.scrollWidth>0,v.visible=c.scrollHeight>0,n&&(g.visible||v.visible))){var i,r,a=c.container.touchScrollRatio,o=c.container;a&&("number"==typeof a?(i=-a,r=-a):"function"==typeof a&&(i=a(v.max,o.offsetHeight),r=a(g.max,o.offsetWidth))),v.ratio=i||-v.max/o.offsetHeight,v.delta=(t.clientY-v.pointerPosition)*v.ratio,g.ratio=r||-g.max/o.offsetWidth,g.delta=(t.clientX-g.pointerPosition)*g.ratio;var l="value",u=function(t,n,i){return t.delta>5||t.delta<-5?(s=t,"min"===(l=t.initialValue+t.delta>s.max?"max":t.initialValue+t.delta<s.min?"min":"value")&&0===t.initialValue||"max"===l&&t.initialValue===t.max||!t.visible||(c.container.$.fireEvent("kineticScroll"),_(t.initialValue+t.delta),b(),i.originalEvent.preventDefault(),i.originalEvent.stopPropagation(),e=!0,!1)):null},d=u(v,0,t);
1if(null!==d)return d;var h=u(g,0,t);return null!==h?h:void 0}}),c.scrollTo=function(e,n){var r=!1===n?g:v,a=!1;i||(i=Date.now()),f||(f=Date.now()),Math.abs(Date.now()-f)>375?i=Date.now():a=!0,f=Date.now(),r.value=r.scrollBar.value,r.delta=e-r.value,r.max=r.scrollBar.max,e<=r.min&&(e=r.min),e>=r.max&&(e=r.max),r.targetValue=e;var o=e,s=r.value;r.velocity=100*r.delta/(1+r.max),r.from=s;var l=function(e){return r.value=e>r.max?r.max:e<r.min?r.min:e,r.scrollBar.value=r.value,e>r.max?"max":e<r.min?"min":"value"};cancelAnimationFrame(t),t=requestAnimationFrame(function n(){var u,d=Date.now()-f,h=Math.min(1e3,Date.now()-i),p=r.velocity*Math.exp(h/175);if(a)(p<0&&r.value<=e||p>0&&r.value>=e)&&(p=0),(r.value+p<=r.min||r.value+p>=r.max)&&(p=0),p>.5||p<-.5?(l(r.value+p),cancelAnimationFrame(t),t=0,t=requestAnimationFrame(n)):l(r.targetValue);else{if(d>=175)return cancelAnimationFrame(t),c.container.$.fireEvent("kineticScroll"),void(t=0);u=y.Animation.Easings.easeInSine(d,s,o-s,175),l(u),cancelAnimationFrame(t),t=0,t=requestAnimationFrame(n)}})},c.inputEvents.listen()}},{key:"unlisten",value:function(){var e=this;e.inputEvents&&e.inputEvents.unlisten(),delete e.inputEvents}}]),e}(),g=function(){function e(t){_classCallCheck(this,e),this.events={},this.handlers={},this.element=t}return _createClass(e,[{key:"hasClass",value:function(e){for(var t=e.split(" "),n=0;n<t.length;n++)if(!this.element.classList.contains(t[n]))return!1;return!0}},{key:"addClass",value:function(e){var t=this;if(!t.hasClass(e)){for(var n=e.split(" "),i=0;i<n.length;i++)t.element.classList.add(n[i]);t.isNativeElement||u.observeElement(t.element)}}},{key:"removeClass",value:function(e){var t=this;if(0!==arguments.length){for(var n=e.split(" "),i=0;i<n.length;i++)t.element.classList.remove(n[i]);""===t.element.className&&t.element.removeAttribute("class"),t.isNativeElement||u.observeElement(t.element)}else t.element.removeAttribute("class")}},{key:"isCustomElement",get:function(){var e=this;return!!e.element.tagName.startsWith(n)||e.element instanceof window[n].BaseElement==1||"DIV"!==e.element.tagName&&"SPAN"!==e.element.tagName&&"BUTTON"!==e.element.tagName&&"INPUT"!==e.element.tagName&&"UL"!==e.element.tagName&&"LI"!==e.element.tagName&&document.createElement(e.element.nodeName)instanceof window[n].BaseElement==1}},{key:"isNativeElement",get:function(){return!this.isCustomElement}},{key:"dispatch",value:function(e){var t=this.events[e.type],n=!1;if(t.length>1)for(var i=0;i<t.length;i++){var r=t[i];if(r.namespace&&r.namespace.indexOf("_")>=0){n=!0;break}}n&&t.sort(function(e,t){var n=e.namespace,i=t.namespace;return(n=-1===n.indexOf("_")?0:parseInt(n.substring(n.indexOf("_")+1)))<(i=-1===i.indexOf("_")?0:parseInt(i.substring(i.indexOf("_")+1)))?-1:n>i?1:0});for(var a=0;a<t.length;a++){var o=t[a];if(e.namespace=o.namespace,e.context=o.context,e.defaultPrevented)break;var s=o.handler.apply(this.element,[e]);if(void 0!==s&&(e.result=s,!1===s)){e.preventDefault(),e.stopPropagation();break}}return e.result}},{key:"fireEvent",value:function(e,t,n){n||(n={bubbles:!0,cancelable:!0,composed:null!==this.element.getRootNode().host}),n.detail=t||{};var i=new CustomEvent(e,n);return i.originalStopPropagation=i.stopPropagation,i.stopPropagation=function(){return i.isPropagationStopped=!0,i.originalStopPropagation()},this.dispatchEvent(i),i}},{key:"isPassiveSupported",get:function(){var e=this;if(void 0!==e.supportsPassive)return e.supportsPassive;e.supportsPassive=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e.supportsPassive=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(e){}return e.supportsPassive}},{key:"dispatchEvent",value:function(e){var t=this,n=e.type,i=t.element.context,r=n.substring(0,1).toUpperCase()+n.substring(1);t.element.context=document,t.element["on"+r]?t.element["on"+r](e):t.element["on"+n.toLowerCase()]?t.element["on"+n.toLowerCase()](e):t.element.dispatchEvent(e),t.element.context=i}},{key:"listen",value:function(e,t){var n=this,i=e.split("."),r=i.slice(1).join("."),a=i[0];n.events[a]||(n.events[a]=[]);var o={type:a,handler:t,context:n.element,namespace:r};f.indexOf(a)>=0&&(n.inputEvents||(n.inputEvents=new p(n.element)),n.inputEvents[a](function(e){n.dispatchEvent(e)}),n.inputEvents.boundEventTypes.push(a),n.inputEvents.listen(a)),0===n.events[a].length&&(n.handlers[a]=n.dispatch.bind(n),"wheel"===a?n.element.addEventListener("wheel",n.handlers[a],!!n.isPassiveSupported&&{passive:!1}):n.element.addEventListener(a,n.handlers[a],("touchmove"===a||"touchstart"===a||"touchend"===a)&&!!n.isPassiveSupported&&{passive:!1})),n.events[a].push(o)}},{key:"unlisten",value:function(e){var t=this,n=e.split("."),i=n.slice(1).join("."),r=n[0],a=t.events[r];if(t.inputEvents&&t.inputEvents.boundEventTypes.indexOf(r)>=0&&(t.inputEvents.boundEventTypes.splice(t.inputEvents.boundEventTypes.indexOf(r),1),0===t.inputEvents.boundEventTypes.length&&t.inputEvents.unlisten(r)),a){for(var o=0;o<a.length;o++){if(""!==i){var s=a.findIndex(function(e){return e.namespace===i});a.splice(s,1);break}a=[]}0===a.length&&(t.element.removeEventListener(r,t.handlers[r]),t.events[r]=[],delete t.handlers[r])}}},{key:"getAttributeValue",value:function(e,t){var n=this,i=n.element.getAttribute(e);
1if(n.isNativeElement)return n.deserialize(i,t);var r=n.element.propertyByAttributeName[e];return void 0===r.deserialize?n.deserialize(i,t,r.nullable):n.element[r.deserialize](i)}},{key:"setAttributeValue",value:function(e,t,n){var i,r=this,a=!1;if(r.isNativeElement){if(i=r.serialize(t,n),"boolean"===n&&["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].indexOf(e)>=0)return void(t?r.element.setAttribute(e,""):r.element.removeAttribute(e))}else{var o=r.element.propertyByAttributeName[e];a=!o||o.nullable,i=o&&o.serialize?r.element[o.serialize](t):r.serialize(t,n,a)}"array"!==n&&"object"!==n||"[]"!==i&&"{}"!==i?void 0===i?(r.element.removeAttribute(e),r.element.shadowRoot&&r.element.$.root&&r.element.$.root.removeAttribute(e)):(r.element.setAttribute(e,i),r.element.shadowRoot&&r.element.$.root&&r.element.$.root.setAttribute(e,i)):r.element.removeAttribute(e)}},{key:"serialize",value:function(e,t,n){if(void 0===t&&(t=y.Types.getType(e)),void 0!==e&&(n||null!==e)){if(n&&null===e)return"null";if("string"===t)return e;if("boolean"===t||"bool"===t){if(!0===e||"true"===e||1===e||"1"===e)return"";if(!1===e||"false"===e||0===e||"0"===e)return}return"array"===t?JSON.stringify(e):["string","number","int","integer","float","date","any","function"].indexOf(t)>=0?e.toString():"object"===t?JSON.stringify(e):void 0}}},{key:"deserialize",value:function(e,t,n){var i="null"===e;if(void 0!==e&&(!i||n)){if(i&&n)return null;if("boolean"===t||"bool"===t)return null!==e;if("number"===t||"float"===t)return"NaN"===e?NaN:"Infinity"===e?1/0:"-Infinity"===e?-1/0:parseFloat(e);if("int"===t||"integer"===t)return"NaN"===e?NaN:"Infinity"===e?1/0:"-Infinity"===e?-1/0:parseInt(e);if("string"===t)return e;if("any"===t)return e;if("date"===t)return new Date(e);if("function"===t){if("function"==typeof window[e])return window[e]}else if("array"===t||"object"===t)try{var r=JSON.parse(e);if(r)return r}catch(n){if(window[e]&&"object"==typeof window[e])return window[e];if("array"===t&&e.indexOf("[")>=0){if(e.indexOf("{")>=0){var a=e.replace(/{/gi,"").replace("[","").replace("]","").replace(/'/gi,"").replace(/"/gi,"").trim();a=a.split("},");for(var o=0;o<a.length;o++){for(var s={},l=a[o].trim().split(","),c=0;c<l.length;c++){var u=l[c].split(":")[0].trim(),d=l[c].split(":")[1].trim();s[u]=d}a[o]=s}return a}return e.replace("[","").replace("]","").replace(/'/gi,"").replace(/"/gi,"").trim().split(",")}}}}}]),e}(),v=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"Ripple",get:function(){return o}},{key:"Easings",get:function(){return s}}]),e}(),y=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"Types",get:function(){return a}},{key:"Core",get:function(){return l}},{key:"Animation",get:function(){return v}},{key:"Scroll",get:function(){return m}},{key:"InputEvents",get:function(){return p}},{key:"Extend",value:function(e){return new g(e)}},{key:"Assign",value:function(t,n){if(t.indexOf(".")>=0){var i=t.split(".");return e[i[0]]||(e[i[0]]={}),void(e[i[0]][i[1]]=n)}e[t]=n}}]),e}(),b=y.Extend(document),_=null;document.addEventListener("click",function(){u.start(),_&&clearTimeout(_),_=setTimeout(function(){u.stop()},1e4)}),document.addEventListener("mouseenter",function(){u.start()}),document.addEventListener("mouseleave",function(){u.stop()});var w=function e(){_classCallCheck(this,e)};w.cache={};var k=function(e){_inherits(a,e);var i=_createSuper(a);function a(){return _classCallCheck(this,a),i.apply(this,arguments)}return _createClass(a,[{key:"getBindings",value:function(e,t){var n=this,i=0,r={},a=function(e){if(e instanceof HTMLElement)return n.parseAttributes(e);var t=n.parseProperty(e.data?e.data.trim():null,"textContent",e);return t?(n&&e.parentNode===n.$.content&&(t.value=""!==n.$.html?n.$.html:void 0,n.innerHTML=""),{textContent:t}):void 0}(e);a&&(r.data=a),t||(r.mapping=[],t=r),e.getAttribute&&(r.nodeId=e.getAttribute("smart-id"),t&&a&&(t.mapping[r.nodeId]=a)),r.node=e,e.firstChild&&(r.children={});for(var o=e.firstChild;o;o=o.nextSibling)r.children[i++]=n.getBindings(o,t);return r}},{key:"_addRemovePropertyBinding",value:function(e,t,n,i,r){if(e&&t&&n){var a=this,o=a.bindings,s=n.getAttribute("smart-id"),l=e.indexOf("{{")>=0,c=!1;(e=e.replace("{{","").replace("}}","").replace("[[","").replace("]]","")).indexOf("!")>=0&&(e=e.replace("!",""),c=!0);var u=a._properties[e],d={name:e,reflectToAttribute:u.reflectToAttribute,t
1woWay:l,type:u.type,not:c};if(r&&!i){var h={};h[e]={name:e,targetPropertyName:t,reflectToAttribute:u.reflectToAttribute,twoWay:l,type:u.type,not:c},o.mapping[s]=h}(function e(r){for(var o in r){var l=r[o];if(l.nodeId===s){l.data||(l.data={}),i?(l.data[t]=null,delete l.data[t]):l.data[t]=d;break}if(l.children)e(l.children);else if(l.node&&l.node.children&&l.node===n.parentElement){var c=l.node;if(!c.firstChild)continue;l.children={};for(var u=0,h=c.firstChild;h;h=h.nextSibling)l.children[u++]=a.getBindings(h);e(l.children)}}})(o.children),i?delete a.boundProperties[e]:a.boundProperties[e]=!0,a.updateBoundNodes(e)}}},{key:"addPropertyBinding",value:function(e,t,n,i){this._addRemovePropertyBinding(e,t,n,!1,i)}},{key:"removePropertyBinding",value:function(e,t,n,i){this._addRemovePropertyBinding(e,t,n,!0,i)}},{key:"parseAttributes",value:function(e){for(var t,n=this,i=0;i<e.attributes.length;i++){var r=e.attributes[i],a=r.name,o=r.value;w.cache["toCamelCase"+a]||(w.cache["toCamelCase"+a]=y.Core.toCamelCase(a));var s=w.cache["toCamelCase"+a];if(a.indexOf("(")>=0){var l=a.substring(1,a.length-1);if(n&&!n.dataContext){n.templateListeners[e.getAttribute("smart-id")+"."+l]=o,e.removeAttribute(a);continue}t||(t={});var c=o.substring(0,o.indexOf("("));t[s]={isEvent:!0,name:l,value:c}}else{var u=n.parseProperty(o,a,e);u&&(t||(t={}),t[s]=u)}}return t}},{key:"parseProperty",value:function(e,t){if(e&&e.length){for(var n,i=this,r=e.length,a=0,o=0,s=0,l=!0;o<r;){a=e.indexOf("{{",o);var c=e.indexOf("[[",o),u="}}";if(c>=0&&(a<0||c<a)&&(a=c,l=!1,u="]]"),(s=a<0?-1:e.indexOf(u,a+2))<0)return;n=n||{};var d=e.slice(a+2,s).trim();n.name=d,o=s+2}var h=n.name,f=i?i._properties[h]:null;return n.twoWay=l,n.ready=!1,i&&(h.indexOf("::")>=0?i.boundProperties[h.substring(0,h.indexOf("::"))]=!0:i.boundProperties[h]=!0),f?(n.type=f.type,n.reflectToAttribute=f.reflectToAttribute):(n.type=["checked","selected","async","autofocus","autoplay","controls","defer","disabled","hidden","ismap","loop","multiple","open","readonly","required","scoped"].indexOf(t)>=0?"boolean":"string",n.reflectToAttribute=!0),n}}},{key:"updateTextNodes",value:function(){var e=this;e.updateTextNode(e.shadowRoot||e,e.bindings,e)}},{key:"updateTextNode",value:function(e,t,n){if(t){for(var i=0,r=e.firstChild;r&&t.children;r=r.nextSibling)this.updateTextNode(r,t.children[i++],n);if(t&&t.data)for(var a in t.data){var o=t.data[a];"textContent"===a&&o.twoWay&&!o.updating&&void 0!==o.value&&(n[o.name]=o.value)}}}},{key:"updateBoundProperty",value:function(e,t){t.updating||(t.updating=!0,this[e]=t.value,t.updating=!1)}},{key:"updateBoundNodes",value:function(e){var t=this;if(t.updateBoundNode(t.shadowRoot||t,t.bindings,t,e),t.detachedChildren.length>0)for(var n=function(n){var i=t.detachedChildren[n],r=i.getAttribute("smart-id"),a=function e(t){if(t.nodeId===r)return t;for(var n in t.children){var i=t.children[n];if((i.getAttribute?i.getAttribute("smart-id"):"")===r)return t;if(i.children){var a=e(i);if(a)return a}}return null}(t.bindings);if(a)t.updateBoundNode(i,a,t,e,!0);else if(i.getAttribute&&t.bindings.mapping){var o=t,s=t.bindings;if(s)for(var l in s.mapping){var c=o.querySelector('[smart-id="'+l+'"]');c&&t.updateBoundData(c,s.mapping[l],o,e)}}},i=0;i<t.detachedChildren.length;i++)n(i)}},{key:"updateBoundMappedNodes",value:function(){var e=this,t=e.bindings,n=e;if(t.mapping)for(var i in t.mapping){var r=n.querySelector('[smart-id="'+i+'"]');if(n.shadowRoot&&((r=n.querySelector('[id="'+i+'"]'))||(r=n.shadowRoot.querySelector('[id="'+i+'"]')||n.shadowRoot.querySelector('[smart-id="'+i+'"]'))),r)e.updateBoundData(r,t.mapping[i],n);else if(n.getAttribute("aria-controls")){var a=document.getElementById(n.getAttribute("aria-controls"));!a&&n.shadowRoot&&(a=n.shadowRoot.getElementById(n.getAttribute("aria-controls"))),(r=a.querySelector('[smart-id="'+i+'"]'))&&e.updateBoundData(r,t.mapping[i],n)}}}},{key:"updateBoundNode",value:function(e,t,n,i,r){var a=this;if(t){var o=0;if(r){if(r&&!t.data)for(var s=e.firstChild;s&&t.children;s=s.nextSibling)s.getAttribute?function(){var e=s.getAttribute("smart-id"),r=function(){for(var n in t.children)if(t.children[n].nodeId===e)return t.children[n]}();a.updateBoundNode(s,r,n,i),o++}():a.updateBoundNode(s,t.children[o++],n,i,r)}else for(var l=e.firstChild;l&&t.children;l=l.nextSibling)l.getAttribute?function(){var e=l.getAttribute("smart-id"),r=function(){for(var n in t.children)if(t.children[n].nodeId===e)return t.children[n]}();a.updateBoundNode(l,r,n,i),o++}():a.updateBoundNode(l,t.children[o++],n,i);t&&t.data&&a.updateBoundData(e,t.data,n,i)}}},{key:"updateBoundData",value:function(e,t,n,i){var r=this,a=function(a){var o=t[a],s=o.name;if(!o.updating&&(s.indexOf("::")>=0&&(s=s.substring(0,s.indexOf("::"))),void 0===i||i===s)){if(s.indexOf("(")>=0){var l=s.substring(s.indexOf("(")),c=s.substring(0,s.indexOf("("));if((l=(l=(l=l.substring(1,l.length-1)).replace(/ /gi,"")).split(",")).length>0&&""!==l[0]){for(var u=[],d=0;d<l.length;d++)u.push(n[l[d]]);o.value=n[c].apply(n,u)}else o.value=n[c]();o.type=typeof o.value}else o.value=n[s];if("innerHTML"===s){if(e[a].toString().trim()!==n[s].toString().trim()){if(window.smartBlazor&&e[a].indexOf("\x3c!--")>=0)return(o.ready||n._properties[s].defaultValue!==o.value)&&(e[a]=o.value.toString()),"continue";(o.ready||n._properties[s].defaultValue!==o.value)&&(e[a]=o.value.toString().trim())}}else o.not?(e[a]=!o.value,o.targetPropertyName&&(e[o.targetPropertyName]=!o.value)):(e[a]=o.value,o.targetPropertyName&&(e[o.targetPropertyName]=o.value));if(e.$&&e.$.isNativeElement){w.cache["toDash"+a]||(w.cache["toDash"+a]=y.Core.toDash(a));var h=w.cache["toDash"+a],f=e.$.getAttributeValue(h,o.type);!o.reflectToAttribute||f===o.value&&o.ready||e.$.setAttributeValue(h,o.value,o.type),o.reflectToAttribute||e.$.setAttributeValue(h,null,o.type)}if(!o.ready){if(e.$&&e.$.isCustomElement){w.cache["toDash"+a]||(w.cache["toDash"+a]=y.Core.toDash(a));var p=w.cache["toDash"+a];e._properties||(e._beforeCreatedProperties=e._properties=e.propertyByAttributeName=[]),e._properties[a]||
1(e._properties[a]={attributeName:p},e._beforeCreatedProperties&&(e._beforeCreatedProperties[a]=e._properties[a]),e.propertyByAttributeName[p]=e._properties[a]);var m=e._properties[a];m.isUpdating=!0,o.reflectToAttribute&&e.$.setAttributeValue(m.attributeName,o.not?!o.value:o.value,o.type),o.reflectToAttribute||e.$.setAttributeValue(m.attributeName,null,o.type),m.isUpdating=!1}if(o.twoWay){var g=function(t){if(o.value=t,e.$&&e.$.isNativeElement){w.cache["toDash"+a]||(w.cache["toDash"+a]=y.Core.toDash(a));var n=w.cache["toDash"+a],i=e.$.getAttributeValue(n,o.type);o.reflectToAttribute&&i!==o.value&&e.$.setAttributeValue(n,o.value,o.type),o.reflectToAttribute||e.$.setAttributeValue(n,null,o.type)}};if(o.name.indexOf("::")>=0){var v=o.name.indexOf("::"),b=o.name.substring(v+2);r["$"+e.getAttribute("smart-id")].listen(b,function(){g(e[a]);var t=o.name.substring(0,o.name.indexOf("::"));r.updateBoundProperty(t,o)})}if(e.$&&e.$.isCustomElement){e._properties[a]&&(e._properties[a].notify=!0),w.cache["toDash"+a]||(w.cache["toDash"+a]=y.Core.toDash(a));var _=w.cache["toDash"+a];r["$"+e.getAttribute("smart-id")].listen(_+"-changed",function(e){g(e.detail.value);var t=r.context;e.context!==document&&(r.context=r),r.updateBoundProperty(o.name,o),r.context=t})}}}o.ready=!0}};for(var o in t)a(o)}},{key:"addMessages",value:function(e,t){Object.assign(this.messages[e],t)}},{key:"localize",value:function(e,t){var n=this;if(n.messages&&n.messages[n.locale]){var i=n.messages[n.locale][e];if(""===i)return"";if(!i){var r=n.messages.en;if(r)return r[e]||e}var a=i;for(var o in t){var s=t[o];i=i.replace(new RegExp("{{"+o+"}}","g"),s)}return n.localizeFormatFunction&&n.localizeFormatFunction(a,i,t),i}}},{key:"classNamesMap",get:function(){return{animation:"smart-animate",rippleAnimation:"smart-ripple"}}},{key:"hasAnimation",get:function(){return"none"!==this.animation}},{key:"hasRippleAnimation",get:function(){return"none"!==this.animation&&"advanced"===this.animation}},{key:"properties",get:function(){var e=this;return e._properties||(e._properties=[]),e._properties}},{key:"parents",get:function(){for(var e=this,t=[],i=e.parentNode;i&&9!==i.nodeType;)i instanceof HTMLElement==1&&t.push(i),i=i.parentNode;var r=e.getRootNode();if(r.host){t=t.concat(function(e){for(var t=[e],n=e.parentNode;n&&9!==n.nodeType;)n instanceof HTMLElement==1&&t.push(n),n=n.parentNode;return t}(r.host))}return window[n].EnableShadowDOM&&e.isInShadowDOM&&e.shadowParent&&(t=t.concat(e.shadowParent.parents)),t}},{key:"log",value:function(e){this._logger("log",e)}},{key:"warn",value:function(e){this._logger("warn",e)}},{key:"error",value:function(e){this._logger("error",e)}},{key:"_logger",value:function(e,t){if(this.debugMode){var n=t instanceof Error?t.message:t.toString();console[e](n)}if(this.rethrowError&&"error"===e)throw t}},{key:"focused",get:function(){return this.contains(document.activeElement)}},{key:"template",value:function(){return"<div></div>"}},{key:"registered",value:function(){this.onRegistered&&this.onRegistered()}},{key:"created",value:function(){var e=this;e.isReady=!1,e._initElement(e),e._setModuleState("created"),e.onCreated&&e.onCreated()}},{key:"completed",value:function(){var e=this;e.isCompleted=!0,e._onCompleted&&e._onCompleted(),e.onCompleted&&e.onCompleted()}},{key:"whenReady",value:function(e){var t=this;t.isCompleted?e():(t.whenReadyCallbacks||(t.whenReadyCallbacks=[]),t.whenReadyCallbacks.push(e))}},{key:"whenRendered",value:function(e){var t=this;t.isRendered?e():(t.whenRenderedCallbacks||(t.whenRenderedCallbacks=[]),t.whenRenderedCallbacks.push(e))}},{key:"addThemeClass",value:function(){var e=this;""!==e.theme&&e.classList.add("smart-"+e.theme)}},{key:"addDefaultClass",value:function(){var e=this;e.classList.add(n.toLowerCase()+"-element"),e.classList.add(e.nodeName.toLowerCase())}},{key:"_renderShadowRoot",value:function(){var e=this;if(e.shadowRoot){e.$.root.classList.add(e.nodeName.toLowerCase());for(var t=0;t<e.attributes.length;t++){var n=e.attributes[t];"class"===n.name||"id"===n.name||"style"===n.name||"tabindex"===n.name||n.name.indexOf("aria")>=0||e.$.root.setAttribute(n.name,n.value)}for(var i=0;i<e.classList.length;i++){var r=e.classList[i];"smart-element-init"!==r&&"smart-element"!==r&&"smart-hidden"!==r&&"smart-visibility-hidden"!==r&&e.$.root.classList.add(r)}}}},{key:"render",value:function(){var e=this;if(!e.isRendered&&(e.isRendered=!0,e.isRendering=!1,e.context=document,e._renderShadowRoot(),e.whenRenderedCallbacks)){for(var t=0;t<e.whenRenderedCallbacks.length;t++)e.whenRenderedCallbacks[t]();e.whenRenderedCallbacks=[]}e.onRender&&e.onRender(),e.disabled&&e.setAttribute("aria-disabled",!0),e.readonly&&-1!==["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox"].indexOf(e.getAttribute("role"))&&e.setAttribute("aria-readonly",!0)}},{key:"ready",value:function(){var e=this;if(e._setId(),e.addThemeClass(),e.addDefaultClass(),"collapsed"===e.visibility?e.classList.add("smart-hidden"):"hidden"===e.visibility&&e.classList.add("smart-visibility-hidden"),e.dataContext&&e.applyDataContext(),e.onReady&&e.onReady(),e.shadowRoot&&Smart(e._selector)){if(Smart(e._selector).styleUrls)for(var t=Smart(e._selector).styleUrls,n=0;n<t.length;n++)e.importStyle(t[n]);if(Smart(e._selector).styles){var i=document.createElement("style");i.innerHTML=Smart(e._selector).styles,e.shadowRoot.insertBefore(i,e.shadowRoot.firstChild)}}Smart(e._selector)&&Smart(e._selector).ready&&Smart(e._selector).ready()}},{key:"_setId",value:function(){var e=this;if(!e.id){var t=e.elementName;e.id=t.slice(0,1).toLowerCase()+t.slice(1)+Math.floor(65536*(1+Math.random())).toString(16).substring(1)}}},{key:"checkLicense",value:function(){"Evaluation"===window[n].License&&-1===window.location.hostname.indexOf("htmlelements")&&(this.logWatermark(),this.logLicense(),window[n].License="")}},{key:"logWatermark",value:function(){var e=document.createElement("a");e.href="https://www.htmlelements.com/",e.innerHTML="https://www.htmlelements.com/",e.style.position="absolute",e.style.right="5
1px",e.style.bottom="5px",e.style.color="#fff",e.style.padding="20px",e.style.borderRadius="5px",e.style.background="#0C3D78",e.style.cursor="pointer",e.style.zIndex="999999",e.style.display="block",e.style.fontSize="24px",e.style.textDecoration="none",e.style.fontWeight="bold",e.style.opacity=0,e.style.transition="opacity .35s ease-in-out",e.id="watermark",document.getElementById("watermark")||setTimeout(function(){document.getElementById("watermark")||(document.body.appendChild(e),setTimeout(function(){e.style.opacity=1}),setTimeout(function(){e.style.opacity=0,setTimeout(function(){e.parentNode.removeChild(e)},350)},6e3))},1e3)}},{key:"logLicense",value:function(){console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("*jQWidgets License Key Not Found."),console.log("*This is an EVALUATION only Version, it is NOT Licensed for software projects intended for PRODUCTION."),console.log("*if you want to hide this message, please send an email to: [email protected] for a license."),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************"),console.log("****************************************************************************************************************")}},{key:"_selector",get:function(){var e=this;return e.id?"#"+e.id:e.classList.length>0?"."+e.classList[0]:""}},{key:"applyDataContext",value:function(e){var t=this,n="string"==typeof t.dataContext?window[t.dataContext]||document[t.dataContext]:t.dataContext;if(e&&(n=e,t.dataContext=e),n){if(!n._uid){n._uid=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase(),n._properties=[];var i=function(e){var i=n[e];"function"!=typeof i&&"_properties"!==e&&"_uid"!==e&&(n._properties[e]=i,Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:function(){return n._properties[e]},set:function(i){var r=n._properties[e];n._properties[e]=i;var a=[];a[e]={oldValue:r,value:i},a.length++,t.updatingDataContext=!0,b.fireEvent("dataContextPropertyChanged",{dataContext:n,properties:a},{bubbles:!1,cancelable:!0}),t.updatingDataContext=!1}}))};for(var r in n)i(r)}if(t.dataContextProperties=t.parseAttributes(t),t.dataContextPropertiesMap={},t.dataContextListeners={},t.dataContextProperties){for(var a in t.updatingDataContext=!0,t.dataContextProperties){var o=t.dataContextProperties[a],s=o.name;if(o.propertyName=a,t.dataContextPropertiesMap[s]=a,w.cache["toDash"+a]||(w.cache["toDash"+a]=y.Core.toDash(s)),o.isEvent&&function(){var e=o.value;t.dataContextListeners[s]&&t.removeEventListener(s,t.dataContextListeners[s]),t.dataContextListeners[s]=function(t){n[e](t)},t.addEventListener(s,t.dataContextListeners[s])}(),s.indexOf(".")>=0){for(var l=s.split("."),c=n[l[0]],u=1;u<l.length;u++)c=c[l[u]];void 0!==c&&(t[a]=c)}else t[a]=n[s]}t.dataContextPropertyChangedHandler=function(e){var n=e.detail.properties;if(e.detail.dataContext===("string"==typeof t.dataContext?window[t.dataContext]||document[t.dataContext]:t.dataContext))for(var i in n){var r=t.dataContextPropertiesMap[i],a=t.context;
1r&&(t.context=document,t[r]=n[i].value,t.context=a)}},b.listen("dataContextPropertyChanged",t.dataContextPropertyChangedHandler),t.updatingDataContext=!1}else t.dataContextProperties=null}else{t.dataContextProperties=null;window.addEventListener("load",function e(){("string"==typeof t.dataContext?window[t.dataContext]||document[t.dataContext]:t.dataContext)&&(t.applyDataContext(),window.removeEventListener("load",e))})}}},{key:"updateDataContextProperty",value:function(e){var t=this,n="string"==typeof t.dataContext?window[t.dataContext]||document[t.dataContext]:t.dataContext,i=t.dataContextProperties[e];if(!t.updatingDataContext&&i.twoWay){var r=i.name;if(r.indexOf(".")>=0){for(var a=r.split("."),o=n[a[0]],s=1;s<a.length;s++)o=o[a[s]];void 0!==o&&(o=t[e],d[n._uid]&&(d[n._uid][e]=o))}else n[r]=t[e],d[n._uid]&&(d[n._uid][e]=n[r])}}},{key:"initProperties",value:function(){var e=this;if(Smart(e._selector)&&Smart(e._selector).properties&&(e._initProperties=Smart(e._selector).properties),e.hasAttribute("props")&&!e.props?e._initProperties=window[e.getAttribute("props")]:e.props&&(e._initProperties=e.props),e._initProperties)for(var t=Object.keys(e._initProperties),n=0;n<t.length;n++){var i=t[n],r=e._initProperties[i];if(r.constructor===Smart.ObservableArray||r instanceof Smart.ObservableArray)e[i]=r.toArray();else if(r.constructor===Smart.DataAdapter||"smartDataAdapter"===r.constructor.name||"object"==typeof r&&Smart.DataAdapter&&r instanceof Smart.DataAdapter||r instanceof Smart.Observable||r.constructor===Smart.Observable||"object"!=typeof r||y.Types.isArray(r)||r instanceof Date){if(void 0===e[i]&&-1===["onReady","onAttached","onDetached","onCreated","onCompleted"].indexOf(i)){var a=e.localize("propertyUnknownName",{name:i});e.log(a)}e[i]=r}else"messages"!==i&&"dataSourceMap"!==i?"object"==typeof r&&function t(n,i){for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a],s=n[o],l=e._properties[i+"_"+o];if(l&&null===l.value){if(void 0===e[i+"_"+o]){var c=e.localize("propertyUnknownName",{name:i+"_"+o});e.log(c)}e[i+"_"+o]=s}else if("object"==typeof s&&!y.Types.isArray(s)&&s&&s.constructor!==Date)t(s,i+"_"+o);else{if(void 0===e[i+"_"+o]){var u=e.localize("propertyUnknownName",{name:i+"_"+o});e.log(u)}e[i+"_"+o]=s}}}(r,i):e[i]=r}}},{key:"setProperties",value:function(e){for(var t=this,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i],a=e[r];if(a.constructor===Smart.ObservableArray||a instanceof Smart.ObservableArray)t[r]=a.toArray();else if(a.constructor===Smart.DataAdapter||"smartDataAdapter"===a.constructor.name||"object"==typeof a&&Smart.DataAdapter&&a instanceof Smart.DataAdapter||a instanceof Smart.Observable||a.constructor===Smart.Observable||"object"!=typeof a||y.Types.isArray(a)||a instanceof Date){if(void 0===t[r]&&-1===["onReady","onAttached","onDetached","onCreated","onCompleted"].indexOf(r))continue;var o=t._properties[r];t[r]="int"===o.type||"number"===o.type&&"string"==typeof subPropertyValue?"int"===o.type?parseInt(a):parseFloat(a):a}else"messages"!==r&&"dataSourceMap"!==r?"object"==typeof a&&function e(n,i){for(var r=Object.keys(n),a=0;a<r.length;a++){var o=r[a],s=n[o],l=t._properties[i+"_"+o];if(l&&null===l.value){if(void 0===t[i+"_"+o])continue;var c=t._properties[i+"_"+o];t[i+"_"+o]="int"===c.type||"number"===c.type&&"string"==typeof s?"int"===c.type?parseInt(s):parseFloat(s):s}else if("object"==typeof s&&!y.Types.isArray(s)&&s&&s.constructor!==Date)e(s,i+"_"+o);else{if(void 0===t[i+"_"+o])continue;var u=t._properties[i+"_"+o];t[i+"_"+o]="int"===u.type||"number"===u.type&&"string"==typeof s?"int"===u.type?parseInt(s):parseFloat(s):s}}}(a,r):t[r]=a}}},{key:"setup",value:function(){var e=this;if(e.context=this,!e.isReady||e.isCompleted){if(e.isReady)return e._setModuleState("attached"),e.isAttached=!0,e.attached(),e._handleListeners("listen"),void(e.context=document);e.ownerElement&&e.ownerElement.detachedChildren.indexOf(e)>=0&&e.ownerElement.detachedChildren.splice(e.ownerElement.detachedChildren.indexOf(e),1),e.isReady=!0,e.methods=e.getStaticMember("methods"),e.initProperties(),l.isMobile&&e.classList.add("smart-mobile");for(var t=0;t<e.attributes.length;t+=1){var i=e.propertyByAttributeName[e.attributes[t].name];if(i){var r=e.$.getAttributeValue(i.attributeName,i.type),a=r?r.toString():"";if(!(a.indexOf("{{")>=0||a.indexOf("[[")>=0||"object"!==i.type&&"array"!==i.type&&(e.attributes[t].value.indexOf("{{")>=0||e.attributes[t].value.indexOf("[[")>=0)||void 0===r||i.value===r)){var o=y.Types.getType(r),s=e.attributes[t].value;
1if(("any"===i.type||"object"===i.type)&&""+e[i.name]===r)continue;if("array"===i.type&&e[i.name]&&JSON.stringify(e[i.name])===r)continue;if("number"===o&&isNaN(r)&&"NaN"!==s&&"Infinity"!==s&&"-Infinity"!==s){var c=e.localize("propertyInvalidValueType",{name:i.name,actualType:"string",type:i.type});e.log(c)}i.isUpdatingFromAttribute=!0,e[i.name]=r,i.isUpdatingFromAttribute=!1}}}for(var u in e._properties){var d=e._properties[u];if("innerHTML"===u&&d.value===d.defaultValue&&(d.value=d.defaultValue=y.Core.html(e)),"boolean"!==d.type&&"bool"!==d.type||"false"===e.getAttribute(d.attributeName)&&(d.isUpdating=!0,e.setAttribute(d.attributeName,""),d.isUpdating=!1),d.defaultReflectToAttribute&&d.reflectToAttribute){if(d.defaultReflectToAttribute&&d.defaultReflectToAttributeConditions){for(var h=!0,f=0;f<d.defaultReflectToAttributeConditions.length;f++){var p=d.defaultReflectToAttributeConditions[f],m=void 0,g=void 0;for(var v in p)m=v,g=p[v];e._properties[m]&&e._properties[m].value!==g&&(h=!1)}if(!h)continue}d.isUpdating=!0,e.$.setAttributeValue(d.attributeName,d.value,d.type),d.isUpdating=!1}}var b=[];if(e.children.length>0)for(var _=0;_<e.children.length;_++){var w=e.children[_];y.Extend(w).isCustomElement&&b.push(w)}e.applyTemplate(),e.complete=function(){if(!e.templateBindingsReady){var t=function(e){e.templateBindingsReady||(e.templateBindingsReady=!0,e.updateTextNodes(),e.updateBoundNodes())};if(e.ownerElement){for(var n=e.ownerElement,i=[];n;)i.push(n),n=n.ownerElement;for(var r=i.length-1;r>=0;r--)t(i[r]);t(e)}else t(e)}var a=function(){if(e._setModuleState("ready"),e.ready(),"auto"!==e.renderMode||e.isRendered||e.render(),e.isAttached=!0,e._setModuleState("attached"),e.attached(),e._handleListeners("listen"),e.isHidden||0!==e.offsetWidth&&0!==e.offsetHeight||(e.isHidden=!0),e.completed(),e.isRendered&&(e.context=document),e.whenReadyCallbacks){for(var t=0;t<e.whenReadyCallbacks.length;t++)e.whenReadyCallbacks[t]();e.whenReadyCallbacks=[]}};if(e.wait)e.classList.add("smart-visibility-hidden");else if(e.classList.contains("smart-async"))requestAnimationFrame(function(){a()});else{var o=e.shadowParent;e.shadowParent=null;var s=e.parents;if(e.shadowParent=o,0===s.length)return;var l=function(){for(var t=e.ownerElement,n=[];t;)n.push(t),t=t.ownerElement;for(var i=n.length-1;i>=0;i--)n[i].updateBoundMappedNodes()};e.ownerElement&&"HTML"!==s[s.length-1].nodeName?e.getRootNode().host?a():e.ownerElement&&"HTML"===e.ownerElement.parents[e.ownerElement.parents.length-1].nodeName?(l(),a()):e.checkIsInDomInterval=setInterval(function(){var t=e.parents;"HTML"===t[t.length-1].nodeName&&(clearInterval(e.checkIsInDomInterval),l(),a())},100):a()}};var k=[].slice.call(e.querySelectorAll("[smart-id]")).concat(b);if(window[n].EnableShadowDOM&&!0!==e.isInShadowDOM&&(k=[].slice.call(e.shadowRoot.querySelectorAll("[smart-id]")).concat(b)),0===k.length)e.complete();else{e._completeListeners=0;for(var C=function(t){var n=k[t];if(y.Extend(n).isCustomElement){var i=(function(){e._completeListeners--,0===e._completeListeners&&(e.complete(),delete e._completeListeners)}).bind(e);n.isCompleted||n.isUtilityElement||!0===n.wait||(e._completeListeners++,n._onCompleted||(n.completeHandlers=[],n._onCompleted=function(){for(var e=0;e<n.completeHandlers.length;e++)n.completeHandlers[e]()}),n.completeHandlers.push(i))}},x=0;x<k.length;x++)C(x);0===e._completeListeners&&e.complete()}}}},{key:"visibilityChangedHandler",value:function(){var e=this;e.isReady&&requestAnimationFrame(function(){0===e.offsetWidth||0===e.offsetHeight?e.isHidden=!0:(e.isHidden=!1,e.$.fireEvent("resize",e,{bubbles:!1,cancelable:!0}))})}},{key:"attributeChangedCallback",value:function(e,t,n){var i=this,r=i.propertyByAttributeName[e];if("class"!==e&&"style"!==e||i.visibilityChangedHandler(),r||i.attributeChanged(e,t,n),i.onAttributeChanged&&i.onAttributeChanged(e,t,n),!(!r||r&&r.isUpdating)){var a=i.$.getAttributeValue(r.attributeName,r.type);void 0!==n&&i[r.name]!==a&&(r.isUpdatingFromAttribute=!0,i[r.name]=void 0!==a?a:i._properties[r.name].defaultValue,r.isUpdatingFromAttribute=!1)}}},{key:"attributeChanged",value:function(e,t,n){}},{key:"hasStyleObserver",get:function(){return void 0===this._hasStyleObserver||this._hasStyleObserver},set:function(e){var t=this;void 0===t._hasStyleObserver&&(t._hasStyleObserver=e),e?u.watch(t):u.unwatch(t)}},{key:"attached",value:function(){var e=this;e.hasStyleObserver&&u.watch(e),e.onAttached&&e.onAttached(),Smart(e._selector)&&Smart(e._selector).attached&&Smart(e._selector).attached()}},{key:"detached",value:function(){var e=this;e.hasStyleObserver&&u.unwatch(e),e._setModuleState("detached"),e.isAttached=!1,e.ownerElement&&-1===e.ownerElement.detachedChildren.indexOf(e)&&e.ownerElement.detachedChildren.push(e),e._handleListeners("unlisten"),e.onDetached&&e.onDetached(),Smart(e._selector)&&Smart(e._selector).detached&&Smart(e._selector).detached(),h&&h[e._selector]&&delete h[e._selector]}}
1,{key:"propertyChangedHandler",value:function(e,t,n){var i=this;t!==n&&("theme"===e&&(""!==t&&i.classList.remove("smart-"+t),""!==n&&i.classList.add("smart-"+n)),"visibility"===e?("collapsed"===t?i.classList.remove("smart-hidden"):"hidden"===t&&i.classList.remove("smart-visibility-hidden"),"collapsed"===n?i.classList.add("smart-hidden"):"hidden"===n&&i.classList.add("smart-visibility-hidden")):("disabled"===e||"readonly"===e)&&i._ariaPropertyChangedHandler(e,n),i.propertyChanged&&i.propertyChanged(e,t,n))}},{key:"_ariaPropertyChangedHandler",value:function(e,t){var n=this;"readonly"===e&&-1===["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox"].indexOf(n.getAttribute("role"))||(t?n.setAttribute("aria-"+e,!0):n.removeAttribute("aria-"+e))}},{key:"_handleListeners",value:function(e){var t=this,n=t.tagName.toLowerCase(),i=function(i){var r=function(r){var a=r.split("."),o=a[0],s=t.$;if(a[1])if(o=a[1],s=t["$"+a[0]],"document"===a[0]){var l=t.smartId;""===l&&(l=y.Core.toCamelCase(n)),o=o+"."+l}else t.smartId&&(o=o+"."+t.smartId+"_"+t.parents.length);else t.smartId&&(o=o+"."+t.smartId);var c=i[r];s&&s[e](o,function(e){var n=t.context;t.context=t,t[c]&&t[c].apply(t,[e]),t.context=n})};for(var a in i)r(a)};i(t.getStaticMember("listeners")),i(t.templateListeners),Smart(t._selector)&&Smart(t._selector).properties&&i(Smart(t._selector).listeners)}},{key:"parseTemplate",value:function(){var e=this,n=e.template(),i=document.createDocumentFragment();if(t[e.nodeName]&&!r)return t[e.nodeName].cloneNode(!0);if(""===n)return null;var a=document.createElement("div");i.appendChild(a),a.innerHTML=n;var o=a.childNodes;a.parentNode.removeChild(a);for(var s=0;s<o.length;s++)i.appendChild(o[s]);return t[e.nodeName]=i,r?i:i.cloneNode(!0)}},{key:"applyTemplate",value:function(){var e=this,t=e.parseTemplate();if(t&&t.hasChildNodes){var n=t.childNodes[0],i=function(t,n){e["$"+t]=n.$=y.Extend(n),e.$[t]=n,n.ownerElement=e},r=n;if(n.getElementsByTagName("content").length>0){var a=n.getElementsByTagName("content")[0];(r=a.parentNode).removeChild(a)}else{var o=t.querySelectorAll("[inner-h-t-m-l]");o&&o.length>0&&(r=o[0])}e.$.template="template"===n.nodeName.toLowerCase()?n:n.querySelector("template");var s=t.querySelectorAll("[id]");0===s.length&&(s=t.querySelectorAll("*")),i("root",n),i("content",r),e.$.html=e.innerHTML.toString().trim();for(var l=0;l<s.length;l+=1){var c=s[l];""===c.id&&(c.id="child"+l),i(c.id,c),c.setAttribute("smart-id",c.id),e.shadowRoot?c.shadowParent=e:c.removeAttribute("id")}for(e.bindings=!1!==e.hasTemplateBindings?e.getBindings(t):[],e.$root.addClass("smart-container");e.childNodes.length;)r.appendChild(e.firstChild);if(e.appendTemplate(t),e.$.template){var u=document.createElement("div");u.classList.add("smart-template-container"),e.$.templateContainer=u,e.$.template.parentNode.insertBefore(u,e.$.template),e.refreshTemplate()}}}},{key:"refreshTemplate",value:function(){var e=this;if(e.$.templateContainer){e.templateDetached(e.$.templateContainer);var t=e.$.template.content.cloneNode(!0);e.templateBindings=e.getBindings(t),e.templateProperties=[];var n=document.createDocumentFragment();(function t(n,i,r){for(var a in n){var o=n[a],s=o.node.cloneNode();i.appendChild(s);var l=[],c=!1;if(o.data)for(var u in o.data){var d=o.data[u],h=d.name;if(e.templateProperties[h]=!0,s.removeAttribute(y.Core.toDash(u)),"*items"===u)l=e[h],c=!0;else if(h.indexOf("item.")>=0&&void 0!==r)d.value=r[h.substring(5)],s[u]=d.value;else if(h.indexOf("item")>=0&&void 0!==r)d.value=r,s[u]=d.value;else if("*if"===u)if(h.indexOf("(")>=0){var f=void 0,p=h.substring(h.indexOf("(")),m=h.substring(0,h.indexOf("("));if((p=(p=(p=p.substring(1,p.length-1)).replace(/ /gi,"")).split(",")).length>0&&""!==p[0]){for(var g=[],v=0;v<p.length;v++)g.push(e[p[v]]);f=e[m].apply(e,g)}else f=e[m]();!1===f&&i.removeChild(s)}else e[h]||i.removeChild(s);else e.updateBoundNode(s,o,e,h)}if(l.length>0||c){for(var b=0;b<l.length;b++)o.children&&t(o.children,s,l[b]);if("number"==typeof l)for(var _=0;_<l;_++)o.children&&t(o.children,s,_)}else o.children&&t(o.children,s,r)}})(e.templateBindings.children,n),e.$.templateContainer.innerHTML="",e.$.templateContainer.appendChild(n),e.templateAttached(e.$.templateContainer)}}},{key:"templateAttached",value:function(){}},{key:"templateDetached",value:function(){}},{key:"appendTemplate",value:function(e){this.appendChild(e)}},{key:"defineElementModules",value:function(){var e=this,t=e.constructor.prototype;if("BaseElement"===t.elementName){t.modules=e.constructor.modules;for(var n=t.modules,i=0;i<n.length;i+=1)e.addModule(n[i])}else{var r=t.modules;if(!r)return;for(var a=0;a<r.length;a+=1){var o=r[a],s=o.prototype;e.defineElementMethods(s.methodNames,s),e.defineElementProperties(o.properties)}}}},{key:"watch",value:function(e,t){this._watch=null!==e&&null!==t?{properties:e,propertyChangedCallback:t}:null}},{key:"unwatch",value:function(){this._watch=null}},{key:"set",value:function(e,t,n){var i=this,r=i.context;i.context=!0===n?document:i,i[e]=t,i.context=r}},{key:"get",value:function(e){return this[e]}},{key:"_setModuleState",value:function(e,t){for(var n="is"+e.substring(0,1).toUpperCase()+e.substring(1),i="on"+e.substring(0,1).toUpperCase()+e.substring(1),r=0;r<this.modulesList.length;r++){var a=this.modulesList[r];a[n]=!0,a[e]&&a[e](t),a[i]&&a[i](t)}}},{key:"addModule",value:function(e,t){var n=this;if(e){var i=n.modules.slice(0),r=e.prototype,a=Object.getPrototypeOf(e);if(a.name&&a.name!==e.name&&n.addModule(a),!e.moduleName&&e.name&&(e.moduleName=e.name),-1===i.findIndex(function(t){return e.moduleName===t.moduleName})&&i.push(e),n.defineModule(e),n.defineElementMethods(r.methodNames,r),n.defineElementProperties(e.properties),n.constructor.prototype.modules=i,t)for(var o in Smart.Elements.tagNames){for(var s=Smart.Elements.tagNames[o],l=Object.getPrototypeOf(s),c=[];l!==HTMLElement;)c.push(l.prototype),l=Object.getPrototypeOf(l);c.indexOf(n)>=0&&s!==n&&s.prototype.addModule(e)}}}},{key:"defineModule",value:function(e){if(!e.isDefined){e.prototype._initModule=function(e){this.ownerElement=e};var t=e.properties||{},n=Object.keys(t),i=Object.getOwnPropertyNames(e.prototype);e.prototype.methodNames=i;for(var r=function(i){var r=n[i],a=t[r];Object.defineProperty(e.prototype,r,{configurable:!1,enumerable:!0,get:function(){return this.ownerElement?this.ownerElement[r]:a.value},set:function(e){this.ownerElement[r]=e}})},a=0;a<n.length;a+=1)r(a);e.isDefined=!0}}},{key:"getStaticMember",value:function(e,t){var i=window[n][this.elementName],r=i[e];t||(t="");for(var a="array"===t?[]:"string"===t?"":{},o=Object.getPrototypeOf(i),s=[];o[e];
1)s.push(o[e]),o=Object.getPrototypeOf(o);for(var l=s.length-1;l>=0;l--)if("array"===t)for(var c=0;c<s[l].length;c++)-1===a.indexOf(s[l][c])&&a.push(s[l][c]);else"string"===t?-1===a.indexOf(s[l])&&(a+=s[l]):a=y.Core.assign(a,s[l]);if("array"===t){for(var u=0;u<r.length;u++)-1===a.indexOf(r[u])&&a.push(r[u]);return a}return"string"===t?(-1===a.indexOf(r)&&(a+=r),a):y.Core.assign(a,r)}},{key:"defineElementHierarchicalProperties",value:function(e,t){var n=[];!function(e){for(var i=Object.keys(e),r=0;r<i.length;r++){var a=i[r];if("messages"!==a){var o=e[a],s=Object.keys(o),l=s.indexOf("value")>=0&&s.indexOf("type")>=0&&"object"==typeof o.value;("propertyObject"===o.type||l)&&function e(i,r){if(i.value)for(var a=Object.keys(i.value),o=function(o){var s=a[o],l=i.value[s],c=r+"_"+s;if("object"!=typeof l||null===l)return"break";var u=Object.keys(l);if(!(u.indexOf("value")>=0&&u.indexOf("type")>=0))return"break";if("array"!==i.type&&(i.isHierarchicalProperty=!0),l.parentPropertyName=r,t){var d=t._properties[c];if(i.value.hasOwnProperty(s)){if(d.isDefined)return"continue";delete i.value[s]}d.isDefined=!0,Object.defineProperty(i.value,s,{configurable:!1,enumerable:!0,get:function(){return t._properties[c].value},set:function(e){t.updateProperty(t,t._properties[c],e)}})}n[c]||(n[c]=l,n.length++),("propertyObject"===l.type||"object"==typeof l.value&&"array"!==l.type)&&e(t?t._properties[c]:l,c)},s=0;s<a.length;s++){var l=o(s);if("break"===l)break}}(o,a)}}}(e),n.length>0&&!t&&this.defineElementProperties(n)}},{key:"defineElement",value:function(){var e=this,t=e.constructor.prototype,n=e.getStaticMember("properties"),i=Object.getOwnPropertyNames(t);t.extendedProperties={},t.boundProperties={},t.templateListeners={},e.defineElementModules(),e.defineElementMethods(i,t),e.defineElementProperties(n),e.defineElementHierarchicalProperties(e.extendedProperties),t._initElement=function(){var e=this,n=t.extendedProperties,i=Object.keys(n),r=e.modules;e.$=y.Extend(e),e.$document=b,e.smartId=(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase(),e.isCreated||(e.modulesList=[],e._properties=[],e._beforeCreatedProperties&&(e._properties=e._beforeCreatedProperties,delete e._beforeCreatedProperties),e.detachedChildren=[],e.propertyByAttributeName=[]);for(var a=0;a<r.length;a+=1){var o=new(0,r[a]);o._initModule(e),e.modulesList.push(o)}for(var s=function(t){var r=i[t],a=n[r],o=a.value;if(e._properties[r]){if(void 0!==e._properties[r].notify)return"continue";delete e._properties[r]}if(M&&"innerHTML"===r&&delete e[r],-1===window.navigator.userAgent.indexOf("PhantomJS")&&e.hasOwnProperty(r)&&(o=e[r],delete e[r]),"array"===a.type&&null!=o&&(o=o.slice(0)),"object"===a.type&&null!=o&&(o=Array.isArray(o)?o.slice(0):Object.assign({},o)),e._properties[r]={name:r,notify:a.notify,allowedValues:a.allowedValues,type:a.type,nullable:a.nullable,reflectToAttribute:a.reflectToAttribute,defaultReflectToAttribute:a.defaultReflectToAttribute,defaultReflectToAttributeConditions:a.defaultReflectToAttributeConditions,value:o,readOnly:a.readOnly,defaultValue:o,attributeName:a.attributeName,observer:a.observer,inherit:a.inherit,extend:a.extend,validator:a.validator},e.propertyByAttributeName[a.attributeName]=e._properties[r],!a.hasOwnProperty("type")){var s=e.localize("propertyUnknownType",{name:r});e.log(s)}if("any"===a.type||"propertyObject"===a.type)return"continue";var l=y.Types.getType(o);if(null!=o&&a.type!==l&&!a.validator){if("object"===a.type&&"array"===l)return"continue";if("number"===l&&["integer","int","float"].findIndex(function(e){return e===a.type})>=0)return"continue";var c=e.localize("propertyInvalidValueType",{name:r,actualType:l,type:a.type});e.log(c)}},l=0;l<i.length;l+=1)s(l);e.defineElementHierarchicalProperties(e._properties,e),e.isCreated=!0},t.registered()}},{key:"defineElementMethods",value:function(e,t){var n=this.constructor.prototype,i=["constructor","ready","created","render","attached","detached","appendChild","insertBefore","removeChild","connect","disconnectedCallback","connectedCallback","attributeChangedCallback","propertyChangedH
1andler","enableShadowDOM","isInShadowDOM","addPropertyBindings"],r=function(r){var a=e[r];a.startsWith("_")||void 0!==i.find(function(e){return e===a})||n.extendedProperties[a]||y.Types.isFunction(t[a])&&(n[a]=function(e,t){var n=Array.prototype.slice.call(arguments,2);return function(){if(!this.isReady&&"localize"!==t&&"localize"!==t&&"cloneNode"!==t&&"importStyle"!==t&&"log"!==t&&"parseAttributes"!==t){var i=this.localize("elementNotInDOM");this.log(i)}for(var r=this,a=0;a<this.modulesList.length;a++){var o=this.modulesList[a];if(t in o){r=o;break}}var s=this.context,l=n.concat(Array.prototype.slice.call(arguments)),c=null,u=function(e,t){return e===t||"number"===e&&("int"===t||"integer"===t||"float"===t)||"bool"===e&&"boolean"===t||"boolean"===e&&"bool"===t||"object"===e&&"any"===t||void 0};if(this.methods){var d=this.methods[t];if(d){var h=d.split(":");c=h[h.length-1].trim();for(var f=[],p=d.substring(1+d.indexOf("("),d.lastIndexOf(")")).split(","),m="",g=0;g<p.length;g++){var v=p[g];m+=v,v.indexOf(":")>=0?(f.push(m),m=""):m+=","}for(var b=f.length,_=0;_<f.length;_++){var w=f[_].trim().split(":"),k=w[0].split("=")[0].trim().indexOf("?")>=0,C=w[1].indexOf("?")>=0,x=w[1].replace(/\?/gi,"").trim(),S=x.split("|"),M=w[0].split("=")[1],D=y.Types.getType(l[_]);if(void 0===l[_]&&M){switch(M=M.trim(),x[0]){case"date":var T=M.substring(M.indexOf("(")+1,M.lastIndexOf(")"));M=0===(T=T.length>0?T.split(",").map(function(e){return parseInt(e)}):[]).length?new Date:new Date(T[0],T[1],T[2]);break;case"bool":case"boolean":M="true"===M||"1"===M;break;case"int":case"integer":M=parseInt(M);break;case"float":case"number":M=parseFloat(M);break;case"any":case"object":M=M.indexOf("{")>=0?JSON.parse(M):M}l.push(M)}else k&&b--;if(x!==D&&D){for(var E=!0,A=0;A<S.length;A++)if(u(D,S[A])){E=!1;break}if(E&&(null!==l[_]||!C)){var P=this.localize("methodInvalidValueType",{name:t,actualType:D,type:x,argumentIndex:_});this.log(P)}}if(l.length<b){var L=this.localize("methodInvalidArgumentsCount",{name:t,actualArgumentsCount:l.length,argumentsCount:b});this.log(L)}}}}this.context=this;var O=e.apply(r,l);if(c){var I=void 0===y.Types.getType(O)?"void":y.Types.getType(O);if(!u(I,c)){var H=this.localize("methodInvalidReturnType",{name:t,actualType:I,type:c});this.log(H)}}return this.context=s,O}}(t[a],a))};for(var a in e)r(a)}},{key:"defineElementProperties",value:function(e){if(e){var t=this,n=t.constructor.prototype,i=Object.keys(e),r=t.getStaticMember("properties");Object.assign(n.extendedProperties,e),t.updateProperty=function(e,t,n){var i=e;if(t&&!t.readOnly){if(t.allowedValues){for(var r=!1,a=0;a<t.allowedValues.length;a++)if(t.allowedValues[a]===n){r=!0;break}if(!r){var o=JSON.stringify(t.allowedValues).replace(/\[|\]/gi,"").replace(",",", ").replace(/"/gi,"'"),s=i.localize("propertyInvalidValue",{name:t.name,actualValue:"'"+n+"'",value:o});return void i.log(s)}}var l=t.name,c=i._properties[l].value;if(t.validator&&i[t.validator]){var u=i.context;i.context=i;var d=i[t.validator](c,n);void 0!==d&&(n=d),i.context=u}if(c!==n){if(i.propertyChanging){var h=i.propertyChanging(l,c,n);if(!1===h||null===h)return}if(!t.hasOwnProperty("type")){var f=i.localize("propertyUnknownType",{name:l});i.log(f)}if("array"!==t.type||JSON.stringify(c)!==JSON.stringify(n)){if(null!=n&&"any"!==t.type&&"propertyObject"!==t.type&&t.type!==y.Types.getType(n)&&!t.validator||null===n&&!t.nullable){var p=!0;if("object"===t.type&&"array"===y.Types.getType(n)&&(p=!1),"number"===y.Types.getType(n)&&["integer","int","float"].findIndex(function(e){return e===t.type})>=0&&(p=!1),p){var m=i.localize("propertyInvalidValueType",{name:l,actualType:y.Types.getType(n),type:t.type});return void i.error(m)}}if(t.isUpdating=!0,t.isHierarchicalProperty){!function e(t,n){for(var r=Object.keys(t),a=0;a<r.length;a++){var o=r[a],s=t[o];"object"==typeof s&&!y.Types.isArray(s)&&s&&s.constructor!==Date?e(s,n+"_"+o):i[n+"_"+o]=s}}(n,l)}else i._properties[l].value=n;if(!t.isUpdatingFromAttribute&&t.reflectToAttribute&&i.$.setAttributeValue(t.attributeName,n,t.type),i.isReady&&(!i.ownerElement||i.ownerElement&&i.ownerElement.isReady)){if
1("wait"===l&&(n||!c||i.isCompleted||(i.classList.remove("smart-visibility-hidden"),i.ownerElement&&i.ownerElement.updateBoundMappedNodes(),i.updateBoundMappedNodes(),i.complete())),"renderMode"===l)return;if(i.context!==i&&!i.wait){var g=i.context;i.context=i,i.propertyChangedHandler(l,c,n),i.context=g,t.observer&&i[t.observer]&&(i.context=i,i[t.observer](c,n),i.context=document),i._watch&&i._watch.properties.indexOf(l)>=0&&i._watch.propertyChangedCallback(l,c,n)}var v=t.notify||i.boundProperties[l];v&&(i.$.fireEvent(t.attributeName+"-changed",{context:i.context,oldValue:c,value:i[l]}),i.boundProperties[l]&&i.updateBoundNodes(l)),v&&i.templateProperties&&i.templateProperties[l]&&i.refreshTemplate(),i.dataContextProperties&&("dataContext"===l?i.applyDataContext():i.dataContextProperties[l]&&i.updateDataContextProperty(l))}t.isUpdating=!1}}}};for(var a=function(t){var a=i[t],o=e[a],s=y.Core.toDash(a),l=o.type||"any",c=l.indexOf("?")>=0||"any"===l;c&&"any"!==l&&(o.type=l.substring(0,l.length-1)),o.nullable=c,o.attributeName=s.toLowerCase(),o.name=a,o.reflectToAttribute=void 0===o.reflectToAttribute||o.reflectToAttribute,o.inherit&&r[a]&&(o.value=r[a].value),o.extend&&r[a]&&y.Core.assign(o.value,r[a].value),n.hasOwnProperty(a)||Object.defineProperty(n,a,{configurable:!1,enumerable:!0,get:function(){if(this._properties[a])return this._properties[a].value},set:function(e){var t=this;t.updateProperty(t,t._properties[a],e)}})},o=0;o<i.length;o+=1)a(o)}}}],[{key:"properties",get:function(){return{animation:{value:"advanced",type:"string",allowedValues:["none","simple","advanced"]},unfocusable:{value:!1,type:"boolean"},disabled:{value:!1,type:"boolean"},dataContext:{value:null,reflectToAttribute:!1,type:"any"},debugMode:{value:!0,type:"boolean",reflectToAttribute:!1},locale:{value:"en",type:"string",reflectToAttribute:!1},localizeFormatFunction:{value:void 0,type:"function",reflectToAttribute:!1},messages:{value:{en:{propertyUnknownName:"Invalid property name: '{{name}}'!",propertyUnknownType:"'{{name}}' property is with undefined 'type' member!",propertyInvalidValue:"Invalid '{{name}}' property value! Actual value: '{{actualValue}}', Expected value: '{{value}}'!",propertyInvalidValueType:"Invalid '{{name}}' property value type! Actual type: '{{actualType}}', Expected type: '{{type}}'!",methodInvalidValueType:"Invalid '{{name}}' method argument value type! Actual type: '{{actualType}}', Expected type: '{{type}}' for argument with index: '{{argumentIndex}}'!",methodInvalidArgumentsCount:"Invalid '{{name}}' method arguments count! Actual arguments count: '{{actualArgumentsCount}}', Expected at least: '{{argumentsCount}}' argument(s)!",methodInvalidReturnType:"Invalid '{{name}}' method return type! Actual type: '{{actualType}}', Expected type: '{{type}}'!",elementNotInDOM:"Element does not exist in DOM! Please, add the element to the DOM, before invoking a method.",moduleUndefined:"Module is undefined.",missingReference:"{{elementType}}: Missing reference to '{{files}}'.",htmlTemplateNotSuported:"{{elementType}}: Web Browser doesn't support HTMLTemplate elements.",invalidTemplate:"{{elementType}}: '{{property}}' property accepts a string that must match the id of an HTMLTemplate element from the DOM."}},reflectToAttribute:!1,inherit:!0,type:"object"},props:{value:null,reflectToAttribute:!1,isHierarchicalProperty:!0,type:"any"},readonly:{value:!1,type:"boolean"},renderMode:{value:"auto",type:"string",reflectToAttribute:!1,allowedValues:["auto","manual"]},rightToLeft:{value:!1,type:"boolean"},rethrowError:{value:!0,type:"boolean",reflectToAttribute:!1},theme:{value:window[n].Theme,type:"string"},visibility:{value:"visible",allowedValues:["visible","collapsed","hidden"],type:"string"},wait:{value:!1,type:"boolean"}}}},{key:"clearCache",value:function(){this.cache={}}},{key:"requires",get:function(){return{}}},{key:"listeners",get:function(){return{"theme-changed":function(e){this.theme=e.detail.newValue}}}},{key:"methods",get:function(){return{}}},{key:"modules",get:function(){return window[n].Modules}},{key:"version",get:function(){return window[n].Version}}]),a}(_wrapNativeSuper(HTMLElement)),C=[],x=[],S=[],M=!1,D=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);D&&parseInt(D[2],10)<=50&&(M=!0);var T=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"register",value:function(e,t){var i=t.prototype,r=l.toCamelCase(e).replace(/[a-z]+/,""),a=t.version||window[n].Version;if(!window.customElements.get(e)||window.customElements.get(e).version!==a){var o=e;for(a=a.split(".");window.customElements.get(e);)e=o+"-"+a.join("."),a[2]=parseInt(a[2])+1;if(!C[e]){if(e.startsWith(n.toLowerCase()))C[e]=window[n][r]=window[n.toLowerCase()+r]=t;else{var s=e.split("-")[0];s=s.substring(0,1).toUpperCase()+s.substring(1),window[n][s]||(window[n][s]={}),C[e]=window[n][s][r]=window[s.toLowerCase()+r]=t,window[n][r]&&(r=l.toCamelCase(e)),window[n][r]=t}i.elementName=r,i.defineElement(),x[e]&&x[e](i),window.customElements.define(e,t)}}}},{key:"registerElements",value:function(){var e=this;
1if(e.toRegister){e.isRegistering=!0;for(var t=0;t<e.toRegister.length;t++){var n=e.toRegister[t];e.register(n.tagName,n.element)}e.isRegistering=!1}}},{key:"get",value:function(e){if(C[e])return C[e]}},{key:"whenRegistered",value:function(e,t){if(!e)throw new Error("Syntax Error: Invalid tag name");var n=x[e],i=this.get(e),r=i?i.modules.length:3;try{n||i?!n&&i?(t(i.prototype),x[e]=void 0):n&&!i?x[e]=function(e){n(e),t(e)}:n&&i&&(i.proto&&(n(i.proto),t(i.proto)),x[e]=void 0):x[e]=function(e){try{t(e)}catch(e){var n=e instanceof Error?e.message:e.toString();console.log(n)}}}catch(e){var a=e instanceof Error?e.message:e.toString();console.log(a)}if(i&&r!==i.prototype.modules.length)for(var o=document.querySelectorAll(e),s=0;s<o.length;s++){var l=o[s];l.isCreated&&l._initElement()}}}]),e}();T.lazyRegister=!1,T.tagNames=[];var E=function(){function e(){_classCallCheck(this,e);var t=this;t.name="observableArray",t.observables=arguments.length<3?null:arguments[2];var n=new Proxy(t,{deleteProperty:function(e,t){return delete e[t],!0},apply:function(e,t,n){return e.apply(t,n)},get:function(e,n){return e[n]||isNaN(parseInt(n))?e[n]:t.getItem(parseInt(n))},set:function(e,n,i){return e[n]||isNaN(parseInt(n))?(e[n]=i,!0):(t.setItem(parseInt(n),i),!0)}});if(t._addArgs={eventName:"change",object:n,action:"add",index:null,removed:new Array,addedCount:1},t._removeArgs={eventName:"change",object:n,action:"remove",index:null,removed:null,addedCount:0},arguments.length>=1&&Array.isArray(arguments[0])){t._array=[];for(var i=arguments[0],r=0,a=i.length;r<a;r++){var o=t._getItem(t._array.length,i[r]);t._array.push(o)}}else t._array=Array.apply(null,arguments);return 2===arguments.length&&(t.notifyFn=arguments[1]),n}return _createClass(e,[{key:"canNotify",get:function(){var e=this;return void 0===e._canNotify&&(e._canNotify=!0),e._canNotify},set:function(e){this._canNotify=e}},{key:"_notify",value:function(e){var t=this;t.canNotify&&t.notifyFn&&t.notifyFn(e)}},{key:"notify",value:function(e){e&&(this.notifyFn=e)}},{key:"toArray",value:function(){return this._array}},{key:"_getItem",value:function(e,t){var n=this;return"string"==typeof t||"number"==typeof t||void 0===t?t:new Proxy(t,{deleteProperty:function(e,t){return delete e[t],!0},set:function(t,i,r){var a=t[i];return t[i]=r,!n._canNotify||!1===t.canNotify||(n.observables&&!n.observables[i]||n._notify({eventName:"change",object:n,target:t,action:"update",index:e,path:e+"."+i,oldValue:a,newValue:r,propertyName:i}),!0)}})}},{key:"getItem",value:function(e){return this._array[e]}},{key:"setItem",value:function(e,t){var n=this,i=n._array[e];n._array[e]=n._getItem(e,t),n._notify({eventName:"change",object:n._array,action:"update",index:e,removed:[i],addedCount:1})}},{key:"length",get:function(){return this._array.length},set:function(e){var t=this;a.isNumber(e)&&t._array&&t._array.length!==e&&t.splice(e,t._array.length-e)}},{key:"toString",value:function(){return this._array.toString()}},{key:"toLocaleString",value:function(){return this._array.toLocaleString()}},{key:"concat",value:function(){var e=this;e._addArgs.index=e._array.length;var t=e._array.concat.apply(e._array,arguments);return new Smart.ObservableArray(t)}},{key:"join",value:function(e){return this._array.join(e)}},{key:"pop",value:function(){var e=this;e._removeArgs.index=e._array.length-1,delete e[e._array.length-1];var t=e._array.pop();return e._removeArgs.removed=[t],e._notify(e._removeArgs),e._notifyLengthChange(),t}},{key:"push",value:function(){var e=this;if(e._addArgs.index=e._array.length,1===arguments.length&&Array.isArray(arguments[0]))for(var t=arguments[0],n=0,i=t.length;n<i;n++){var r=e._getItem(e._array.length,t[n]);e._array.push(r)}else{var a=e._getItem(e._addArgs.index,arguments[0]);e._array.push.apply(e._array,[a])}return e._addArgs.addedCount=e._array.length-e._addArgs.index,e._notify(e._addArgs),e._notifyLengthChange(),e._array.length}},{key:"_notifyLengthChange",value:function(){var e=this;if(e.canNotify){var t=e._createPropertyChangeData("length",e._array.length);e._notify(t)}}},{key:"_createPropertyChangeData",value:function(e,t,n){return{eventName:"change",object:this,action:e,value:t,oldValue:n}}},{key:"reverse",value:function(){return this._array.reverse()}},{key:"shift",value:function(){var e=this,t=e._array.shift();return e._removeArgs.index=0,e._removeArgs.removed=[t],e._notify(e._removeArgs),e._notifyLengthChange(),t}},{key:"slice",value:function(e,t){return this._array.slice(e,t)}},{key:"sort",value:function(e){return this._array.sort(e)}},{key:"splice",value:function(e,t,n){var i,r=this,a=r._array.length;if(n&&n.length)for(var o=0;o<n.length;o++)i=r._array.splice(e+o,t,n[o]);else i=r._array.splice.apply(r._array,arguments);if(n){var s=r.canNotify;if(r.canNotify=!1,n.length)for(var l=0;l<n.length;l++)r.setItem(e+l,n[l]);else r.setItem(e,n);r.canNotify=s,r._notify({eventName:"change",object:this,action:"add",index:e,added:i,addedCount:r._array.length>a?r._array.length-a:0})}else r._notify({eventName:"change",object:this,action:"remove",index:e,removed:i,addedCount:r._array.length>a?r._array.length-a:0});return r._array.length!==a&&r._notifyLengthChange(),i}},{key:"unshift",value:function(){var e=this,t=e._array.length,n=e._array.unshift.apply(e._array,arguments);return e._addArgs.index=0,e._addArgs.addedCount=n-t,e._notify(this._addArgs),e._notifyLengthChange(),n}},{key:"indexOf",value:function(e,t){for(var n=t||0,i=this._array.length;n<i;n++)if(this._array[n]===e)return n;return-1}},{key:"lastIndexOf",value:function(e,t){for(var n=t||this._array.length-1;n>=0;n--)if(this._array[n]===e)return n;return-1}},{key:"find",value:function(e,t){return this._array.find(e,t)}},{key:"findIndex",value:function(e,t){return this._array.findIndex(e,t)}},{key:"every",value:function(e,t){return this._array.every(e,t)}},{key:"some",value:function(e,t){return this._array.some(e,t)}}
1,{key:"forEach",value:function(e,t){this._array.forEach(e,t)}},{key:"map",value:function(e,t){return this._array.map(e,t)}},{key:"filter",value:function(e,t){return this._array.filter(e,t)}},{key:"reduce",value:function(e,t){return void 0!==t?this._array.reduce(e,t):this._array.reduce(e)}},{key:"reduceRight",value:function(e,t){return void 0!==t?this._array.reduceRight(e,t):this._array.reduceRight(e)}},{key:"move",value:function(e,t){this.splice(t,0,this.splice(e,1)[0])}}]),e}(),A={};window[n]&&(A=window[n]),window[n]=function(e,t){var i=e;if(e){if(e.indexOf("#")>=0||e.indexOf(".")>=0)return h[e]?h[e]:t?(h[e]=new t,function(e,t){var n=t.properties;t._properties=[];(function n(i,r){for(var a=Object.keys(i),o=function(o){var s=a[o],l=i[s];t._properties[r+s]=l,Array.isArray(l)?t._properties[r+s]=new E(l,function(t){var n=s+"."+t.path,i=t.newValue,r=document.querySelector(e);if(r){for(var a=n.split("."),o=r,l=0;l<a.length;l++)o=o[a[l]];o=i}}):(Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:function(){return t._properties[r+s]},set:function(e){t._properties[r+s]=e}}),l&&"DataAdapter"===l.constructor.name||l&&"object"==typeof l&&Smart.DataAdapter&&l instanceof Smart.DataAdapter||"object"==typeof l&&l&&Object.keys(l).length>0&&n(l,r+s+"."))},s=0;s<a.length;s++)o(s)})(n,""),Object.defineProperty(t,"properties",{configurable:!1,enumerable:!0,get:function(){return n}});var i=document.querySelector(e);if(i&&i.isReady)for(var r in n)i[r]=n[r];else if(i)for(var a in i.props={},n)i.props[a]=n[a]}(e,h[e]),h[e]):void 0;if(t){if(T.tagNames[e]=t,T.lazyRegister){T.toRegister||(T.toRegister=[]);var r=l.toCamelCase(i).replace(/[a-z]+/,"");return window[n][r]=t,void T.toRegister.push({tagName:i,element:t})}T.register(i,t)}}},window.addEventListener("load",function(){var e=window[n].Elements.tagNames,t=[];for(var i in e){for(var r=e[i],a=document.querySelectorAll("["+i+"]"),o=0;o<a.length;o++){var s=a[o];s instanceof HTMLDivElement&&(s.__proto__=r.prototype,s.created(),s.connectedCallback()),s.classList.add("smart-element-ready")}var l=r.name;"Item"===l&&(l="ListItem"),a=document.querySelectorAll('[is="'+n.toLocaleLowerCase()+l+'"]');for(var c=0;c<a.length;c++)t.push(a[c])}if(t.length>0){var u=function(e){for(var t=[],n=e.parentNode;n&&9!==n.nodeType;)n instanceof HTMLElement==1&&t.push(n),n=n.parentNode;return t};t.sort(function(e,t){var n=u(e).length,i=u(t).length;return n<i?1:n>i?-1:0});for(var d=0;d<t.length;d++){var h=t[d],f=h.getAttribute("is");("smartItem"===f?new window.smartListItem(h):new window[f](h)).removeAttribute("is")}}});var P=function e(){if("complete"===document.readyState&&"manual"!==window[n].RenderMode){S.sort(function(e,t){var n=e.element.parents.length,i=t.element.parents.length;return n<i?-1:n>i?1:0});for(var t=0;t<S.length;t++)window[n].RenderMode="",S[t].element.isLoading=!1,S[t].callback(),window[n].RenderMode="";S=[],document.removeEventListener("readystatechange",e)}};Object.assign(window[n],{Elements:T,Modules:[],BaseElement:function(e){_inherits(i,e);var t=_createSuper(i);function i(e,n){var r;_classCallCheck(this,i);var a=_assertThisInitialized(r=t.call(this));if(e){n&&(a._initProperties=n);var o=function(e){if("string"==typeof e?document.querySelector(e):e){var t="string"==typeof e?document.querySelector(e):e;if(t instanceof HTMLDivElement){var i,r=document.createElement(a.tagName),o=_createForOfIteratorHelper(t.attributes);try{for(o.s();!(i=o.n()).done;){var s=i.value;r.setAttribute(s.name,t.getAttribute(s.name))}}catch(h){o.e(h)}finally{o.f()}for(;t.childNodes.length;)r.appendChild(t.firstChild);return"string"==typeof e&&(r.id=e.substring(1)),r._initProperties=n,t.parentNode&&t.parentNode.replaceChild(r,t),r}if(n){var l=t.context;if(t._initProperties=n,t.isReady){t.context=t;var c={},u={};for(var d in n)c[d]=t[d],u[d]=n[d];Object.getOwnPropertyNames(n).length>0&&(t.initProperties(),t.propertyChangedHandler(n,c,u)),t.context=l}}return t}};if("string"==typeof e){var s=document.querySelectorAll(e),l=[];if(s.length>1){for(var c=0;c<s.length;c++){var u=o(s[c]);l.push(u)}return _possibleConstructorReturn(r,l)}}else if(e&&e.length>0){var d=e;if(d.length>1){for(var h=0;h<d.length;h++){var f=o(d[h]);C.push(f)}return _possibleConstructorReturn(r,C)}}return _possibleConstructorReturn(r,o(e))}return a._styleUrl="",a.isUtilityElement||a.created(),r}return _createClass(i,[{key:"styleUrl",get:function(){return this._styleUrl},set:function(e){this._styleUrl=e}},{key:"isInShadowDOM",get:function(){var e=this,t=e.getRootNode();return!e.hasAttribute("smart-blazor")&&t!==document&&t!==e}},{key:"getShadowRootOrBody",value:function(){var e=this;return e.isInShadowDOM&&e.getRootNode().host?e.getRootNode().host.shadowRoot:document.body}},{key:"enableShadowDOM",get:function(){return window[n].EnableShadowDOM}},{key:"importStyle",value:function(e,t){this._importStyle(e,t)}},{key:"_importStyle",value:function(e,t){var n=this;if(n.shadowRoot&&e){var i=function(e){for(var i=n.shadowRoot.children,r=0;r<i.length;r++){var a=i[r];if(a instanceof HTMLLinkElement&&a.href===e)return t&&t(),null}var o=document.createElement("link");return o.rel="stylesheet",o.type="text/css",o.href=e,o.onload=t,o},r=function(){for(var e=n.shadowRoot.children,t=null,i=0;i<e.length;i++){var r=e[i];r instanceof HTMLLinkElement&&(t=r)}return t}(),a=function(e,t){t.parentNode.insertBefore(e,t.nextSibling)};if(Array.isArray(e)){for(var o=document.createDocumentFragment(),s=0;s<e.length;s++){var l=i(e[s]);l&&o.appendChild(l)}r?a(o,r):n.shadowRoot.insertBefore(o,n.shadowRoot.firstChild)}else{var c=i(e);if(!c)return;r?a(c,r):n.shadowRoot.insertBefore(c,n.shadowRoot.firstChild)}}}},{key:"attributeChanged",value:function(e,t,n){"style-url"===e&&(this.styleUrl=n)}},{key:"attributeChangedCallback",value:function(e,t,n){this.isReady&&_get(_getPrototypeOf(i.prototype),"attributeChangedCallback",this).call(this,e,t,n)}},{key:"_getRootShadowParent",value:function(){for(var e=this.shadowParent;e;){if(!e.shadowParent)return e;e=e.shadowParent}return e||this.shadowParent}},{key:"_getStyleUrl",value:function(e){var t=y.Core.getScriptLocation()+window[n].StyleBaseUrl+e;return this.shadowParent&&(t=t.replace("scoped/","")),t}},{key:"_getStyleUrls",value:function(){var e=this;e.nodeName.startsWith(n);for(var t=e.getStaticMember("styleUrls","array"),i=[],r=0;r<t.length;
1r++){var a=e._getStyleUrl(t[r]);i.push(a)}return i}},{key:"_setupShadowRoot",value:function(){var e=this;e.classList.add("smart-element-init");var t=function(t){t.$.root&&(t.$.root.classList.add(n.toLowerCase()+"-element"),t.$.root.classList.add(e.nodeName.toLowerCase())),t.setup(),t.classList.remove("smart-element-init")};if(document.adoptedStyleSheets)if(window[n].AdoptedStyleSheets)window[n].AdoptedStyleSheetsLoaded?(e.shadowRoot.adoptedStyleSheets=window[n].AdoptedStyleSheets,t(e)):(e.shadowRoot.adoptedStyleSheets=window[n].AdoptedStyleSheets,window[n].AdoptedStyleSheetsLoadedQueue||(window[n].AdoptedStyleSheetsLoadedQueue=[]),window[n].AdoptedStyleSheetsLoadedQueue.push(e));else{var i=new CSSStyleSheet,r=y.Core.getScriptLocation()+"/styles/smart.default.css";i.replace('@import url("'+r+'")').then(function(){if(t(e),window[n].AdoptedStyleSheetsLoaded=!0,window[n].AdoptedStyleSheetsLoadedQueue){for(var i=window[n].AdoptedStyleSheetsLoadedQueue,r=0;r<i.length;r++)t(i[r]);delete window[n].AdoptedStyleSheetsLoadedQueue}}).catch(function(e){console.error("Failed to load:",e)}),window[n].AdoptedStyleSheets=[i],document.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets=window[n].AdoptedStyleSheets}}},{key:"connect",value:function(){var e=this;window[n].EnableShadowDOM&&!e.shadowRoot&&!0!==e.isInShadowDOM&&(e.attachShadow({mode:"open"}),e.shadowRoot&&e.$.root&&(e.shadowRoot.appendChild(e.$.root),e.$.root.classList.add(e.nodeName.toLowerCase()))),e.shadowRoot||e.shadowParent?e.shadowRoot?e._setupShadowRoot():(e.shadowParent&&window,e.setup()):e.setup()}},{key:"connectedCallback",value:function(){var e=this;if(!e.isLoading&&!e.isUtilityElement){e.classList.add("smart-element-init");var t=function(){e.classList.remove("smart-element-init")};if("complete"===document.readyState&&(void 0===window[n].isAngular&&(window[n].isAngular=null!==document.body.querySelector("[ng-version]")),window[n].isAngular))for(var i=0;i<e.parents.length&&!e.parents[i].nodeName.toLowerCase().startsWith(n.toLowerCase()+"-");i++)if(e.parents[i].hasAttribute("ng-version")&&!e.classList.contains("smart-angular")){window[n].RenderMode="manual";break}if("complete"===document.readyState&&"manual"!==window[n].RenderMode){var r=e.parents;r.length&&"HTML"===r[r.length-1].nodeName||e.getRootNode().host?(e.checkIsInDomTimer&&clearInterval(e.checkIsInDomTimer),t(),e.connect()):(e.checkIsInDomTimer&&clearInterval(e.checkIsInDomTimer),r.length>0&&(e.checkIsInDomTimer=setInterval(function(){var n=e.parents;0===n.length&&clearInterval(e.checkIsInDomTimer),n.length>0&&"HTML"===n[n.length-1].nodeName&&(clearInterval(e.checkIsInDomTimer),t(),e.connect())},100)))}else e.isLoading=!0,S.push({element:this,callback:(function(){this.isReady||(t(),this.connect())}).bind(e)})}}},{key:"disconnectedCallback",value:function(){var e=this;e.isAttached?(e.shadowParent=null,e.detached()):e._resetShadowParent()}},{key:"adoptedCallback",value:function(){this.setup()}},{key:"appendTemplate",value:function(e){var t=this;t.shadowRoot?t.shadowRoot.appendChild(e):t.appendChild(e)}},{key:"_resetShadowParent",value:function(){var e=this;if(window[n].EnableShadowDOM&&null!==e.shadowParent){for(var t=[],i=e.parentNode;i&&9!==i.nodeType;){if(i instanceof HTMLElement==1)t.push(i);else if(11===i.nodeType&&i.host){i=i.host;continue}i=i.parentNode}for(var r=0;r<t.length;r++)if(t[r]===e.shadowParent)return;t.length>0&&"HTML"===t[t.length-1].nodeName&&(e.shadowParent=null)}}}],[{key:"observedAttributes",get:function(){var e=["external-style"];for(var t in this.prototype.extendedProperties)e.push(this.prototype.extendedProperties[t].attributeName);return e}},{key:"styleUrls",get:function(){return[]}},{key:"styles",get:function(){return""}}]),i}(k),Utilities:y,Import:function(e,t){var n=0,i=function(e,t){return new Promise(function(n){var i=document.createElement("script");i.src=e,i.onload=n;for(var r=0;r<document.head.children.length;r++){var a=document.head.children[r];if(a.src&&a.src.toString().indexOf(t)>=0)return void n()}document.head.appendChild(i)})};return new Promise(function(r){var a=y.Core.getScriptLocation();if(t)for(var o=0;o<e.length;
1o++)i(a+"/"+e[o],e[o]).then(function(){++n===e.length&&r()});else!function t(o){e[o]&&i(a+"/"+e[o],e[o]).then(function(){++n===e.length&&r(),t(o+1)})}(0)})},ObservableArray:E,Observable:function(){function e(t,n){_classCallCheck(this,e);var i,r=this;return this.name="observable",t&&Object.assign(r,t),i=t,Object.getOwnPropertyNames(Object.getPrototypeOf(i)).forEach(function(e){return"constructor"===e||!!e.startsWith("_")||void(r[e]=i[e])}),new Proxy(r,{deleteProperty:function(e,t){return delete e[t],!0},get:function(e,t){return e[t]},set:function(e,t,i){var a=e[t];return a===i||(e[t]=i,!("notifyFn"!==t&&!t.startsWith("_")&&"canNotify"!==t&&(!n||-1!==n.indexOf(t))&&r.canNotify&&(r._notify({target:e,propertyName:t,oldValue:a,newValue:i}),0)))}})}return _createClass(e,[{key:"canNotify",get:function(){var e=this;return void 0===e._canNotify&&(e._canNotify=!0),e._canNotify},set:function(e){this._canNotify=e}},{key:"_notify",value:function(e){var t=this;if(t.canNotify&&t.notifyFn)for(var n=0;n<t.notifyFn.length;n++)t.notifyFn[n](e)}},{key:"notify",value:function(e){var t=this;e&&(t.notifyFn||(t.notifyFn=[]),t.notifyFn.push(e))}}]),e}(),Component:function(){function e(t,n){_classCallCheck(this,e);var i=this.name,r=null;return t?r=new window[i](t,n):(r=new window[i])._initProperties=n,this._element=r,r}return _createClass(e,[{key:"name",get:function(){return"Component"}},{key:"element",get:function(){return this._element}}]),e}(),Theme:A.Theme||"",EnableShadowDOM:A.ShadowDom||!1,BaseUrl:"./",StyleBaseUrl:"/styles/default/",Version:e,Templates:t,RenderMode:A.RenderMode||"auto",Render:function(){var e=function(){window[n].RenderMode="",P()};"complete"===document.readyState?e():(window.removeEventListener("load",e),window.addEventListener("load",e))},Data:h,Mode:A.Mode||"production",License:"Evaluation"});var L=window[n].Theme;"manual"!==window[n].RenderMode&&document.addEventListener("readystatechange",P),Object.defineProperty(window[n],"Theme",{configurable:!1,enumerable:!0,get:function(){return L},set:function(e){var t=L;L=e,b.fireEvent("theme-changed",{oldValue:t,newValue:e},{bubbles:!0,cancelable:!0})}}),window[n]("smart-base-element",window[n].BaseElement),window[n]("smart-content-element",function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return"<div inner-h-t-m-l='[[innerHTML]]'></div>"}},{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this),this.applyContent()}},{key:"refresh",value:function(){}},{key:"clearContent",value:function(){for(var e=this;e.$.content.firstChild;)e.$.content.removeChild(e.$.content.firstChild)}},{key:"applyContent",value:function(){var e=this;if(void 0!==e.content)if(""!==e.content&&null!==e.content){if(e.content instanceof HTMLElement)return e.clearContent(),void e.$.content.appendChild(e.content);var t=document.createDocumentFragment(),n=document.createElement("div");t.appendChild(n),e.content instanceof HTMLElement?n.appendChild(e.content):n.innerHTML=e.content;var i=Array.from(n.childNodes);n.parentNode.removeChild(n);for(var r=0;r<i.length;r++)t.appendChild(i[r]);e.clearContent(),e.$.content.appendChild(t)}else e.clearContent();else e.content=e.$.content}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;t!==i&&("innerHTML"===e&&(r.content=i,r.applyContent(),r.innerHTML=r.content=y.Core.html(r.$.content)),"content"===e&&r.applyContent())}}],[{key:"properties",get:function(){return{content:{type:"any",reflectToAttribute:!1},innerHTML:{type:"string",reflectToAttribute:!1}}}}]),n}(window[n].BaseElement)),window[n]("smart-scroll-viewer",function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="container" class="smart-container" role="presentation">\n <div id="scrollViewerContainer" class="smart-scroll-viewer-container" role="presentation">\n <div id="scrollViewerContentContainer" inner-h-t-m-l=\'[[innerHTML]]\' class="smart-scroll-viewer-content-container" role="presentation">\n <content></content>\n </div>\n </div>\n <smart-scroll-bar id="verticalScrollBar" theme="[[theme]]" animation="[[animation]]" disabled="[[disabled]]" right-to-left="[[rightToLeft]]" orientation="vertical"></smart-scroll-bar>\n <smart-scroll-bar id="horizontalScrollBar" theme="[[theme]]" disabled="[[disabled]]" right-to-left="[[rightToLeft]]"></smart-scroll-bar>\n </div>'}},{key:"appendChild",value:function(e){var t=this;if(e){if(!t.isCompleted||e.classList&&e.classList.contains("smart-resize-trigger-container")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}t.$.scrollViewerContentContainer.appendChild(e)}}},{key:"removeChild",value:function(e){var t=this;if(e){if(!t.isCompleted||e.classList&&e.classList.contains("smart-resize-trigger-container")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.removeChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}t.$.scrollViewerContentContainer.removeChild(e)}}},{key:"removeAll",value:function(){this.isCompleted&&(this.$.scrollViewerContentContainer.innerHTML="")}},{key:"_horizontalScrollbarHandler",value:function(e){var t=this;t.$.scrollViewerContentContainer.style.left=(t.rightToLeft?1:-1)*t.scrollLeft+"px",e.stopPropagation&&e.stopPropagation(),t.onHorizontalChange&&t.onHorizontalChange(e)}},{key:"_verticalScrollbarHandler",value:function(e){var t=this;t.$.scrollViewerContentContainer.style.top=-t.scrollTop+"px",e.stopPropagation&&e.stopPropagation(),t.onVerticalChange&&t.onVerticalChange(e)}},{key:"_touchmoveHandler",value:function(e){var t=this;if(t._touchmoveInside&&e.cancelable)return e.preventDefault(),void e.stopPropagation();var n=t.scrollHeight>0,i=t._touchCoords;if((n||t.scrollWidth>0)&&i){var r,a,o,s,l=e.touches[0];t._touchCoords=[l.pageX,l.pageY],n?(r=t.scrollTop,a=t.scrollHeight,o=l.pageY,s=i[1]):(r=t.scrollLeft,a=t.scrollWidth,o=l.pageX,s=i[0]);var c=parseFloat(o.toFixed(5)),u=parseFloat(s.toFixed(5));0===r&&c>=u||r===a&&c<=u||(o!==s&&(t._touchmoveInside=!0),e.cancelable&&(e.preventDefault(),e.stopPropagation()))}}},{key:"_touchstartHandler",value:function(e){var t=e.touches[0];this._touchCoords=[t.pageX,t.pageY]}},{key:"_mouseWheelHandler",value:function(e){var t=this;if(!t.disabled&&(t.computedHorizontalScrollBarVisibility||t.computedVerticalScrollBarVisibility)){if(e.shiftKey&&t.computedHorizontalScrollBarVisibility){var n=t.scrollLeft;if(0===n&&e.deltaX<0||n===t.scrollHeight&&e.deltaX>0)return;return e.stopPropagation(),e.preventDefault(),void(t.scrollWidth>
10&&t.scrollTo(void 0,t.scrollLeft+t._getScrollCoefficient(e,t.offsetWidth)))}if(t.computedVerticalScrollBarVisibility){var i=t.scrollTop;if(0===i&&e.deltaY<0||i===t.scrollHeight&&e.deltaY>0)return;e.stopPropagation(),e.preventDefault(),t.scrollHeight>0&&t.scrollTo(t.scrollTop+t._getScrollCoefficient(e,t.offsetHeight))}}}},{key:"_overriddenHandler",value:function(){}},{key:"_upHandler",value:function(){delete this._touchCoords,delete this._touchmoveInside}},{key:"_getScrollCoefficient",value:function(e,t){var n,i=e.deltaMode,r=Math.abs(e.deltaY);return 0===i?n=r<100/3?r:t:1===i?n=r<1?r*(100/3):t:2===i&&(n=t),e.deltaY<0?-n:n}},{key:"applyContent",value:function(){_get(_getPrototypeOf(n.prototype),"applyContent",this).call(this),this.refresh()}},{key:"computedHorizontalScrollBarVisibility",get:function(){var e=this;return e._scrollView&&e._scrollView.hScrollBar?!e._scrollView.hScrollBar.$.hasClass("smart-hidden"):null}},{key:"computedVerticalScrollBarVisibility",get:function(){var e=this;return e._scrollView&&e._scrollView.vScrollBar?!e._scrollView.vScrollBar.$.hasClass("smart-hidden"):null}},{key:"scrollTo",value:function(e,t){var n=this;n._scrollView&&(void 0!==e&&n._scrollView.scrollTo(e),void 0!==t&&n._scrollView.scrollTo(t,!1))}},{key:"refreshScrollBarsVisibility",value:function(){var e=this;e._scrollView&&(e._scrollView.hScrollBar.disabled=e.disabled,e._scrollView.vScrollBar.disabled=e.disabled,"disabled"===e.horizontalScrollBarVisibility&&(e._scrollView.hScrollBar.disabled=!0),"disabled"===e.verticalScrollBarVisibility&&(e._scrollView.vScrollBar.disabled=!0),e.scrollWidth>0?e._scrollView.hScrollBar.$.removeClass("smart-hidden"):"visible"!==e.horizontalScrollBarVisibility&&e._scrollView.hScrollBar.$.addClass("smart-hidden"),e.scrollHeight>0?e._scrollView.vScrollBar.$.removeClass("smart-hidden"):"visible"!==e.verticalScrollBarVisibility&&e._scrollView.vScrollBar.$.addClass("smart-hidden"),"hidden"===e.horizontalScrollBarVisibility&&e._scrollView.hScrollBar.$.addClass("smart-hidden"),"hidden"===e.verticalScrollBarVisibility&&e._scrollView.vScrollBar.$.addClass("smart-hidden"),"visible"===e.horizontalScrollBarVisibility&&e._scrollView.hScrollBar.$.removeClass("smart-hidden"),"visible"===e.verticalScrollBarVisibility&&(e._scrollView.vScrollBar.$.removeClass("smart-hidden"),e.disabled||(e._scrollView.vScrollBar.disabled=e.scrollHeight<=0)),e.computedHorizontalScrollBarVisibility&&e.computedVerticalScrollBarVisibility?(e._scrollView.hScrollBar.$.addClass("bottom-corner"),e._scrollView.vScrollBar.$.addClass("bottom-corner")):(e._scrollView.hScrollBar.$.removeClass("bottom-corner"),e._scrollView.vScrollBar.$.removeClass("bottom-corner")))}},{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this);var e=this;e.$.verticalScrollBar.onChange=function(t){t.detail=t,e._verticalScrollbarHandler(t)},e.$.horizontalScrollBar.onChange=function(t){t.detail=t,e._horizontalScrollbarHandler(t)},e.$.verticalScrollBar.setAttribute("aria-controls",e.id),e.$.horizontalScrollBar.setAttribute("aria-controls",e.id),e._customScrollView||(e._scrollView=new Smart.Utilities.Scroll(e,e.$.horizontalScrollBar,e.$.verticalScrollBar)),e.refresh()}},{key:"refresh",value:function(){var e=this;function t(){var t=e.$.scrollViewerContainer.classList.contains("vscroll");e.$.scrollViewerContainer.classList.remove("vscroll");var n=e.$.scrollViewerContentContainer.offsetWidth-e.$.scrollViewerContainer.offsetWidth;return n>0&&"hidden"!==e.horizontalScrollBarVisibility||"visible"===e.horizontalScrollBarVisibility?e.$.scrollViewerContainer.classList.add("hscroll"):e.$.scrollViewerContainer.classList.remove("hscroll"),t&&e.$.scrollViewerContainer.classList.add("vscroll"),n}function n(){var t,n=e.$.scrollViewerContainer.classList.contains("hscroll");if(e.$.scrollViewerContainer.classList.remove("hscroll"),Smart.Utilities.Core.Browser.Safari){var i=e.$.scrollViewerContentContainer.getBoundingClientRect().height,r=e.$.scrollViewerContainer.getBoundingClientRect().height;t=i&&r?parseInt(i)-parseInt(r):e.$.scrollViewerContentContainer.offsetHeight-e.$.scrollViewerContainer.offsetHeight}else t=e.$.scrollViewerContentContainer.offsetHeight-e.$.scrollViewerContainer.offsetHeight;return e.virtualScrollHeight&&(t=e.virtualScrollHeight),t>
10&&"hidden"!==e.verticalScrollBarVisibility||"visible"===e.verticalScrollBarVisibility?e.$.scrollViewerContainer.classList.add("vscroll"):e.$.scrollViewerContainer.classList.remove("vscroll"),n&&e.$.scrollViewerContainer.classList.add("hscroll"),t}if(e.$.scrollViewerContentContainer){var i=e.scrollWidth,r=e.scrollHeight;e.scrollWidth=t(),e.scrollHeight=n(),e.scrollHeight&&r===e.scrollHeight||(e.scrollWidth=t()),e.scrollWidth&&i===e.scrollWidth||(e.scrollHeight=n()),e.computedVerticalScrollBarVisibility&&(e.scrollHeight+=e._scrollView.hScrollBar.offsetHeight),e.computedHorizontalScrollBarVisibility&&(e.scrollWidth+=e._scrollView.vScrollBar.offsetWidth),0===e.scrollHeight&&e.scrollWidth>0&&e.$.container.offsetHeight-e.$.content.offsetHeight<5&&(e.$.container.style.paddingBottom=e._scrollView.hScrollBar.offsetHeight+"px")}}},{key:"attached",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"attached",this).call(this),e._scrollView||e._customScrollView||(e._scrollView=new Smart.Utilities.Scroll(e,e.$.horizontalScrollBar,e.$.verticalScrollBar))}},{key:"detached",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"detached",this).call(this),e._scrollView&&(e._scrollView.unlisten(),delete e._scrollView)}},{key:"scrollWidth",get:function(){var e=this;return e._scrollView&&e._scrollView.hScrollBar?1===e._scrollView.hScrollBar.max&&"visible"===e.horizontalScrollBarVisibility?0:e._scrollView.hScrollBar.max:-1},set:function(e){var t=this;e<0&&(e=0),t._scrollView&&t._scrollView.hScrollBar&&(t._scrollView.hScrollBar.max=0===e&&"visible"===t.horizontalScrollBarVisibility?0:e,t.refreshScrollBarsVisibility())}},{key:"scrollHeight",get:function(){var e=this;return e._scrollView&&e._scrollView.vScrollBar?1===e._scrollView.vScrollBar.max&&"visible"===e.verticalScrollBarVisibility?0:e._scrollView.vScrollBar.max:0},set:function(e){var t=this;e<0&&(e=0),t._scrollView&&t._scrollView.vScrollBar&&(t._scrollView.vScrollBar.max=0===e&&"visible"===t.verticalScrollBarVisibility?1:e,t.refreshScrollBarsVisibility())}},{key:"scrollLeft",get:function(){var e=this;return e._scrollView&&e._scrollView.hScrollBar?e._scrollView.hScrollBar.value:0},set:function(e){var t=this;e<0&&(e=0),t._scrollView&&t._scrollView.hScrollBar&&(t._scrollView.hScrollBar.value=e)}},{key:"scrollTop",get:function(){var e=this;return e._scrollView&&e._scrollView.vScrollBar?e._scrollView.vScrollBar.value:0},set:function(e){var t=this;e<0&&(e=0),t._scrollView&&t._scrollView.vScrollBar&&(t._scrollView.vScrollBar.value=e)}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i),"animation"!==e&&"theme"!==e&&this.refresh()}}],[{key:"properties",get:function(){return{horizontalScrollBarVisibility:{type:"string",value:"auto",allowedValues:["auto","disabled","hidden","visible"]},touchScrollRatio:{type:"any",value:null},touchVelocityCoefficient:{type:"number",value:50},verticalScrollBarVisibility:{type:"string",value:"auto",allowedValues:["auto","disabled","hidden","visible"]}}}},{key:"listeners",get:function(){return{touchmove:"_touchmoveHandler",touchstart:"_touchstartHandler",wheel:"_mouseWheelHandler","document.up":"_upHandler"}}},{key:"styleUrls",get:function(){return["smart.scrollviewer.css"]}}]),n}(window[n].ContentElement)),window[n].Utilities.Assign("PositionDetection",function(){function e(t,n,i,r){_classCallCheck(this,e);var a=this;if(n){var o="dropDown"+Math.floor(65536*(1+Math.random())).toString(16).substring(1);n.id=o,t.setAttribute("aria-owns",o)}a.context=t,a.dropDown=n,a.defaultParent=i,a.closeMethod=r}return _createClass(e,[{key:"handleAutoPositioning",value:function(){var e=this,t=e.context;if("auto"===t.dropDownPosition&&!t.disabled&&!t.isHidden){var n,i=window.requestAnimationFrame,r=Date.now();return n=i(function a(){t.isHidden||document.hidden||(n=i(a),"auto"===t.dropDownPosition&&!t.disabled&&(t.isInShadowDOM?document.body.contains(t.shadowParent):document.body.contains(t))||cancelAnimationFrame(n),t.isHidden&&cancelAnimationFrame(n),Date.now()-r>=200&&(e.scrollHandler(),r=Date.now()))})}}},{key:"checkBrowserBounds",value:function(e){var t=this.context;if("auto"===t.dropDownPosition&&!t.disabled)switch(e){case"vertically":this.checkBrowserBoundsVertically();break;case"horizontally":this.checkBrowserBoundsHorizontally();break;default:this.checkBrowserBoundsVertically(),this.checkBrowserBoundsHorizontally()}}},{key:"checkBrowserBoundsHorizontally",value:function(){var e,t=this.context,n=this.dropDown,i=0;l.isMobile||window.innerWidth===document.documentElement.clientWidth||(i=window.innerWidth-document.documentElement.clientWidth),null!==t._dropDownParent?e=!0:n.style.left="";var r=window.innerWidth-i,a=t.getBoundingClientRect().left;
1if(a<0&&(n.style.left=(e?0:Math.abs(a))+"px",a=parseFloat(n.style.left)),a+n.offsetWidth>r){var o=a-Math.abs(r-a-n.offsetWidth);e&&(o+=window.pageXOffset),n.style.left=(e?o:o-a)+"px",window.innerWidth===document.documentElement.clientWidth&&(n.style.left=parseFloat(n.style.left)+i+"px"),e&&window.innerHeight===document.documentElement.clientHeight&&this.positionDropDown(!0)}}},{key:"checkBrowserBoundsVertically",value:function(e){var t=this.context,n=this.dropDown,i=t._dropDownListPosition;e||(e=t.getBoundingClientRect()),0!==e.height&&(t._dropDownListPosition=document.documentElement.clientHeight-Math.abs(e.top+e.height+n.offsetHeight)>=0?"bottom":e.top-n.offsetHeight>=0?"top":"overlay-center",this.updatePositionAttribute(i,t._dropDownListPosition))}},{key:"scrollHandler",value:function(){var e=this.context;if(e.parentElement){var t=e.getBoundingClientRect();if(t.top!==e._positionTop){var n=e._dropDownListPosition;this.checkBrowserBoundsVertically(t),e._dropDownListPosition!==n&&this.positionDropDown(),e._positionTop=t.top}}}},{key:"getDropDownParent",value:function(e){var t=this.context,n=this.dropDown,i=t.dropDownAppendTo;t._positionedParent=null,null===i?t._dropDownParent=null:"body"===i||i===document.body?t._dropDownParent=t.getRootNode().host?t.getRootNode().host.shadowRoot:document.body:i instanceof HTMLElement?t._dropDownParent=i:"string"==typeof i?(i=document.getElementById(i))instanceof HTMLElement?t._dropDownParent=i:(t.dropDownAppendTo=null,t._dropDownParent=null):(t.dropDownAppendTo=null,t._dropDownParent=null);var r=t._dropDownParent;if(null!==r){for(;r&&r instanceof HTMLElement&&"static"===window.getComputedStyle(r).position&&r!==t.getShadowRootOrBody();)r=r.parentElement;t._positionedParent=r===document.body?null:r,n&&(n.setAttribute("animation",t.animation),""!==t.theme&&n.$.addClass(t.theme),e&&(t._dropDownParent.appendChild(n),n.$.addClass("smart-drop-down-repositioned")),-1===t.detachedChildren.indexOf(n)&&t.detachedChildren.push(n))}}},{key:"dropDownAppendToChangedHandler",value:function(){var e=this.context,t=this.dropDown,n=e._dropDownParent;this.getDropDownParent(),e._dropDownParent!==n&&(e[this.closeMethod](),["left","top","font-size","font-family","font-style","font-weight"].forEach(function(e){return t.style[e]=null}),null===e._dropDownParent?(this.defaultParent.appendChild(t),t.$.removeClass("smart-drop-down-repositioned")):(e._dropDownParent.appendChild(t),t.$.addClass("smart-drop-down-repositioned")))}}
1,{key:"dropDownPositionChangedHandler",value:function(){var e=this;e.dropDown.style.transition="none",e.context[e.closeMethod](),e.setDropDownPosition(),e.handleAutoPositioning()}},{key:"dropDownAttached",value:function(e){var t=this.context;null!==t._dropDownParent&&(t._dropDownParent.appendChild(this.dropDown),this.handleAutoPositioning(),e&&t[e]())}},{key:"dropDownDetached",value:function(){var e=this.context;null!==e._dropDownParent&&document.body.contains(this.dropDown)&&document.body.contains(e._dropDownParent)&&e._dropDownParent.removeChild(this.dropDown)}},{key:"setDropDownPosition",value:function(){var e=this.context,t=e.dropDownPosition,n=e._dropDownListPosition;"auto"===t?this.checkBrowserBounds():e._dropDownListPosition=t,this.updatePositionAttribute(n,e._dropDownListPosition)}},{key:"updatePositionAttribute",value:function(e,t){var n=this.context,i=this.dropDown;n.$.dropDownButton&&!n.$.dropDownButton.hasAttribute(t)&&(n.$.dropDownButton.removeAttribute(e),n.$.dropDownButton.setAttribute(t,"")),i.hasAttribute(t)||(i.style.transition="none",i.removeAttribute(e),i.setAttribute(t,""),requestAnimationFrame(function(){i.style.transition=null}))}},{key:"positionDropDown",value:function(e){var t=this.context,n=this.dropDown;if(t.opened&&null!==t._dropDownParent){var i,r,a=t.getBoundingClientRect();if(this.customPositionDropDown){var o=this.customPositionDropDown(a);i=o.left,r=o.top}else switch(i=a.left,r=a.top,t._dropDownListPosition){case"bottom":r+=t.$.container.offsetHeight-1;break;case"center-bottom":r+=t.$.container.offsetHeight-1,i+=t.offsetWidth-n.offsetWidth/2;break;case"center-top":r-=n.offsetHeight-1,i+=t.offsetWidth-n.offsetWidth/2;break;case"top":r-=n.offsetHeight-1;break;case"overlay-bottom":break;case"overlay-center":r-=n.offsetHeight/2-t.offsetHeight/2;break;case"overlay-top":r-=n.offsetHeight-t.offsetHeight}var s=this.getDropDownOffset();n.style.top=r+s.y+"px",e||(n.style.left=i+s.x+"px")}}},{key:"getDropDownOffset",value:function(){var e,t,n=this.context._positionedParent;if(n&&"#document-fragment"!==n.nodeName){var i=n.getBoundingClientRect();e=-i.left,t=-i.top}else e=window.pageXOffset,t=window.pageYOffset;return{x:e,y:t}}},{key:"placeOverlay",value:function(){var e=this.context;if(e.dropDownOverlay&&!e._overlay){var t=document.createElement("div");t.classList.add("smart-drop-down-overlay"),t.style.width=document.documentElement.scrollWidth+"px",t.style.height=document.documentElement.scrollHeight+"px",document.body.appendChild(t),e._overlay=t}}},{key:"removeOverlay",value:function(e){var t=this,n=t.context;n._overlay&&(n.hasAnimation&&e?requestAnimationFrame(function e(){t.dropDown.getBoundingClientRect().height>0?requestAnimationFrame(e):(document.body.removeChild(n._overlay),delete n._overlay)}):(document.body.removeChild(n._overlay),delete n._overlay))}}]),e}()),window.Smart.Color=function(){function e(t){_classCallCheck(this,e),this.r=this.g=this.b=0,this.hex="";var n=this.getStandardizedColor(t);n&&this.setHex(n.substring(1))}return _createClass(e,[{key:"getStandardizedColor",value:function(e){var t=document.createElement("canvas").getContext("2d");return t.fillStyle=e,t.fillStyle}},{key:"getInvertedColor",value:function(){return""===this.hex?"transparent":255-(.299*this.r+.587*this.g+.114*this.b)<105?"Black":"White"}},{key:"hexToRgb",value:function(e){var t="00",n="00",i="00";return 6===(e=this.validateHex(e)).length?(t=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6)):(e.length>4&&(t=e.substring(4,e.length),e=e.substring(0,4)),e.length>2&&(n=e.substring(2,e.length),e=e.substring(0,2)),e.length>0&&(i=e.substring(0,e.length))),{r:this.hexToInt(t),g:this.hexToInt(n),b:this.hexToInt(i)}}},{key:"validateHex",value:function(e){return(e=(e=new String(e).toUpperCase()).replace(/[^A-F0-9]/g,"0")).length>6&&(e=e.substring(0,6)),e}},{key:"webSafeDec",value:function(e){return 51*Math.round(e/51)}},{key:"hexToWebSafe",value:function(e){var t,n,i;return 3===e.length?(t=e.substring(0,1),n=e.substring(1,1),i=e.substring(2,1)):(t=e.substring(0,2),n=e.substring(2,4),i=e.substring(4,6)),this.intToHex(this.webSafeDec(this.hexToInt(t)))+this.intToHex(this.webSafeDec(this.hexToInt(n)))+this.intToHex(this.webSafeDec(this.hexToInt(i)))}},{key:"rgbToWebSafe",value:function(e){return{r:this.webSafeDec(e.r),g:this.webSafeDec(e.g),b:this.webSafeDec(e.b)}}},{key:"rgbToHex",value:function(e){return this.intToHex(e.r)+this.intToHex(e.g)+this.intToHex(e.b)}},{key:"intToHex",value:function(e){var t=parseInt(e).toString(16);return 1===t.length&&(t="0"+t),t.toUpperCase()}},{key:"hexToInt",value:function(e){return parseInt(e,16)}},{key:"setRgb",value:function(e,t,n){var i=function(e){return e<0||e>255||isNaN(parseInt(e))?0:e};this.r=i(e),this.g=i(t),this.b=i(n),this.hex=this.rgbToHex(this)}},{key:"setHex",value:function(e){this.hex=e;var t=this.hexToRgb(this.hex);this.r=t.r,this.g=t.g,this.b=t.b}}]),e}()}()},6802:function(){Smart.Utilities.Assign("DataExporter",function(){function e(t,n,i,r){_classCallCheck(this,e);var a=this;t||(t={}),a.style=t.style,a.header=t.header,a.exportHeader=void 0===t.exportHeader||t.exportHeader,a.hierarchical=t.hierarchical,a.expandChar=t.expandChar||"+",a.collapseChar=t.collapseChar||"-",a.pageOrientation=t.pageOrientation,a.allowNull=t.allowNull||!1,!a.hierarchical&&n&&n.length>0?a.groupBy=n:a.mergedCells=t.mergedCells,!a.groupBy&&i&&Object.keys(i).length>0&&(a.filterBy=i),r&&(a.conditionalFormatting=r),a.timeBetween1900And1970=new Date(1970,0,1).getTime()-new Date(1900,0,1).getTime()}return _createClass(e,[{key:"downloadFile",value:function(e,t,n){var i;if(!n)return e;if(i=e instanceof Blob?e:new Blob([e],{type:t}),window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(i,n);else{var r=document.createElement("a"),a=URL.createObjectURL(i);r.href=a,r.download=n,r.style.position="absolute",r.style.visibility="hidden",document.body.appendChild(r),r.click(),setTimeout(function(){document.body.removeChild(r),window.URL.revokeObjectURL(a)},100)}}},{key:"exportData",value:function(e,t,n,i){var r=this;if(r.actualHierarchy=r.hierarchical,t=t.toLowerCase(),r.exportHeader&&(r.header?(0===(e=e.slice(0)).length&&(r.actualHierarchy=!1),r.processComplexHeader(r.header,e,t)):1===e.length&&(r.actualHierarchy=!1)),0!==e.length){"xlsx"===t&&(r.xlsxStartIndex=r.complexHeader?r.complexHeader.length:+r.exportHeader),r.actualHierarchy&&(e=r.processHierarchicalData(e,t)),r.getDatafields(e),n&&n.slice(n.length-t.length-1,n.length)!=="."+t&&(n+="."+t);var a=null;switch(t){case"csv":a=r.exportToCSVAndTSV(e,{delimiter:", ",MIME:"text/csv",toRemove:2},n);break;case"html":a=r.exportToHTML(e,n);break;case"jpeg":case"png":r.exportToImage(e,n,t,i);break;case"json":a=r.exportToJSON(e,n);break;
1case"pdf":a=r.exportToPDF(e,n);break;case"tsv":a=r.exportToCSVAndTSV(e,{delimiter:"\t",MIME:"text/tab-separated-values",toRemove:1},n);break;case"xlsx":a=r.exportToXLSX(e,n);break;case"xml":a=r.exportToXML(e,n);break;case"md":a=r.exportToMD(e,n)}return i&&a&&i(a),delete r.complexHeader,a}console.warn("No data to export.")}},{key:"exportToCSVAndTSV",value:function(e,t,n){for(var i=this,r=i.datafields,a="",o=0;o<e.length;o++){for(var s=e[o],l="",c=0;c<r.length;c++)l+=i.actualHierarchy&&0===c?('""'+t.delimiter).repeat(s._level-1)+'"'+s[r[c]]+'"'+t.delimiter+('""'+t.delimiter).repeat(i.maxLevel-s._level):'"'+s[r[c]]+'"'+t.delimiter;a+=l=l.slice(0,l.length-t.toRemove)+"\n"}return this.downloadFile(a,t.MIME,n)}},{key:"exportToHTML",value:function(e,t){var n=this,i=n.datafields,r=n.style,a="",o=0,s="";e=n.processGroupingInformation(e),n.data=e,n.exportHeader&&(a=n.getHTMLHeader(i,e),o=1),arguments[2]&&(s='<script type="text/javascript" src="'.concat(Array.from(document.getElementsByTagName("script")).find(function(e){return-1!==e.src.indexOf("html2canvas")}).src,'"><\/script>'));var l='<!DOCTYPE html>\n<html>\n<head>\n <meta charset="UTF-8">\n <style type="text/css">\n'.concat(n.getRowStyle()).concat(n.getColumnStyle(),"\n </style>").concat(s).concat(n.toggleableFunctionality(),"\n</head>\n<body>\n <table").concat(n.getTableStyle(),">").concat(a,"\n <tbody>\n"),c={},u={},d=[];n.getMergedCellsInfo(c,u);e:for(var h=o;h<e.length;h++){var f=e[h],p=h-o,m=n.getAlternationIndex(p," rowN"),g="",v="",y="",b=0;if(n.actualHierarchy)f._collapsed&&(g=" collapsed"),v=' level="'.concat(f._level,'"');else if(n.groupBy)for(var _=0;_<n.groupBy.length;_++){var w=n.groupBy[_],k=f[w],C=n.groups[w][k];if(y+=k,-1===d.indexOf(y)){l+=' <tr class="row">\n <td class="column group" style="padding-left: '.concat(25*b,'px;" colspan="').concat(n.datafields.length,'">').concat(C,"</td>\n </tr>"),d.push(y),h--;continue e}b++}var x=' <tr class="row row'.concat(p).concat(m).concat(g,'"').concat(v);t||(x+=' style="page-break-inside: avoid;"'),x+=">\n";for(var S=0;S<i.length;S++){var M=S+","+p,D=1,T=1;if(c[M])D=c[M].colspan,T=c[M].rowspan;else if(u[M])continue;var E=i[S],A=f[E],P="";if(n.actualHierarchy&&0===S){var L="";f._expanded?L=n.collapseChar:!1===f._expanded&&(L=n.expandChar),P='<div class="toggle-element" style="margin-left: '.concat(25*(f._level-1)+5,'px;" expanded>').concat(L,"</div>")}A=n.getFormattedValue(A,E);var O="";if(r&&r.columns&&r.columns[E]&&r.columns[E][p]){var I=r.columns[E][p];O+="border-color: ".concat(I.border,"; background-color: ").concat(I.background,"; color: ").concat(I.color,';"')}0===S&&b>1&&(O+="padding-left: ".concat(25*(b-1),'px;"')),O&&(O=' style="'.concat(O,'"')),x+=' <td class="column column'.concat(E,'"').concat(O,' colspan="').concat(D,'" rowspan="').concat(T,'">').concat(P+A,"</td>\n")}l+=x+" </tr>\n"}return l+=" </tbody>\n </table>\n</body>\n</html>",arguments[2]?l:this.downloadFile(l,"text/html",t)}},{key:"exportToImage",value:function(e,t,n,i){try{html2canvas}catch(e){throw new Error("smart-grid: Missing reference to 'html2canvas.min.js'.")}var r=null,a=this.exportToHTML(e,t,!0),o=document.createElement("iframe");return o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.border="none",o.style.width="100%",o.style.height="100%",o.style.opacity=0,o.style.pointerEvents="none",document.body.appendChild(o),o.contentDocument.write(a),function e(){o.contentDocument.body&&o.contentDocument.body.firstElementChild?o.contentWindow.html2canvas(o.contentDocument.body.firstElementChild).then(function(e){var a=new Smart.Utilities.Draw(document.createElement("div"));r=e.toDataURL("image/png"),i?i(r):(document.body.appendChild(e),a.exportImage(void 0,e,n,t)),o.remove(),e.remove()}):requestAnimationFrame(e)}(),r}},{key:"getMergedCellsInfo",value:function(e,t,n){var i=this;if(i.mergedCells){var r=n&&0!==n[i.datafields.length-1];i.mergedCellsPDF=i.mergedCells.slice(0);for(var a=0;a<i.mergedCellsPDF.length;a++){var o=i.mergedCellsPDF[a],s=o.colspan,l=o.rowspan;if(!(l<2&&s<2)){var c=o.cell[1],u=o.cell[0];if(r&&s>1){var d=n[u],h=n[u+s-1],f=[];if(h>d){var p=d,m=u,g=0;e:for(var v=d;v<=h;v++){for(var y=m,b=0;n[m]===p;)if(m++,b++,++g===s){f.push({start:y,span:b});break e}f.push({start:y,span:b}),p=n[m]}s=f[0].span;for(var _=1;_<f.length;_++)i.mergedCellsPDF.push({cell:[f[_].start,c],colspan:f[_].span,rowspan:l,originalCell:u})}}for(var w=u;w<u+s;w++)for(var k=c;k<c+l;k++){var C=w+","+k;w!==u||k!==c?t[C]=!0:e[C]={colspan:s,rowspan:l,originalCell:o.originalCell}}}}}}},{key:"getAlternationIndex",value:function(e,t){if(!this.style)return"";var n=this.style.rows;return n&&n.alternationCount&&((void 0===n.alternationStart||e>=n.alternationStart)&&(void 0===n.alternationEnd||e<=n.alternationEnd)||n.alternationStart===n.alternationEnd)?t+e%n.alternationCount:""}},{key:"getFormattedValue",value:function(e,t){var n=this,i=n.style;if(null===e)return n.allowNull?"null":"";if(t&&i&&i.columns&&i.columns[t]&&i.columns[t].format){if("number"==typeof e)return n.formatNumber(e,i.columns[t].format);if(e instanceof Date)return n.formatDate(e,i.columns[t].format)}else if(e instanceof Date)return n.formatDate(e,"d");return e}},{key:"exportToJSON",value:function(e,t){return this.downloadFile(J
1SON.stringify(e,this.datafields.concat("rows")),"application/json",t)}},{key:"exportToMD",value:function(e,t){for(var n=this.datafields,i="",r=0,a=e.length;r<a;r+=1)for(var o=0,s=n.length;o<s;o+=1){var l=e[r][n[o]];"string"==typeof l&&(i+=l)}return this.downloadFile(i,"application/text",t)}},{key:"exportToPDF",value:function(e,t){try{pdfMake}catch(e){throw new Error("Missing reference to 'pdfmake.min.js'.")}var n,i=this,r=i.datafields,a=+i.exportHeader,o=[],s={},l={},c={},u=a?i.complexHeader?i.complexHeader.length:1:0,d={pageOrientation:i.pageOrientation||"portrait"},h=[],f=[];function p(){for(var e=[],t=0;t<n.length;t++)e.push([]);return e}e=i.processGroupingInformation(e),i.data=e,i.headerRows=u,i.getPDFStyle();var m=i.styleInfo;n=m?i.wrapPDFColumns(d,c):[{body:h,datafields:r}],a&&(h=i.getPDFHeader(r,n,c)),i.getMergedCellsInfo(s,l,c);e:for(var g=a;g<e.length;g++){var v=e[g],y="",b=0;if(i.groupBy)for(var _=0;_<i.groupBy.length;_++){var w=i.groupBy[_],k=v[w],C=i.groups[w][k];if(y+=k,-1===o.indexOf(y)){i.createGroupHeaderRow(n,{text:C,style:["row","cell","group"],marginLeft:7.5*b}),o.push(y),g--;continue e}b++}for(var x=p(),S=g-a,M=i.getAlternationIndex(S,""),D=0;D<r.length;D++){var T=r[D],E={style:["row","row"+S,"cell","cell"+T]},A=c[D]||0;if(void 0!==M&&E.style.splice(1,0,"rowN"+M),i.mergedCellsPDF){var P=D+","+S,L=s[P];if(L){if(E.colSpan=L.colspan,E.rowSpan=L.rowspan,void 0!==L.originalCell){E.text="",E.style[E.style.length-1]="cell"+r[L.originalCell],x[A].push(E);continue}}else if(l[P]){x[A].push({});continue}}var O=i.getFormattedValue(v[T],T);E.text=O.toString(),i.getUniqueStylePDF(E,T,S),i.setIndentation(E,{j:D,currentRecord:v,value:O,outlineLevel:b}),x[A].push(E)}for(var I=0;I<n.length;I++)n[I].body.push(x[I])}if(m){for(var H=0;H<n.length;H++){for(var j=n[H].body,F=u-1;F>=0;F--)j.unshift(h[H][F]);f.push({table:{headerRows:u,widths:n[H].widths,heights:function(e){return m.heights[e]?m.heights[e]:m.defaultHeight?m.defaultHeight:void 0},body:j},pageBreak:"after"})}delete f[n.length-1].pageBreak,d.styles=m.styles}else{for(var R=n[0].body,N=u-1;N>=0;N--)R.unshift(h[0][N]);f=[{table:{headerRows:u,body:R}}],d.styles={header:{bold:!0},group:{bold:!0}}}d.content=f,pdfMake.createPdf(d).download(t),delete i.mergedCellsPDF,delete i.styleInfo}},{key:"getPDFStyle",value:function(){var e=this,t=e.style;if(!t)return"";var n=e.data[0],i=t.header,r=t.columns,a=t.rows,o={heights:[],widths:Array(e.datafields.length).fill("*"),styles:{header:{},row:{},cell:{},group:{fillColor:"#FFFFFF",color:"#000000",bold:!0}}};function s(t,i){if(t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))if(void 0===n[r])if("height"===r&&"header"===i)for(var a=0;a<e.headerRows;a++)o.heights[a]=parseInt(t[r],10)/e.headerRows/1.4;else e.storePDFStyle({prop:r,value:t[r],toUpdate:i});else for(var s in t[r])if(isNaN(s)&&Object.prototype.hasOwnProperty.call(t[r],s)){var l=t[r][s],c=e.datafields.indexOf(r);"width"===s&&"*"===o.widths[c]?o.widths[c]=l:e.storePDFStyle({prop:s,value:l,toUpdate:i+r})}}if(e.styleInfo=o,s(i,"header"),s(r,"cell"),a){for(var l in a)if(Object.prototype.hasOwnProperty.call(a,l)&&-1===l.indexOf("alt")){var c=a[l];if(isNaN(l))"height"===l?o.defaultHeight=parseFloat(c)/1.4:e.storePDFStyle({prop:l,value:c,toUpdate:"row"});else for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&("height"===u?o.heights[parseFloat(l)+e.headerRows]=parseFloat(c[u])/1.4:e.storePDFStyle({prop:u,value:c[u],toUpdate:"row"+l}))}if(a.alternationCount)for(var d=0;d<a.alternationCount;d++){var h={};a["alternationIndex".concat(d,"Color")]&&(h.color=a["alternationIndex".concat(d,"Color")]),a["alternationIndex".concat(d,"BackgroundColor")]&&(h.fillColor=a["alternationIndex".concat(d,"BackgroundColor")]),o.styles["rowN"+d]=h}}}},{key:"storePDFStyle",value:function(e){var t=this.styleInfo.styles[e.toUpdate];t||(t={},this.styleInfo.styles[e.toUpdate]=t);var n=e.value;switch(e.prop){case"backgroundColor":t.fillColor=n;break;case"color":t.color=n;break;case"fontSize":t.fontSize=parseFloat(n);break;case"fontStyle":"italic"===n&&(t.italics=!0);break;case"fontWeight":"bold"===n&&(t.bold=!0);break;case"textAlign":t.alignment=n}}},{key:"wrapPDFColumns",value:function(e,t){for(var n=this.styleInfo,i="portrait"===e.pageOrientation?655:1155,r=[],a=0,o=0;o<n.widths.length;o++){var s=void 0,l=n.widths[o];
1if("*"===l?s=i/6:"string"==typeof l&&-1!==l.indexOf("%")?(s=Math.min(i,Math.floor(parseFloat(l)/100*i)))===i&&(l="*"):(l=parseFloat(l))>=i?(s=i,l="*"):(s=l,l/=1.4),void 0!==r[a]){var c=r[a];c.width+s>i?(a++,o--):(t[o]=a,c.width+=s,c.widths.push(l),c.datafields.push(this.datafields[o]))}else r[a]={body:[],width:s,widths:[l],datafields:[this.datafields[o]]},t[o]=a}return r}},{key:"getPDFHeader",value:function(e,t,n){var i,r,a=this,o=[],s=a.headerRows,l=[],c=[],u=[];a.complexHeader?(i=a.complexHeader,r=a.complexDataFieldsHeader):r=i=[Object.values(a.data[0])];for(var d=0;d<s;d++)for(var h=i[d],f=r[d],p=0;p<h.length;p++){var m=n[p]||0;l[m]||(l[m]=[],c[m]=[]),l[m][d]||(l[m][d]=[],c[m][d]=[]),l[m][d].push(h[p]),c[m][d].push(f[p])}function g(e,t,n,i){for(var r=0;r<s;r++){for(var a=e[r],o=t[r],l=[],c=0;c<a.length;c++){var u=o[c],d=1,h=1;if(o[c-1]&&o[c-1]===u||t[r-1]&&t[r-1][c]===u)l.push({});else{for(var f=c+1;o[f]&&o[f]===o[f-1];)d++,f++;for(f=r+1;t[f]&&t[f][c]===u;)h++,f++;var p=r===s-1||h+r===s?i.datafields[c]:null,m={text:a[c],colSpan:d,rowSpan:h};p?m.style=["header","header"+p]:(m.alignment="center",m.style="header"),l.push(m)}}n.push(l)}}for(var v=0;v<t.length;v++)u=[],g(l[v],c[v],u,t[v]),o.push(u);return o}},{key:"createGroupHeaderRow",value:function(e,t){for(var n=0;n<e.length;n++){var i=Object.assign({},t),r=e[n].datafields.length,a=[i];i.colSpan=r,a.length=r,a.fill({},1,r-1),e[n].body.push(a)}}},{key:"getUniqueStylePDF",value:function(e,t,n){var i=this.style;if(i&&i.columns&&i.columns[t]){var r=i.columns[t][n];r&&(e.fillColor=function(e){var t=/rgba\((\d+),(\d+),(\d+)\,(\d*.\d+|\d+)\)/gi.exec(e.replace(/\s/g,""));if(null===t)return e;var n=parseFloat(t[1]).toString(16).toUpperCase(),i=parseFloat(t[2]).toString(16).toUpperCase(),r=parseFloat(t[3]).toString(16).toUpperCase();return"#"+"0".repeat(2-n.length)+n+"0".repeat(2-i.length)+i+"0".repeat(2-r.length)+r}(r.background),e.color=r.color.toLowerCase())}}},{key:"setIndentation",value:function(e,t){if(0===t.j){if(this.actualHierarchy){var n=t.currentRecord;void 0!==n._expanded?(e.marginLeft=25*(n._level-1),e.text=this.collapseChar+" "+t.value):e.marginLeft=25*(n._level-1)+6}else t.outlineLevel>1&&(e.marginLeft=7.5*(t.outlineLevel-1))}}},{key:"exportToXLSX",value:function(e,t){try{JSZip}catch(e){throw new Error("Missing reference to 'jszip.min.js'.")}var n=this,i=n.style;if(e=n.processGroupingInformation(e,!0),n.data=e,n.getColumnsArray(),n.complexHeaderMergedCells=[],n.complexHeaderMergeInfo)for(var r in n.complexHeaderMergeInfo)if(Object.prototype.hasOwnProperty.call(n.complexHeaderMergeInfo,r)){var a=n.complexHeaderMergeInfo[r];if(a.from[0]===a.to[0]&&a.from[1]===a.to[1])continue;n.complexHeaderMergedCells.push({from:n.columnsArray[a.from[1]]+(a.from[0]+1),to:n.columnsArray[a.to[1]]+(a.to[0]+1)})}n.getConditionalFormatting(),i||(i=n.generateDefaultStyle(e));var o=n.generateSharedStrings(e),s=o.collection,l=o.xml,c=n.generateStyles(i),u=n.groupBy?n.generateSheet1WithGrouping(e,s):n.generateSheet1(e,s),d=n.generateAuxiliaryFiles(),h=new JSZip,f=h.folder("_rels"),p=h.folder("docProps"),m=h.folder("xl"),g=m.folder("_rels"),v=m.folder("theme"),y=m.folder("worksheets");f.file(".rels",d._relsRels),p.file("app.xml",d.docPropsAppXml),p.file("core.xml",d.docPropsCoreXml),g.file("workbook.xml.rels",d.xl_relsWorkbookXmlRels),v.file("theme1.xml",d.xlThemeTheme1Xml),y.file("sheet1.xml",u),m.file("sharedStrings.xml",l),m.file("styles.xml",c),m.file("workbook.xml",d.xlWorkbookXml),h.file("[Content_Types].xml",d.Content_TypesXml),h.generateAsync({type:"blob",mimeType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}).then(function(e){return n.downloadFile(e,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",t)}),delete n.conditionalFormattingXLSX,delete n.complexHeaderMergeInfo,delete n.defaultRowHeight,delete n.rowHeight}},{key:"processGroupingInformation",value:function(e,t){var n,i=this;if(!i.groupBy)return e;if(e=e.slice(0),i.exportHeader&&(t&&i.complexHeader?(n=e.slice(0,i.complexHeader.length),e.splice(0,i.complexHeader.length)):(n=[e[0]],e.splice(0,1))),e.length>1){var r=function(e,t){var n;switch(t||typeof e){case"string":n=(new Intl.Collator).compare;break;case"number":n=function(e,t){return e-t};break;case"boolean":case"bool":n=function(e,t){return e===t?0:!1===e?-1:1};break;case"date":case"time":case"dateTime":e instanceof Date?n=function(e,t){return e.getTime()-t.getTime()}:(e instanceof Smart.Utilities.DateTime||e instanceof Smart.Utilities.BigNumber)&&(n=function(e,t){return e.compare(t)});break;case"object":if(e instanceof Date)n=function(e,t){return e.getTime()-t.getTime()};else if(e instanceof Smart.Utilities.DateTime||e instanceof Smart.Utilities.BigNumber)n=function(e,t){return e.compare(t)};else if(e instanceof Smart.Utilities.Complex||window.NIComplex&&e instanceof window.NIComplex){var i=new Smart.Utilities.ComplexNumericProcessor;n=function(e,t){return i.compareComplexNumbers(e,t)}}}return n};!function(e,t,n){if(e&&Array.isArray(e)&&0!==e.length&&t&&(!Array.isArray(t)||0!==t.length)){"string"==typeof t&&(t=[t]);var i=[],a=[];void 0===n&&(n=[]);for(var o=0;o<t.length;o++)i[o]=void 0===n[o]||"asc"===n[o]||"ascending"===n[o]?1:-1,a[o]=r(e[0][t[o]]);e.sort(function(e,n){for(var r=0;r<t.length;r++){var o=a[r](e[t[r]],n[t[r]]);if(0===o){if(t[r+1])continue;return void 0!==e._index?(e._index-n._index)*i[r]:0}return o*i[r]}})}}(e,i.groupBy)}return n&&(e=n.concat(e)),i.getGroupLabels(e),e}},{key:"exportToXML",value:function(e,t){var n=this.datafields.slice(0),i='<?xml version="1.0" encoding="UTF-8" ?>\n<table>\n';return-1===n.indexOf("rows")&&n.push("rows"),i+=function e(t,i){for(var r="",a=0;a<t.length;a++){var o=t[a];r+=i+"<row>\n";for(var s=0;s<n.length;s++){var l=n[s];if("rows"!==l)r+=i+" <".concat(l,">").concat(o[l],"</").concat(l,">\n");else{if(!o.rows)continue;r+="".concat(i," <rows>\n").concat(e(o.rows,i+" ")).concat(i," </rows>\n")}}r+=i+"</row>\n"}return r}(e," ")+"</table>",this.downloadFile(i,"application/xml",t)}},{key:"formatDate",value:function(e,t){if(!Smart.Utilities.DateTime)return e;try{return new Smart.Utilities.DateTime(e).toString(t)}catch(t){return e}}},{key:"formatNumber",value:function(e,t){if(!Smart.Utilities.NumberRe
1nderer)return e;var n=(new Smart.Utilities.NumberRenderer).formatNumber(e,t);return void 0===n?e:n}},{key:"generateAuxiliaryFiles",value:function(){var e=(new Date).toISOString();return{_relsRels:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>',docPropsAppXml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>',docPropsCoreXml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>Smart HTML Elements</dc:creator><cp:lastModifiedBy>Smart HTML Elements</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">'.concat(e,'</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">').concat(e,"</dcterms:modified></cp:coreProperties>"),xl_relsWorkbookXmlRels:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>',xlThemeTheme1Xml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="44546A"/></a:dk2><a:lt2><a:srgbClr val="E7E6E6"/></a:lt2><a:accent1><a:srgbClr val="4472C4"/></a:accent1><a:accent2><a:srgbClr val="ED7D31"/></a:accent2><a:accent3><a:srgbClr val="A5A5A5"/></a:accent3><a:accent4><a:srgbClr val="FFC000"/></a:accent4><a:accent5><a:srgbClr val="5B9BD5"/></a:accent5><a:accent6><a:srgbClr val="70AD47"/></a:accent6><a:hlink><a:srgbClr val="0563C1"/></a:hlink><a:folHlink><a:srgbClr val="954F72"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Calibri Light" panose="020F0302020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\u6e38\u30b4\u30b7\u30c3\u30af Light"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u7b49\u7ebf Light"/>
1<a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Calibri" panose="020F0502020204030204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="\u6e38\u30b4\u30b7\u30c3\u30af"/><a:font script="Hang" typeface="\ub9d1\uc740 \uace0\ub515"/><a:font script="Hans" typeface="\u7b49\u7ebf"/><a:font script="Hant" typeface="\u65b0\u7d30\u660e\u9ad4"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="6350" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults/><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{62F939B6-93AF-4DB8-9C6B-D6C7DFDC589F}" vid="{4A3C46E8-61CC-4603-A589-7422A47A8E4A}"/></a:ext></a:extLst></a:theme>',xlWorkbookXml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1\n<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15 xr xr6 xr10 xr2" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xmlns:xr10="http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"><fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="20325"/><workbookPr defaultThemeVersion="166925"/><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice Requires="x15"><x15ac:absPath url="C:UsersjqwidgetsDesktop" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/></mc:Choice></mc:AlternateContent><xr:revisionPtr revIDLastSave="0" documentId="13_ncr:1_{0DEDCB6D-5403-4CD8-AAA5-59B6D238A8B6}" xr6:coauthVersionLast="34" xr6:coauthVersionMax="34" xr10:uidLastSave="{00000000-0000-0000-0000-000000000000}"/><bookViews><workbookView xWindow="0" yWindow="0" windowWidth="19200" windowHeight="6950" xr2:uid="{0CB664E6-3800-4A88-B158-B46A682E7484}"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="179021"/><extLst><ext uri="{140A7094-0E35-4892-8432-C4D2E57EDEB5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:workbookPr chartTrackingRefBase="1"/></ext></extLst></workbook>',Content_TypesXml:'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="bin" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings"/><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>'}}},{key:"generateDefaultStyle",value:function(e){var t=this,n={},i=t.datafields,r=t.complexHeader?e[t.complexHeader.length]:e[+t.exportHeader];if(!r)return n;for(var a=0;a<i.length;a++)r[i[a]]instanceof Date&&(n.columns||(n.columns=[]),n.columns[i[a]]={format:"d"});return n}},{key:"generateGroupRow",value:function(e){var t=e.rowNumber,n="A"+t,i=' <row r="'.concat(t,'" outlineLevel="').concat(e.outlineLevel,'" spans="1:').concat(e.numberOfColumns,'"').concat(this.getCustomRowHeight(t-1),' x14ac:dyDescent="0.45">\n <c r="').concat(n,'" t="s" s="0">\n <v>').concat(e.sharedStringIndex,"</v>\n </c>\n </row>\n");return e.mergedCells.push({from:n,to:this.columnsArray[e.numberOfColumns-1]+t}),i}},{key:"generateSharedStrings",value:function(e){var t=this,n=t.datafields,i=[],r="",a=0,o=0;function s(e){a++,-1===i.indexOf(e)&&(o++,i.push(e),e=(e=(e=(e=(e=e.replace(/&(?!amp;)/g,"&")).replace(/'/g,"'")).replace(/"/g,""")).replace(/>/g,">")).replace(/</g,"<"),r+="<si><t>".concat(e,"</t></si>"))}for(var l=0;l<e.length;l++)for(var c=e[l],u=0;u<n.length;u++){var d=c[n[u]];null!==d||t.allowNull||(d=""),"string"==typeof d&&s(d)}if(t.groupLabels)for(var h=0;h<t.groupLabels.length;h++)s(t.groupLabels[h]);return r='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'.concat(a,'" uniqueCount="').concat(o,'">').concat(r,"</sst>"),{collection:i,xml:r}}},{key:"generateSheet1",value:function(e,t){var n=this,i=n.columnsArray.length,r=n.columnsArray[i-1]+e.length,a=n.datafields,o=n.getFilters(),s=[].concat(n.complexHeaderMergedCells),l='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac xr xr2 xr3" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{7F25248B-C640-4C64-AD47-C0EA0E5D90D0}">\n <sheetPr filterMode="'.concat(""!==o,'" />\n <dimension ref="A1:').concat(r,'" />\n <sheetViews>\n <sheetView tabSelected="1" workbookViewId="0" />\n </sheetViews>\n <sheetFormatPr defaultRowHeight="14.5" x14ac:dyDescent="0.35" />').concat(n.getCustomColumnWidths(),"\n <sheetData>\n");function c(e,t){return n.columnsArray[e]+t}for(var u=0;u<=e.length;u++){var d=e[u],h=u+1,f="";if(n.actualHierarchy){var p=e[u-1];p&&p._collapsed&&(!d||p._level>d._level)&&(f=' collapsed="true"')}if(u===e.length){f&&(l+=' <row r="'.concat(h,'" outlineLevel="').concat(Math.max(e[u-1]._level-2,0),'" hidden="false" collapsed="true" />\n'));break}for(var m=' <row r="'.concat(h,'"').concat(n.getOutlineLevel(d),' hidden="').concat(d._hidden||d._collapsed||!1,'"').concat(f,' spans="1:').concat(i,'"').concat(n.getCustomRowHeight(h-1),' x14ac:dyDescent="0.45">\n'),g=0;g<a.length;g++){var v=n.getXLSXCellStyle(c(g,h));m+=n.getActualCellData(d[a[g]],{r:c(g,h),s:v},t)}l+=m+=" </row>\n"}return l+=" </sheetData>".concat(n.conditionalFormattingXLSX.conditions).concat(o).concat(n.getMergedCells(s),'\n <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n <pageSetup paperSize="9" orientation="portrait" r:id="rId1" />\n</worksheet>')}},{key:"generateSheet1WithGrouping",value:function(e,t){var n=this,i=n.columnsArray.length,r=n.columnsArray[i-1]+e.length,a=n.datafields,o=[].concat(n.complexHeaderMergedCells),s='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac xr xr2 xr3" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{7F25248B-C640-4C64-AD47-C0EA0E5D90D0}">\n <dimension ref="A1:'.concat(r,'" />\n <sheetViews>\n <sheetView tabSelected="1" workbookViewId="0" />\n </sheetViews>\n <sheetFormatPr defaultRowHeight="14.5" x14ac:dyDescent="0.35" />').concat(n.getCustomColumnWidths(),"\n <sheetData>\n"),l=0,c=[];function u(e,t){return n.columnsArray[e]+t}e:for(var d=0;d<e.length;d++){var h=e[d],f=d+1+l,p=0,m="";if(!n.exportHeader||!n.complexHeader&&0!==d||n.complexHeader&&d>=n.complexHeader.length){for(var g="",v=0;v<n.groupBy.length;v++){var y=n.groupBy[v],b=h[y],_=n.groups[y][b];if(g+=b,-1===c.indexOf(g)){var w=t.indexOf(_);s+=n.generateGroupRow({rowNumber:f,outlineLevel:p,numberOfColumns:i,sharedStringIndex:w,mergedCells:o}),c.push(g),d--,l++;continue e}p++}m=' outlineLevel="'.concat(p,'"')}for(var k=' <row r="'.concat(f,'"').concat(m,' spans="1:').concat(i,'"').concat(n.getCustomRowHeight(f-1),' x14ac:dyDescent="0.45">\n'),C=0;C<a.length;C++){var x=n.getXLSXCellStyle(u(C,d+1));k+=n.getActualCellData(h[a[C]],{r:u(C,f),s:x},t)}s+=k+=" </row>\n"}return s+=" </sheetData>".concat(n.getMergedCells(o),'\n <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n <pageSetup paperSize="9" orientation="portrait" r:id="rId1" />\n</worksheet>')}},{key:"getActualCellData",value:function(e,t,n){var i=t.r,r=t.s||' s="0"';return null!==e||this.allowNull||(e=""),"string"==typeof e?' <c r="'.concat(i,'" t="s"').
1concat(r,">\n <v>").concat(n.indexOf(e),"</v>\n </c>\n"):"boolean"==typeof e?' <c r="'.concat(i,'" t="b"').concat(r,">\n <v>").concat(+e,"</v>\n </c>\n"):e instanceof Date?' <c r="'.concat(i,'"').concat(r,">\n <v>").concat((e.getTime()+this.timeBetween1900And1970)/864e5+2,"</v>\n </c>\n"):' <c r="'.concat(i,'"').concat(r,">\n <v>").concat(e,"</v>\n </c>\n")}},{key:"getColumnsArray",value:function(){var e=this.datafields.length,t=[];function n(e){return e<26?"":String.fromCharCode(64+Math.floor(e/26))}for(var i=0;i<e;i++)t.push(n(i)+String.fromCharCode(65+(i<26?i:i%26)));this.columnsArray=t}},{key:"getColumnStyle",value:function(){var e,t=this,n=t.style;if(!n)return" .header { border: 1px solid black; padding: 5px; }\n .column { border: 1px solid black; padding: 5px; }\n .group { background-color: #FFFFFF; color: #000000; font-weight: bold; }";e=n.removeDefault?{header:"",column:"",group:""}:{header:"border: 1px solid black; padding: 5px; ",column:"white-space: nowrap; overflow: hidden; border: 1px solid black; padding: 5px; ",group:"background-color: #FFFFFF; color: #000000; font-weight: bold; "};var i=t.data[0],r="",a=n.header||{};for(var o in a)if(Object.prototype.hasOwnProperty.call(a,o)){var s=a[o];if(i[o]){for(var l in e["header"+o]||(e["header"+o]=""),s)if(Object.prototype.hasOwnProperty.call(s,l)){var c=Smart.Utilities.Core.toDash(l)+": "+s[l]+"; ";e["header"+o]+=c,"width"===l&&(e["column"+o]||(e["column"+o]=""),e["column"+o]+=c)}}else e.header+="height"===o&&t.complexHeader?"height: "+parseInt(a[o],10)/t.complexHeader.length+"px; ":Smart.Utilities.Core.toDash(o)+": "+a[o]+"; "}var u=n.columns||{};for(var d in u)if(Object.prototype.hasOwnProperty.call(u,d)){var h=u[d];if(i[d])for(var f in e["column"+d]||(e["column"+d]=""),h)isNaN(f)&&Object.prototype.hasOwnProperty.call(h,f)&&"format"!==f&&(e["column"+d]+=Smart.Utilities.Core.toDash(f)+": "+h[f]+"; ");else e.column+=Smart.Utilities.Core.toDash(d)+": "+h+"; "}for(var p in e)Object.prototype.hasOwnProperty.call(e,p)&&(r+=" .".concat(p," { ").concat(e[p],"}\n"));return n.custom&&(r+="".concat(n.custom,"\n")),r}},{key:"getCustomColumnWidths",value:function(){var e=this;if(!e.style||!e.columnWidth||0===e.columnWidth.length)return"";for(var t="\n <cols>\n",n=0;n<e.columnWidth.length;n++){var i=e.columnWidth[n];void 0!==i&&(i=Math.round(parseFloat(i))/7,t+=' <col min="'.concat(n+1,'" max="').concat(n+1,'" width="').concat(i,'" customWidth="1" />\n'))}return t+=" </cols>"}},{key:"getCustomFilter",value:function(e,t){var n,i="equal";switch(e instanceof Date&&(e=(e.getTime()+this.timeBetween1900And1970)/864e5+2),t=t.toUpperCase()){case"EMPTY":n="";break;case"NOT_EMPTY":n="",i="notEqual";break;case"CONTAINS":case"CONTAINS_CASE_SENSITIVE":n="*".concat(e,"*");break;case"DOES_NOT_CONTAIN":case"DOES_NOT_CONTAIN_CASE_SENSITIVE":n="*".concat(e,"*"),i="notEqual";break;case"STARTS_WITH":case"STARTS_WITH_CASE_SENSITIVE":n="".concat(e,"*");break;case"ENDS_WITH":case"ENDS_WITH_CASE_SENSITIVE":n="*".concat(e);break;case"EQUAL":case"EQUAL_CASE_SENSITIVE":n=e;break;case"NULL":n=null;break;case"NOT_NULL":n=null,i="notEqual";break;case"NOT_EQUAL":n=e,i="notEqual";break;case"LESS_THAN":n=e,i="lessThan";break;case"LESS_THAN_OR_EQUAL":n=e,i="lessThanOrEqual";break;case"GREATER_THAN":n=e,i="greaterThan";break;case"GREATER_THAN_OR_EQUAL":n=e,i="greaterThanOrEqual"}return' <customFilter val="'.concat(n,'" operator="').concat(i,'"/>\n')}},{key:"getCustomRowHeight",value:function(e){var t=this;return t.style&&(t.rowHeight[e]||t.defaultRowHeight)||""}},{key:"getDatafields",value:function(e){var t=e[0],n=[];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"_"!==i.charAt(0)&&n.push(i);this.datafields=n}},{key:"getFilters",value:function(){var e=this,t=e.filterBy;if(!t)return"";var n="";for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=e.datafields.indexOf(i);if(-1===r)continue;var a=t[i],o=a.filters;n+=' <filterColumn colId="'.concat(r,'">\n <customFilters and="').concat(!a.operator,'">\n');for(var s=0;s<o.length;s++)n+=e.getCustomFilter(o[s].value,o[s].condition);n+=" </customFilters>\n </filterColumn>"}return n?n='\n <autoFilter ref="A1:'.concat(e.columnsArray[e.columnsArray.length-1]+e.data.length,'">\n').concat(n,"\n </autoFilter>"):""}},{key:"getGroupLabels",value:function(e){for(var t=this,n=void 0!==t.xlsxStartIndex?t.xlsxStartIndex:+t.exportHeader,i={},r=[],a=n;a<e.length;a++)for(var o=e[a],s=0;s<t.groupBy.length;s++){var l=t.groupBy[s],c=o[l],u=i[l];void 0===u&&(i[l]={},u=i[l]),void 0===u[c]&&(u[c]=(t.exportHeader?e[n-1][l]:l)+": "+c,r.push(u[c]))}t.groups=i,t.groupLabels=r}},{key:"getHTMLHeader",value:function(e,t){var n=this,i="\n <thead>\n";if(!n.complexHeader){i+=" <tr>\n";for(var r=0;r<e.length;r++){var a=e[r];i+=' <th class="header header'.concat(a,'">').concat(t[0][a],"</th>\n")}return i+=" </tr>\n </thead>"}for(var o=0;o<n.complexDataFieldsHeader.length;o++){var s=n.complexDataFieldsHeader[o];i+=" <tr>\n";for(var l=0;l<s.length;l++){var c=s[l],u=1,d=1;
1if(!(s[l-1]&&s[l-1]===c||n.complexDataFieldsHeader[o-1]&&n.complexDataFieldsHeader[o-1][l]===c)){for(var h=l+1;s[h]&&s[h]===s[h-1];)u++,h++;for(h=o+1;n.complexDataFieldsHeader[h]&&n.complexDataFieldsHeader[h][l]===c;)d++,h++;i+=' <th class="header'.concat(o===n.complexHeader.length-1||d+o===n.complexHeader.length?" header"+e[l]:"",'" colspan="').concat(u,'" rowspan="').concat(d,'">').concat(n.complexHeader[o][l],"</th>\n")}}i+=" </tr>\n"}return i+=" </thead>"}},{key:"getConditionalFormatting",value:function(){var e=this,t=e.conditionalFormatting;if(t){for(var n=[],i="",r="",a=t.length-1;a>=0;a--){var o=t[a],s=e.columnsArray[e.datafields.indexOf(o.column)],l=s+(e.xlsxStartIndex+1),c=l+":"+s+e.data.length,u=o.background+o.color,d=e.getConditionalAttributes(o,l),h=n.indexOf(u);-1===h&&(r+=' <dxf>\n <font>\n <b val="0"/>\n <i val="0"/>\n <color rgb="'.concat("White"===o.color?"FFFFFFFF":"FF000000",'"/>\n <sz val="10"/>\n </font>\n <fill>\n <patternFill>\n <bgColor rgb="').concat(e.toARGB(o.background),'"/>\n </patternFill>\n </fill>\n </dxf>\n'),h=n.length,n.push(u)),i+=' <conditionalFormatting sqref="'.concat(c,'">\n <cfRule dxfId="').concat(h,'" text="').concat(d.text,'" rank="').concat(d.rank,'" percent="').concat(d.percent,'" bottom="').concat(d.bottom,'" equalAverage="').concat(d.equalAverage,'" aboveAverage="').concat(d.aboveAverage,'"').concat(d.operator).concat(d.timePeriod,' priority="').concat(a+2,'" type="').concat(d.type,'">\n').concat(d.formula," </cfRule>\n </conditionalFormatting>\n")}r=' <dxfs count="'.concat(n.length,'">\n').concat(r," </dxfs>"),e.conditionalFormattingXLSX={conditions:i,styles:r}}else e.conditionalFormattingXLSX={conditions:"",styles:""}}},{key:"getConditionalAttributes",value:function(e,t){var n=e.comparator,i="",r=0,a=0,o=0,s=0,l="",c="",u="",d="";switch(e.condition){case"equal":l="equal",u="cellIs",d=" <formula>".concat(n,"</formula>\n");break;case"lessThan":l="lessThan",u="cellIs",d=" <formula>".concat(n,"</formula>\n");break;case"greaterThan":l="greaterThan",u="cellIs",d=" <formula>".concat(n,"</formula>\n");break;case"notEqual":l="notEqual",u="cellIs",d=" <formula>".concat(n,"</formula>\n");break;case"between":l="between",u="cellIs",d=" <formula>".concat(e.min,"</formula>\n <formula>").concat(e.max,"</formula>\n");break;case"duplicate":u="duplicateValues",d=" <formula>0</formula>\n";break;case"topNItems":r=n,u="top10";break;case"bottomNItems":r=n,o=1,u="top10";break;case"topNPercent":r=n,a=1,u="top10";break;case"bottomNPercent":r=n,a=1,o=1,u="top10";break;case"aboveAverage":s=1,u="aboveAverage",d=" <formula>0</formula>\n";break;case"belowAverage":u="aboveAverage",d=" <formula>0</formula>\n";break;case"contains":i=n,l="containsText",u="containsText",d=' <formula>NOT(ISERROR(SEARCH("'.concat(n,'",').concat(t,")))</formula>\n");break;case"doesNotContain":i=n,l="notContains",u="notContainsText",d=' <formula>ISERROR(SEARCH("'.concat(n,'",').concat(t,"))</formula>\n");break;case"dateOccur":c=' timePeriod="'.concat(n,'"'),u="timePeriod"}return l&&(l=' operator="'.concat(l,'" ')),{text:i,rank:r,percent:a,bottom:o,equalAverage:0,aboveAverage:s,operator:l,timePeriod:c,type:u,formula:d}}},{key:"getMergedCells",value:function(e){for(var t=this,n="",i=0;i<e.length;i++)e[i].from!==e[i].to&&(n+='\n <mergeCell ref="'.concat(e[i].from,":").concat(e[i].to,'" />\n'));if(t.mergedCells)for(var r=0;r<t.mergedCells.length;r++){var a=t.mergedCells[r];a.rowspan<2&&a.colspan<2||(n+='\n <mergeCell ref="'.concat(t.columnsArray[a.cell[0]]+(a.cell[1]+t.xlsxStartIndex+1),":").concat(t.columnsArray[a.cell[0]+a.colspan-1]+(a.cell[1]+t.xlsxStartIndex+a.rowspan),'" />\n'))}return n&&(n='\n <mergeCells count="'.concat(e.length,'">').concat(n," </mergeCells>")),n}},{key:"getNumFmtIndex",value:function(e,t){var n=t.collection.indexOf(e);return-1===n?(n=t.collection.length+100,t.collection.push(e),t.xml+='<numFmt numFmtId="'.concat(n,'" formatCode="').concat(e,'"/>')):n+=100,n}},{key:"getOutlineLevel",value:function(e){return this.actualHierarchy&&1!==e._level?' outlineLevel="'.concat(e._level-1,'"'):""}},{key:"getRowStyle",value:function(){var e=this.style;if(!e)return"";var t=e.rows;if(!t)return"";var n={row:""},i="";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&"alternationCount"!==r&&"alternationStart"!==r&&"alternationEnd"!==r){var a=t[r];if(-1===r.indexOf("alt"))if(isNaN(r))n.row+=Smart.Utilities.Core.toDash(r)+": "+t[r]+"; ";else for(var o in n["row"+r]||(n["row"+r]=""),a)Object.prototype.hasOwnProperty.call(a,o)&&(n["row"+r]+=Smart.Utilities.Core.toDash(o)+": "+a[o]+"; ");else{var s=r.slice(16,17),l=r.slice(17);
1n["rowN"+s]||(n["rowN"+s]=""),n["rowN"+s]+="Color"===l?"color : "+a+"; ":"BorderColor"===l?"border-color : "+a+"; ":"background-color : "+a+"; "}}var c=Object.keys(n);c.sort(function(e,t){if("row"===e)return-1;if("row"===t)return 1;var n=!isNaN(e.slice(3)),i=!isNaN(t.slice(3));return n&&!i?1:!n&&i?-1:+(e<t)});for(var u=0;u<c.length;u++)i+=" .".concat(c[u]," { ").concat(n[c[u]],"}\n");return i}},{key:"getTableStyle",value:function(){var e=this.style;if(!e)return' style="table-layout: fixed; border: 1px solid black; border-collapse: collapse;"';var t="table-layout: fixed; ";for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&-1===["header","columns","rows","removeDefault","custom"].indexOf(n)&&(t+=Smart.Utilities.Core.toDash(n)+": "+e[n]+"; ");return t&&(t=' style="'+t+'"'),t}},{key:"getXLSXCellStyle",value:function(e){return void 0!==this.cellStyleMapping[e]?' s="'.concat(this.cellStyleMapping[e],'"'):""}},{key:"getXLSXFormat",value:function(e,t){if("number"==typeof t){if(!/^([a-zA-Z]\d*)$/g.test(e))return e;var n=parseFloat(e.slice(1))||0,i=n>0?"."+"0".repeat(n):"";switch(e=e.slice(0,1)){case"C":case"c":return"$#,0"+i;case"D":case"d":return n?"0".repeat(n):"0";case"E":case"e":return"0"+i+e+"000";case"F":case"f":return"0"+i;case"N":case"n":return"#,0"+i;case"P":case"p":return"#,0"+i+" %";default:return}}else if(t instanceof Date){switch(e){case"d":return"m/d/yyyy";case"D":return"nnnnmmmm dd, yyyy";case"t":return"h:m AM/PM";case"T":return"h:mm:ss AM/PM";case"f":return"nnnnmmmm dd, yyyy h:m AM/PM";case"F":return"nnnnmmmm dd, yyyy h:mm:ss AM/PM";case"M":return"mmmm d";case"Y":return"yyyy mmmm";case"FP":case"PP":return"yyyy-mm-dd hh:mm:ss";case"FT":case"PT":return"hh:mm:ss"}return(e=(e=(e=e.replace(/f|u|n|p|e|a|x|o/gi,"")).replace(/tt/gi,"AM/PM")).replace(/:{2,}|:\s|:$|\.$/g,"")).trim()}}},{key:"processColumnStyle",value:function(e){var t=this,n=e.header,i=e.columns,r=t.data[0],a=t.xlsxStartIndex;if(t.columnWidth=[],a&&n)for(var o=0;o<t.columnsArray.length;o++){var s=t.columnsArray[o],l=s+a,c=n[t.datafields[o]];for(var u in n)if(Object.prototype.hasOwnProperty.call(n,u)&&void 0===r[u])if(t.complexHeader)for(var d=0;d<t.complexHeader.length;d++)"height"!==u?t.storeCellStyle(s+(d+1),u,n[u]):t.rowHeight[d]=' ht="'.concat(parseFloat(n.height)/t.complexHeader.length/2,'"');else{if("height"===u){t.rowHeight[0]=' ht="'.concat(parseFloat(n.height)/2,'"');continue}t.storeCellStyle(l,u,n[u])}if(c)for(var h in c)if(Object.prototype.hasOwnProperty.call(c,h)){if("width"===h){t.columnWidth[o]=c.width;continue}t.storeCellStyle(l,h,c[h])}}else if(n)for(var f=0;f<t.columnsArray.length;f++){var p=n[t.datafields[f]];p&&void 0!==p.width&&(t.columnWidth[f]=p.width)}if(!i)return"";for(var m=a;m<t.data.length;m++)for(var g=0;g<t.columnsArray.length;g++){var v=t.columnsArray[g]+(m+1),y=t.datafields[g],b=i[y];for(var _ in i)Object.prototype.hasOwnProperty.call(i,_)&&void 0===r[_]&&t.storeCellStyle(v,_,i[_]);if(b)for(var w in b)isNaN(w)&&Object.prototype.hasOwnProperty.call(b,w)&&t.storeCellStyle(v,w,b[w],t.data[m][y])}}},{key:"processComplexHeader",value:function(e,t,n){var i=this,r={},a=-1!==["html","jpeg","pdf","png","xlsx"].indexOf(n)&&e.columngroups,o=[],s={},l={},c=[],u=[],d=0;function h(t){for(var n=0;n<e.columngroups.length;n++){var i=e.columngroups[n];if(i.name===t)return i}}function f(e,t){for(var n=[];e;){if(n.unshift(e[t]),!e.parentGroup)return n;e=h(e.parentGroup)}}if(a){for(var p=0;p<e.columngroups.length;p++){var m=e.columngroups[p],g=f(m,"label");s[m.name]=g,l[m.name]=f(m,"name"),d=Math.max(d,g.length)}d++;for(var v=0;v<d;v++)c[v]=[],u[v]=[]}for(var y=0;y<e.columns.length;y++){var b=e.columns[y];if((r[b.dataField]=b.label,a)&&(o[y]=b.dataField,c[d-1][y]=b.label,u[d-1][y]=b.dataField,b.columnGroup)){var _=s[b.columnGroup],w=l[b.columnGroup];if(_)for(var k=0;k<_.length;k++)c[k][y]=_[k],u[k][y]=w[k]}}if(c.length>1){for(var C=Object.keys(r).length,x=0;x<d-1;x++){for(var S={},M=0;M<C;M++){if(void 0===c[x][M]){for(var D=x+1;void 0===c[D][M];)D++;c[x][M]=c[D][M],u[x][M]=u[D][M]}S[o[M]]=c[x][M]}"xlsx"===n&&t.splice(x,0,S)}if(i.complexHeader=c,i.complexDataFieldsHeader=u,"xlsx"!==n)t.unshift(r);else{t.splice(d-1,0,r);for(var T={},E=0;E<d;E++)for(var A=0;A<C;A++){var P=u[E][A];if(T[P]){var L=T[P].to;if(E-L[0]>1||A-L[1]>1){T[P+Math.random().toString(36)]=T[P],T[P]={from:[E,A],to:[E,A]};continue}T[P].to=[E,A]}else T[P]={from:[E,A]},T[P].to=T[P].from}i.complexHeaderMergeInfo=T}}else t.unshift(r)}},{key:"processHierarchicalData",value:function(e,t){var n=this,i="xlsx"
1!==t?+n.exportHeader:n.xlsxStartIndex,r={},a=[],o=0,s=!1;if(void 0===e[i]._keyDataField)return n.processNestedData(e,t,i);for(var l=i;l<e.length;l++){var c=Object.assign({},e[l]),u=c._parentDataField;void 0===u&&(u=null),void 0===r[u]?r[u]=[c]:r[u].push(c)}if(i)for(var d=0;d<i;d++)a.push(Object.assign({},e[d])),-1===["json","pdf","xml"].indexOf(t)&&(a[d]._level=1);return"json"!==t&&"xml"!==t?function e(t,n,i){var l=r[t];if(o=Math.max(o,n),void 0!==l)for(var c=0;c<l.length;c++){var u=l[c],d=u._keyDataField;u._collapsed=i,u._level=n,a.push(u),r[d]&&(s=!0,u._expanded=void 0===u._expanded||u._expanded,e(d,n+1,i||!u._expanded))}}(null,1,!1):function e(n,i,a){var l=r[n];if(o=Math.max(o,i),void 0!==l)for(var c=0;c<l.length;c++){var u=l[c],d=u._keyDataField,h=void 0;if("json"===t)for(var f in h={},u)Object.prototype.hasOwnProperty.call(u,f)&&"_"!==f.charAt(0)&&(h[f]=u[f]);else h=Object.assign({},u);a.push(h),r[d]&&(s=!0,h.rows=[],e(d,i+1,h.rows))}}(null,1,a),s||(n.actualHierarchy=!1),n.maxLevel=o,a}},{key:"processNestedData",value:function(e,t,n){var i=[],r=0,a=!1;if(n)for(var o=0;o<n;o++)i.push(Object.assign({},e[o])),-1===["json","pdf","xml"].indexOf(t)&&(i[o]._level=1);return"json"!==t&&"xml"!==t?function e(t,n,o,s){r=Math.max(r,o);for(var l=t;l<n.length;l++){var c=Object.assign({},n[l]);c._collapsed=s,c._level=o,i.push(c),c.children&&c.children.length>0&&(a=!0,c._expanded=void 0===c._expanded||c._expanded,e(0,c.children,o+1,s||!c._expanded)),delete c.children}}(n,e,1,!1):function e(t,n,o,s){r=Math.max(r,s);for(var l=t;l<n.length;l++){var c=Object.assign({},n[l]);1===s?i[l]=c:o[l]=c,c.children&&c.children.length>0&&(a=!0,c.rows=[],e(0,c.children,c.rows,s+1)),delete c.children}}(n,e,void 0,1),a||(this.actualHierarchy=!1),this.maxLevel=r,i}},{key:"processRowStyle",value:function(e){var t=this,n=e.rows;if(t.rowHeight=[],n){var i=t.xlsxStartIndex;n.height&&(t.defaultRowHeight=' ht="'.concat(parseFloat(n.height)/2,'"'));for(var r=i;r<t.data.length;r++){var a=r-i;for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&-1===o.indexOf("alt")&&isNaN(o)&&"height"!==o&&c(a,o,n[o]);if(n.alternationCount&&((void 0===n.alternationStart||a>=n.alternationStart)&&(void 0===n.alternationEnd||a<=n.alternationEnd)||n.alternationStart===n.alternationEnd)){var s=(a-(n.alternationStart||0))%n.alternationCount;n["alternationIndex".concat(s,"Color")]&&c(a,"color",n["alternationIndex".concat(s,"Color")]),n["alternationIndex".concat(s,"BorderColor")]&&c(a,"borderColor",n["alternationIndex".concat(s,"BorderColor")]),n["alternationIndex".concat(s,"BackgroundColor")]&&c(a,"backgroundColor",n["alternationIndex".concat(s,"BackgroundColor")])}if(n[a])for(var l in n[a])if(Object.prototype.hasOwnProperty.call(n[a],l)){if("height"===l){t.rowHeight[r]=' ht="'.concat(parseFloat(n[a].height)/2,'"');continue}c(a,l,n[a][l])}}}function c(e,n,r){for(var a=0;a<t.columnsArray.length;a++)t.storeCellStyle(t.columnsArray[a]+(e+1+i),n,r)}}},{key:"storeCellStyle",value:function(e,t,n){var i=this.styleMap[e];switch(t){case"backgroundColor":i.fills.fgColor=n;break;case"color":i.fonts.color=n;break;case"fontFamily":i.fonts.name=n.replace(/"/g,"'");break;case"fontSize":i.fonts.sz=parseFloat(n);break;case"fontStyle":"italic"===n?i.fonts.i=!0:delete i.fonts.i;break;case"fontWeight":"bold"===n?i.fonts.b=!0:delete i.fonts.b;break;case"numFmt":i.numFmt=n;break;case"textAlign":i.alignment.horizontal=n;break;case"textDecoration":"underline"===n?i.fonts.u=!0:delete i.fonts.u;break;case"verticalAlign":"middle"===n&&(n="center"),i.alignment.vertical=n}}},{key:"toARGB",value:function(e){e=e.replace(/\s/g,"");var t=/rgb\((\d+),(\d+),(\d+)\)/gi.exec(e);if(null!==t){var n=parseFloat(t[1]).toString(16).toUpperCase(),i=parseFloat(t[2]).toString(16).toUpperCase(),r=parseFloat(t[3]).toString(16).toUpperCase();return"FF"+"0".repeat(2-n.length)+n+"0".repeat(2-i.length)+i+"0".repeat(2-r.length)+r}var a=/rgba\((\d+),(\d+),(\d+)\,(\d*.\d+|\d+)\)/gi.exec(e);if(null!==a){var o=Math.round(255*parseFloat(a[4])).toString(16).toUpperCase(),s=parseFloat(a[1]).toString(16).toUpperCase(),l=parseFloat(a[2]).toString(16).toUpperCase(),c=parseFloat(a[3]).toString(16).toUpperCase();return"0".repeat(2-o.length)+o+"0".repeat(2-s.length)+s+"0".repeat(2-l.length)+l+"0".repeat(2-c.length)+c}var u=/^#(.)(.)(.)$/gi.exec(e);if(null!==u){var d=u[1].toUpperCase(),h=u[2].toUpperCase(),f=u[3].toUpperCase();return"FF"+d+d+h+h+f+f}return"FF"+e.toUpperCase().slice(1)}},{key:"toggleableFunctionality",value:function(){var e=this;return e.actualHierarchy?'\n <style type="text/css">\n .toggle-element {\n width: 5px;\n height: 1px;\n padding-right: 5px;\n float: left;\n text-align: right;\n cursor: pointer;\n user-select: none;\n }\n\n .collapsed {\n display: none;\n }\n </style>\n <script type="text/javascript">\n window.onload = function () {\n var expandChar = \''.concat(e.expandChar,"',\n collapseChar = '").concat(e.collapseChar,"',\n toggleElements = document.getElementsByClassName('toggle-element');\n\n function getParent(child) {\n var prevSibling = child.previousElementSibling;\n\n while (prevSibling) {\n if (child.getAttribute('level') > prevSibling.getAttribute('level')) {\n return prevSibling;\n }\n\n prevSibling = prevSibling.previousElementSibling;\n }\n\n }\n\n function getFirstCollapsedAncestor(child) {\n var parent = getParent(child);\n\n while (parent) {\n if (parent.firstElementChild.firstElementChild.innerHTML === expandChar) {\n return parent;\n }\n\n parent = getParent(parent);\n }\n }\n\n for (var i = 0; i < toggleElements.length;
1 i++) {\n toggleElements[i].addEventListener('click', function (event) {\n var expanded = this.innerHTML === collapseChar,\n row = this.parentElement.parentElement,\n sibling = row.nextElementSibling;\n\n if (expanded) {\n this.innerHTML = expandChar;\n }\n else {\n this.innerHTML = collapseChar;\n }\n\n while (sibling && row.getAttribute('level') < sibling.getAttribute('level')) {\n if (expanded) {\n sibling.style.display = 'none';\n }\n else {\n var firstCollapsedAncestor = getFirstCollapsedAncestor(sibling);\n\n if (!firstCollapsedAncestor || firstCollapsedAncestor === row) {\n sibling.classList.remove('collapsed');\n sibling.style.display = null;\n }\n\n }\n\n sibling = sibling.nextElementSibling;\n }\n });\n }\n }\n <\/script>"):""}},{key:"generateStyles",value:function(e){var t=this;if(t.cellStyleMapping={},0===Object.keys(e).length&&!t.complexHeader)return'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"><fonts count="1" x14ac:knownFonts="1"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><charset val="204"/><scheme val="minor"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>'.concat(t.conditionalFormattingXLSX.styles||'<dxfs count="0"/>','<tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>');t.styleMap={};for(var n=0;n<t.data.length;n++)for(var i=0;i<t.columnsArray.length;i++)t.styleMap[t.columnsArray[i]+(n+1)]={numFmts:{},fonts:{},fills:{},borders:{},alignment:{}};if(e&&e.columns)for(var r=0;r<t.columnsArray.length;r++){var a=t.datafields[r];if(e.columns[a]&&e.columns[a].format){var o=t.getXLSXFormat(e.columns[a].format,t.data[1][a]),s=t.getXLSXFormat(e.columns[a].format,t.data[t.data.length-1][a]);s?e.columns[a].numFmt=s:o&&(e.columns[a].numFmt=o)}}t.processRowStyle(e),t.processColumnStyle(e);for(var l={},c=0;c<t.complexHeaderMergedCells.length;c++){var u=t.complexHeaderMergedCells[c];parseFloat(u.to[1])!==t.complexHeader.length?(t.styleMap[u.from].alignment.horizontal="center",t.styleMap[u.from].alignment.vertical="center"):l[u.to]=u.from}for(var d={xml:'<font><sz val="11" /><color theme="1" /><name val="Calibri" /><family val="2" /><charset val="204" /><scheme val="minor" /></font>',collection:["default"]},h={xml:'<fill><patternFill patternType="none" /></fill><fill><patternFill patternType="gray125" /></fill>',collection:["default","gray125"]},f={xml:"",collection:[]},p={xml:'<xf fontId="0" fillId="0" borderId="1"/>',collection:["default"]},m=0;m<t.data.length;m++)for(var g=0;g<t.columnsArray.length;g++){var v=t.columnsArray[g]+(m+1),y=t.styleMap[v],b="",_="",w="",k=[],C=[],x=[],S=[];for(var M in y.fonts)if(Object.prototype.hasOwnProperty.call(y.fonts,M)){var D=y.fonts[M];switch(M){case"color":k[0]=D,b+='<color rgb="'.concat(t.toARGB(D),'" />');break;case"name":k[1]=D,b+='<name val="'.concat(D,'" />');break;case"sz":k[2]=D,b+='<sz val="'.concat(D,'" />');break;case"i":k[3]=D,b+="<i />";break;case"b":k[4]=D,b+="<b />";break;case"u":k[5]=D,b+="<u />"}}for(var T in y.fills)if(Object.prototype.hasOwnProperty.call(y.fills,T)){var E=y.fills[T];"fgColor"===T&&(C[0]=E,_+='<fgColor rgb="'.concat(t.toARGB(E),'" />'))}
1for(var A in y.alignment)if(Object.prototype.hasOwnProperty.call(y.alignment,A)){var P=y.alignment[A];switch(A){case"horizontal":x[0]=P,w+='horizontal="'.concat(P,'" ');break;case"vertical":x[1]=P,w+='vertical="'.concat(P,'" ')}}if(k=k.toString(),C=C.toString(),""!==b){var L=d.collection.indexOf(k);-1===L&&(L=d.collection.length,d.xml+="<font>"+b+"</font>",d.collection.push(k)),S[0]=L}if(""!==_){var O=h.collection.indexOf(C);-1===O&&(O=h.collection.length,h.xml+='<fill><patternFill patternType="solid">'+_+"</patternFill></fill>",h.collection.push(C)),S[1]=O}x.length>0&&(S[2]=w),void 0!==y.numFmt&&(S[3]=t.getNumFmtIndex(y.numFmt,f));var I=S.toString();if(""!==I){var H=p.collection.indexOf(I);if(-1===H){var j="<xf ";H=p.collection.length,void 0!==S[0]&&(j+='fontId="'.concat(S[0],'" ')),void 0!==S[1]&&(j+='fillId="'.concat(S[1],'" ')),void 0!==S[3]&&(j+='numFmtId="'.concat(S[3],'" ')),j+=void 0!==S[2]?'applyAlignment="1" borderId="1"><alignment '.concat(w,"/></xf>"):' borderId="1"/>',p.xml+=j,p.collection.push(I)}t.cellStyleMapping[l[v]||v]=H}}return f.collection.length&&(f.xml='<numFmts count="'.concat(f.collection.length,'">').concat(f.xml,"</numFmts>")),'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision">'.concat(f.xml,'<fonts count="').concat(d.collection.length,'" x14ac:knownFonts="1">').concat(d.xml,'</fonts><fills count="').concat(h.collection.length,'">').concat(h.xml,'</fills><borders count="2"><border><left/><right/><top/><bottom/></border><border><left style="hair"/><right style="hair"/><top style="hair"/><bottom style="hair"/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="').concat(p.collection.length,'">').concat(p.xml,'</cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>').concat(t.conditionalFormattingXLSX.styles,'<dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>')}}]),e}())},5039:function(){Smart("smart-file-upload",function(e){_inherits(n,Smart.BaseElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_blurHandler",value:function(){this.$.fireEvent("blur")}},{key:"_focusHandler",value:function(){this.$.fireEvent("focus")}},{key:"template",value:function(){return'<div id="container" role="presentation">\n <div id="fileUploadHeader" class="smart-file-upload-header" role="presentation">\n <smart-button class="smart-browse-button" id="browseButton" disabled="[[disabled]]" theme="[[theme]]" right-to-left="[[rightToLeft]]"></smart-button>\n <input type="file" class="smart-browse-input" id="browseInput" name="[[name]]" animation="[[animation]]" disabled="[[disabled]]" unfocusable="[[unfocusable]]" multiple="[[multiple]]" webkitdirectory="[[directory]]" mozdirectory="[[directory]]" />\n </div>\n <div id="fileUploadContainer" class="smart-file-upload-container">\n <div id="dropZone" class="smart-drop-zone" aria-label="Drag files here"></div>\n <div id="selectedFiles" class="smart-selected-files" role="list" aria-label="Selected files"></div>\n </div>\n <div id="totalFiles" class="smart-total-files smart-hidden" role="presentation">Total flies: 0</div>\n <div id="fileUploadFooter" class="smart-file-upload-footer smart-hidden"><smart-button class="smart-upload-all-button success" id="uploadAllButton" animation="[[animation]]" disabled="[[disabled]]" unfocusable="[[unfocusable]]"" theme="[[theme]]" right-to-left="[[rightToLeft]]"></smart-button><smart-button class="smart-cancel-all-button error" id="cancelAllButton" animation="[[animation]]" disabled="[[disabled]]" unfocusable="[[unfocusable]]" theme="[[theme]]" right-to-left="[[rightToLeft]]"></smart-button><smart-button class="smart-pause-all-button primary" id="pauseAllButton" animation="[[animation]]" disabled="[[disabled]]" unfocusable="[[unfocusable]]" theme="[[theme]]" right-to-left="[[rightToLeft]]"></smart-button></div>\n </div>'}}
1,{key:"propertyChangedHandler",value:function(e,t,i){var r=this;switch(_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i),e){case"accept":r.$.browseInput.accept=i;break;case"dropZone":case"appendTo":r._handleContainers();break;case"messages":case"locale":r._updateTextValues();break;case"multiple":r.$.browseButton.disabled=!!(!r.multiple&&r._selectedFiles.length>0||r.disabled),!i&&r._selectedFiles.length>1&&(r._selectedFiles.splice(1),r._renderSelectedFiles());break;case"itemTemplate":r._items.length>0&&(r._renderSelectedFiles(),r._handleComponentsByAvailableHeight());break;case"rightToLeft":r._items&&r._items.forEach(function(e){var t=e.querySelector("smart-progress-bar");t&&(t.rightToLeft=i),i?e.setAttribute("right-to-left",""):e.removeAttribute("right-to-left")}),i?r.$.dropZone.setAttribute("right-to-left",""):r.$.dropZone.removeAttribute("right-to-left")}}},{key:"attached",value:function(){_get(_getPrototypeOf(n.prototype),"attached",this).call(this),this._handleContainers()}},{key:"detached",value:function(){_get(_getPrototypeOf(n.prototype),"detached",this).call(this);var e=this;e.$.fileUploadContainer.contains(e.$.dropZone)||e.$.fileUploadContainer.insertBefore(e.$.dropZone,e.$.fileUploadContainer.firstChild),e.$.fileUploadContainer.contains(e.$.selectedFiles)||e.$.fileUploadContainer.appendChild(e.$.selectedFiles)}},{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this);var e=this;e.$.dropZone.id||(e.$.dropZone.id=e.id+"DropZone"),e.$.selectedFiles.id||(e.$.selectedFiles.id=e.id+"SelectedFiles"),e.$.fileUploadContainer.setAttribute("aria-owns",e.$.dropZone.id+" "+e.$.selectedFiles.id),e.setAttribute("role","dialog"),e.rightToLeft?e.$.dropZone.setAttribute("right-to-left",""):e.$.dropZone.removeAttribute("right-to-left"),e._setInitialValues(),e._updateTextValues(),e._handleContainers(),e._handleComponentsByAvailableHeight()}},{key:"browse",value:function(){var e=this;e.disabled||!e.multiple&&e._selectedFiles.length>0||e.$.browseInput.click()}},{key:"addFile",value:function(e){var t=this,n=t.multiple,i=t._selectedFiles;i&&(n||!i.length)&&e instanceof File&&("function"!=typeof t.validateFile||t.validateFile(e))&&(i=i.push(e),t._renderSelectedFiles([e]),t.$.browseButton.disabled=!!(!n&&i.length>0||t.disabled),t.$.browseInput.value="")}},{key:"cancelAll",value:function(){var e=this;if(!e.disabled&&0!==e._items.length){for(var t=e._items.length-1;t>=0;t--)e.cancelFile(e._items[t].index);e.$.browseButton.disabled=!!(!e.multiple&&e._selectedFiles.length>0||e.disabled)}}},{key:"cancelFile",value:function(e){var t=this,n=function(){t.$.selectedFiles.removeChild(i),t._selectedFiles.splice(r,1),t._items.splice(r,1),t.$.fireEvent("uploadCanceled",{filename:i.file.name,type:i.file.type,size:i.file.size,index:i.index}),t.$.browseButton.disabled=!!(!t.multiple&&t._selectedFiles.length>0||t.disabled),0===t._selectedFiles.length&&t.$.fileUploadFooter.classList.add("smart-hidden"),t._handleComponentsByAvailableHeight()};if("number"==typeof e&&!t.disabled&&0!==t._selectedFiles.length){var i=t._getFileItem(e,!0);if(i){var r=t._items.indexOf(i),a=t._selectedFiles[r];if(i&&i.xhr&&i.xhr.abort(),t.removeUrl){var o=new FormData,s=new XMLHttpRequest;o.append("userfile[]",a),s.open("POST",t.removeUrl),t.setHeaders&&"function"==typeof t.setHeaders&&t.setHeaders(s,a),s.onload=function(){s.status>=200&&s.status<=299?n():t.$.fireEvent("uploadCanceledError",{filename:i.file.name,type:i.file.type,size:i.file.size,status:s.status,index:i.index})},s.onreadystatechange=function(){t.responseHandler&&"function"==typeof t.responseHandler&&t.responseHandler(s)},s.send(o)}else n()}else t.error(t.localize("wrongItemIndex",{elementType:t.nodeName.toLowerCase()}))}}},{key:"value",get:function(){return this._selectedFiles}},{key:"files",get:function(){return this._selectedFiles}},{key:"pauseAll",value:function(){var e=this;if(!e.disabled&&0!==e._items.length)for(var t=e._items.length-1;t>=0;t--){var n=e._items[t];n.xhr&&n.xhr.abort()}}},{key:"pauseFile",value:function(e){var t=this;if(!("number"!=typeof e&&"string"!=typeof e||t.disabled||0===t._items.length)){var n=t._getFileItem(e,!0);n?(n.classList.remove("smart-uploading-start"),n&&n.xhr&&n.xhr.abort(),t.$.fireEvent("uploadPaused",{filename:n.file.name,type:n.file.type,size:n.file.size,index:n.index})):t.error(t.localize("wrongItemIndex",{elementType:t.nodeName.toLowerCase()}))}}},{key:"uploadAll",value:function(){var e=this;if(!e.disabled&&0!==e._items.length)for(var t=e._items.length-1;t>=0;t--)e._items[t].uploading||e.uploadFile(e._items[t].index)}},{key:"uploadFile",value:function(e){var t=this,n=!1;if("number"==typeof e&&!t.disabled&&0!==t._selectedFiles.length){var i=t._getFileItem(e,!0);if(i){var r=new FormData,a=t.showProgress?i.getElementsByTagName("smart-progress-bar")[0]:null,o=i.file;i.classList.remove("smart-pause","smart-error"),i.classList.add("smart-uploading-start"),r.append("userf
1ile[]",o);var s=new XMLHttpRequest;s.open("POST",t.uploadUrl),t.setHeaders&&"function"==typeof t.setHeaders&&t.setHeaders(s,o),t.$.fireEvent("uploadStarted",{filename:i.file.name,type:i.file.type,size:i.file.size,index:i.index}),s.upload.onprogress=function(e){n||(n=!0,i.classList.remove("smart-uploading-start"),i.classList.add("smart-uploading"),i.uploading=!0,i.xhr=s),a&&(a.value=Math.round(e.loaded/e.total*100)),i.classList.remove("smart-pause","smart-error")},s.onabort=function(){i.classList.remove("smart-uploading-start","smart-uploading"),i.classList.add("smart-pause"),i.addEventListener("animationend",function(){i.classList.remove("smart-pause","smart-error")})},s.onerror=function(){i.classList.remove("smart-uploading-start","smart-uploading"),i.classList.add("smart-error"),i.addEventListener("animationend",function(){i.classList.remove("smart-pause","smart-error")})},s.onload=function(){if(n=!1,i.classList.remove("smart-uploading-start","smart-uploading"),s.status>=200&&s.status<=299){var e=t._items.indexOf(i);t.$.selectedFiles.removeChild(i),t._selectedFiles.splice(t._selectedFiles.indexOf(o),1),t._items.splice(e,1),t.$.browseButton.disabled=!!(!t.multiple&&t._selectedFiles.length>0||t.disabled),t.$.fireEvent("uploadCompleted",{filename:i.file.name,type:i.file.type,size:i.file.size,status:s.status,index:i.index}),0===t._selectedFiles.length&&t.$.fileUploadFooter.classList.add("smart-hidden")}else i.classList.add("smart-error"),i.classList.remove("smart-uploading"),t.$.fireEvent("uploadError",{filename:i.file.name,type:i.file.type,size:i.file.size,status:s.status,index:i.index})},s.onreadystatechange=function(){t.responseHandler&&"function"==typeof t.responseHandler&&t.responseHandler(s)},s.send(r)}}}},{key:"_selectedFilesClickHandler",value:function(e){var t=this;if(!t.disabled){var n=e.target,i=n.closest(".smart-item-upload-button"),r=n.closest(".smart-item-cancel-button"),a=n.closest(".smart-item-pause-button"),o=n.closest(".smart-file");i?t.uploadFile(o.index):r?t.cancelFile(o.index):a&&t.pauseFile(o.index)}}},{key:"_browseInputChangeHandler",value:function(){var e=this,t=e._filterNewFiles(Array.from(e.$.browseInput.files)),n=[];e.disabled||0===t.length||(n=e.validateFile&&"function"==typeof e.validateFile?t.filter(function(t){return!!e.validateFile(t)||(e.$.fireEvent("validationError",{filename:t.name,type:t.type,size:t.size}),!1)}):t,e._selectedFiles=e._selectedFiles.concat(n),0!==e._selectedFiles.length&&(e._renderSelectedFiles(n),e.$.browseButton.disabled=!!(!e.multiple&&e._selectedFiles.length>0||e.disabled),e.$.browseInput.value="",e.autoUpload&&e.uploadAll()))}},{key:"_defaultItemTemplate",value:function(e,t){var n=this,i=n.localize("uploadFile"),r=n.localize("cancelFile"),a=n.localize("pauseFile");return'<span id="'.concat(n.id+"File"+t+"Name",'" class="smart-item-name">').concat(e,'</span><span class="smart-item-upload-button" title="').concat(i,'" role="button" aria-label="').concat(i,'"></span><span class="smart-item-cancel-button" title="').concat(r,'" role="button" aria-label="').concat(r,'"></span><span class="smart-item-pause-button" title="').concat(a,'" role="button" aria-label="').concat(a,'"></span><smart-progress-bar ').concat(n.rightToLeft?"right-to-left ":"",'aria-label="Upload progress"></smart-progress-bar>')}},{key:"_dropZoneHandler",value:function(e){var t=this;if(e.preventDefault(),e.stopPropagation(),!t.disabled)if("dragenter"!==e.type&&"dragleave"!==e.type){if("drop"===e.type){if(t.$.dropZone.classList.remove("smart-drag-over"),!t.multiple&&t._selectedFiles.length>0)return;if(e.dataTransfer&&e.dataTransfer.files&&e.dataTransfer.files.length){var n=t._filterNewFiles(Array.from(e.dataTransfer.files));if(0===n.length)return;t.multiple||n.splice(1),t._selectedFiles=t._selectedFiles.concat(n),t._renderSelectedFiles(n)}t.$.browseButton.disabled=!!(!t.multiple&&t._selectedFiles.length>0||t.disabled)}}else"dragenter"===e.type?t.$.dropZone.classList.add("smart-drag-over"):t.$.dropZone.classList.remove("smart-drag-over")}},{key:"_filterNewFiles",value:function(e){for(var t=[],n=0;n<e.length;n++){for(var i=!0,r=0;r<this._selectedFiles.length;r++){var a=this._selectedFiles[r],o=e[n];if(o.name===a.name&&o.size===a.size&&o.type===a.type&&o.lastModified===a.lastModified){i=!1;break}}i&&t.push(e[n])}return t}},{key:"_getFileItem",value:function(e,t){var n=this,i=null;if(e&&("string"==typeof e||"number"==typeof e)){if(!n._items||0===n._items.length)return null;for(var r=0;r<n._items.length;r++){var a=n._items[r];(t&&a.index===parseInt(e)||a.file.name===e)&&(i=a)}return i}}},{key:"_handleContainers",value:function(){var e=this,t=e._validateDOMElement(e.dropZone),n=e._validateDOMElement(e.appendTo);t?t.appendChild(e.$.dropZone):e.$.fileUploadContainer.insertBefore(e.$.dropZone,e.$.fileUploadContainer.firstChild),n?n.appendChild(e.$.selectedFiles):e.$.fileUploadContainer.appendChild(e.$.selectedFiles)}},{key:"_handleItemTemplate",value:function(e,t){var n=this,i=n.itemTemplate;if("content"in document.createElement("template")){if(!i)return n._defaultItemTemplate(e,t);if("string"==typeof i&&(i=document.getElementById(i)),null!==i&&"content"in i)return i.innerHTML.replace(/{{\w+}}/g,e);n.error(n.localize("invalidTemplate",{elementType:n.nodeName.toLowerCase(),property:"template"}))}else n.error(n.localize("htmlTemplateNotSuported",{elementType:n.nodeName.toLowerCase()}))}},{key:"_renderSelectedFiles",value:function(e){var t=this,n=document.createDocumentFragment(),i=e||t._selectedFiles;e||(t._items=[],t.$.selectedFiles.innerHTML="");for(var r=0;r<i.length;r++){var a=t.directory?i[r].webkitRelativePath:i[r].name,o=document.createElement("div");t._incrementIndex++,o.className="smart-file",o.index=t._incrementIndex,o.setAttribute("item-id",t._incrementIndex),o.innerHTML=t.itemTemplate?t._handleItemTemplate(a,t._incrementIndex):t._defaultItemTemplate(a,t._incrementIndex),o.file=i[r],o.uploading=!1,o.xhr=null,o.setAttribute("role","listitem"),o.setAttribute("aria-labelledby",t.id+"File"+t._incrementIndex+"Name"),t.rightToLeft&&o.setAttribute("right-to-left",""),n.appendChild(o),t._items.push(o),t.$.fireEvent("fileSelected",{filename:i[r].name,type:i[r].type,size:i[r].size,index:o.index})}t.$.selectedFiles.appendChild(n),t.$.fileUploadFooter.classList.remove("smart-hidden"),t._handleComponentsByAvailableHeight()}},{key:"_setInitialValues",value:function(){var e=this;e.$.browseInput.accept=e.accept,e._selectedFiles=[],e._items=[],e._incrementIndex=0}},{key:"_updateTextValues",value:function(){for(var e=this,t=["browse","uploadAll","cancelAll","pauseAll"],n=0;n<t.length;n++){var i=t[n];e.$[i+"Button"].innerHTML=e.localize(i)}for(var r=0;r<e._selectedFiles.length;r++){var a=e._items[r];a.querySelector(".smart-item-upload-button").title=e.localize("uploadFile"),a.querySelector(".smart-item-cancel-button").title=e.localize("cancelFile"),a.querySelector(".smart-item-pause-button").title=e.localize("pauseFile")}}},{key:"_validateDOMElement",value:function(e){if(e)return"string"==typeof e?document.getElementById(e):e instanceof HTMLElement?e:void 0}},{key:"refresh",value:function(){this._handleComponentsByAvailableHeight()}},{key:"_handleComponentsByAvailableHeight",value:function(){var e=this;if(e._calculateAvailableContainerHeight(),e._elementsAutoHeight>e.offsetHeight){if(e.$.container.classList.add("smart-overflow"),e._containerOverflows=!0,e._rowHeight){for(var t=parseInt(e._availableHeight/e._rowHeight),n=0;n<e._items.length;n++){var i=e._items[n];n<t?i.classList.remove("smart-hidden"):i.classList.add("smart-hidden")}e._items.length>t?(e.$.totalFiles.innerHTML=e.localize("totalFiles")+e._items.length,e.$.totalFiles.classList.remove("smart-hidden")):e.$.totalFiles.classList.add("smart-hidden")}}else""===e.dropZone&&e._elementsAutoHeight<e.offsetHeight&&(e.$.container.classList.remove("smart-overflow"),e._containerOverflows=!1)}},{key:"_calculateAvailableContainerHeight",value:function(){var e=this,t=window.getComputedStyle(e.$.fileUploadContainer,null),n=parseInt(t.getPropertyValue("margin-top"))+parseInt(t.getPropertyValue("margin-bottom"))+parseInt(t.getPropertyValue("padding-top"))+parseInt(t.getPropertyValue("padding-bottom")),i=e.$.container.querySelector(".smart-file"),r=e.$.fileUploadHeader.offsetHeight,a=e.$.fileUploadFooter.offsetHeight,o=e.style.height,s=0;i&&(e._rowHeight=i.offsetHeight),e.style.height="auto",e._containerOverflows&&e.$.container.classList.remove("smart-overflow"),e._elementsAutoHeight=e.offsetHeight,e.style.height=o,e._containerOverflows&&e.$.container.classList.add("smart-overflow"),e.$.totalFiles.classList.contains("smart-hidden")&&(e.$.totalFiles.classList.remove("smart-hidden"),s=e.$.totalFiles.offsetHeight,e.$.totalFiles.classList.add("smart-hidden")),e._availableHeight=e.offsetHeight-(r+a)-n-s}}],[{key:"properties",get:function(){return{accept:{value:null,type:"string?"},appendTo:{value:null,type:"any"},autoUpload:{value:!1,type:"boolean"},directory:{value:!1,type:"boolean"},dropZone:{value:null,type:"any"},hideFooter:{value:!1,type:"boolean"},itemTemplate:{value:null,type:"any"},messages:{value:{en:{browse:"Browse",uploadFile:"Upload File",cancelFile:"Cancel File",pauseFile:"Pause File",uploadAll:"Upload All",cancelAll:"Cancel All",pauseAll:"Pause All",totalFiles:"Total files: ",connectionError:"{{elementType}}: File Upload requires connection to the server.",wrongItemIndex:"{{elementType}}: There is no file with such an index in the list of uploaded files.",tooLongFileName:"{{elementType}}: File name is too long."}},type:"object",extend:!0},multiple:{value:!1,type:"boolean"},name:{value:"",type:"string"},responseHandler:{value:null,type:"function?",reflectToAttribute:!1},setHeaders:{value:null,type:"function?",reflectToAttribute:!1},showProgress:{value:!1,type:"boolean"},validateFile:{value:null,type:"function?",reflectToAttribute:!1},uploadUrl:{value:"",type:"string",reflectToAttribute:!1},removeUrl:{value:"",type:"string",reflectToAttribute:!1}}}},{key:"listeners",get:function(){return{"browseButton.click":"browse","browseButton.focus":"_focusHandler","browseButton.blur":"_blurHandler","browseInput.change":"_browseInputChangeHandler","selectedFiles.click":"_selectedFilesClickHandler","uploadAllButton.click":"uploadAll","cancelAllButton.click":"cancelAll","pauseAllButton.click":"pauseAll","dropZone.dragenter":"_dropZoneHandler","dropZone.dragleave":"_dropZoneHandler","dropZone.dragover":"_dropZoneHandler","dropZone.drop":"_dropZoneHandler",resize:"_handleComponentsByAvailableHeight"}}},{key:"requires",get:function(){return{"Smart.Button":"smart.button.js","Smart.ProgressBar":"smart.progressbar.js"}}},{key:"styleUrls",get:function(){return["smart.fileupload.css"]}}]),n}())},8588:function(){Smart("smart-input",function(e){_inherits(n,Smart.BaseElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="inputContainer" role="presentation"><input class="smart-input" id=\'input\' readonly=\'[[readonly]]\' placeholder=\'[[placeholder]]\' type=\'[[type]]\' name=\'[[name]]\' value=\'{{value::keyup}}\' disabled=\'[[disabled]]\' aria-label="[[placeholder]]" /><span class="smart-hidden smart-hint" id="span">[[hint]]</span><div id="dropDownButton" tabindex=-1 class="smart-drop-down-button" role="button" aria-label="Toggle popup"><div id="arrow" class="arrow" aria-hidden="true"></div></div></div>'}},{key:"selectedIndexes",get:function(){return this.isCompleted?[this.selectedIndex]:[]},set:function(e){this.isCompleted&&(this.selectedIndex=e&&void 0!==e[0]?e[0]:-1)}},{key:"focus",value:function(){this.$.input.focus()}},{key:"select",value:function(){var e=this;e.readonly?e.$.input.focus():e.$.input.select()}},{key:"_documentUpHandler",value:function(e){var t=this,n=t.shadowRoot||t.isInShadowDOM?e.originalEvent.composedPath()[0]:e.originalEvent.target;n!==t&&n!==t.$.dropDownButton&&n!==t.$.input&&n!==t.$.arrow?t.$.scrollView.contains(n.shadowParent||n)?t._isPointerDown&&(t._isPointerDown=!1,t.opened&&(t._preventLookup=!0),t.$.input.focus()):(t.opened&&(t._preventLookup=!0),"manual"===t.dropDownOpenMode||t._isPointerDown||t.close(),t._isPointerDown=!1):t._isPointerDown=!1}},{key:"_focusHandler",value:function(){var e=this;e.setAttribute("focus",""),e.readonly||0!==e.minLength||0!==e.$.input.value.length||e._preventLookup?(e.$.fireEvent("focus"),delete e._preventLookup):e._lookup()}},{key:"_blurHandler",value:function(){var e=this;e.opened||e.removeAttribute("focus"),e.opened||e.$.fireEvent("blur"),e._refreshSelectedIndex(),delete e._preventLookup}},{key:"_pasteHandler",value:function(e){var t=this,n=t.$.input,i=n.value,r=n.selectionStart,a=n.selectionEnd;if(e.clipboardData||window.clipboardData){var o=(e.clipboardData||window.clipboardData).getData("text"),s=i.slice(0,r)+o,l=s.length;s+=i.slice(a),e.preventDefault(),t.set("value",s),t.setAttribute("data-value",s),n.setSelectionRange(l,l),t._refreshSelectedIndex()}}},{key:"_refreshSelectedIndex",value:function(){var e=this,t=e.dataSource;if(t){var n=-1;if(e.dataSource instanceof Promise)return;if("function"==typeof e.dataSource)return;"string"==typeof t&&(t=e.$.deserialize(t,"array"));for(var i=0;i<t.length;i++){var r=t[i];if("number"!=typeof r&&"boolean"!=typeof r||(r=""+r),"string"==typeof r){if(r===e.value){n=i;break}}else if(r&&r.label===e.value){n=i;break}}e.set("selectedIndex",n,!1),-1===e.selectedIndex&&(e.$.input.dataValue=null)}}},{key:"selectItem",value:function(e){var t=this,n=t.dataSource;if("string"==typeof n&&(n=t.$.deserialize(n,"array")),n)for(var i=0;i<n.length;i++){var r=n[i];if(t.set("selectedIndex",-1),t.set("value",""),t.$.input.dataValue=null,"string"==typeof r){if(r===e)return t.set("selectedIndex",i,!1),t.set("value",t.$.input.dataValue=e),void t.setAttribute("data-value",t.$.input.dataValue)}else if(r.value===e)return t.set("selectedIndex",i,!1),t.set("value",r.label),t.$.input.dataValue=e,void t.setAttribute("data-value",t.$.input.dataValue)}else t.set("value",t.$.input.dataValue=e),t.setAttribute("data-value",t.$.input.dataValue),t.set("selectedIndex",-1,!1)}},{key:"getItem",value:function(e){var t=this;if(t.dataSource)for(var n=0;n<t.dataSource.length;n++){var i=t.dataSource[n];if(i.value===e)return i}return null}},{key:"getSelectedItem",value:function(){var e=this;return{label:e.value,value:e.$.input.dataValue||e.value}}},{key:"_refreshMenu",value:function(){var e=this;e.$.menu.classList.remove("scroll"),e.$.scrollView.computedVerticalScrollBarVisibility&&e.$.menu.classList.add("scroll")}},{key:"_performSelect",value:function(){var e=this,t=e.$.menu.querySelector(".active"),n=t.getAttribute("data-label"),i=t.dataValue,r=e.value,a=e.$.input.dataValue;e.set("value",n),e.$.input.dataValue=i,e.setAttribute("data-value",i),e.set("selectedIndex",t.index),e.set("selectedValues",[e.$.input.dataValue]),e.close(),n===r&&i===a||e.$.fireEvent("change",{value:i,label:n,oldValue:a,oldLabel:r})}},{key:"_open",value:function(){var e=this;if(!e.opened){var t=window.scrollX,n=window.scrollY,i=e.getBoundingClientRect(),r=0,a=0;if(e.timer&&clearTimeout(e.timer),e.getRootNode()&&e.getRootNode().host?e.getRootNode().host.shadowRoot.appendChild(e.$.scrollView):document.body.appendChild(e.$.scrollView),e.setAttribute("aria-owns",e.$.scrollView.id),e.readonly||e.$.input.setAttribute("aria-controls",e.$.scrollView.id),e.$.scrollView.enableShadowDOM&&!e._importedStyle&&(e.$.scrollView.importStyle(e._getStyleUrl("smart.textbox.css")),e._importedStyle=!0),"static"!==getComputedStyle(document.body).position){var o=document.body.getBoundingClientRect();r=o.left,a=o.top}e.$.scrollView.style.setProperty("--smart-input-drop-down-menu-width",""),e.$.scrollView.style.left=-3+i.left+t-r+"px",e.$.scrollView.classList.remove("open"),e.$.scrollView.style.top="bottom"===e.dropDownOpenPosition?i.bottom+n-a+1+"px":i.top-e.$.scrollView.offsetHeight+n-a+1+"px",e.opening=!0,e._positionTimer&&clearInterval(e._positionTimer),e._positionTimer=setInterval(function(){var t=e.getBoundingClientRect();if(e.opening)e.opening=!1,i=t;else if(Math.abs(parseInt(t.top)-parseInt(i.top))>=10||Math.abs(parseInt(t.left)-parseInt(i.left))>=10){var n=window.scrollX,o=window.scrollY;return e.$.scrollView.style.left=-3+t.left+n-r+"px",void(e.$.scrollView.style.top="bottom"===e.dropDownOpenPosition?t.bottom+o-a+1+"px":t
1.top-e.$.scrollView.offsetHeight+o-a+1+"px")}},50),e.$.scrollView.onpointerdown=function(){e._isPointerDown=!0},requestAnimationFrame(function(){var t=e.dropDownWidth;if(e.$.scrollView.refresh&&e.$.scrollView.refresh(),e._refreshMenu(),e.$.scrollView.setAttribute("open",""),e.setAttribute("open",""),e.$.dropDownButton.setAttribute("open",""),e.$.input.setAttribute("open",""),t&&"string"==typeof t&&-1!==t.indexOf("%")){var n=parseFloat(t)/100;e.$.scrollView.style.setProperty("--smart-input-drop-down-menu-width",e.offsetWidth*n+"px")}else if("auto"!==t&&t)e.$.scrollView.style.setProperty("--smart-input-drop-down-menu-width",parseFloat(t)+"px");else if("auto"===t){if(e.$.scrollView.style.setProperty("--smart-input-drop-down-menu-width",""),e.$.scrollView.$.scrollViewerContainer.classList.contains("vscroll")){var i=e.$.scrollView.offsetWidth+parseFloat(getComputedStyle(e.$.scrollView).getPropertyValue("--smart-scroll-bar-size"));e.$.scrollView.style.setProperty("--smart-input-drop-down-menu-width",i+"px")}}else{e.$.menu.style.width="auto";for(var r=e.$.menu.offsetWidth,a=e.$.menu.querySelectorAll("li"),o=0;o<a.length;o++)e._maxDropDownWidth=Math.max((a[o].firstElementChild||a[o]).offsetWidth,e._maxDropDownWidth);e.$.scrollView.computedVerticalScrollBarVisibility&&(r+=e.$.scrollView.$&&e.$.scrollView.$.verticalScrollBar?e.$.scrollView.$.verticalScrollBar.offsetWidth:30),e.$.scrollView.style.setProperty("--smart-input-drop-down-menu-width",Math.max(r,e.offsetWidth-8)+"px"),e.$.menu.style.width=""}(e.shadowRoot||e.isInShadowDOM)&&e.$.scrollView._scrollView&&Smart.ScrollBar&&requestAnimationFrame(function(){e.$.scrollView._scrollView&&e.$.scrollView._scrollView.vScrollBar.refresh()})}),e.$.scrollView.refresh&&e.$.scrollView.refresh(),e._refreshMenu(),e.set("opened",!0),e.setAttribute("aria-expanded",!0),e.$.fireEvent("open")}}},{key:"close",value:function(){var e=this;return!!e.opened&&(e.timer&&clearTimeout(e.timer),e.timer=setTimeout(function(){e.$.scrollView.parentNode&&!e.opened&&(e.$.scrollView.remove(),e.removeAttribute("aria-owns"),e.readonly||e.$.input.removeAttribute("aria-controls"))},1e3),e._positionTimer&&clearInterval(e._positionTimer),e.$.scrollView.removeAttribute("open"),e.$.dropDownButton.removeAttribute("open"),e.$.input.removeAttribute("open"),e.removeAttribute("open"),e.set("opened",!1),e.setAttribute("aria-expanded",!1),e.$.input.focus(),e.$.fireEvent("close"),!0)}},{key:"refresh",value:function(){var e=this;e.$.scrollView.refresh&&e.$.scrollView.refresh(),e.close()}},{key:"_lookup",value:function(e){var t=this;if(t.query=t.$.input.value,t.$.input.readonly&&(t._incrementalSearchQuery||(t._incrementalSearchQuery=""),t._incrementalSearchQuery+=e.key,t._incrementalSearchTimer&&clearTimeout(t._incrementalSearchTimer),t.query=t._incrementalSearchQuery,t._incrementalSearchTimer=setTimeout(function(){t._incrementalSearchQuery=""},700)),t.query.length<t.minLength)t.close();else{var n=function(e){clearTimeout(t._autoCompleteTimeout),t._autoCompleteTimeout=setTimeout(function(){var n=t.context;t.context=t,t._process(e),t.context=n},t.autoCompleteDelay)};"function"==typeof t.dataSource?t.dataSource(t.query,n):n(t.dataSource)}}},{key:"_downHandler",value:function(e){this.readonly&&this._dropDownButtonDownHandler(e)}},{key:"_dropDownButtonDownHandler",value:function(e){var t=this;return"manual"!==t.dropDownOpenMode&&t._toggle(),e.preventDefault(),e.stopPropagation(),e.originalEvent.preventDefault(),e.originalEvent.stopPropagation(),t._isPointerDown=!0,!1}},{key:"_toggle",value:function(){var e=this;e.opened?e.close():e.open()}},{key:"open",value:function(){var e=this;function t(t){e._process(t);var n=e.$.menu.querySelector(".active");if(n)for(var i=e.$.input.dataValue,r=0;r<e.$.menu.children.length;r++){var a=e.$.menu.children[r],o=a.getAttribute("data-label"),s=a.dataValue;if(void 0!==i&&s===i||void 0===i&&o===e.$.input.value){n.classList.remove("active"),a.classList.add("active"),e._setActiveDescendant(a),e.$.input.dataValue=s,e.setAttribute("data-value",s);break}}e.ensureVisible(),e.$.input.focus(),setTimeout(function(){e.$.input.focus()},25)}e.dropDownDataSource&&(Array.isArray(e.dropDownDataSource)&&e.dropDownDataSource.length>0||"function"==typeof e.dropDownDataSource)?(e.query="","function"==typeof e.dropDownDataSource?e.dropDownDataSource(e.query,t):t(e.dropDownDataSource)):(e.query="","function"==typeof e.dataSource?e.dataSource(e.query,t):t(e.dataSource))}},{key:"_process",value:function(e){var t=this;"string"==typeof e&&(e=t.$.deserialize(e,"array")),e=e.filter(function(e){return""===e||(t.matcher?t.matcher(e):t._matcher(e))}),e=t._sorter(e),t.sorted&&(e.sort(function(e,t){return void 0!==e.label?e.label.localeCompare(t.label):e.localeCompare(t)}),"desc"===t.sortDirection&&e.reverse()),!e.length&&t.opened&&t.close(),0===e.length&&!0!==t.allowItemsAdd||(t._render(t.query.length>0?e.slice(0,t.items):e),t._open(),t.$.scrollView.refresh&&t.$.scrollView.refresh(),t._refreshMenu(),t.ensureVisible())}},{key:"_matcher",value:function(e){var t=this.query;switch(null===e&&(e="null"),e=""+(e=e.label||e),this.queryMode){case"startsWith":return e.startsWith(t);case"startsWithIgnoreCase":return e.toLowerCase().startsWith(t.toLowerCase());case"doesNotContain":return e.indexOf(t)<0;case"doesNotContainIgnoreCase":return e.toLowerCase().indexOf(t.toLowerCase())<0;case"contains":return e.indexOf(t)>-1;default:case"containsIgnoreCase":return~e.toLowerCase().indexOf(t.toLowerCase());case"equals":return 0===e.localeCompare(t);case"equalsIgnoreCase":return 0===e.toLowerCase().localeCompare(t.toLowerCase());case"endsWith":return e.endsWith(t);case"endsWithIgnoreCase":return e.toLowerCase().endsWith(t.toLowerCase())}}},{key:"_sorter",value:function(e){var t,n=[],i=[],r=[];if(e&&""===e[0])return e;for(;t=e.shift();){var a=t.label||t;(a=""+a).toLowerCase().indexOf(this.query.toLowerCase())?~a.indexOf(this.query)?i.push(t):r.push(t):n.push(t)}return n.concat(i,r)}},{key:"_highlighter",value:function(e){var t=this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");return e.replace(new RegExp("("+t+")","ig"),function(e,t){return"<strong>"+t+"</strong>"})}},{key:"_render",value:function(e){var t=this,n=0,i=e.map(function(e){var i=e,r=e;"object"==typeof e&&(i=e.label,r=void 0!==e.value?e.value:i),i=""+i;var a=document.createElement("li"),o=document.createElement("a");if(o.href="#",a.id=t.id+"Item"+Math.floor(65536*(1+Math.random())).toString(16).substring(1),a.setAttribute("data-label",i),a.index=n++,a.dataValue=r,a.setAttribute("value","string"==typeof r?r:JSON.stringify(r)),a.setAttribute("role","option"),a.setAttribute("aria-label",i),o.innerHTML=t.highlighter?t.highlighter(i):t._highlighter(i),o.setAttribute("aria-hidden",!0),e.icon&&(o.classList.add("icon"),o.classList.add(e.icon)),e.prefix){var s=document.createElement("span");s.innerHTML=e.prefix,o.classList.add("has-prefix"),o.innerHTML=s.innerHTML+o.innerHTML}if(e.suffix){var l=document.createElement("span");l.innerHTML=e.suffix,o.classList.add("has-suffix"),o.innerHTML=o.innerHTML+l.innerHTML}return a.appendChild(o),a});function r(){var e=t.$.menu.getElementsByClassName("active");e[0]&&e[0].classList.remove("active"),this.classList.add("active"),t._setActiveDescendant(this)}i.length>0&&(i[0].classList.add("active"),t._setActiveDescendant(i[0])),t.$.menu.innerHTML="";for(var a=0;a<i.length;a++){var o=i[a];t.$.menu.appendChild(o),o.onmouseenter=r,o.onmouseleave=function(){this.classList.remove("active"),t._setActiveDescendant(null)},o.onclick=r}}},{key:"ensureVisible",value:function(){var e=this,t=e.$.menu.querySelector(".active");t&&(t.offsetTop+t.offsetHeight>=e.$.scrollView.scrollTop+e.$.scrollView.offsetHeight&&(e.$.scrollView.scrollTop=t.offsetTop+t.offsetHeight),(t.offsetTop<=e.$.scrollView.scrollTop||t.offsetTop>=e.$.scrollView.scrollTop+e.$.scrollView.offsetHeight)&&(e.$.scrollView.scrollTop=t.offsetTop),0===_toConsumableArray(e.$.menu.children).indexOf(t)?e.$.scrollView.scrollTop=0:_toConsumableArray(e.$.menu.children).indexOf(t)===e.$.menu.children.length-1&&(e.$.scrollView.scrollTop=e.$.scrollView.scrollHeight))}},{key:"_next",value:function(){var e=this,t=e.$.menu.querySelector(".active");if(!t){var n=e.$.menu.firstElementChild;return n.classList.add("active"),void e._setActiveDescendant(n)}t.classList.remove("active");var i=t.nextElementSibling;i||(i=e.$.menu.firstElementChild),i.classList.add("active"),e._setActiveDescendant(i),e.ensureVisible()}},{key:"_prev",value:function(){var e=this,t=e.$.menu.querySelector(".active");if(!t){var n=e.$.menu.firstElementChild;return n.classList.add("active"),void e._setActiveDescendant(n)}t.classList.remove("active");var i=t.previousElementSibling;i||(i=e.$.menu.lastElementChild),i.classList.add("active"),e._setActiveDescendant(i),e.ensureVisible()}},{key:"_move",value:function(e){var t=this;if(t.opened){switch(e.keyCode){case 9:case 13:case 27:e.preventDefault();break;case 38:e.preventDefault(),t._prev();break;case 40:e.preventDefault(),t._next()}e.stopPropagation()}}},{key:"_keyDownHandler",value:function(e){var t=this;t._suppressKeyPressRepeat=![40,38,9,13,27,16,17,18].includes(e.ke
1yCode),t._oldValue=t.$.input.value,e.shiftKey||e.altKey||e.ctrlKey||t._move(e)}},{key:"_keyPressHandler",value:function(e){this._suppressKeyPressRepeat||e.shiftKey||e.altKey||e.ctrlKey||this._move(e)}},{key:"_keyUpHandler",value:function(e){var t=this;if(!e.shiftKey&&"F2"!==e.key)switch(e.keyCode){case 40:case 38:case 16:case 17:case 18:40===e.keyCode&&e.altKey&&t.open(),38===e.keyCode&&e.altKey&&t.close();break;case 9:case 13:if(!t.opened)return;t._performSelect(),e.stopPropagation(),e.preventDefault();break;case 27:if(!t.opened)return;t.close(),e.stopPropagation(),e.preventDefault();break;default:t._lookup(e),!t.opened||e.ctrlKey||e.shiftKey||(e.stopPropagation(),e.preventDefault()),t.$.fireEvent("changing",{value:t.$.input.value,oldValue:t._oldValue}),t.$.input.dataValue=t.$.input.value,t.setAttribute("data-value",t.$.input.dataValue)}}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;if("selectedIndex"===e)r._setSelection();else if("dataSource"===e)r._setSelection(!1);else if("dropDownClassList"===e){for(var a=r.$.scrollView,o=0,s=t.length;o<s;o+=1)a.classList.remove(t[o]);for(var l=0,c=i.length;l<c;l+=1)a.classList.add(i[l])}else if("dropDownHeight"===e)r.$.scrollView.style.setProperty("--smart-input-drop-down-menu-height","auto"!==r.dropDownHeight?r.dropDownHeight+"px":"auto");else if("opened"===e)r.opened=t,i?r.open():r.close();else if("placeholder"===e){if(r.readonly){var u=r.getAttribute("aria-label");if(u&&u!==t)return;i?r.setAttribute("aria-label",i):r.removeAttribute("aria-label")}}else if("selectedValues"===e)if(null===i)r.$.input.value="",r.$.input.dataValue=i,r.setAttribute("data-value",i),r._refreshSelectedIndex();else{var d=i.join(","),h=r.value;r.value=d,r.propertyChangedHandler("value",h,r.value)}else"value"===e?(r.displayMember!==r.valueMember&&"string"!=typeof i?(r.set("value",i[r.displayMember]),r.$.input.dataValue=i[r.valueMember],r.setAttribute("data-value",r.$.input.dataValue)):(r.$.input.value=r.$.input.dataValue=i,r.setAttribute("data-value",i)),r._refreshSelectedIndex()):"readonly"===e?(r._setAriaRelations(),r._setInputPurpose()):"theme"===e||"rightToLeft"===e?r.$.scrollView[e]=i:"inputPurpose"===e?r._setInputPurpose():"inverted"===e?i?r.$.scrollView.setAttribute("inverted",""):r.$.scrollView.removeAttribute("inverted"):"disabled"!==e&&"unfocusable"!==e||r._setFocusable()}},{key:"detached",value:function(){_get(_getPrototypeOf(n.prototype),"detached",this).call(this),this.close(),this.removeAttribute("focus")}},{key:"render",value:function(){var e=this,t=e.dropDownClassList;if(e.selectedValues&&e.selectedValues.length){var i=e.selectedValues.join(",");e.value=i}e._createElement&&e._createElement();for(var r=e.$.scrollView,a=0,o=t.length;a<o;a+=1)r.classList.add(t[a]);e.opened&&(e.opened=!1,e.open());var s=e.$.menu;s&&(s.setAttribute("role","presentation"),r.appendChild(s)),r.style.setProperty("--smart-input-drop-down-menu-height","auto"!==e.dropDownHeight?e.dropDown
1Height+"px":"auto"),r.classList.add("smart-input-drop-down-menu");for(var l=0;l<e.classList.length;l++){var c=e.classList[l];"smart-element"!==c&&"smart-input"!==c&&r.classList.add(c+"-drop-down-menu")}r.id=e.id+"_"+e.tagName.toLowerCase()+"_menu_"+Math.floor(65536*(1+Math.random())).toString(16).substring(1),r.ownerElement=e,e._setAriaRelations(),e._setInputPurpose(),e._setSelection(),e.isInitialized=!0,_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"_setSelection",value:function(e){var t=this,n=t.dataSource;if("string"==typeof n&&(n=t.$.deserialize(n,"array")),t.selectedIndex>=0&&n&&n.length>0){var i=n[t.selectedIndex];if("number"!=typeof i&&"boolean"!=typeof i||(i=""+i),"string"==typeof i){var r=t.$.input.dataValue,a=t.value;t.set("value",i),t.$.input.dataValue=i,t.$.input.setAttribute("data-value",i),t.selectedValues=[t.$.input.dataValue],t.isInitialized&&t.$.fireEvent("change",{value:t.value,label:t.label,oldValue:r,oldLabel:a})}else{var o=t.$.input.dataValue,s=t.value;i&&(void 0!==i.value?(t.set("value",void 0!==i.value?i.value+"":""),t.$.input.dataValue=i.value,t.$.input.setAttribute("data-value",i.value),t.selectedValues=[t.$.input.dataValue]):i.label&&(t.selectedValues=[i.value]),i.label&&t.set("value",i.label)),t.isInitialized&&!1!==e&&t.$.fireEvent("change",{value:t.$.input.dataValue,label:i.value,oldValue:o,oldLabel:s})}}}},{key:"_createElement",value:function(){var e=this,t=document.createElement("ul"),n=document.createElement("smart-scroll-viewer");n.rightToLeft=e.rightToLeft,n.theme=e.theme,n.horizontalScrollBarVisibility="hidden",e.inverted?n.setAttribute("inverted",""):n.removeAttribute("inverted"),e.$.scrollView=n,e.$.menu=t,e._setFocusable(),e.$.menu.onclick=function(t){var n=t.target.closest("li");t.stopPropagation(),t.preventDefault(),e._performSelect(),n&&e.$.fireEvent("itemClick",{item:n,label:n.getAttribute("aria-label"),value:n.dataValue}),e.$.input.focus()}}},{key:"_setAriaRelations",value:function(){var e=this,t=e.getAttribute("aria-label");e.readonly?(e.setAttribute("role","button"),!t&&e.placeholder&&e.setAttribute("aria-label",e.placeholder),e.removeAttribute("aria-readonly"),e.$.input.setAttribute("aria-hidden",!0),e.$.input.removeAttribute("aria-activedescendant"),e.$.input.removeAttribute("aria-controls"),e.$.dropDownButton.setAttribute("aria-hidden",!0)):(e.setAttribute("role","combobox"),t&&t===e.placeholder&&e.removeAttribute("aria-label"),e.$.input.setAttribute("role","searchbox"),e.$.input.removeAttribute("aria-hidden",!0),e.$.dropDownButton.removeAttribute("aria-hidden")),e.setAttribute("aria-expanded",e.opened),e.setAttribute("aria-haspopup","listbox"),e.setAttribute("aria-owns",e.$.scrollView.id),e.$.scrollView.setAttribute("role","listbox")}},{key:"_setActiveDescendant",value:function(e){var t=this;t.readonly||(e?t.setAttribute("aria-activedescendant",e.id):t.removeAttribute("aria-activedescendant"))}},{key:"_setInputPurpose",value:function(){var e=this;e.readonly?e.$.input.removeAttribute("autocomplete"):e.$.input.setAttribute("autocomplete",e.inputPurpose)}},{key:"_setFocusable",value:function(){var e=this;e.disabled||e.unfocusable?e.$.input.setAttribute("tabindex",-1):e.$.input.removeAttribute("tabindex")}}],[{key:"properties",get:function(){return{autoCompleteDelay:{value:100,type:"number"},dataSource:{type:"any",value:[],reflectToAttribute:!1},dropDownClassList:{value:[],type:"array",reflectToAttribute:!1},dropDownDataSource:{type:"any",value:[]},dropDownHeight:{type:"any",value:200},dropDownOpenMode:{allowedValues:["default","manual"],value:"default",type:"string"},dropDownWidth:{type:"any",value:null},dropDownButtonPosition:{allowedValues:["none","left","right"],value:"none",type:"string"},dropDownOpenPosition:{allowedValues:["bottom","top"],value:"bottom",type:"string"},hint:{type:"string",value:""},inputPurpose:{type:"string",value:"off"},items:{type:"number",value:8},minLength:{type:"number",value:1},name:{value:"",type:"string"},opened:{value:!1,type:"boolean"},query:{type:"string",value:""},queryMode:{allowedValues:["contains","containsIgnoreCase","doesNotContain","doesNotContainIgnoreCase","equals","equalsIgnoreCase","startsWith","startsWithIgnoreCase","endsWith","endsWithIgnoreCase"],type:"string",value:"containsIgnoreCase"},placeholder:{value:"",type:"string"},readonly:{type:"boolean",value:!1},sorted:{value:!1,type:"boolean"},sortDirection:{value:"asc",type:"string"},selectedIndex:{type:"number",value:-1},selectedValues:{value:[],type:"array"},type:{type:"string"},value:{type:"string",value:""}}}},{key:"styleUrls",get:function(){return["smart.textbox.css"]}},{key:"listeners",get:function(){return{"input.focus":"_focusHandler","input.blur":"_blurHandler","input.ke
1ydown":"_keyDownHandler","input.keyup":"_keyUpHandler","input.keypress":"_keyPressHandler","input.paste":"_pasteHandler","dropDownButton.down":"_dropDownButtonDownHandler","inputContainer.down":"_downHandler","document.up":"_documentUpHandler"}}}]),n}())},5707:function(){Smart("smart-list-item",function(e){_inherits(n,Smart.ContentElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"hasStyleObserver",get:function(){return!1}},{key:"enableShadowDOM",get:function(){return!1}},{key:"_focused",get:function(){var e=this;return void 0===e.__focused&&(e.__focused=!1),e.__focused},set:function(e){var t=this;t.__focused=e,e?(t.setAttribute("focus",""),t.ownerListBox&&t.ownerListBox.ownerElement&&Smart.ComboBox&&t.ownerListBox.ownerElement instanceof Smart.ComboBox&&t.ownerListBox.ownerElement.$.input.setAttribute("aria-activedescendant",t.id)):t.removeAttribute("focus")}},{key:"template",value:function(){return'<div id="container">\n <span id=\'itemInput\' class=\'smart-input smart-hidden\'></span>\n <span class="smart-overlay" id="overlay"></span>\n <div id="itemContainer" class="smart-content smart-list-item-container"><span class="smart-content-label" inner-h-t-m-l=\'[[innerHTML]]\' role="presentation"><content></content></span><span inner-h-t-m-l=\'[[details]]\' id="details" class="smart-content-details"></span></div>\n </div>'}},{key:"appendChild",value:function(e){var t=this;if(!t.isCompleted||e.classList&&e.classList.contains("smart-ripple")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}window.smartBlazor?t.$.itemContainer.appendChild(e):(t.$.itemContainer.innerHTML="",e instanceof HTMLElement&&t.$.itemContainer.appendChild(e))}},{key:"insertBefore",value:function(e,t){var n=this;if(!n.isCompleted){var i=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.insertBefore.apply(n,i.concat(Array.prototype.slice.call(arguments)))}t.parentNode.insertBefore(e,t)}},{key:"removeChild",value:function(e){var t=this;if(!t.isCompleted||e.classList.contains("smart-ripple")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.removeChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}e instanceof HTMLElement&&t.$.itemContainer.removeChild(e)}},{key:"attached",value:function(){_get(_getPrototypeOf(n.prototype),"attached",this).call(this),this.ownerListBox=this.getListBox()}},{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this);var e=this;e.setAttribute("role","option"),""!==e.label?e.innerHTML=e.label:""!==e.innerHTML&&(e.label=e.innerHTML),e._setDisplayMode(e.displayMode),e._setItemColor(),e.$.container.noRipple=!0;var t=e.closest("smart-list-box");if(t&&t.isRendered){if(cancelAnimationFrame(Smart.ListBox.processTimer),t._inLazyInit||t._isUpdating)return;Smart.ListBox.processTimer=requestAnimationFrame(function(){t._lazyInitItems()})}}},{key:"propertyChangedHandler",value:function(e,t,i){var r=this;if(_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i),"hidden"===e)i?r.$.addClass("smart-hidden"):r.$.removeClass("smart-hidden");else if("color"===e)r._setItemColor();else if("displayMode"===e)r._setDisplayMode(i);else if("label"===e||"value"===e){var a=r.context;r.context=document,"label"===e&&(r.innerHTML=i);var o=r.getListBox();o._applyTemplate(r),o.onItemUpdated(r),r.context=a}else if("details"===e){var s=r.context;r.context=document,r.$.details.innerHTML=i,r.getListBox().onItemUpdated(r),r.context=s}else if("innerHTML"===e)r.getListBox().onItemUpdated(r);else if("selected"===e)if(i)r.setAttribute("aria-selected",!0);else{var l=r.getListBox();r.readonly||r.disabled||!l||-1===["oneOrManyExtended","zeroOrMany","oneOrMany","checkBox"].indexOf(l.selectionMode)?r.removeAttribute("aria-selected"):r.setAttribute("aria-selected",!1)}}},{key:"getListBox",value:function(){var e=this;if(!Smart.ListBox)return e.getRootNode().host;for(var t=e.parentNode;t instanceof Smart.ListBox==0&&null!==t;)t=t.parentNode;return!t&&Smart.EnableShadowDOM?e.getRootNode().host:t}},{key:"_itemOnMouseEnter",value:function(){var e=this;!e.disabled&&e.ownerListBox&&(Smart.ListBox.DragDrop.Dragging&&e.ownerListBox.allowDrop&&(Smart.ListBox.DragDrop.DropDetails={item:e,position:"bottom"}),e.ownerListBox.$.verticalScrollBar.thumbCapture||e.ownerListBox.$.horizontalScrollBar.thumbCapture||e.setAttribute("hover",""))}},{key:"_itemOnMouseMove",value:function(e){var t=this;if(t.ownerListBox&&Smart.ListBox.DragDrop.Dragging&&t.ownerListBox.allowDrop&&!Smart.Utilities.Core.isMobile){for(var n=[].slice.call(t.ownerListBox.getElementsByClassName("smart-list-item-bottom-line-feedback")),i=0;i<n.length;i++)n[i].$.removeClass("smart-list-item-line-feedback"),n[i].$.removeClass("smart-list-item-bottom-line-feedback");if(Smart.ListBox.DragDrop.DropDetails={item:t,position:"top"},!t.ownerListBox._areCSSVarsSupported){if(t.ownerListBox._indexOf(t)===t.ownerListBox._items.length-1||t.parentNode.lastElementChild===t){var r=t.getBoundingClientRect();e.pageY-window.pageYOffset>r.top+r.height/2-1&&(Smart.ListBox.DragDrop.DropDetails={item:t,position:"bottom"})}return}if(t.$.removeClass("smart-list-item-line-feedback"),t.$.removeClass("smart-list-item-bottom-line-feedback"),t.ownerListBox.sorted&&t.ownerListBox.autoSort)return;var a=t.ownerListBox._items.filter(function(e){return!e.hidden});if(a.indexOf(t)===a.length-1||t.parentNode.lastElementChild===t){var o=t.getBoundingClientRect();e.pageY-window.pageYOffset>o.top+o.height/2-1?(t.$.addClass("smart-list-item-bottom-line-feedback"),Smart.ListBox.DragDrop.DropDetails={item:t,position:"bottom"}):arguments[1]||t.$.addClass("smart-list-item-line-feedback")}else arguments[1]||t.$.addClass("smart-list-item-line-feedback")}}},{key:"_itemOnMouseLeave",value:function(){var e=this;e.ownerListBox&&(Smart.ListBox.DragDrop.Dragging&&(e.$.removeClass("smart-list-item-line-feedback"),e.$.removeClass("smart-list-item-bottom-line-feedback")),e.removeAttribute("hover"))}},{key:"_setDisplayMode",value:function(e){var t=this,n=t.getListBox();n&&(t.displayMode=e="checkBox"===n.selectionMode||"radioButton"===n.selectionMode?n.selectionMode:"plain"),"plain"!==e?t.$itemInput.removeClass("smart-hidden"):t.$itemInput.addClass("smart-hidden")}},{key:"_setItemColor",value:function(){var e=this,t=e.querySelector(".smart-content-label"),n=/(^#[0-9A-F]{3}$)|(^#[0-9A-F]{6}$)|(^#[0-9A-F]{8}$)/i.test(e.color)?e.color:"";t.style.backgroundColor=n,t.style.color=e._getContrastColor(n)}},{key:"_getContrastColor",value:function(e){if(!e)return"";var t,n,i,r=(t=e.slice(1,3),n=e.slice(3,5),i=e.slice(5,7),[parseInt(t,16),parseInt(n,16),parseInt(i,16)]);return parseFloat(((.299*r[0]+.61*r[1]+.114*r[2])/255).toFixed(2))>.65?"#000000":"#FFFFFF"}}],[{key:"properties",get:function(){return{alternationIndex:{value:-1,type:"int"},color:{value:"",type:"string"},displayMode:{allowedValues:["plain","checkBox","radioButton"],value:"plain",type:"string"},grouped:{value:!1,type:"boolean"},selected:{value:!1,type:"boolean"},value:{value:"",type:"string"},label:{value:"",type:"string"},details:{value:"",type:"string"},group:{value:"",type:"string"},hidden:{value:!1,type:"boolean"},readonly:{value:!1,type:"boolean"}}}},{key:"listeners",get:function(){return{mouseenter:"_itemOnMouseEnter",mouseleave:"_itemOnMouseLeave"}}}]),n}()),Smart("smart-list-items-group",function(e){_inherits(n,Smart.ContentElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"enableShadowDOM",get:function(){return!1}},{key:"template",value:function(){return'<div id="container" role="presentation">
1\n <span id="itemsLabel" class="smart-list-items-group-label">[[label]]</span>\n <div id="listItemsGroupContainer" inner-h-t-m-l=\'[[innerHTML]]\' class="smart-list-items-group-container" role="presentation">\n <content></content>\n </div>\n </div>'}},{key:"appendChild",value:function(e){var t=this;if(!t.isCompleted){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}e instanceof HTMLElement&&t.$.listItemsGroupContainer.appendChild(e)}},{key:"removeChild",value:function(e){var t=this;if(!t.isCompleted){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.removeChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}e instanceof HTMLElement&&t.$.listItemsGroupContainer.removeChild(e)}},{key:"getListBox",value:function(){for(var e=this.parentNode;e instanceof Smart.ListBox==0&&null!==e;)e=e.parentNode;return e}},{key:"attached",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"attached",this).call(this),e.ownerListBox||(e.ownerListBox=e.getListBox()),e.setAttribute("role","group"),e.$.itemsLabel.id||(e.$.itemsLabel.id=e.id+"Label"),e.setAttribute("aria-labelledby",e.$.itemsLabel.id)}}],[{key:"properties",get:function(){return{label:{value:"",type:"string"}}}}]),n}()),Smart("smart-list-box",function(e){_inherits(n,Smart.ScrollViewer);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="container" class="smart-container" role="presentation">\n <div class="smart-list-box-filter-input-container smart-hidden" id="filterInputContainer" role="presentation"><input id="filterInput" disabled="[[disabled]]" placeholder=\'[[filterInputPlaceholder]]\' role="searchbox" aria-label="[[filterInputPlaceholder]]"></div>\n <div id="itemsContainer" class="smart-list-items-container" role="presentation">\n <div id="placeholder" class="smart-placeholder" role="presentation" aria-hidden="true">[[placeholder]]</div>\n <div id="itemsInnerContainer" inner-h-t-m-l=\'[[innerHTML]]\' class="smart-list-items-inner-container" role="presentation">\n <content></content>\n </div>\n <input type="text" id="editInput" class= "smart-hidden"/>\n </div>\n <smart-scroll-bar wait theme="[[theme]]" right-to-left="[[rightToLeft]]" id="verticalScrollBar" disabled="[[disabled]]" orientation="vertical"></smart-scroll-bar>\n <smart-scroll-bar wait theme="[[theme]]" right-to-left="[[rightToLeft]]" id="horizontalScrollBar" disabled="[[disabled]]"></smart-scroll-bar>\n <div id="loadingIndicatorContainer" class="smart-loader-container" role="presentation">\n <span id="loadingIndicator" class="smart-loader" role="img" aria-label="[[loadingIndicatorPlaceholder]]"></span>\n <span id="loadingIndicatorPlaceHolder" class="smart-loader-label smart-hidden">[[loadingIndicatorPlaceholder]]</span>\n </div>\n <input id="hiddenInput" type="hidden" name="[[name]]">\n </div>'}},{key:"value",get:function(){var e=this;return e.isRendered&&e._selectedItems.length>0?e._selectedItems.map(function(e){return{label:e.label,value:e.value}}):null},set:function(e){var t=this;if(Array.isArray(e)){var n=t.context;t.context=t,t._isUpdating++,t.selectedValues=[],t.clearSelection();for(var i=0;i<e.length;i++){var r=t.getItem(e[i]);r&&("oneOrManyExtended"===t.selectionMode?t._select(r):t.select(r))}return t.context=n,void t._isUpdating--}var a=t.getItem(e);a&&t.select(a)}},{key:"_selectedItems",get:function(){var e=this,t=[];if(e.isRendered)for(var n=0;n<e._items.length;n++){var i=e._items[n];i.selected&&t.push(i)}return t}},{key:"_mouseLeaveHandler",value:function(){for(var e=[].slice.call(this.getElementsByClassName("smart-list-item-bottom-line-feedback")),t=0;t<e.length;t++)e[t].$.removeClass("smart-list-item-line-feedback"),e[t].$.removeClass("smart-list-item-bottom-line-feedback")}},{key:"_downHandler",value:function(e){var t=this;if(!(t.disabled||t.displayLoadingIndicator||t.readonly)){var n=e.originalEvent.target,i=null;if(!(n instanceof Smart.ListItem)||n.disabled||n.hidden||n instanceof Smart.ListItemsGroup)for(;n.parentElement;){if(n instanceof Smart.ListItem&&!n.disabled&&!n.hidden&&!(n instanceof Smart.ListItemsGroup)){i=n.dataItem;break}n=n.parentElement}else i=n.dataItem;Smart.ListBox.DragDrop.StartTime=new Date,Smart.ListBox.DragDrop.StartPosition={left:e.pageX,top:e.pageY},i&&(e.stopPropagation(),t.hasRippleAnimation&&(i.readonly||i.disabled||Smart.Utilities.Animation.Ripple.animate(n.$.overlay,e.pageX,e.pageY)),Smart.Utilities.Core.isMobile||"press"!==t.selectionChangeAction||(t._focus(i),t.select(i)),!Smart.ListBox.DragDrop.Feedback&&t.allowDrag&&(Smart.ListBox.DragDrop.DraggedFrom=t,Smart.ListBox.DragDrop.Feedback=document.createElement("span"),t.rightToLeft?Smart.ListBox.DragDrop.Feedback.setAttribute("right-to-left",!0):Smart.ListBox.DragDrop.Feedback.removeAttribute("right-to-left"),t.dragFeedbackFormatFunction?Smart.ListBox.DragDrop.Feedback.innerHTML=t.dragFeedbackFormatFunction(i):Smart.ListBox.DragDrop.Feedback.appendChild(i.offsetHeight?i.cloneNode(!0):t._createItem(i)),Smart.ListBox.DragDrop.Item=i,Smart.Utilities.Extend(Smart.ListBox.DragDrop.Feedback).addClass("smart-popup smart-list-item smart-list-item-feedback")))}}},{key:"_dblclickEventHandler",value:function(e){var t=this;if(t.editable){var n=e.target.closest("smart-list-item");n instanceof Smart.ListItem&&!n.disabled&&!n.readonly?(t.$.editInput.dir=t.rightToLeft?"rtl":"ltr",t.$.editInput.style.width=t.$.itemsInnerContainer.offsetWidth+"px",t.$.editInput.owner=n,t.$.editInput.value=n.label,t.$.editInput.style.height=n.offsetHeight+"px",t.$.editInput.style.top=n.offsetTop+t.$.itemsInnerContainer.offsetTop+"px",t.$.editInput.setAttribute("aria-label","Edit item "+n.label),t.$editInput.hasClass("smart-hidden")&&t.$editInput.removeClass("smart-hidden"),t.$.editInput.focus({preventScroll:!0})):t.$editInput.addClass("smart-hidden")}}},{key:"_editInputEventHandler",value:function(e){var t=this;
1if("blur"===e.type||"keydown"===e.type&&"Escape"===e.key)return t.$editInput.hasClass("smart-hidden")||t.$editInput.addClass("smart-hidden"),void t.focus();if("keydown"!==e.type&&!t.$editInput.hasClass("smart-hidden")){var n=e.target;if(e.stopPropagation(),n.owner.label!==n.value&&(n.owner.label=n.value,t.itemTemplate&&t._applyTemplate(n.owner),t.dataSource)){var i=t.dataSource[n.owner.dataIndex];i&&(t.displayMember?i[t.displayMember]=n.value:i.label=n.value)}t.$editInput.addClass("smart-hidden"),t.$.fireEvent("itemLabelChange",{selected:n.owner.selected,disabled:n.owner.disabled,index:t._indexOf(n.owner),label:n.owner.label,value:n.owner.value})}}},{key:"_pointerUpHandler",value:function(e){var t=this,n=e.originalEvent,i=n.target;(t.shadowRoot||t.isInShadowDOM)&&(i=n.originalEvent?n.originalEvent.composedPath()[0]:n.composedPath()[0]);var r=function(e){var n=e.ownerListBox;n.disabled||n!==t||n.displayLoadingIndicator||"none"===n.selectionMode||e.grouped||e.readonly||(n._focus(e),n.select(e),Smart.ListBox.DragDrop.StartPosition=null,t.$.fireEvent("itemClick",{selected:i.selected,disabled:i.disabled,index:t._indexOf(i),label:i.label,value:i.value}))};if(!(n.target instanceof Smart.ListItem)||n.target.disabled||n.target instanceof Smart.ListItemsGroup){for(;i.parentElement;){if(i instanceof Smart.ListItem&&!i.disabled&&!(i instanceof Smart.ListItemsGroup))return void r(i.dataItem);i=i.parentElement}if(this.shadowRoot&&"shadow"===this.shadowDomMode)for(var a=n.composedPath(),o=0;o<a.length;o++){var s=a[o];s instanceof Smart.ListItem&&!s.disabled&&r(s.dataItem)}}else r(i.dataItem)}},{key:"_upHandler",value:function(e){var t=this;if(_get(_getPrototypeOf(n.prototype),"_upHandler",this).call(this),!t.disabled&&!t.readonly&&Smart.ListBox.DragDrop.StartPosition){if(Smart.Utilities.Core.isMobile&&!Smart.ListBox.DragDrop.Dragging){var i=Math.abs(e.pageX-Smart.ListBox.DragDrop.StartPosition.left),r=Math.abs(e.pageY-Smart.ListBox.DragDrop.StartPosition.top),a=i>=0&&i<=3&&r>=0&&r<=3;if(Smart.Utilities.Core.isMobile&&new Date-Smart.ListBox.DragDrop.StartTime>=300&&(a=!1,Smart.ListBox.DragDrop.StartTime=null),a){var o=e.originalEvent.target.closest("smart-list-box");o?o._pointerUpHandler(e):t._pointerUpHandler(e),Smart.ListBox.DragDrop.StartPosition=null}else{var s=e.originalEvent.target;if(!(e.target instanceof Smart.ListItem)||s.readonly||e.target.disabled||e.target instanceof Smart.ListItemsGroup)for(;s.parentElement;){if(s instanceof Smart.ListItem&&!s.readonly&&!s.disabled&&!(s instanceof Smart.ListItemsGroup)){e.stopPropagation();break}s=s.parentElement}else e.stopPropagation()}}else if(!Smart.Utilities.Core.isMobile&&!Smart.ListBox.DragDrop.Dragging&&"release"===t.selectionChangeAction){var l=(t.shadowRoot||t.isInShadowDOM?e.originalEvent.composedPath()[0]:e.originalEvent.target).closest("smart-list-box");l?l._pointerUpHandler(e):t._pointerUpHandler(e)}if(Smart.ListBox.DragDrop.Feedback){var c;if(Smart.ListBox.DragDrop.Feedback.parentNode&&Smart.ListBox.DragDrop.Feedback.parentNode.removeChild(Smart.ListBox.DragDrop.Feedback),Smart.ListBox.DragDrop.Feedback=null,Smart.Utilities.Core.isMobile&&Smart.ListBox.DragDrop.Dragging)for(var u=0;u<Smart.ListBox.DragDrop.ListBoxes.length;u++){var d=Smart.ListBox.DragDrop.ListBoxes[u],h=d.getBoundingClientRect();if(d.allowDrop&&!d.closest(".smart-visibility-hidden")&&h.left<=e.clientX&&e.clientX<=h.left+h.width&&h.top<=e.clientY&&e.clientY<=h.top+h.height){c=d;for(var f=d._items.filter(function(e){return!e.hidden}),p=0;p<f.length;p++){var m=f[p],g=m.getBoundingClientRect();if((f.indexOf(m)===f.length-1||m.parentNode.lastElementChild===m)&&e.clientY>=h.top+m.offsetTop-d.scrollTop+g.height/2&&e.clientY<=h.top-d.scrollTop+m.offsetTop+g.height){Smart.ListBox.DragDrop.DropDetails={item:m,position:"bottom"};break}if(e.clientY>=h.top+m.offsetTop-d.scrollTop&&e.clientY<=h.top+m.offsetTop+g.height-d.scrollTop){Smart.ListBox.DragDrop.DropDetails={item:m,position:"top"};break}}}}if(Smart.ListBox.DragDrop.Dragging){if(Smart.ListBox.DragDrop.DropDetails){var v=Smart.ListBox.DragDrop.DropDetails.item,y=Smart.ListBox.DragDrop.Item,b=y.ownerListBox,_=e.originalEvent.target;if(t.isInShadowDOM&&(_=e.originalEvent?e.originalEvent.composedPath()[0]:e.composedPath()[0]),c=!c&&_.closest?_.closest("smart-list-box"):c,document.body.classList.remove("smart-dragging"),v.$.removeClass("smart-list-item-line-feedback"),v.$.removeClass("smart-list-item-bottom-line-feedback"),c&&v.ownerListBox!==c&&c.items.length>0&&(v=c.items[c.items.length-1]),Smart.ListBox.DragDrop.Item===v||c!==v.ownerListBox&&!Smart.Utilities.Core.isMobile)c&&0===c._items.length&&"none"!==c.dropAction&&("move"===c.dropAction?Smart.ListBox.DragDrop.Item.ownerListBox.removeChild(Smart.ListBox.DragDrop.Item):"copy"===c.dropAction&&(y=y.cloneNode(!0)),c.appendChild(y));else if("none"!==y.ownerListBox.dropAction){v.ownerListBox!==y.ownerListBox&&"move"===y.ownerListBox.dropAction&&Smart.ListBox.DragDrop.Item.ownerListBox.removeChild(Smart.ListBox.DragDrop.Item),"copy"===y.ownerListBox.dropAction&&(y=y.cloneNode(!0)),Smart.ListBox.DragDrop.Item.group=v.group;var w=v.ownerListBox;"checkBox"!==w.selectionMode&&"radioButton"!==w.selectionMode&&w.clearSelection(),"top"===Smart.ListBox.DragDrop.DropDetails.position?w.insertBefore(y,v):v.parentNode.lastElementChild===v?w.appendChild(y):w.appendChild(y,v),w.ensureVisible(y),"checkBox"===w.selectionMode||"radioButton"===w.selectionMode?(w._focus(y),w._refreshSelection()):(w.clearSelection(),w.select(y))}y.selected&&c!==b&&b._refreshSelection();var k=Smart.ListBox.DragDrop.Item,C=k.ownerListBox;k.displayMode="checkBox"===C.selectionMode||"radioButton"===C.selectionMode?C.selectionMode:"plain",C.$.fireEvent("dragEnd",{item:k,target:v,data:Smart.ListBox.DragDrop,previousContainer:b,container:c,originalEvent:e}),C._focus(k)}else{var x=Smart.ListBox.DragDrop.Item,S=x.ownerListBox;x.displayMode="checkBox"===S.selectionMode||"radioButton"===S.selectionMode?S.selectionMode:"plain",document.body.classList.remove("smart-dragging"),S.$.fireEvent("dragEnd",{item:x,target:null,data:Smart.ListBox.DragDrop,previousContainer:S,container:S,originalEvent:e}),S._focus(x)}e.preventDefault()}delete Smart.ListBox.DragDrop.DraggedFrom,Smart.ListBox.DragDrop.Dragging=!1,Smart.ListBox.DragDrop.Item=null,Smart.ListBox.DragDrop.DropDetails=null}for(var M=0;M<Smart.ListBox.DragDrop.ListBoxes.length;M++){var D=Smart.ListBox.DragDrop.ListBoxes[M];D._dragInterval&&clearInterval(D._dragInterval)}}}},{key:"_itemsContainerMoveHandler",value:function(e){if(Smart.ListBox.DragDrop.Dragging)return this._applyItemFeedback(e),this._moveHandler(e),e.originalEvent.preventDefault(),e.originalEvent.stopPropagation(),!1}},{key:"_touchmoveHandler",value:function(e){if(Smart.ListBox.DragDrop.Dragging&&e.cancelable)return e.preventDefault(),void e.stopPropagation();_get(_getPrototypeOf(n.prototype),"_touchmoveHandler",this).call(this,e)}},{key:"_applyItemFeedback",value:function(e){var t=this,n=e.originalEvent.target,i=n.closest?n.closest("smart-list-item"):n;Smart.Utilities.Core.isMobile?Smart.ListBox.DragDrop.DropDetails={item:Smart.ListBox.DragDrop.Item,position:"bottom"}:0!==t.items.length&&(i?i._itemOnMouseMove(e):t.items[t.items.length-1]._itemOnMouseMove(e,!0))}},{key:"_moveHandler",value:function(e){var t=this;if(Smart.ListBox.DragDrop.Feedback&&Smart.ListBox.DragDrop.DraggedFrom===t){var n=t.dragOffset;if(Smart.ListBox.DragDrop.Dragging){Smart.ListBox.DragDrop.Feedback.style.left=n[0]+e.pageX+"px",Smart.ListBox.DragDrop.Feedback.style.top=n[1]+e.pageY+"px",t.$.fireEvent("dragging",{item:Smart.ListBox.DragDrop.Item,data:Smart.ListBox.DragDrop,originalEvent:e.originalEvent});for(var i=function(t){var n=Smart.ListBox.DragDrop.ListBoxes[t];n._dragInterval&&clearInterval(n._dragInterval),n._dragInterval=setInterval(function(){var t=n.getBoundingClientRect();t.left<=e.clientX&&t.left+t.width>=e.clientX&&(e.clientY>
1=t.top&&e.clientY<=t.top+20?n.scrollTop-=2:e.clientY>=t.top+t.height-20&&e.clientY<=t.top+t.height&&(n.scrollTop+=2))},1)},r=0;r<Smart.ListBox.DragDrop.ListBoxes.length;r++)i(r);return e.preventDefault(),e.stopPropagation(),e.originalEvent.preventDefault(),e.originalEvent.stopPropagation(),!1}var a=Math.abs(e.pageX-Smart.ListBox.DragDrop.StartPosition.left),o=Math.abs(e.pageY-Smart.ListBox.DragDrop.StartPosition.top),s=new Date-Smart.ListBox.DragDrop.StartTime,l=a>=5&&a<=15||o>=5&&o<=15;if(Smart.Utilities.Core.isMobile&&(s<300||s>1e3)&&(l=!1),l){Smart.ListBox.DragDrop.Dragging=!0,Smart.ListBox.DragDrop.Feedback.style.left=n[0]+e.pageX+"px",Smart.ListBox.DragDrop.Feedback.style.top=n[1]+e.pageY+"px",t.getShadowRootOrBody().appendChild(Smart.ListBox.DragDrop.Feedback),e.preventDefault(),e.stopPropagation(),e.originalEvent.preventDefault(),e.originalEvent.stopPropagation();var c=Smart.ListBox.DragDrop.Item,u=c.ownerListBox;u.$.fireEvent("dragStart",{item:c,data:Smart.ListBox.DragDrop,container:u,previousContainer:u,originalEvent:e.originalEvent}),document.body.classList.add("smart-dragging")}}}},{key:"_focusHandler",value:function(){this._focused=!0,this.setAttribute("focus","")}},{key:"_blurHandler",value:function(){this._focused=!1,this.removeAttribute("focus")}},{key:"appendChild",value:function(e){var t=this;if(!t.isCompleted){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}t.isVirtualized?(t._items.indexOf(e)>-1&&t._items.splice(t._items.indexOf(e),1),t._items.push(e)):(e.dataItem=e,t.shadowRoot&&"light"===t.shadowDomMode?t.appendChild(e):t.$.itemsInnerContainer.appendChild(e),t._items.indexOf(e)>-1&&t._items.splice(t._items.indexOf(e),1),t._items.push(e)),t._refreshItems(),t._refreshSelection()}},{key:"insertBefore",value:function(e,t){var n=this;if(!n.isCompleted){var i=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.insertBefore.apply(n,i.concat(Array.prototype.slice.call(arguments)))}n.isVirtualized?(n._items.indexOf(e)>-1&&n._items.splice(n._items.indexOf(e),1),n._items.splice(n._indexOf(t),0,e)):(e.dataItem=e,t.parentNode.insertBefore(e,t),n._items.indexOf(e)>-1&&n._items.splice(n._items.indexOf(e),1),n._items.splice(n._indexOf(t),0,e)),n._refreshItems(),n._refreshSelection()}},{key:"removeChild",value:function(e){var t=this;if(!t.isCompleted){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.removeChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}if(t.isVirtualized)t._items.splice(t._indexOf(e),1);else if(e.parentNode){var i=t.selectedIndexes.slice(0),r=t.selectedValues.slice(0),a=i.indexOf(e.dataIndex);e.parentNode.removeChild(e),a>-1&&(i.splice(a,1),r.splice(a,1),t.selectedIndexes=i,t.selectedValues=r)}t._refreshItems()}},{key:"propertyChangedHandler",value:function(e,t,i){if("dataSource"===e&&(!i||i&&Array.isArray(i)&&0===i.length))this.clearItems();else{_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;switch(e){case"innerHTML":r.clearSelection(),r._dataBind(),r.innerHTML=r.content=Smart.Utilities.Core.html(r.$.content);break;case"dataSource":case"valueMember":case"groupMember":case"displayMember":r.clearSelection(),r._dataBind(),r._applyDefaultSelection();break;case"disabled":case"unfocusable":r._setFocusable();break;case"displayLoadingIndicator":r._setLoadingIndicatorVisibility();break;case"filterable":r._refreshFilter(),r._refreshLayout();break;case"grouped":if(i?r._group():r._ungroup(),"radioButton"===r.selectionMode){if(r.selectedValues.length>0){var a=r.selectedValues;r.clearSelection(),r.select(a[0])}}else r._refreshSelection();r._refreshLayout();break;case"itemTemplate":if(null===i||""===i)return r._items.map(function(e){return e.innerHTML=e.label}),delete r._bindingDetails,void r._refreshLayout();var o=r.querySelectorAll("smart-list-item"),s=function(){r._handleItemTemplate(i)&&(r._items.map(function(e){return r._applyTemplate(e)}),r._refreshLayout()),r.ownerElement&&r.ownerElement._setDropDownSize&&r.ownerElement._setDropDownSize(),r.$.fireEvent("bindingComplete")};0===o.length?s():r._ensureItemsReady(o,s);break;case"selectedIndexes":case"selectedValues":var l=r.selectedIndexes.slice(0),c=r.selectedValues.slice(0);if(!r._items||0===r._items.length)return r.selectedIndexes=[],r.selectedValues=[],void(r.$.hiddenInput.value=r.selectedValues.toString());if(r._propertyChanging=!0,"selectedIndexes"===e){l=t.slice(0),r.clearSelection();for(var u=0;u<i.length;u++){var d=r._items[i[u]];d&&("oneOrManyExtended"===r.selectionMode||"oneOrMany"===r.selectionMode?(r.selectedIndexes.length>0&&0===u&&r.clearSelection(),r._select(d)):r.select(d))}}else{c=t.slice(0),r.selectedValues=[],r.clearSelection();for(var h=0;h<i.length;h++){var f=r.getItem(i[h]);f&&("oneOrManyExtended"===r.selectionMode?r._select(f):r.select(f))}}if(r.selectedIndexes.length>0&&r._focus(r._items[r.selectedIndexes[0]]),r._propertyChanging=!1,JSON.stringify(c)!==JSON.stringify(r.selectedValues.slice(0))){for(var p=[],m=[],g=0;g<l.length;g++)r.selectedIndexes.indexOf(l[g])<0&&m.push(r._items[l[g]]);for(var v=0;v<r.selectedIndexes.length;v++)l.indexOf(r.selectedIndexes[v])<0&&p.push(r._items[r.selectedIndexes[v]]);var y={addedItems:p,removedItems:m};if(r.selectedIndexes.length>0){var b=r._items[r.selectedIndexes[r.selectedIndexes.length-1]];void 0!==b&&(y.selected=b.selected,y.disabled=b.disabled,y.index=r._indexOf(b),y.label=b.label,y.value=b.value)}else y.selected=!1,y.disabled=!1,y.index=-1,y.label="",y.value="";r.$.fireEvent("change",y)}break;case"selectionMode":var _="checkBox"===r.selectionMode||"radioButton"===r.selectionMode?r.selectionMode:"plain",w=r.selectedIndexes.slice(0),k=r.selectedValues.slice(0);r._propertyChanging=!0;var C=r.selectedValues;r.setAttribute("aria-multiselectable",-1!==["oneOrManyExtended","zeroOrMany","oneOrMany","checkBox","radioButton"].indexOf(i)),r.selectedValues=[],r.clearSelection();for(var x=0;x<C.length;x++){var S=r.getItem(C[x]);S&&("oneOrManyExtended"===r.selectionMode?r._select(S):r.select(S))}
1if(r._items.forEach(function(e){return e.displayMode=_}),r._recycle(),r._propertyChanging=!1,JSON.stringify(k)!==JSON.stringify(r.selectedValues.slice(0))){for(var M=[],D=[],T=0;T<w.length;T++)r.selectedIndexes.indexOf(w[T])<0&&D.push(r._items[w[T]]);for(var E=0;E<r.selectedIndexes.length;E++)w.indexOf(r.selectedIndexes[E])<0&&M.push(r._items[r.selectedIndexes[E]]);var A={addedItems:M,removedItems:D};if(w.length>0){var P=r._items[w[w.length-1]];P&&(A.selected=P.selected,A.disabled=P.disabled,A.index=r._indexOf(P),A.label=P.label,A.value=P.value)}r.$.fireEvent("change",A)}r._applyAriaSelected(),"checkBox"!==i&&"radioButton"!==i&&"checkBox"!==t&&"radioButton"!==t||r._refreshLayout();break;case"topVisibleIndex":r._setTopVisibleIndex(i);break;case"autoSort":r._canSort=i;break;case"alternationStart":case"alternationEnd":case"alternationCount":r._refreshItems(),r._refreshLayout();break;case"sortDirection":case"sorted":r._canSort=!0,i?r._sort():r._unsort();var L=r.selectedValues;r.selectedValues=[],r._refreshSelection();for(var O=0;O<L.length;O++){var I=r.getItem(L[O]);I&&("oneOrManyExtended"===r.selectionMode?r._select(I):r.select(I))}r._refreshLayout(),r._canSort=r.autoSort}}}},{key:"_refreshSelection",value:function(){var e=this;if(e._items&&0!==e._items.length){var t=e.selectedValues;e.selectedIndexes=[],e.selectedValues=[];for(var n=0;n<e._items.length;n++){var i=e._items[n];i.selected=!1,t.indexOf(i.value)>-1&&e.select(i)}e._recycle()}}},{key:"clearSelection",value:function(){var e=this;if(e._items&&0!==e._items.length){for(var t=[],n=0;n<e._items.length;n++)e._items[n].selected&&t.push(e._items[n]);e._items.map(function(e){return e.selected=!1}),e.selectedValues.slice(0);var i=e.selectedIndexes.slice(0);if(e.selectedIndexes=[],e.selectedValues=[],e.$.hiddenInput.value=e.selectedValues.toString(),e._recycle(),e.context!==e){var r={addedItems:[],removedItems:t};if(i.length>0){var a=e._items[i[i.length-1]];a&&(r.selected=a.selected,r.disabled=a.disabled,r.index=e._indexOf(a),r.label=a.label,r.value=a.value)}e.$.fireEvent("change",r)}}}},{key:"ensureVisible",value:function(e){var t=this;if(e)return!("string"==typeof e&&!(e=t.getItem(e))||(t.isVirtualized||t.$.itemsContainer.scrollTop===t.scrollTop||(t.scrollTop=t.$.itemsContainer.scrollTop),e.top+e.height>=t.scrollTop+t.offsetHeight&&(t.scrollTop=t.scrollTop+e.height,t.isVirtualized||(t.$.itemsContainer.scrollTop=t.scrollTop)),(e.top<=t.scrollTop||e.top>=t.scrollTop+t.$.itemsContainer.offsetHeight)&&(t.scrollTop=e.top,t.isVirtualized||(t.$.itemsContainer.scrollTop=t.scrollTop)),0===t._indexOf(e)||1===t._indexOf(e)&&t._items.length>1&&t._items[0].grouped?(t.scrollTop=0,t.isVirtualized||(t.$.itemsContainer.scrollTop=t.scrollTop)):t._indexOf(e)===t._items.length-1&&(t.scrollTop=t.scrollHeight,t.isVirtualized||(t.$.itemsContainer.scrollTop=t.scrollTop)),0))}},{key:"items",get:function(){var e=this;if(!window.__karma__&&!window.karma&&e instanceof Element&&e.isRendered&&e.hasAttribute&&e.hasAttribute("smart-blazor")){for(var t=[],n=0;n<e._items.length;n++){var i=e._items[n];t.push({label:i.label,value:i.value})}return t}return e._filteredItems?e._filteredItems:e._items}},{key:"getItems",value:function(){var e=this,t=e._filteredItems?e._filteredItems:e._items,n=[];if(t&&t.length>0)for(var i=0;i<t.length;i++){var r=t[i];n.push({label:r.label,value:r.value})}return n}},{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this);var e=this;if(e.shadowRoot&&"light"===e.shadowDomMode){var t=document.createDocumentFragment();[].slice.call(e.$.itemsInnerContainer.children).map(function(e){return t.appendChild(e)}),e.appendChild(t),e.$.itemsInnerContainer.appendChild(document.createElement("slot"))}e._areCSSVarsSupported=Smart.Utilities.Core.CSSVariablesSupport(),e.isUpdating=0,e._scrollView&&(e._scrollView=new Smart.Utilities.Scroll(e,e.$.horizontalScrollBar,e.$.verticalScrollBar),e._scrollView.hScrollBar.$.addClass("smart-hidden"),e._scrollView.vScrollBar.$.addClass("smart-hidden"));var i=e._scrollView.vScrollBar,r=e._scrollView.hScrollBar;i.hasStyleObserver=!1,r.hasStyleObserver=!1,i.hasResizeObserver=!1,r.hasResizeObserver=!1,i.wait=!1,r.wait=!1,e._setFocusable()}},{key:"render",value:function(){var e=this;e.setAttribute("role","listbox"),e.setAttribute("aria-orientation","vertical"),e.$.verticalScrollBar.setAttribute("aria-controls",e.id),e.$.horizontalScrollBar.setAttribute("aria-controls",e.id),e._keysPressed={},e._incrementalSearchQuery="",e._incrementalSearchItems=[],e._canSort=!0,e._previousEntry="",e._setLoadingIndicatorVisibility(),e._refreshFilter(),e._initializeInnerHTML(),e._dataBind(),e._applyDefaultSelection(),e.enableShadowDOM&&HTMLElement.prototype.appendChild.apply(e,[e.$.hiddenInput]),e.setAttribute("aria-multiselectable",-1!==["oneOrManyExtended","zeroOrMany","oneOrMany","checkBox","radioButton"].indexOf(e.selectionMode)),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"_lazyInitItems",value:function(){var e=this;if(e._inLazyInit)return cancelAnimationFrame(Smart.ListBox.processTimer),void delete Smart.ListBox.processTimer;e._inLazyInit=!0,e.dataSource||(e.clearSelection(),e._dataBind(),e._applyDefaultSelection()),cancelAnimationFrame(Smart.ListBox.processTimer),delete Smart.ListBox.processTimer,e._inLazyInit=!1}},{key:"_applyDefaultSelection",value:function(){var e=this;!e._focusedItem&&e._items&&e._items.length>0&&0===e.selectedIndexes.length&&("one"!==e.selectionMode&&"oneOrMany"!==e.selectionMode&&"oneOrManyExtended"!==e.selectionMode||e.select(e._items[0]))}},{key:"attached",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"attached",this).call(this),Smart.ListBox.DragDrop||(Smart.ListBox.DragDrop={ListBoxes:[]}),Smart.ListBox.DragDrop.ListBoxes.push(e),e._scrollView||(e._scrollView=new Smart.Utilities.Scroll(e,e.$.horizontalScrollBar,e.$.verticalScrollBar)),e.selectedIndexes.length>0&&e._items&&e.ensureVisible(e._items[e.selectedIndexes[0]])}},{key:"detached",value:function(){var e=this;if(_get(_getPrototypeOf(n.prototype),"detached",this).call(this),e._scrollView&&(e._scrollView.unlisten(),delete e._scrollView),Smart.ListBox.DragDrop&&Smart.ListBox.DragDrop.ListBoxes){var t=Smart.ListBox.DragDrop.ListBoxes.indexOf(e);Smart.ListBox.DragDrop.ListBoxes.splice(t,1)}}},{key:"_createItem",value:function(e,t,n){var i=this,r="checkBox"===i.selectionMode||"radioButton"===i.selectionMode?i.selectionMode:"plain",a=n?{}:document.createElement("smart-list-item");a.ownerListBox=i,"number"==typeof e&&(e=""+e);var o=function(t,n){return void 0!==e[t]?""+e[t]:e[n]},s="string"==typeof e?e:o(i.displayMember,"label"),l="string"==typeof e?e:o(i.valueMember,"value"),c=o(i.groupMember,"group");return void 0===s&&(s=void 0!==t?""+t:""),a.label=a.innerHTML=""+s,void 0===l&&(l=void 0!==t?""+t:s),e.color&&(a.color=e.color),a.value=""+l,a.displayMode=r,a.selected=!!e.selected&&e.selected,a.disabled=!!e.disabled&&e.disabled,a.dataItem=a,void 0!==t&&(a.dataIndex=t),i._alternateItem(
1a),e.title&&(a.title=e.title),c&&(a.group=""+c),a}},{key:"_alternateItem",value:function(e){var t=this,n=t.alternationStart,i=t.alternationEnd>0?t.alternationEnd:1/0;t.alternationCount<=0||(void 0===t._alternationIndexCounter&&(t._alternationIndexCounter=0),e.dataIndex>=n&&e.dataIndex<=i&&(e.alternationIndex=t._alternationIndexCounter++,t._alternationIndexCounter===t.alternationCount&&(t._alternationIndexCounter=0)))}},{key:"_beginUpdate",value:function(){this.isUpdating++}},{key:"_isUpdating",value:function(){return this.isUpdating>0}},{key:"_endUpdate",value:function(){this.isUpdating--}},{key:"_scrollHeight",get:function(){var e=this;if(0===e._items.length||e._items.filter(function(e){return!e.hidden}).length<1)return 0;var t=0;if(e.isVirtualized){if(e.__scrollHeight)return e.__scrollHeight;if(0===e._items.length)return 0;e.isUpdating++;var n=e._createItem(e.dataSource[0]);e.$.itemsInnerContainer.appendChild(n);for(var i=0;i<e._items.length;i++){var r=e._items[i];r.hidden?(r.height=0,r.top=t):(e.itemHeight?(e.itemHeight<32&&(e.itemHeight=32),r.height=e.itemHeight):(n.$&&n.$.itemContainer?n.$.itemContainer.firstElementChild.innerHTML=r.label:n.label=r.label,r.height=n.offsetHeight),r.top=t,t+=r.height)}e.$.itemsInnerContainer.removeChild(n),e.__scrollHeight=t-e.$.itemsInnerContainer.offsetHeight,e.filterable&&(e.__scrollHeight+=e.$.filterInput.offsetHeight),t=e.__scrollHeight,e.isUpdating--}else{for(var a=0;a<e._items.length;a++){var o=e._items[a];o.hidden?(o.height=0,o.top=t):(e.itemHeight?"auto"!==e.itemHeight&&(o.height=e.itemHeight,o.style.height=o.height+"px"):o.height=o.offsetHeight,o.top=o.offsetTop,t+=o.height)}t=e.$.itemsInnerContainer.scrollHeight-e.$.itemsInnerContainer.offsetHeight,e.filterable&&t>0&&(t+=e.$.filterInput.offsetHeight),e.__scrollHeight=t}return t}},{key:"_initializeRecyclingItems",value:function(){var e=this;if(e.dataSource&&(!e.dataSource||0!==e.dataSource.length)&&e.isVirtualized){var t=0,n=e.offsetHeight||400;e.$.itemsInnerContainer.innerHTML="",e._recyclingItems=[];var i=function(){for(var i=0;i<e.dataSource.length;i++){var r=e._createItem(e.dataSource[i]);if(e.itemHeight&&"auto"!==e.itemHeight&&(r.style.height=e.itemHeight+"px"),e.$.itemsInnerContainer.appendChild(r),t+=r.offsetHeight,r.dataItem=e._items[i],e._recyclingItems.push(r),t>1.5*n)break}};i();for(var r=0;t<1.5*n&&++r<5;)i()}}},{key:"_dataBind",value:function(){var e=this;if(e._scrollView||(e._scrollView=new Smart.Utilities.Scroll(e,e.$.horizontalScrollBar,e.$.verticalScrollBar)),"function"==typeof e.dataSource&&(e._items=[],delete e._filteredItems),"string"==typeof e.dataSource&&(e.dataSource=JSON.parse(e.dataSource)),null!==e.dataSource&&Array.isArray(e.dataSource)){e.isUpdating++;var t=function(t){e._items=[],e._groups=[],delete e._filteredItems;for(var n=e.dataSource,i=0;i<n.length;i++){var r=e._createItem(n[i],i,!t);e._items[i]=r,t&&t.appendChild(r)}};if(e.isVirtualized)t(),e._initializeRecyclingItems();else{var n=document.createDocumentFragment();e.$.itemsInnerContainer.innerHTML="",t(n),e.$.itemsInnerContainer.appendChild(n)}e.isUpdating--}var i=e.shadowRoot?e.shadowRoot.querySelectorAll("smart-list-item"):e.querySelectorAll("smart-list-item"),r=function(){e.isUpdating++,e.dataSource||(e._initializeHtmlListItems(),e._initializeHtmlListGroups()),e.grouped&&e._group(),e.sorted&&e._sort(),e._refreshLayout(),e._initializeSelection(),e.isInitialized=!0,e._canSort=e.autoSort,e.isUpdating--,e.itemTemplate&&e._handleItemTemplate(e.itemTemplate)&&(e._items.map(function(t){return e._applyTemplate(t)}),e._refreshLayout()),e.__onCompleted&&(e._onCompleted=e.__onCompleted,e.__onCompleted=null,e._onCompleted()),e.topVisibleIndex>-1&&e._setTopVisibleIndex(e.topVisibleIndex),e.$.fireEvent("bindingComplete"),e._updateTopVisibleIndex(),0===e._items.length&&e.clearItems(),e._applyAriaSelected()};0===i.length?r():(e._onCompleted&&(e.__onCompleted=e._onCompleted,e._onCompleted=null),e._ensureItemsReady(i,r))}},{key:"_ensureItemsReady",value:function(e,t){var n=this,i=function(){var n=function(t){for(var n=0;n<e.length;n++)e[n].context="node"===t?e[n]:document};n("node"),t(),n()};if(0===e.length)i();else{n._nodesReadyListeners=0;for(var r=0;r<e.length;r++){var a=e[r],o=(function(){n._nodesReadyListeners--,0===n._nodesReadyListeners&&(i(),delete n._nodesReadyListeners)}).bind(n);a.isCompleted||(n._nodesReadyListeners++,a._onCompleted=o)}0===n._nodesReadyListeners&&i()}}},{key:"_initializeInnerHTML",value:function(){var e=this;e.$.itemsInnerContainer.innerHTML.indexOf("<option")>=0?e.$.itemsInnerContainer.innerHTML=e.$.itemsInnerContainer.innerHTML.replace(/<optgroup/gi,"<smart-list-items-group").replace(/<\/optgroup/gi,"</smart-list-items-group").replace(/<option/gi,"<smart-list-item").replace(/<\/option/gi,"</smart-list-item"):e.$.itemsInnerContainer.innerHTML.indexOf("<ul")>=0&&(e.$.itemsInnerContainer.innerHTML=e.$.itemsInnerContainer.innerHTML.replace(/<ul/gi,"<smart-list-items-group").replace(/<\/ul/gi,"</smart-list-items-group").replace(/<li/gi,"<smart-list-item").replace(/<\/li/gi,"</smart-list-item"))}},{key:"_initializeHtmlListItems",value:function(){var e=this,t=e.shadowRoot&&"shadow"===e.shadowDomMode?e.shadowRoot.querySelectorAll("smart-list-item"):e.querySelectorAll("smart-list-item"),n="checkBox"===e.selectionMode||"radioButton"===e.selectionMode?e.selectionMode:"plain",i=function(e,t,n){return void 0!==e[t]?""+e[t]:e[n]};e._items=[];for(var r=0,a=0;a<t.length;a++){var o=t[a];o.dataIndex=a,o.label=o.innerHTML,o.dataItem=o,o.top||(o.top=r),o.height||(o.height=o.offsetHeight),r+=o.height,o.value||(o.value=""+a);var s=i(o,e.displayMember,"label"),l=i(o,e.valueMember,"value"),c=i(o,e.groupMember,"group");o.label!==s&&(o.label=s),o.value!==l&&(o.value=l),o.group!==c&&(o.group=c);var u=o.context;o.context=document,o.displayMode=n,o.context=u,e._alternateItem(o),o.selected&&(e.selectedIndexes.push(a),e.selectedValues.push(o.value)),e._items.push(o)}e.itemTemplate&&e._handleItemTemplate(e.itemTemplate)&&e._items.map(function(t){return e._applyTemplate(t)}
1)}},{key:"_group",value:function(){var e=this;e.isUpdating++;var t=[],n=[];e._canSort&&e._unsort();for(var i=0;i<e._items.length;i++){var r=e._items[i],a=r.group?r.group.trim():r.innerHTML.charAt(0)||r.label.charAt(0);t[a+=" "]?t[a].items.push(r):t[t.length++]=t[a]={items:[r],label:a}}if(e.isVirtualized){e._groups=[];for(var o=0;o<t.length;o++){var s=t[o];s.dataIndex=o,s.grouped=!0,s.hidden=!1,s.displayMode="plain",n.push(s);for(var l=0;l<t[o].items.length;l++){var c=s.items[l];c.group=s,n.push(c)}}e._groups=t,e._items=n}else{for(;e.$.itemsInnerContainer.firstChild;)e.$.itemsInnerContainer.removeChild(e.$.itemsInnerContainer.firstChild);var u=document.createDocumentFragment();e._groups=[];for(var d=0;d<t.length;d++){var h=t[d],f=document.createElement("smart-list-items-group");f.label=h.label,f.dataIndex=d;for(var p=0;p<t[d].items.length;p++){var m=h.items[p];n.push(m),m.group=h.label,f.appendChild(m)}e._groups.push(f),u.appendChild(f)}e._items=n,/Trident|Edge/.test(navigator.userAgent)?setTimeout(function(){e.$.itemsInnerContainer.appendChild(u)},50):e.$.itemsInnerContainer.appendChild(u)}e.sorted&&e._sort(),e.isUpdating--}},{key:"_ungroup",value:function(){var e=this;e.isUpdating++,e._groups=[],e._canSort&&e._unsort();var t=[];if(e.isVirtualized)for(var n=0;n<e._items.length;n++){var i=e._items[n];i.grouped||t.push(i)}else{for(var r=document.createDocumentFragment(),a=0;a<e._items.length;a++){var o=e._items[a];r.appendChild(o),t.push(o)}t.length>0&&(e.$.itemsInnerContainer.innerHTML="",e.$.itemsInnerContainer.appendChild(r))}e._items=t,e.sorted&&e._sort(),e.isUpdating--}},{key:"_initializeHtmlListGroups",value:function(){var e=this,t=e.$.itemsInnerContainer.querySelectorAll("smart-list-items-group");e._groups=[];for(var n=0;n<t.length;n++){var i=t[n];i.dataIndex=n,e._groups.push(i)}}},{key:"_initializeSelection",value:function(){var e=this,t=e.selectedIndexes.slice(0),n=e.selectedValues.slice(0);e.clearSelection(),"oneOrManyExtended"===e.selectionMode&&(e._keysPressed.Control=!0);for(var i=0;i<e._items.length;i++){var r=e._items[i];(t.indexOf(i)>=0||n.indexOf(r.value||r.label)>=0)&&(e._focusedItem&&(e._focusedItem._focused=!1),e._focusedItem=null,e.select(r))}"oneOrManyExtended"===e.selectionMode&&(e._keysPressed.Control=!1)}},{key:"onItemUpdated",value:function(){var e=this;e.isInitialized&&!e._isUpdating()&&(e.isUpdating++,e._refreshLayout(),e.isUpdating--)}},{key:"_refreshItems",value:function(){var e=this;if(e.isInitialized&&!e._isUpdating()){if(e.isUpdating++,e.grouped?e._ungroup():e.sorted&&e._canSort&&e._unsort(),!e.isVirtualized){e._items=[];for(var t=e.shadowRoot?e.shadowRoot.querySelectorAll("smart-list-item"):e.querySelectorAll("smart-list-item"),n=0;n<t.length;n++)t[n].dataIndex=n,e._alternateItem(t[n]),e._items.push(t[n])}e.grouped?e._group():e.sorted&&e._sort(),e._refreshLayout(),e.isUpdating--}}},{key:"_applyIncrementalSearch",value:function(e){var t=this;null===t.incrementalSearchDelay||isNaN(t.incrementalSearchDelay)||["Shift","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Control","Home","End","PageUp","PageDown"].indexOf(e)>-1||(0!==t._incrementalSearchQuery.indexOf(e)&&(t._incrementalSearchQuery+=e),t._incrementalSearchTimer&&clearTimeout(t._incrementalSearchTimer),t._incrementalSearch(),t._incrementalSearchTimer=setTimeout(function(){t._incrementalSearchQuery=""},t.incrementalSearchDelay))}},{key:"select",value:function(e){var t=this;if(("string"!=typeof e||(e=t.getItem(e)))&&("number"!=typeof e||(e=t.getItem(e)))&&!(e.grouped||e.readonly||!t._items.length||e instanceof HTMLElement&&!t.contains(e))){if("none"===t.selectionMode)return t.selectedIndexes=[],void(t.selectedValues=[]);switch(!t._focusedItem!==e&&"none"!==t.selectionMode&&(t._focusedItem&&(t._focusedItem._focused=!1),t._focusedItem=e,e._focused=!0),t.selectionMode){case"one":case"zeroAndOne":return(1!==t.selectedIndexes.length||t.selectedIndexes[0]!==t._indexOf(e))&&(t._previouslySelectedIndexes=t.selectedIndexes,t.selectedIndexes.length>=1&&t.clearSelection(),t._select(e),delete t._previouslySelectedIndexes,!0);case"zeroOrOne":return 1===t.selectedIndexes.length&&t.selectedIndexes[0]===t._indexOf(e)?(t.unselect(e),!0):(t._previouslySelectedIndexes=t.selectedIndexes,t.selectedIndexes.length>=1&&t.clearSelection(),t._select(e),delete t._previouslySelectedIndexes,!0);case"radioButton":if(t._previouslySelectedIndexes=t.selectedIndexes,t.$.itemsInnerContainer.querySelectorAll("smart-list-items-group").length>0){var n=e.parentNode;if(!e.selected){for(var i in n.children){var r=n.children[i];r.selected&&t.unselect(r)}t._select(e)}return delete t._previouslySelectedIndexes,!0}if(t.isVirtualized&&t._groups.length>0){var a=e.group;if(!e.selected){for(var o in a.items){var s=a.items[o];s.selected&&t.unselect(s)}t._select(e)}return delete t._previouslySelectedIndexes,!0}return e.selected||(t.selectedIndexes.length>=1&&t.clearSelection(),t._select(e)),delete t._previouslySelectedIndexes,!0;case"oneOrMany":return e.selected?t.selectedIndexes.length>1&&t.unselect(e):t._select(e),!0;case"zeroOrMany":case"checkBox":return e.selected?t.unselect(e):t._select(e),!0;case"oneOrManyExtended":var l=t.selectedValues;if(t._keysPressed.Control)return t.selectedIndexes.length>1&&e.selected?(t.unselect(e),t._focus(t._items[t.selectedIndexes[0]])):t._select(e),!0;if(t._keysPressed.Shift){var c,u=t._items[t.selectedIndexes[0]];t.clearSelection();var d=l.indexOf(u.value)>=0||u.selected;if(t._select(u,d),t._indexOf(u)>t._indexOf(e))for(c=t._indexOf(u)-1;c>=t._indexOf(e);){var h=t._items[c],f=l.indexOf(h.value)>=0||h.selected;t._select(h,f),c--}else for(c=t._indexOf(u)+1;c<=t._indexOf(e);){var p=t._items[c],m=l.indexOf(p.value)>=0||p.selected;t._select(p,m),c++}for(var g=[],v=0;v<l.length;v++)g.push(t.getItem(l[v]));if(g.length>0&&!t._propertyChanging){for(var y=[],b=0;b<t.selectedValues.length;b++){var _=t.selectedValues[b];l.indexOf(_)<0&&y.push(t.getItem(_))}t.$.fireEvent("change",{addedItems:y,removedItems:g,selected:e.selected,disabled:e.disabled,index:t._indexOf(e),label:e.label,value:e.value})}return!0}for(var w=0;w<l.length;w++){var k=t.getItem(l[w]);e!==k&&t.unselect(k)}return t.clearSelection(),t._select(e,l.indexOf(e.value)>=0),!0}return!1}}},{key:"_applyTemplate",value:function(e,t){var n=this;if(null!==n.itemTemplate)if("function"!=typeof n.itemTemplate){if(n._bindingDetails&&0!==n._bindingDetails.length){for(var i,r,a=n._bindingDetails.length,o=document.importNode(n._template.content,!0),s=0;s<a;s++){i=o.childNodes[n._bindingDetails[s].childNodeIndex],r=n._bindingDetails[s].bindingString.length;for(var l=0;l<r;l++){var c=n._bindingDetails[s].bindingString[l],u=c.indexOf("label")>=0?e.label:e.value;i.innerHTML=i.innerHTML.replace(c,u)}}e.innerHTML="";for(var d=0;d<o.childNodes.length;d++)o.childNodes[d].outerHTML&&(e.innerHTML+=o.childNodes[d].outerHTML);!1!==t&&(n._scrollHeightTimer&&(clearInterval(n._scrollHeightTimer),n._scrollHeightCounter=0),n._scrollHeightTimer=setInterval(function(){n._lastScrollHeight===n.$.itemsInnerContainer.scrollHeight&&10!==n._scrollHeightCounter||(n._refreshLayout(),clearInterval(n._scrollHeightTimer)),n._lastScrollHeight=n.$.itemsInnerContainer.scrollHeight,n._scrollHeightCounter++},50))}}else n.itemTemplate(e,{label:e.label,value:e.value,index:n._items.indexOf(e)})}},{key:"_filterItems",value:function(e,t,n){var i,r,a=this,o=a.$.filterInput.value,s=function(){if(0===r.length)return a._filteredItems=[],void(t&&t());i=a._queryItems(o,a.filterMode);for(var n=0;n<r.length;n++)r[n].hidden=!0,r[n].$&&r[n].$.addClass("smart-hidden");for(var s=0;s<i.length;s++){var l=i[s];l.hidden=!1,r[s].$&&l.$.removeClass("smart-hidden")}if(a.grouped&&a.isVirtualized)for(var c=0;c<a._groups.length;c++){for(var u=a._groups[c],d=u.items,h=!0,f=0;f<d.length;f++)d[f].hidden||(h=!1);h&&(u.hidden=!0)}if(a.grouped&&!a.isVirtualized)for(var p=0;p<a._groups.length;p++){for(var m,g=a._groups[p],v=(m=[]).concat.apply(m,_toConsumableArray(g.querySelectorAll("smart-list-item"))),y=!0,b=0;b<v.length;b++)v[b].$.hasClass("smart-hidden")||(y=!1);y?g.$.addClass("smart-hidden"):g.$.removeClass("smart-hidden")}a._filteredItems=i,a._refreshLayout(),t&&t(),e||a._refreshSelection()};if("function"==typeof a.dataSource)if(o||n){var l=a.dataSource(o,function(e){(o||n)&&a.isAttached&&(a._updateListBoxAfterQuery=function(){i=r=a._items,s()},a.clearItems(),a.insert(0,e))});if(l){if(!o&&!n)return;a._updateListBoxAfterQuery=function(){i=r=a._items,s()},a.clearItems(),a.insert(0,l)}}else a.clearItems(),i=r=a._items,s(),a.$.fireEvent("bindingComplete");else{if(0===(r=a._items).length)return;s()}}},{key:"_getNextItem",value:function(e){for(var t=this._items,n=this._items.length,i=Math.max(e+1,0);i<n;){var r=t[i];if(!(r.disabled||r.hidden||r.grouped||r.readonly))return r;i++}return t[e]}},{key:"_getPreviousItem",value:function(e){for(var t=this._items,n=Math.max(e-1,0);n>-1;){var i=t[n];if(!(i.disabled||i.hidden||i.grouped||i.readonly))return i;n--}return t[e]}},{key:"_scrollWidth",get:function(){var e=this,t=this,n=t._items;return t.__scrollWidth||(t.__scrollWidth=function(){var t=e,i=t.virtualized,r=t.itemMeasureMode,a=0,o="";function s(e){var n=t._createItem({label:e});n.style.position="absolute",t.$.itemsContainer.appendChild(n),n.label=e,n.style.width="auto",n.isCompleted&&(n.$.itemContainer.style.width="auto");var i=getComputedStyle(n),r=parseInt(i.paddingLeft)+parseInt(i.paddingRight),a=n.$.itemContainer||n,o=a.offsetWidth+a.offsetLeft+r;return n.parentNode.removeChild(n),o}for(var l=0;l<n.length;l++){var c=n[l];if(!c.hidden)if("auto"===r){var u=i?c.label:c.textContent.trim();u.length>
1o.length&&(o=u)}else a=Math.max(a,s(c.label))}return"auto"===r?s(o):a}()),t.__scrollWidth}},{key:"update",value:function(e,t){var n=this,i=n._items[e];if(i){if("string"==typeof t)i.label=t,void 0===i.value&&(i.value=t);else for(var r in t)"selected"===r&&i[r]!==t[r]?n.select(i):i[r]=t[r],"group"===r&&n._refreshItems();(n.sorted||n.grouped||n.isVirtualized)&&(n._refreshItems(),n._refreshSelection())}else n.error(n.localize("indexOutOfBound",{elementType:n.nodeName.toLowerCase(),method:"update"}))}},{key:"insert",value:function(e,t){var n=this,i=[];if((!e||e<0)&&(e=0),Array.isArray(t)){n.isUpdating++;for(var r=0;r<t.length;r++){var a=n._createItem(t[r]);i.push(a),e>=n._items.length||0===n._items.length?n.appendChild(a):n.insertBefore(a,n._items[e])}n.isUpdating--}else{var o=n._createItem(t);i.push(o),e>=n._items.length||0===n._items.length?n.appendChild(o):n.insertBefore(o,n._items[e])}i.length>0?(i.map(function(e){return n._applyTemplate(e)}),n._ensureItemsReady(i,function(){n._refreshItems(),0!==n._items.length&&(n._updateListBoxAfterQuery&&(n._updateListBoxAfterQuery(),delete n._updateListBoxAfterQuery),n._refreshSelection(),n.$.fireEvent("bindingComplete"))})):n._updateListBoxAfterQuery&&(n._updateListBoxAfterQuery(),delete n._updateListBoxAfterQuery)}},{key:"removeAt",value:function(e){var t=this,n=t._items[e];n?(n.selected&&t.unselect(n),t.isVirtualized?t._items.splice(e,1):n.parentNode.removeChild(n),t._refreshItems(),t._refreshSelection(),0===t.selectedIndexes.length&&t._items.length>0&&("oneOrMany"!==t.selectionMode&&"one"!==t.selectionMode&&"oneOrManyExtended"!==t.selectionMode||t.select(t._items[0]))):t.error(t.localize("indexOutOfBound",{elementType:t.nodeName.toLowerCase(),method:"remove"}))}},{key:"_queryItems",value:function(e,t){var n=this,i=[],r=function(i,r){if(i.grouped)return i;switch(t){case"startsWith":if(0===i.label.indexOf(r))return i;break;case"startsWithIgnoreCase":if(0===i.label.toLowerCase().indexOf(r.toLowerCase()))return i;break;case"doesNotContain":if(i.label.indexOf(r)<0)return i;break;case"doesNotContainIgnoreCase":if(i.label.toLowerCase().indexOf(r.toLowerCase())<0)return i;break;case"contains":if(i.label.indexOf(r)>-1)return i;break;case"containsIgnoreCase":if(i.label.toLowerCase().indexOf(r.toLowerCase())>-1)return i;break;case"equals":if(0===i.label.localeCompare(r))return i;break;case"equalsIgnoreCase":if(0===i.label.toLowerCase().localeCompare(r.toLowerCase()))return i;break;case"endsWith":if(i.label.endsWith(r))return i;break;case"endsWithIgnoreCase":if(i.label.toLowerCase().endsWith(r.toLowerCase()))return i;break;case"custom":if(n.filterCallback(i,e))return i}return null};if(0===e.length)return n._items;for(var a=0;a<n._items.length;a++){var o=r(n._items[a],e);o&&i.push(o)}return i}},{key:"_select",value:function(e,t){var n=this,i=n.selectedIndexes.indexOf(n._indexOf(e)),r=n.selectedIndexes.slice(0),a=n.selectedValues.slice(0);if(e.selected=!0,-1!==i)return n._recycle(),!1;if(r.push(n._indexOf(e)),a.push(e.value||e.label),n.selectedIndexes=r,n.selectedValues=a,n._recycle(),n.$.hiddenInput.value=a.toString(),n.isCompleted&&!t&&n.isInitialized&&!n._propertyChanging){var o=[];if(n._previouslySelectedIndexes){for(var s=0;s<n._previouslySelectedIndexes.length;s++)n.selectedIndexes.indexOf(n._previouslySelectedIndexes[s])<0&&o.push(n._items[n._previouslySelectedIndexes[s]]);delete n._previouslySelectedIndexes}return n.$.fireEvent("change",{addedItems:[e],removedItems:o,selected:e.selected,disabled:e.disabled,index:n._indexOf(e),label:e.label,value:e.value}),!0}}},{key:"_setTopVisibleIndex",value:function(e){var t=this;if("number"==typeof e&&(t.topVisibleIndex=Math.max(0,e),e=t._items[t.topVisibleIndex]),!e)return!1;e.top!==t.scrollTop&&(t.scrollTop=e.top,t.isVirtualized||(t.$.itemsContainer.scrollTop=t.scrollTop),t.scrollHeight===t.scrollTop&&t._updateTopVisibleIndex())}},{key:"_updateTopVisibleIndex",value:function(){var e,t=this,n=t.scrollTop+t._scrollView.verticalScrollBar.offsetHeight-t.offsetHeight;if(t.scrollTop<t.scrollHeight/2){for(var i=0;i<t._items.length;i++)if(t._items[i].top>=n){e=t._items[i];break}}else for(var r=t._items.length-1;r>=0&&!(t._items[r].top<n);r--)e=t._items[r];if(e){var a=t.context;t.context=t,t.topVisibleIndex=e.dataIndex,t.context=a}}},{key:"unselect",value:function(e){var t=this;
1if(e&&("string"!=typeof e||(e=t.getItem(e)))){if("none"!==t.selectionMode){var n=t.selectedIndexes.indexOf(t._indexOf(e)),i=t.selectedIndexes.slice(0),r=t.selectedValues.slice(0);return e.selected=!1,n>=0&&(i.splice(n,1),r.splice(n,1),t.selectedIndexes=i,t.selectedValues=r,t.$.hiddenInput.value=r.toString(),t.isCompleted&&!t._propertyChanging?(t.$.fireEvent("change",{addedItems:[],removedItems:[e],selected:e.selected,disabled:e.disabled,index:t._indexOf(e),label:e.label,value:e.value}),t._recycle(),!0):void 0)}t.clearSelection()}}},{key:"_handleItemTemplate",value:function(e){if(null!==e&&e){if("function"==typeof e)return e;var t=this;if(!("content"in document.createElement("template")))return t.error(t.localize("htmlTemplateNotSuported",{elementType:t.nodeName.toLowerCase()})),void(t.itemTemplate=null);if(null===(e=document.getElementById(e))||!("content"in e))return t.error(t.localize("invalidTemplate",{elementType:t.nodeName.toLowerCase(),property:"itemTemplate"})),void(t.itemTemplate=null);var n,i,r=e.content,a=r.childNodes.length,o=/{{\w+}}/g;t._bindingDetails=[],t._template=e;for(var s=0;s<a;s++){for(i=[];n=o.exec(r.childNodes[s].innerHTML);)i.push(n[0]);i.length>0&&t._bindingDetails.push({childNodeIndex:s,bindingString:i})}return!0}}},{key:"_handleKeyStrokes",value:function(e){var t=this,n="radioButton"===t.selectionMode||"checkBox"===t.selectionMode||"zeroOrMany"===t.selectionMode||"oneOrMany"===t.selectionMode||"zeroOrOne"===t.selectionMode,i=t._items;if(t.filterable&&t.$.filterInput.value.length>0&&(i=t._filteredItems),!t.disabled&&!t.readonly&&i.length){switch(e){case"ArrowLeft":case"ArrowUp":t._handleArrowKeys(!0);break;case"ArrowRight":case"ArrowDown":t._handleArrowKeys(!1);break;case" ":if(t.selectedIndexes.length<1&&!t._focusedItem)return;var r=t._focusedItem?t._focusedItem:t._items[t.selectedIndexes[t.selectedIndexes.length-1]],a=function(e){e.selected&&"radioButton"!==t.selectionMode?t.unselect(e):t.select(e)};if("oneOrMany"===t.selectionMode)return void(r.selected&&t.selectedIndexes.length>1?a(r):r.selected||a(r));a(r);break;case"Home":if(0===i.length)return;n||(t._keysPressed.Shift||t.clearSelection(),t.select(i[0])),t._focus(i[0]),t.scrollTop=0;break;case"End":if(0===i.length)return;n||(t._keysPressed.Shift||t.clearSelection(),t.select(i[i.length-1])),t._focus(i[i.length-1]),t.scrollTop=t.scrollHeight;break;case"PageUp":t._pageUpKeyHandler(i);break;case"PageDown":t._pageDownKeyHandler(i)}t._recycle()}}},{key:"_horizontalScrollbarHandler",value:function(e){var t=this;e&&e.stopPropagation&&e.stopPropagation(),t.isVirtualized?t._recycle():t.$.itemsContainer.scrollLeft=t._getScrollLeft(e.detail.value)}},{key:"_getScrollLeft",value:function(e,t){var n=this;if(!n.rightToLeft)return e;if(Smart.Utilities.Core.Browser.Chrome){if(!t){var i=2*(parseInt(getComputedStyle(n.$.itemsInnerContainer).getPropertyValue("--smart-list-item-horizontal-offset"))||0);t=n._scrollWidth-n.$.itemsContainer.offsetWidth-i}e=t-e}else e*=-1;return e}},{key:"_unsort",value:function(){var e=this;e.isUpdating++;var t=function(e,t){var n=e.dataIndex,i=t.dataIndex;return n<i?-1:n>i?1:0};if(e.isVirtualized)if(e._groups.length>0){e._groups.sort(t);for(var n=[],i=0;i<e._groups.length;i++){var r,a=e._groups[i],o=(r=[]).concat.apply(r,_toConsumableArray(a.items));o.sort(t),n.push(a),n=n.concat(o)}e._items=n}else e._items.sort(t);else{if(e._groups.length>0){e._groups.sort(t);for(var s=[],l=0;l<e._groups.length;l++){var c,u=(c=[]).concat.apply(c,_toConsumableArray(e._groups[l].querySelectorAll("smart-list-item")));u.sort(t),s=s.concat(u)}e._items=s}else e._items.sort(t);e._applySortOrder()}e.isUpdating--}},{key:"_applySortOrder",value:function(){var e=function(e){for(var t=0;t<e.length;t++){var n=e[t],i=n.parentNode;i&&i.appendChild(n)}};e(this._items),e(this._groups)}},{key:"_sort",value:function(){var e=this;if(e._canSort){e.isUpdating++;var t=function(t,n){var i=t.label,r=n.label;if("asc"===e.sortDirection){if(i<r)return-1;if(i>r)return 1}else{if(i<r)return 1;if(i>r)return-1}return 0};if(e._groups.sort(t),e.isVirtualized)if(e._groups.length>0){for(var n=[],i=0;i<e._groups.length;i++){var r,a=e._groups[i],o=(r=[]).concat.apply(r,_toConsumableArray(a.items));n.push(a),o.sort(t),n=n.concat(o)}e._items=n}else e._items.sort(t);else{if(e._groups.length>0){for(var s=[],l=0;l<e._groups.length;l++){var c,u=(c=[]).concat.apply(c,_toConsumableArray(e._groups[l].querySelectorAll("smart-list-item")));u.sort(t),s=s.concat(u)}e._items=s}else e._items.sort(t);e._applySortOrder()}e.isUpdating--}}},{key:"getItem",value:function(e){for(var t=this,n=0;n<t._items.length;n++)if(t._items[n].value===e)return t._items[n];return null}},{key:"_focus",value:function(e){var t=this;
1!e||"none"===t.selectionMode||t.disabled||t.readonly||(t._focusedItem&&(t._focusedItem._focused=!1),t._focusedItem=e,t._focusedItem._focused=!0)}},{key:"_keyDownHandler",value:function(e){var t=this,n=(t.shadowRoot||t.getRootNode()).activeElement||document.activeElement,i=e.key;if(e.metaKey&&(i="Control"),!t.disabled&&!t.readonly&&(!t.filterable||t.$.filterInput!==n)&&t._focused&&0!==t._items.length&&!t.disabled&&!t.displayLoadingIndicator){if(t.editable){if("F2"===i)return void t._dblclickEventHandler({target:t._focusedItem});if(t.$.editInput===n)return}if("none"!==t.selectionMode){switch(e.stopPropagation(),i){case"Down":case"Right":case"Left":case"Up":i="Arrow"+i}if(t.filterable)switch(i){case"ArrowLeft":case"ArrowRight":return;case"ArrowUp":case"ArrowDown":e.preventDefault()}if(t._applyIncrementalSearch(i),!(["Shift","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Control"," ","Home","End","PageUp","PageDown"].indexOf(i)<0))if(e.preventDefault(),!t._focusedItem&&t._items.length>0)"one"===t.selectionMode||"oneOrMany"===t.selectionMode||"oneOrManyExtended"===t.selectionMode?t.select(t._items[0]):t._focus(t._items[0]);else switch(t.selectionMode){case"one":case"zeroAndOne":if("Shift"===i||"Control"===i||" "===i)return;t._handleKeyStrokes(i);break;case"oneOrMany":case"zeroOrOne":case"zeroOrMany":case"radioButton":case"checkBox":if("Shift"===i||"Control"===i)return;t._handleKeyStrokes(i);break;case"oneOrManyExtended":if(" "===i)return;
1t._keysPressed[i]="keydown"===e.type,t._handleKeyStrokes(i)}}}}},{key:"_keyUpHandler",value:function(e){var t=this,n=(t.shadowRoot||t.getRootNode()).activeElement||document.activeElement;if(!t.editable||t.$.editInput!==n){if(t.filterable&&t.$.filterInput===n)return t._filterTimer&&clearTimeout(t._filterTimer),void(t._filterTimer=setTimeout(function(){var e=t.context;t.context=t,t._filterItems(),t.scrollTop=t.$.itemsContainer.scrollTop=0,t.scrollLeft=t.$.itemsContainer.scrollLeft=t._getScrollLeft(0),t.context=e},300));if(t._focused){if(t._focusedItem&&t._focusedItem.hidden&&t._filteredItems.length>0){var i=t._filteredItems[0];i.grouped&&t._filteredItems.length>1&&(i=t._filteredItems[1]),t._focus(i),t._recycle()}e.stopPropagation(),e.preventDefault(),t.disabled||("Escape"===e.key&&Smart.ListBox.DragDrop.Dragging&&t._cancelDrag(),["Shift","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Control"," ","PageUp","PageDown"].indexOf(e.key)<0||(t._keysPressed[e.key]=!1))}}}},{key:"_cancelDrag",value:function(){if(Smart.ListBox.DragDrop.Dragging){Smart.ListBox.DragDrop.Feedback.parentNode&&Smart.ListBox.DragDrop.Feedback.parentNode.removeChild(Smart.ListBox.DragDrop.Feedback);var e=Smart.ListBox.DragDrop.Item,t=e.ownerListBox;if(t.$.fireEvent("dragCancel",{item:e,data:Smart.ListBox.DragDrop,container:t,previousContainer:t}),Smart.ListBox.DragDrop.Feedback=null,Smart.ListBox.DragDrop.DropDetails){var n=Smart.ListBox.DragDrop.DropDetails.item;n&&(n.$.removeClass("smart-list-item-line-feedback"),n.$.removeClass("smart-list-item-bottom-line-feedback"))}document.body.classList.remove("smart-dragging"),delete Smart.ListBox.DragDrop.DraggedFrom,Smart.ListBox.DragDrop.Dragging=!1,Smart.ListBox.DragDrop.Item=null,Smart.ListBox.DragDrop.DropDetails=null}}},{key:"_mouseWheelHandler",value:function(e){var t=this;if((t.computedHorizontalScrollBarVisibility||t.computedVerticalScrollBarVisibility)&&!t.disabled&&t.computedVerticalScrollBarVisibility){var n=t.scrollTop;if(0===n&&e.deltaY<0||n===t.scrollHeight&&e.deltaY>0)return;e.stopPropagation(),e.preventDefault(),t.scrollTo(n+t._getScrollCoefficient(e,t.offsetHeight))}}},{key:"_pageDownKeyHandler",value:function(e){var t=this;if(0!==e.length){var n,i=t._items[t.selectedIndexes[t.selectedIndexes.length-1]];if("checkBox"!==t.selectionMode&&"radioButton"!==t.selectionMode&&"zeroOrMany"!==t.selectionMode&&"oneOrMany"!==t.selectionMode&&"zeroOrOne"!==t.selectionMode||t._focusedItem&&(i=t._focusedItem),i){for(var r=t._indexOf(i),a=i.top+t.$.itemsContainer.offsetHeight-i.height,o=r;o<e.length;o++)if(e[o].top>=a){n=e[o];break}n||(n=e[e.length-1]),"checkBox"===t.selectionMode||"radioButton"===t.selectionMode||"zeroOrMany"===t.selectionMode||"oneOrMany"===t.selectionMode||"zeroOrOne"===t.selectionMode?t._focus(n):n.selected||(t._keysPressed.Shift||t.clearSelection(),t.select(n),t._focus(n)),(n.height+n.top>t.$.itemsContainer.scrollTop+t.$.itemsContainer.offsetHeight||n.top<t.$.itemsContainer.scrollTop)&&(t.scrollTop=n.top-t.$.itemsContainer.offsetHeight+n.height)}}}},{key:"_pageUpKeyHandler",value:function(e){var t=this;if(0!==e.length){var n=t._items[t.selectedIndexes[t.selectedIndexes.length-1]];if("checkBox"!==t.selectionMode&&"radioButton"!==t.selectionMode&&"zeroOrMany"!==t.selectionMode&&"oneOrMany"!==t.selectionMode&&"zeroOrOne"!==t.selectionMode||t._focusedItem&&(n=t._focusedItem),n){for(var i,r=n.top-t.$.itemsContainer.offsetHeight,a=t._indexOf(n);a>0;a--)if(e[a].top<=r){i=e[a];break}i||(i=e[0]),"checkBox"===t.selectionMode||"radioButton"===t.selectionMode||"zeroOrMany"===t.selectionMode||"oneOrMany"===t.selectionMode||"zeroOrOne"===t.selectionMode?t._focus(i):i.selected||(t._keysPressed.Shift||t.clearSelection(),t.select(i),t._focus(i)),t.scrollTop=i.top,0===t._indexOf(i)&&(t.scrollTop=0)}}}},{key:"clearItems",value:function(){var e=this;e.clearSelection(),e.$.itemsInnerContainer.innerHTML="",e._items=[],delete e._focusedItem,e.$placeholder.removeClass("smart-hidden"),e.refresh()}},{key:"_resizeHandler",value:function(e){this.refresh(e)}},{key:"refresh",value:function(e){var t=this;if(!e&&!t._isUpdatingScrollBars&&t.isInitialized)return t._isUpdatingScrollBars=!0,t._initializeRecyclingItems(),t._refreshLayout(),void(t._isUpdatingScrollBars=!1);e&&e.target===t&&!t._isUpdatingScrollBars&&(t._isUpdatingScrollBars=!0,t._initializeRecyclingItems(),t._refreshLayout(),t._isUpdatingScrollBars=!1)}},{key:"_indexOf",value:function(e){var t=this;if(!e)return-1;var n=t._items.indexOf(e);return-1===n&&(n=t._items.indexOf(t.getItem(e.value))),n}},{key:"_incrementalSearch",value:function(){var e,t=this,n="radioButton"!==t.selectionMode&&"checkBox"!==t.selectionMode&&"zeroOrMany"!==t.selectionMode&&"oneOrMany"!==t.selectionMode&&"zeroOrOne"!==t.selectionMode,i=0;switch(t.incrementalSearchMode){case"containsIgnoreCase":case"equalsIgnoreCase":case"startsWithIgnoreCase":case"endsWithIgnoreCase":e=t._incrementalSearchQuery.toLowerCase();break;default:e=t._incrementalSearchQuery}
1var r=function(e){e.grouped||e.readonly||(n?(t.selectedIndexes.length>0&&t.clearSelection(),t._focus(e),t.select(e)):t._focus(e),(e.height+e.top>t.$.itemsContainer.scrollTop+t.$.itemsContainer.offsetHeight||e.top<t.scrollTop)&&(t.scrollTop=e.top),0===t._indexOf(e)&&(t.scrollTop=0),t._indexOf(e)===t._items.length-1&&(t.scrollTop=t.scrollHeight))};0!==t._previousEntry.localeCompare(e)&&(t._incrementalSearchItems=t._queryItems(t._incrementalSearchQuery,t.incrementalSearchMode),delete t._itemPosition),t._previousEntry=e;var a=t._incrementalSearchItems.length;if(0!==a)if(1!==a)for(void 0!==t._itemPosition?t._itemPosition<a-1?i=t._itemPosition:(i=0,n?(t._incrementalSearchItems[t._itemPosition].selected=!1,t.selectedIndexes=[],t.selectedValues=[]):t._incrementalSearchItems[t._itemPosition]._focused=!1):n&&t.clearSelection();i<a;i++)if(t._incrementalSearchItems[i].selected&&n)t._incrementalSearchItems[i].selected=!1,t.selectedIndexes=[],t.selectedValues=[];else{if(n||!t._incrementalSearchItems[i]._focused)return r(t._incrementalSearchItems[i]),void(t._itemPosition=i);t._incrementalSearchItems[i]._focused=!1}else r(t._incrementalSearchItems[0])}},{key:"_selectStartHandler",value:function(e){var t=this,n=(t.shadowRoot||t.getRootNode()).activeElement;t.$.filterInput!==n&&t.$.editInput!==n&&e.preventDefault()}},{key:"_handleArrowKeys",value:function(e){var t=this,n="radioButton"!==t.selectionMode&&"checkBox"!==t.selectionMode&&"zeroOrMany"!==t.selectionMode&&"oneOrMany"!==t.selectionMode&&"zeroOrOne"!==t.selectionMode;if(!t.disabled&&!t.readonly){var i;if(t._focusedItem&&!t._keysPressed.Shift)i=t._indexOf(t._focusedItem),t._focusedItem._focused=!1;else{if(0===t.selectedIndexes.length)return;i=t.selectedIndexes[t.selectedIndexes.length-1]}var r=e?t._getPreviousItem(i):t._getNextItem(i);t._focus(r),n&&(t._keysPressed.Shift?t.select(r):t._items[i]!==r&&(t.clearSelection(),t.select(r))),t.ensureVisible(r)}}},{key:"_refreshFilter",value:function(){var e=this;if(e.filterable)return e.$.filterInput.disabled=!(!e.disabled&&!e.displayLoadingIndicator),e.$filterInputContainer.removeClass("smart-hidden"),void e.$itemsContainer.addClass("filter");e.$.filterInput.disabled=!0,e.$filterInputContainer.addClass("smart-hidden"),e.$itemsContainer.removeClass("filter")}},{key:"_setFocusable",value:function(){var e=this;e.disabled||e.unfocusable?e.removeAttribute("tabindex"):e.tabIndex=e.tabIndex>0?e.tabIndex:0}},{key:"_setLoadingIndicatorVisibility",value:function(){var e=this;e.displayLoadingIndicator?e.$loadingIndicatorContainer.hasClass("smart-visibility-hidden")?e.$loadingIndicatorContainer.removeClass("smart-visibility-hidden"):e.$loadingIndicatorContainer.removeClass("smart-hidden"):e.$loadingIndicatorContainer.addClass(e._areCSSVarsSupported?"smart-hidden":"smart-visibility-hidden")}},{key:"_refreshLayout",value:function(){var e=this,t=e._filteredItems||e._items;if(e.__scrollHeight=null,e.__scrollWidth=null,e._height=null,e._scrollView||(e._scrollView=new Smart.Utilities.Scroll(e,e.$.horizontalScrollBar,e.$.verticalScrollBar)),e.$itemsContainer.removeClass("hscroll"),e.$itemsContainer.removeClass("vscroll"),!t||null===t||0===t.length)return e.scrollWidth=0,e.scrollHeight=0,e.$filterInputContainer.removeClass("vscroll"),e.$placeholder.removeClass("smart-hidden"),e.isVirtualized&&e._recycle(),void(e.$.itemsInnerContainer.style.width="");e.$placeholder.addClass("smart-hidden");var n=2*(parseInt(getComputedStyle(e.$.itemsContainer).getPropertyValue("--smart-list-item-horizontal-offset"))||0),i=e._scrollWidth-e.$.itemsContainer.offsetWidth-n,r=e._scrollHeight;if(e._refreshHorizontalScrollBarVisibility(i),e._refreshVerticalScrollBarVisibility(r),e.$.itemsInnerContainer.style.width="",e.$.itemsInnerContainer.style.width="hidden"===e.horizontalScrollBarVisibility?e.$.itemsContainer.offsetWidth-n:Math.max(e.$.itemsContainer.offsetWidth-n,-n+e.__scrollWidth)+"px",e.computedVerticalScrollBarVisibility)return i=e._scrollWidth-e.$.itemsContainer.offsetWidth-n,e._refreshHorizontalScrollBarVisibility(i),"hidden"!==e.horizontalScrollBarVisibility&&(e.$.itemsInnerContainer.style.width="",e.$.itemsInnerContainer.style.width=Math.max(e.$.itemsContainer.offsetWidth-n,-n+e.__scrollWidth)+"px"),e.computedHorizontalScrollBarVisibility&&(("visible"!==e.horizontalScrollBarVisibility||0!==e.scrollWidth||"visible"===e.horizontalScrollBarVisibility)&&(e.__scrollHeight+=e._scrollView.hScrollBar.offsetHeight),e.scrollHeight=e.__scrollHeight,e._scrollView.hScrollBar.$.hasClass("bottom-corner")&&e._scrollView.hScrollBar.refresh()),void(e.isVirtualized&&e._recycle());i=e._scrollWidth-e.$.itemsContainer.offsetWidth-n,e._refreshHorizontalScrollBarVisibility(i),e.computedHorizontalScrollBarVisibility&&(e.scrollHeight=e._scrollHeight,e._refreshVerticalScrollBarVisibility(e.scrollHeight),e.computedVerticalScrollBarVisibility&&(i=e._scrollWidth-e.$.itemsContainer.offsetWidth-e._scrollView.vScrollBar.offsetWidth,e._refreshHorizontalScrollBarVisibility(i)),e._scrollView.vScrollBar.$.hasClass("bottom-corner")&&e._scrollView.vScrollBar.refresh(),e._scrollView.hScrollBar.$.hasClass("bottom-corner")&&e._scrollView.hScrollBar.refresh()),e.
1isVirtualized&&e._recycle();var a=/Trident|Edge/.test(navigator.userAgent);!e.isRefreshing&&a&&setTimeout(function(){e.isRefreshing=!0,e._refreshLayout(),e.isRefreshing=!1},50)}},{key:"_styleChangedHandler",value:function(){this._refreshLayout()}},{key:"_swipeLeftHandler",value:function(){}},{key:"_swipeRightHandler",value:function(){}},{key:"_refreshHorizontalScrollBarVisibility",value:function(e){var t=this;t.scrollWidth=e,t.computedHorizontalScrollBarVisibility?(t.scrollLeft=t._getScrollLeft(t.$.itemsContainer.scrollLeft,e),t.$itemsContainer.addClass("hscroll")):t.$itemsContainer.removeClass("hscroll")}},{key:"_refreshVerticalScrollBarVisibility",value:function(e){var t=this;t.scrollHeight=e,t.computedVerticalScrollBarVisibility?(t.$itemsContainer.addClass("vscroll"),t.$filterInputContainer.addClass("vscroll")):(t.$itemsContainer.removeClass("vscroll"),t.$filterInputContainer.removeClass("vscroll"))}},{key:"_validateTemplate",value:function(e,t){if(null!==t&&t){var n=this;return"content"in document.createElement("template")?null!==(t=document.getElementById(t))&&"content"in t?t:(n.error(n.localize("invalidTemplate",{elementType:n.nodeName.toLowerCase(),property:e})),void(n[e]=null)):(n.error(n.localize("htmlTemplateNotSuported",{elementType:n.nodeName.toLowerCase()})),void(n[e]=null))}}},{key:"_getItemIndexByPosition",value:function(e){var t=this;return function(n){var i=0,r=n.length-1;if(e<=0)return 0;if(n[n.length-1].top<=e)return n.length-1;for(;;){var a=Math.floor((i+r)/2),o=n[a];if(t._isItemInPosition(o,e))return a;o.top<e?i=a+1:o.top>e&&(r=a-1)}}(t.filterable&&t.$.filterInput.value.length>0?t._filteredItems:t._items)}},{key:"_isItemInPosition",value:function(e,t){return e.top<=t&&e.top+e.height>t}},{key:"isVirtualized",get:function(){var e=this;return e.virtualized&&e.dataSource&&e.dataSource.length>0}},{key:"_recycle",value:function(){var e=this;if(e._recyclingItems){var t=e._height;e._height||(t=e._height=e.$.itemsContainer.offsetHeight);var n=0,i=e.scrollTop,r=e._getItemIndexByPosition(i),a=e.filterable&&e.$.filterInput.value.length>0?e._filteredItems:e._items,o=a[r],s=o?o.top:0;if(e.$.itemsInnerContainer.style.left=-e.scrollLeft+"px",e.$.itemsInnerContainer.style.top=-i+s+"px",e.isUpdating++,r>=0)for(var l=a.length,c=r;c<l;c++){var u=a[c];if(0!==u.height){if(!(s+u.height>=i&&s<=i+t))break;var d=e._recyclingItems[n++];if(!d)break;d.setAttribute("aria-setsize",l),d.setAttribute("aria-posinset",c),d.context=document,d.dataItem=u,d.label=u.label,d.value=u.value,d.selected=u.selected,d._focused=u._focused,d.hidden=u.hidden,d.grouped=u.grouped,d.readonly=u.readonly,d.style.height=u.height+"px",e._alternateItem(d),d.title=u.title?u.title:"",d.displayMode=u.grouped?"plain":u.displayMode,e.scrollWidth>0&&(d.style.width=e.$.itemsInnerContainer.offsetWidth+e.scrollWidth+"px"),e.itemTemplate&&e._handleItemTemplate(e.itemTemplate)&&e._applyTemplate(d,!1),s+=u.height}}if(n<e._recyclingItems.length)for(var h=n;h<e._recyclingItems.length;h++){var f=e._recyclingItems[n++],p=f.context;f.context=document,f.hidden=!0,f.context=p}e.isUpdating--}}},{key:"_verticalScrollbarHandler",value:function(e){var t=this,n=e.detail.value;e&&e.stopPropagation&&e.stopPropagation(),t.isVirtualized?t._recycle():t.$.itemsContainer.scrollTop=n,t._updateTopVisibleIndex(),e.context.max!==e.context.value?e.context.min===e.context.value&&t.$.fireEvent("scrollTopReached"):t.$.fireEvent("scrollBottomReached")}},{key:"_applyAriaSelected",value:function(){for(var e=this,t=e.isVirtualized?e._recyclingItems:e._items,n=e.selectionMode,i=0;i<t.length;i++){var r=t[i];r.selected?r.setAttribute("aria-selected",!0):r.readonly||r.disabled||-1===["oneOrManyExtended","zeroOrMany","oneOrMany","checkBox"].indexOf(n)?r.removeAttribute("aria-selected"):r.setAttribute("aria-selected",!1)}}}],[{key:"properties",get:function(){return{allowDrag:{value:!1,type:"boolean"},allowDrop:{value:!1,type:"boolean"},alternationStart:{value:0,type:"int"},alternationEnd:{value:0,type:"int"},alternationCount:{value:0,type:"int"},autoSort:{value:!0,type:"boolean"},dataSource:{value:null,type:"any?",reflectToAttribute:!1},dragFeedbackFormatFunction:{value:null,type:"function?"},dragOffset:{value:[10,10],type:"array"},displayLoadingIndicator:{value:!1,type:"boolean"},displayMember:{value:"",type:"string"},shadowDomMode:{allowedValues:["light","shadow"],value:"shadow",type:"string"},dropAction:{value:"move",type:"string",allowedValues:["copy","move","none"]},editable:{value:!1,type:"boolean"},filterable:{value:!1,type:"boolean"},filterCallback:{value:null,type:"function?"},filterMode:{value:"containsIgnoreCase",allowedValues:["contains","containsIgnoreCase","doesNotContain","doesNotContainIgnoreCase","equals","equalsIgnoreCase","startsWith","startsWithIgnoreCase","endsWith","endsWithIgnoreCase","custom"],t
1ype:"string"},filterInputPlaceholder:{value:"",type:"string"},grouped:{value:!1,type:"boolean"},groupMember:{value:"",type:"string"},itemTemplate:{value:null,type:"any"},itemHeight:{value:null,type:"number?"},incrementalSearchDelay:{value:700,type:"number?"},incrementalSearchMode:{value:"startsWithIgnoreCase",allowedValues:["contains","containsIgnoreCase","doesNotContain","doesNotContainIgnoreCase","equals","equalsIgnoreCase","startsWith","startsWithIgnoreCase","endsWith","endsWithIgnoreCase"],type:"string"},itemMeasureMode:{value:"auto",allowedValues:["auto","precise"],type:"string"},loadingIndicatorPlaceholder:{value:"Loading...",type:"string"},loadingIndicatorPosition:{value:"center",allowedValues:["bottom","center","top"],type:"string"},messages:{extend:!0,value:{en:{overridingProperties:'{{elementType}}: Overriding properties {{property1}} and {{property2}} applied. The "{{property1}}" property is used by default.',invalidIndex:'{{elementType}}: "{{method}}" method accepts an index of type number or an Array of numbers.',indexOutOfBound:'{{elementType}}: Out of bound index/indexes in "{{method}}" method.',invalidItem:'{{elementType}}: "{{method}}" method accepts an object or an array of objects as it\'s second parameter.',invalidSettings:'{{elementType}}: "{{method}}" method accepts a string or an object as it\'s second parameter.'}},type:"object"},name:{value:"",type:"string"},placeholder:{value:"No Items",type:"string"},selectedIndexes:{value:[],type:"array"},selectedValues:{value:[],type:"array"},selectionMode:{value:"oneOrManyExtended",allowedValues:["none","oneOrManyExtended","zeroOrMany","oneOrMany","zeroOrOne","zeroAndOne","one","checkBox","radioButton"],type:"string"},selectionChangeAction:{value:"release",allowedValues:["press","release"],type:"string"},sorted:{value:!1,type:"boolean"},sortDirection:{value:"asc",type:"string"},topVisibleIndex:{value:-1,type:"int"},type:{value:"list",type:"string",defaultReflectToAttribute:!0,readonly:!0},valueMember:{value:"",type:"string"},virtualized:{value:!1,type:"boolean"}}}},{key:"requires",get:function(){return{"Smart.ScrollBar":"smart.scrollbar.js"}}},{key:"styleUrls",get:function(){return["smart.listbox.css","smart.dropdown.css","smart.scrollbar.css"]}},{key:"listeners",get:function(){return{focus:"_focusHandler",blur:"_blurHandler","container.wheel":"_mouseWheelHandler","editInput.change":"_editInputEventHandler","editInput.blur":"_editInputEventHandler","editInput.keydown":"_editInputEventHandler","horizontalScrollBar.change":"_horizontalScrollbarHandler","itemsInnerContainer.down":"_downHandler","itemsInnerContainer.dblclick":"_dblclickEventHandler","itemsInnerContainer.move":"_itemsContainerMoveHandler","itemsContainer.mouseleave":"_mouseLeaveHandler","itemsInnerContainer.touchmove":"_touchmoveHandler","itemsInnerContainer.touchstart":"_touchstartHandler","document.move":"_moveHandler",keydown:"_keyDownHandler",keyup:"_keyUpHandler",resize:"_resizeHandler",selectstart:"_selectStartHandler",styleChanged:"_styleChangedHandler",swipeleft:"_swipeLeftHandler",swiperight:"_swipeRightHandler",touchmove:"_overriddenHandler",touchstart:"_overriddenHandler","verticalScrollBar.change":"_verticalScrollbarHandler"}}}]),n}())},2066:function(){Smart("smart-number-input",function(e){_inherits(n,Smart.Input);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="inputContainer" role="presentation"><input class="smart-input" id=\'input\' readonly=\'[[readonly]]\' placeholder=\'[[placeholder]]\' type=\'[[type]]\' name=\'[[name]]\' disabled=\'[[disabled]]\' aria-label="[[placeholder]]" /><span class="smart-hidden smart-hint" id="span">[[hint]]</span><div id="dropDownButton" tabindex=-1 class="nav smart-drop-down-button" role="button" aria-label="Toggle popup"></div></div>'}},{key:"getFormattedValue",value:function(e,t){return null===t?parseFloat(e):null===e?"":("{}"===JSON.stringify(t)&&(t={style:"decimal"}),Smart.Utilities.Core.Browser.Safari&&"unit"===t.style&&(t.style="decimal"),new Intl.NumberFormat(this.locale,t).format(""+e))}},{key:"setValue",value:function(e){this.value=e}},{key:"getValue",value:function(){return this.value}},{key:"render",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"render",this).call(this),e.context=e,e.classList.add("smart-input");var t=e.$.input,i=document.createElement("div"),r=document.createElement("div");t.value=null!==e.value?e.getFormattedValue(Math.min(Math.max(e.min,e.value),e.max),e.numberFormat):"",i.tabIndex=r.tabIndex=-1,t.classList.add("smart-input"),i.classList.add("up"),r.classList.add("down");var a=function(n){if(n&&n.ctrlKey&&"ArrowDown"===n.key)r.click();else if(n&&n.ctrlKey&&"ArrowUp"===n.key)i.click();else if("keydown"!==n.type);else{var a=t.value.toString(),l=1.1;
1l=l.toLocaleString(e.locale).substring(1,2);var c=a.indexOf(l);if(n.keyCode>=65&&n.keyCode<=90){if(n.ctrlKey)return;return n.stopPropagation(),void n.preventDefault()}if(" "===n.key)return n.stopPropagation(),void n.preventDefault();if("-"===n.key){var u=o();return s(-u),n.stopPropagation(),void n.preventDefault()}switch(n.key){case"'":case'"':case"/":case"\\":case"`":case"=":case"(":case")":return n.stopPropagation(),void n.preventDefault()}if(","===n.key&&","!==l||"."===n.key&&"."!==l)return n.stopPropagation(),void n.preventDefault();var d=_toConsumableArray(a),h=d[t.selectionStart];if((h===l||void 0===h||-1===c)&&n.keyCode>=48&&n.keyCode<=57&&"0"===d[t.selectionStart-1]){var f=e.getFormattedValue(o(),e.numberFormat),p=t.selectionStart-1;(c>=0||-1===c&&0===o())&&t.value.length===f.length&&(t.value=f.substring(0,t.selectionStart-1)+f.substring(t.selectionStart),t.selectionStart=t.selectionEnd=p)}if(n.key===l){if(-1===e.getFormattedValue(o(),e.numberFormat).indexOf(l))return n.stopPropagation(),void n.preventDefault();if(c>=0)return n.stopPropagation(),n.preventDefault(),void(t.selectionStart=t.selectionEnd=c+1)}else if(n.keyCode>=48&&n.keyCode<=57&&t.selectionStart<c&&t.selectionEnd-t.selectionStart<=1){if(isNaN(parseInt(h)))for(var m=t.selectionStart;m<d.length;m++){var g=parseInt(d[m]);if(!isNaN(g)){t.selectionStart=t.selectionEnd=m;break}}}else{if(c>=0&&t.selectionStart>c&&n.keyCode>=48&&n.keyCode<=57){var v=t.selectionStart,y=e.getFormattedValue(o(),e.numberFormat),b=0;if(y&&-1!==y.indexOf(l))for(var _=y.indexOf(l);_<y.length;_++)!isNaN(parseInt(y.substring(_,_+1)))&&b++;var w=t.value.toString();return(w=w.substring(0,t.selectionStart)+n.key.toString()+w.substring(t.selectionStart+1)).substring(c+1,c+1+b).length<=b&&t.selectionStart<=c+b&&(t.value=w,t.selectionStart=t.selectionEnd=v+1),e._oldValue=e.getValue(),n.stopPropagation(),void n.preventDefault()}if("Backspace"===n.key||"Delete"===n.key){var k=t.selectionStart,C=c>=0&&t.selectionStart>c,x=e.getFormattedValue(o(),e.numberFormat),S=0;if(x&&-1!==x.indexOf(l))for(var M=x.indexOf(l);M<x.length;M++)!isNaN(parseInt(x.substring(M,M+1)))&&S++;var D=t.value.toString(),T=!1;if("Delete"===n.key&&t.selectionStart<=c+S){var E=(D=D.substring(0,t.selectionStart)+"0"+D.substring(t.selectionStart+1)).substring(c+1,c+1+S);-1===D.indexOf(l)&&c>=0?(t.selectionStart=t.selectionEnd=k+1,T=!0):C&&E.length<=S&&(t.value=D,t.selectionStart=t.selectionEnd=k+1,T=!0)}else if("Backspace"===n.key){var A=(D=D.substring(0,t.selectionStart-1)+"0"+D.substring(t.selectionStart)).substring(c+1,c+1+S);-1===D.indexOf(l)&&c>=0?(t.selectionStart=t.selectionEnd=k-1,T=!0):C&&A.length<=S&&(t.value=D,t.selectionStart=t.selectionEnd=k-1,T=!0)}return e._oldValue=e.getValue(),void(T&&(n.stopPropagation(),n.preventDefault()))}}}};e.$.dropDownButton.appendChild(i),e.$.dropDownButton.appendChild(r),e.dropDownButtonPosition="right";var o=function(){var n=t.value;if(""===n)return null;var i=1.1;i=i.toLocaleString(e.locale).substring(1,2);var r=!1;n.indexOf("(")>=0&&(r=!0,n=n.replace("(","").replace(")",""));for(var a=_toConsumableArray(n),o="",s=0;s<a.length;s++){var l=a[s];switch(l===i&&(o+=l),l){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":case"-":o+=l}}n=o=o.replace(i,".");var c=parseFloat(n);return e.numberFormat&&e.numberFormat.style&&"percent"===e.numberFormat.style&&(c/=100),r&&(c=-c),isNaN(c)||c===1/0||c===-1/0?0:(c=Math.min(Math.max(e.min,c),e.max),e._number=c,c)};e.getValue=o;var s=function n(i){var r=parseFloat(i);if("-"===i)return n(-o()),void(e._preventFocus||(t.selectionStart=t.selectionEnd=1,t.selectionEnd=t.value.length));if(!isNaN(r)){if(e.numberFormat){var a=parseFloat(i),s=e.getFormattedValue(a,e.numberFormat),l=isNaN(parseFloat(s.substring(0,1)))?1:0,c=i>0?0:1;t.value=s,e._preventFocus||(t.selectionStart=t.selectionEnd=1+l+c),e._number=a}else t.value=r,e._number=r;"number"==typeof i&&(e._preventFocus||(t.selectionStart=0,t.selectionEnd=t.value.length)),e.set("value",""+e._number,!1)}};e.setValue=s,this._attach=function(){t.addEventListener("keydown",a),i.onkeydown=a,r.onkeydown=a;var n=function(t){return e.numberFormat?e.getFormattedValue(t,e.numberFormat):t},s=function(e){e.interval&&clearInterval(e.interval),e.timer&&clearTimeout(e.timer),e.interval=e.timer=null,e.removeAttribute("active")},l=function(t){t.onmouseleave=t.onmouseup=function(){s(t)},t.onpointerdown=function(){e._captured=!0,t.timer=setTimeout(function(){t.interval=setInterval(function(){t.click(),t.setAttribute("active","")},50)},100)}};i.onclick=function(){var r=o();if(e._captured||s(i),!isNaN(r)&&(r<e.max||""===e.max)){t.value=n(Math.min(e.max,r+e.step));var a=e.getValue();e.value=a,e.$.fireEvent("change",{value:o(),oldValue:r})}},r.onclick=function(){var i=o();if(e._captured||s(r),!isNaN(i)&&(i>e.min||""===e.min)){t.value=n(Math.max(e.min,i-e.step));var a=e.getValue();e.value=a,e.$.fireEvent("change",{value:o(),oldValue:i})}},l(i),l(r)},e._detach=function(){t.removeEventListener("keydown",a),i.onclick=r.onclick=null,i.onkeydown=r.onkeydown=null},e.setValue(e.getValue(),e.numberFormat),e.context=document}},{key:"_focusHandler",value:function(){_get(_getPrototypeOf(n.prototype),"_focusHandler",this).call(this),this._oldValue=this.getValue()}},{key:"_keyDownHandler",value:function(){}},{key:"_keyUpHandler",value:function(e){var t=this;switch(t._oldValue||(t._oldValue=0),e.keyCode){case 40:case 38:case 16:case 17:case 18:case 9:case 13:case 27:e.stopPropagation(),e.preventDefault();break;default:var n=t.getValue();t.value=n,t.$.fireEvent("changing",{value:n,oldValue:t._oldValue})}}},{key:"_changeHandler",value:function(e){var t=this;e.stopPropagation(),t._oldValue||(t._oldValue=0),t._oldValue=t.getFormattedValue(t._oldValue,null);var n=t.getValue();t.value=n,t.$.fireEvent("change",{value:n,oldValue:t._oldValue}),t._oldValue=t.getValue()}},{key:"_blurHandler",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"_blurHandler",this).call(this),e._preventFocus=!0,e.setValue(e.getValue(),e.numberFormat),e._preventFocus=!1}},{key:"attached",value:function(){this._attach()}},{key:"detached",value:function(){this._detach()}},{key:"_documentUpHandler",value:function(e){this._captured=!1,_get(_getPrototypeOf(n.prototype),"_documentUpHandler",this).call(this,e)}}
1,{key:"propertyChangedHandler",value:function(e,t,i){var r=this;_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i),"locale"===e&&r.setValue(r._number||r.getValue(),r.numberFormat),"value"!==e&&"numberFormat"!==e&&"max"!==e&&"min"!==e||r.setValue(r.getValue(),r.numberFormat)}}],[{key:"properties",get:function(){return{numberFormat:{value:{},type:"any"},min:{value:-9999999999,type:"number"},max:{value:9999999999,type:"number"},step:{value:1,type:"number"},value:{value:0,type:"any"}}}},{key:"listeners",get:function(){return{"input.change":"_changeHandler","input.keydown":"_keyDownHandler","input.keyup":"_keyUpHandler"}}}]),n}())},5839:function(){Smart("smart-base-progress-bar",function(e){_inherits(n,Smart.BaseElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"render",value:function(){var e=this;e.$.label.id||(e.$.label.id=e.id+"Label"),e.setAttribute("role","progressbar"),e.setAttribute("aria-labelledby",e.$.label.id),e.setAttribute("aria-valuemin",e.min),e.setAttribute("aria-valuemax",e.max),null===e.value||e.indeterminate||(e.$.value.style.transition="none"),e._updateProgress(),requestAnimationFrame(function(){return e.$.value.style.transition=""}),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;r._updateProgress(),"value"===e?r.$.fireEvent("change",{value:i,oldValue:t,changeType:"api"}):"min"!==e&&"max"!==e||r.setAttribute("aria-value"+e,i)}},{key:"_updateProgress",value:function(){var e=this,t=e.value;null===t||e.indeterminate?e.removeAttribute("aria-valuenow"):e.setAttribute("aria-valuenow",t)}},{key:"_percentageValue",get:function(){var e=this,t=Math.max(e.min,e.max),n=Math.min(e.min,e.max);return(Math.min(t,Math.max(n,e.value))-n)/(t-n)}}],[{key:"properties",get:function(){return{indeterminate:{value:!1,type:"boolean"},inverted:{value:!1,type:"boolean"},formatFunction:{value:null,type:"function"},max:{value:100,type:"number"},min:{value:0,type:"number"},showProgressValue:{value:!1,type:"boolean"},value:{value:0,type:"number?"}}}},{key:"styleUrls",get:function(){return["smart.progressbar.css"]}}]),n}()),Smart("smart-circular-progress-bar",function(e){_inherits(i,Smart.BaseProgressBar);var t,n=_createSuper(i);function i(){return _classCallCheck(this,i),n.apply(this,arguments)}return _createClass(i,[{key:"template",value:function(){return'<div id="container" role="presentation">\n <svg width="100%" height="100%" viewPort="0 0 100 100" viewBox="0 0 100 100" role="presentation" aria-hidden="true">\n <circle id="value" class="smart-value-path" r="50" cx="50" cy="50" transform="rotate(270 50 50)"></circle>\n <circle id="value" class="smart-value" r="50" cx="50" cy="50" transform="rotate(270 50 50)"></circle>\n </svg>\n <div class="smart-label-container" role="presentation">\n <content></content>\n <span id="label" class="smart-label"></span>\n </div>\n </div>'}},{key:"render",value:function(){var e=this;e.$.container.style.width=e.$.container.style.height=Math.min(e.offsetWidth,e.offsetHeight)+"px",e.$.hasClass("echo-animation")&&(e.value=e.max,e._updateProgress()),_get(_getPrototypeOf(i.prototype),"render",this).call(this)}},{key:"_resizeHandler",value:function(){this.refresh()}},{key:"refresh",value:function(){var e=this;e.$.container.style.width=e.$.container.style.height=Math.min(e.offsetWidth,e.offsetHeight)+"px"}},{key:"_updateProgress",value:(t=_asyncToGenerator(regeneratorRuntime.mark(function e(){var t,n,r,a,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(_get(_getPrototypeOf(i.prototype),"_updateProgress",this).call(this),n=(t=this).indeterminate?100*Math.PI:100*Math.PI-t._percentageValue*Math.PI*100,r=!!document.documentMode,a=!r&&!!window.StyleMedia,!t.showProgressValue){e.next=12;break}
1if(o=parseInt(100*t._percentageValue),t.$.label.innerHTML=o+"%",e.t0=t.formatFunction,!e.t0){e.next=10;break}return e.next=9,t.formatFunction(o);case 9:t.$.label.innerHTML=e.sent;case 10:e.next=13;break;case 12:t.$.label.innerHTML="";case 13:if(!r&&!a){e.next=15;break}return e.abrupt("return",null===t.value||t.indeterminate?(t.$.value.style.strokeDashoffset="",void t.$.value.setAttribute("class","smart-value smart-value-animation-ms")):(t.$.value.setAttribute("class","smart-value"),void(t.$.value.style.strokeDashoffset=t.inverted&&!t.rightToLeft||!t.inverted&&t.rightToLeft?-n:n)));case 15:t.$.value.style.strokeDashoffset=t.inverted&&!t.rightToLeft||!t.inverted&&t.rightToLeft?-n:n,null===t.value||t.indeterminate?t.$value.addClass("smart-value-animation"):t.$value.removeClass("smart-value-animation");case 16:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})}],[{key:"listeners",get:function(){return{resize:"_resizeHandler"}}}]),i}()),Smart("smart-progress-bar",function(e){_inherits(i,Smart.BaseProgressBar);var t,n=_createSuper(i);function i(){return _classCallCheck(this,i),n.apply(this,arguments)}return _createClass(i,[{key:"template",value:function(){return'<div role="presentation">\n <div id="value" class="smart-value"></div>\n <div id="label" class="smart-label"></div>\n </div>'}},{key:"_updateProgress",value:(t=_asyncToGenerator(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(_get(_getPrototypeOf(i.prototype),"_updateProgress",this).call(this),!(t=this).showProgressValue){e.next=12;break}if(n=parseInt(100*t._percentageValue),t.$.label.innerHTML=n+"%",e.t0=t.formatFunction,!e.t0){e.next=10;break}return e.next=9,t.formatFunction(n);case 9:t.$.label.innerHTML=e.sent;case 10:e.next=13;break;case 12:t.$.label.innerHTML="";case 13:null===t.value||t.indeterminate?t.$value.addClass("smart-value-animation"):t.$value.removeClass("smart-value-animation"),t.$.value.style.transform="horizontal"===t.orientation?"scaleX("+t._percentageValue+")":"scaleY("+t._percentageValue+")";case 14:case"end":return e.stop()}},e,this)})),function(){return t.apply(this,arguments)})}],[{key:"properties",get:function(){return{orientation:{value:"horizontal",allowedValues:["horizontal","vertical"],type:"string"}}}}]),i}())},8649:function(){Smart("smart-radio-button",function(e){_inherits(n,Smart.ToggleButton);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return"<div id='container' class='smart-container'>\n <div class ='smart-overlay'></div>\n <span id='radioButtonInput' class ='smart-input'></span>\n <span id='radioButtonLabel' inner-h-t-m-l='[[innerHTML]]' class ='smart-label'><content></content></span>\n <input id='hiddenInput' class ='smart-hidden-input' type='hidden'>\n </div>"}},{key:"_radioMouseEnterHandler",value:function(){this.$.setAttributeValue("hover",!0)}},{key:"_radioMouseLeaveHandler",value:function(){this.$.setAttributeValue("hover",!1)}},{key:"_focusHandler",value:function(){this.$.setAttributeValue("focus",!0)}},{key:"_blurHandler",value:function(){this.$.setAttributeValue("focus",!1)}},{key:"_mouseEnterHandler",value:function(){this.$.setAttributeValue("hover",!0)}},{key:"_mouseLeaveHandler",value:function(){this.$.setAttributeValue("hover",!1)}},{key:"ready",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ready",this).call(this),e.classList.add("smart-toggle-box"),e._handleMultipleCheckedInstances(),e._updateHidenInputNameAndValue()}},{key:"_downHandler",value:function(e){var t=this,n=t.enableShadowDOM?e.originalEvent.composedPath()[0]:e.originalEvent.target;if(!(t.disabled||t.readonly||"input"===t.checkMode&&n!==t.$.radioButtonInput||"label"===t.checkMode&&n!==t.$.radioButtonLabel)){if(t.$.setAttributeValue("active",!0),t.hasRippleAnimation){var i=t.$.radioButtonInput.getBoundingClientRect(),r=window.scrollX||window.pageXOffset,a=window.scrollY||window.pageYOffset;Smart.Utilities.Animation.Ripple.animate(t.$.radioButtonInput,i.left+i.width/2+r,i.top+i.height/2+a)}t._preventAction?t._preventAction=!1:("release"!==t.clickMode&&"pressAndRelease"!==t.clickMode||(t._pressed=!0),"press"!==t.clickMode&&"pressAndRelease"!==t.clickMode||("pressA
1ndRelease"===t.clickMode&&(t._checkedBeforeChange=""===t.groupName?t.parentNode.querySelector("smart-radio-button[checked]"):document.querySelector('smart-radio-button[group-name="'+t.groupName+'"][checked]')),t._handleMouseInteraction()))}}},{key:"_elementMouseEnterHandler",value:function(){var e=this;"hover"!==e.clickMode||e.disabled||e.readonly||e._handleMouseInteraction()}},{key:"_documentUpHandler",value:function(e){var t=this,n=t.enableShadowDOM?e.originalEvent.composedPath()[0]:e.originalEvent.target;!t._pressed||t.disabled||t.readonly||"input"===t.checkMode&&n!==t.$.radioButtonInput||"label"===t.checkMode&&n!==t.$.radioButtonLabel||"pointercancel"===e.originalEvent.type||("release"===t.clickMode?t._handleMouseInteraction():(null===t._checkedBeforeChange?(t.$.fireEvent("change",{value:!1,oldValue:!0,changeType:"pointer"}),t.$.fireEvent("uncheckValue",{changeType:"pointer"}),t.checked=!1):t._checkedBeforeChange._changeCheckState("pointer"),t.focus(),t._updateHidenInputNameAndValue()),t.$.setAttributeValue("active",!1),t._pressed=!1)}},{key:"_handleMouseInteraction",value:function(){var e=this;e._handleTextSelection(),e._changeCheckState("pointer"),e.focus(),e._updateHidenInputNameAndValue()}},{key:"_handleMultipleCheckedInstances",value:function(){var e=Array.from(document.querySelectorAll('smart-radio-button[group-name="'+this.groupName+'"][checked]')),t=Array.from(document.querySelectorAll('smart-ui-radio-button[group-name="'+this.groupName+'"][checked]')),n=e.length+t.length;n<2||e.concat.apply(e,t).forEach(function(e,t){return t<n-1&&(e.checked=!1)})}},{key:"_changeCheckState",value:function(e){var t,n=this,i=document.querySelectorAll('smart-radio-button[group-name="'+n.groupName+'"]'),r=document.querySelectorAll('smart-ui-radio-button[group-name="'+n.groupName+'"]'),a=(t=Array.from(i)).concat.apply(t,_toConsumableArray(r));if(!0===n.checked&&"api"===e||!1===n.checked)if(a.length>0)n._changeCheckStateInGroup(a,e);else{var o,s=n.parentNode;n.getRootNode().host?(i=(s=n.getRootNode().host.parentNode).querySelectorAll("smart-radio-button:not([group-name])"),r=s.querySelectorAll("smart-ui-radio-button:not([group-name])"),a=(o=Array.from(i)).concat.apply(o,_toConsumableArray(r))):a=s.querySelectorAll("smart-radio-button:not([group-name])"),n._changeCheckStateInGroup(a,e)}}},{key:"_changeCheckStateInGroup",value:function(e,t){for(var n=this,i=n.getRootNode().host?n.getRootNode().host:n,r=0;r<e.length;r++)e[r]._isUpdating=!0,e[r]===i?i.checked=!0:e[r].checked&&(e[r].checked=!1),e[r]._isUpdating=!1;i.nativeElement?(i.nativeElement.$.fireEvent("change",{value:!0,oldValue:!1,changeType:t}),i.nativeElement.$.fireEvent("checkValue",{changeType:t})):(i.$.fireEvent("change",{value:!0,oldValue:!1,changeType:t}),i.$.fireEvent("checkValue",{changeType:t}))}},{key:"propertyChangedHandler",value:function(e,t,i){var r=this;switch(e){case"value":r._updateHidenInputNameAndValue();break;case"checked":r._isUpdating||r._changeCheckState("api"),r._updateHidenInputNameAndValue();break;case"name":r._updateHidenInputName();break;default:_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i)}}}],[{key:"properties",get:function(){return{checkMode:{value:"both",allowedValues:["both","input","label"],type:"string"},type:{value:"radio",type:"string",defaultReflectToAttribute:!0,readonly:!0},groupName:{value:"",type:"string"}}}},{key:"listeners",get:function(){return{down:"_downHandler","document.up":"_documentUpHandler",mouseenter:"_elementMouseEnterHandler","radioButtonInput.mouseenter":"_radioMouseEnterHandler","radioButtonInput.mouseleave":"_radioMouseLeaveHandler",focu
1s:"_focusHandler",blur:"_blurHandler"}}},{key:"styleUrls",get:function(){return["smart.toggle.css"]}}]),n}())},9135:function(){Smart("smart-scroll-bar",function(e){_inherits(n,Smart.BaseElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="container" class="smart-container" role="presentation">\n <div id="nearButton" class="smart-scroll-button smart-arrow-left" role="presentation" aria-hidden="true"></div>\n <div id="track" class="smart-track" role="presentation">\n <div id="thumb" class="smart-thumb" role="presentation"></div>\n </div>\n <div id="farButton" class="smart-scroll-button smart-arrow-right" role="presentation" aria-hidden="true"></div>\n </div>'}},{key:"_updateInBoundsFlag",value:function(e){var t=e.target;t._isPointerInBounds=!0,-1!==e.type.indexOf("leave")&&(t._isPointerInBounds=!1),1!==("buttons"in e?e.buttons:e.which)&&this._stopRepeat(e)}},{key:"_startRepeat",value:function(e){var t=this;if(!t.disabled){var n=e.target;n._initialTimer||(n._initialTimer=setTimeout(function(){n._repeatTimer=setInterval(function(){n._isPointerInBounds&&n.$.fireEvent("click",{buttons:"buttons"in e?e.buttons:e.which,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY,screenX:e.screenX,screenY:e.screenY})},t.clickRepeatDelay)},3*t.clickRepeatDelay))}}},{key:"_stopRepeat",value:function(e){if(!this.disabled){var t=e.target;t._repeatTimer&&(clearInterval(t._repeatTimer),t._repeatTimer=null),t._initialTimer&&(clearTimeout(t._initialTimer),t._initialTimer=null)}}},{key:"_calculateThumbSize",value:function(e){var t=this,n=t.max-t.min,i=0;return n>=1&&("horizontal"===t.orientation?t.$.track.offsetWidth>10:t.$.track.offsetHeight>10)?(i=e/(n+e)*e,t.$.thumb.className.indexOf("smart-hidden")>=0&&t.$thumb.removeClass("smart-hidden")):t.$thumb.addClass("smart-hidden"),Math.max(10,Math.min(i,e))}},{key:"_dragStartHandler",value:function(e){var t=this;t.disabled||(t.thumbCapture=!0,t.dragStartX=e.clientX,t.dragStartY=e.clientY,t.dragStartValue=t.value,e.stopPropagation(),e.preventDefault())}},{key:"_dragHandler",value:function(e){var t=this;if(!0===t.thumbCapture){t._isThumbDragged=!0;var n=(t.max-t.min)/(t.scrollBarSize-t.thumbSize),i="horizontal"===t.orientation?(e.clientX-t.dragStartX)*n:(e.clientY-t.dragStartY)*n,r=i;t.rightToLeft&&"horizontal"===t.orientation&&(r=-i),t._updateValue(t.dragStartValue+r),e.stopPropagation(),e.preventDefault(),e.originalEvent&&(e.originalEvent.stopPropagation(),e.originalEvent.preventDefault())}}},{key:"_dragEndHandler",value:function(e){var t=this;t._trackDownTimer&&(clearInterval(t._trackDownTimer),t._trackDownTimer=null),t.thumbCapture&&(t.thumbCapture=!1,t._isThumbDragged=!1,"switchWhenReleased"===t.mechanicalAction?t._updateValue(t.dragStartValue,t.value):"switchUntilReleased"===this.mechanicalAction&&t._updateValue(t.dragStartValue),e.preventDefault(),e.stopPropagation(),e.originalEvent.preventDefault(),e.originalEvent.stopPropagation())}},{key:"_farButtonClickHandler",value:function(){var e=this;if(!e.disabled){var t=e.value;e._updateValue(e.value+("horizontal"===e.orientation&&e.rightToLeft?-1:1)*e.step),"switchUntilReleased"===e.mechanicalAction&&e._updateValue(t)}}},{key:"_nearButtonClickHandler",value:function(){var e=this;if(!e.disabled){var t=e.value;e._updateValue(e.value-("horizontal"===e.orientation&&e.rightToLeft?-1:1)*e.step),"switchUntilReleased"===e.mechanicalAction&&e._updateValue(t)}}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r=this;switch(e){case"min":case"max":case"orientation":case"showButtons":r._layout(),"min"===e?r.setAttribute("aria-valuemin",i):"max"===e?r.setAttribute("aria-valuemax",i):"orientation"===e&&r.setAttribute("aria-orientation",i);break;case"value":r._updateValue(t,i);break;default:r._layout()}}},{key:"render",value:function(){var e=this;e.setAttribute("role","scrollbar"),e.setAttribute("aria-orientation",e.orientation),e.setAttribute("aria-valuemin",e.min),e.setAttribute("aria-valuemax",e.max),e.setAttribute("aria-valuenow",e.value),e._layout(),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"_resizeHandler",value:function(){this._layout()}},{key:"refresh",value:function(){this._layout()}},{key:"beginUpdate",value:function(){this._isUpdating=!0}},{key:"endUpdate",value:function(){this._isUpdating=!1,this.refreshValue()}},{key:"refreshValue",value:function(){var e=this;
1e._layout(),e._updateValue(e.value)}},{key:"_layout",value:function(){var e=this;e._isUpdating||(e.scrollBarSize="horizontal"===e.orientation?e.$.track.offsetWidth:e.$.track.offsetHeight,e.thumbSize=e._calculateThumbSize(e.scrollBarSize),"horizontal"===e.orientation&&e.$.thumb.style.width!==e.thumbSize+"px"?e.$.thumb.style.width=e.thumbSize+"px":"vertical"===e.orientation&&e.$.thumb.style.height!==e.thumbSize+"px"&&(e.$.thumb.style.height=e.thumbSize+"px"),"horizontal"===e.orientation?(e.$.nearButton.classList.contains("smart-arrow-up")&&e.$.nearButton.classList.remove("smart-arrow-up"),e.$.farButton.classList.contains("smart-arrow-down")&&e.$.farButton.classList.remove("smart-arrow-down"),e.$.nearButton.classList.contains("smart-arrow-left")||e.$.nearButton.classList.add("smart-arrow-left"),e.$.farButton.classList.contains("smart-arrow-right")||e.$.farButton.classList.add("smart-arrow-right")):(e.$.nearButton.classList.contains("smart-arrow-left")&&e.$.nearButton.classList.remove("smart-arrow-left"),e.$.farButton.classList.contains("smart-arrow-right")&&e.$.farButton.classList.remove("smart-arrow-right"),e.$.nearButton.classList.contains("smart-arrow-up")||e.$.nearButton.classList.add("smart-arrow-up"),e.$.farButton.classList.contains("smart-arrow-down")||e.$.farButton.classList.add("smart-arrow-down")),e._updateThumbPosition(),(e.value>e.max||e.value<e.min)&&e._updateValue(e.value,e.value>e.max?e.max:e.min))}},{key:"_selectStartHandler",value:function(e){this.thumbCapture&&e.preventDefault()}},{key:"_trackDownHandler",value:function(e){var t=this;e.target===t.$.track&&(t._trackDownTimer&&clearInterval(t._trackDownTimer),t.thumbCapture||(t._trackDownTimer=setInterval(function(){t._trackClickHandler(e)},t.clickRepeatDelay),e.stopPropagation(),e.preventDefault()))}},{key:"_trackClickHandler",value:function(e){var t=this;if(!t.disabled){if(t._isThumbDragged)return clearInterval(t._trackDownTimer),void(t._trackDownTimer=null);var n=t.$.thumb.getBoundingClientRect(),i=e.pageX-window.pageXOffset,r=e.pageY-window.pageYOffset,a=(t.rightToLeft?-1:1)*t.value;"horizontal"===t.orientation?i>(t._isThumbDragged?t.dragStartX:n.right)?t._updateValue(t.value+(t.rightToLeft?-1:1)*t.largeStep):i<(t._isThumbDragged?t.dragStartX:n.left)&&t._updateValue(t.value-(t.rightToLeft?-1:1)*t.largeStep):r>(t._isThumbDragged?t.dragStartY:n.bottom)?t._updateValue(t.value+t.largeStep):r<(t._isThumbDragged?t.dragStartY:n.top)&&t._updateValue(t.value-t.largeStep),"switchUntilReleased"===t.mechanicalAction&&t._updateValue(a)}}},{key:"_trackMoveHandler",value:function(e){"touchmove"===e.originalEvent.type&&e.originalEvent.preventDefault()}},{key:"_updateValue",value:function(e,t){var n=this;if(!n._isUpdating&&(1===arguments.length&&(t=e,e=n.value),(void 0===t||isNaN(t))&&(t=n.min),t>n.max&&(t=n.max),t<n.min&&(t=n.min),n.value=t,e!==t)){if(n.setAttribute("aria-valuenow",t),n._updateThumbPosition(),n.thumbCapture&&"switchWhenReleased"===n.mechanicalAction)return;if(n.onChange)return void n.onChange({value:n.value,oldValue:e,min:n.min,max:n.max,context:n});n.$.fireEvent("change",{value:n.value,oldValue:e,min:n.min,max:n.max})}}},{key:"_updateThumbPosition",value:function(){var e=this,t="horizontal"===e.orientation?e.$.track.offsetWidth:e.$.track.offsetHeight,n=e._calculateThumbSize(t),i=(t-n)/(e.max-e.min)*(e.value-e.min);e.rightToLeft&&"horizontal"===e.orientation&&(i=(t-n)/(e.max-e.min)*(e.max-e.value-e.min)),i=Math.min(t-n,Math.max(0,i)),"vertical"===e.orientation&&e.$.thumb.style.top!==i+"px"?e.$.thumb.style.top=i+"px":"horizontal"===e.orientation&&e.$.thumb.style.left!==i+"px"&&(e.$.thumb.style.left=i+"px")}}],[{key:"properties",get:function(){return{clickRepeatDelay:{type:"integer",value:50},largeStep:{type:"integer",value:100},min:{type:"integer",value:0},max:{type:"integer",value:1e3},mechanicalAction:{value:"switchWhileDragging",allowedValues:["switchUntilReleased","switchWhenReleased","switchWhileDragging"],type:"string"},orientation:{type:"string",value:"horizontal",allowedValues:["horizontal","vertical"]},step:{type:"integer",value:10},showButtons:{type:"boolean",value:!0,defaultReflectToAttribute:!0},value:{type:"integer",value:0}}}},{key:"styleUrls",get:function(){return["smart.scrollbar.css"]}},{key:"listeners",get:function(){return{"nearButton.click":"_nearButtonClickHandler","nearButton.down":"_startRepeat","nearButton.up":"_stopRepeat","nearButton.pointerenter":"_updateInBoundsFlag","nearButton.pointerleave":"_updateInBoundsFlag","farButton.click":"_farButtonClickHandler","farButton.down":"_startRepeat","farButton.up":"_stopRepeat","farButton.pointerenter":"_updateInBoundsFlag","farButton.pointerleave":"_updateInBoundsFlag","track.down":"_trackDownHandler","track.click":"_trackClickHandler","track.move":"_trackMoveHandler","thumb.down":"_dragStartHandler","document.move":"_dragHandler","document.up":"_dragEndHandler",up:"_dragEndHandler","document.selectstart":"_selectStartHandler",resize:"_resizeHandler"}}}]),n}())},4595:function(){Smart("smart-toast-item",function(e){_inherits(n,Smart.ContentElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="container" role="presentation">\n <div class="smart-toast-item-header">
1\n <span class="smart-toast-item-close-button" role="button" aria-label="Close"></span>\n </div>\n <div class="smart-toast-item-container" id="itemContainer">\n <span class="smart-toast-item-icon" role="presentation"></span>\n <span class="smart-toast-item-content" id="itemContent" inner-h-t-m-l="[[innerHTML]]">\n <content></content>\n </span>\n </div>\n </div>'}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i)}},{key:"render",value:function(){var e=this,t=e.iconClass;e.setAttribute("role","alert"),e.itemClass&&(e.className+=" "+e.itemClass),e.$.itemContainer.firstElementChild.className+=" "+(t||"default"),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"appendChild",value:function(e){var t=this;if(e){if(!t.isCompleted||e instanceof HTMLElement&&e.classList.contains("smart-resize-trigger-container")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}t.$.itemContent.appendChild(e)}else t.error(t.localize("invalidNode",{elementType:t.nodeName.toLowerCase(),method:"appendChild",node:"node"}))}},{key:"refresh",value:function(){}},{key:"insertBefore",value:function(e,t){var n=this;if(e){if(!n.isCompleted||e instanceof HTMLElement&&e.classList.contains("smart-resize-trigger-container")){var i=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.insertBefore.apply(n,i.concat(Array.prototype.slice.call(arguments)))}n.$.itemContent.insertBefore(e,t||null)}else n.error(n.localize("invalidNode",{elementType:n.nodeName.toLowerCase(),method:"insertBefore",node:"node"}))}},{key:"removeChild",value:function(e){var t=this;if(e){if(!t.isCompleted||e instanceof HTMLElement&&e.classList.contains("smart-resize-trigger-container")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}t.$.itemContent.removeChild(e)}else t.error(t.localize("invalidNode",{elementType:t.nodeName.toLowerCase(),method:"removeChild",node:"node"}))}}],[{key:"properties",get:function(){return{showCloseButton:{value:!1,type:"boolean"},iconClass:{value:null,type:"string?"},itemClass:{value:null,type:"string?"},opened:{value:!1,type:"boolean"}}}},{key:"styleUrls",get:function(){return["smart.toast.css"]}}]),n}()),Smart("smart-toast",function(e){_inherits(n,Smart.ContentElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"enableShadowDOM",get:function(){return!1}},{key:"template",value:function(){return""}},{key:"propertyChangedHandler",value:function(e,t,i){var r=this;switch(e){case"value":var a=r._instances[r._instances.length-1];a&&(i instanceof HTMLElement?a.appendChild(i):(a.shadowRoot?a.shadowRoot:a).querySelector(".smart-toast-item-content").innerHTML=i);break;case"appendTo":case"modal":case"position":r._handleContainers();break;case"rightToLeft":case"showCloseButton":case"type":r._instances&&r._instances.forEach(function(t){if(t[e]=i,"type"===e&&i){var n=t.querySelector(".smart-toast-item-icon");["info","warning","success","error","mail","time"].forEach(function(e){t.classList.remove(e)}),t.classList.add(i),n&&n.setAttribute("aria-label",i+" icon")}});break;default:_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i)}}},{key:"attached",value:function(){_get(_getPrototypeOf(n.prototype),"attached",this).call(this);for(var e=this,t=["TopLeft","TopRight","BottomLeft","BottomRight","Custom","Modal"],i=0;i<t.length;i++){var r=e.$["toastContainer"+t[i]];r&&r.children.length&&("Custom"===t[i]?e._appendTo.appendChild(e._container):e.getShadowRootOrBody().appendChild(r))}}},{key:"detached",value:function(){_get(_getPrototypeOf(n.prototype),"detached",this).call(this);for(var e=this,t=["TopLeft","TopRight","BottomLeft","BottomRight","Custom","Modal"],i=0;i<t.length;i++){var r=e.$["toastContainer"+t[i]];r&&(e._removeContainerListeners(r),r.remove()),e.closeAll()}}},{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this)}},{key:"render",value:function(){var e=this;if(!e.value||e.value instanceof HTMLElement){var t=e.querySelectorAll(".smart-element");
1if(t.length>0){for(var i=0;i<t.length;i++){var r=t[i],a=document.createElement(r.nodeName+"-clone");a.innerHTML=r.innerHTML,a.className=r.className,r.parentElement.insertBefore(a,r),r.remove()}for(var o=document.createElement("div");e.childNodes.length;)o.appendChild(e.firstChild);e.value=o.innerHTML.replace(/-clone/gi,"")}else e.value=e.innerHTML}else e.innerHTML=e.value;e._instances=[],e.autoOpen&&e.open(),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"closeAll",value:function(){var e=this,t=e._instances;if(t&&t.length)for(var n=e._instances.length-1;n>-1;n--)e._close(e._instances[n])}},{key:"closeItem",value:function(e){var t=this;e&&0!==t._instances.length&&("string"==typeof e?e=document.getElementById(e):e instanceof HTMLElement&&(e=e.closest("smart-toast-item")),e&&-1!==t._instances.indexOf(e)&&t._close(e))}},{key:"closeLast",value:function(){var e=this;e._instances.length>0&&e._close(e._instances[e._instances.length-1])}},{key:"items",get:function(){var e=this._instances;return this.isReady&&e&&e.length?e.slice():[]}},{key:"toggle",value:function(){var e=this;void 0===e.opened&&(e.opened=!1,e.autoOpen&&(e.opened=!0)),e.opened=!e.opened,e.opened?e.open():e.closeAll()}},{key:"open",value:function(e,t){var n=this;if(!n.disabled){void 0===e&&(e=n.value),t||(t=n.type),n._handleContainers();var i=document.createElement("smart-toast-item");i.iconClass=n.iconClass,i.itemClass=n.itemClass,e instanceof HTMLElement?i.appendChild(e):i.innerHTML=n._handleItemTemplate(e)||e,i.rightToLeft=n.rightToLeft,i.theme=n.theme,i.animation=n.animation,i.showCloseButton=n.showCloseButton;for(var r=0;r<n.classList.length;r++)n.classList[r].indexOf("smart-")<0&&i.classList.add(n.classList[r]);if(n._container.appendChild(i),t){var a=i.querySelector(".smart-toast-item-icon");i.classList.add(t),a&&a.setAttribute("aria-label",t+" icon")}return i._parent=n._container,n._instances.push(i),n.hasAttribute("smart-blazor")?n.$.fireEvent("open",{instance:i.id||""}):n.$.fireEvent("open",{instance:i}),setTimeout(function(){i.opened=!0},10),n.autoClose&&(i._autoCloseTimeout=setTimeout(function(){n._close(i)},n.autoCloseDelay)),i}}},{key:"_containerClickHandler",value:function(e){var t=this,n=e.target.shadowRoot?e.composedPath()[0]:e.target,i=n.closest(".smart-toast-item-close-button"),r=(n.getRootNode().host||n).closest("smart-toast-item");n.closest('[data-dismiss="toast"]')&&(t.opened=!1,t._close(r)),i||r?(t.hasAttribute("smart-blazor")?t.$.fireEvent("itemClick",{instance:r.id||"",target:n.id||""}):t.$.fireEvent("itemClick",{instance:r,target:n}),i&&t._close(r)):t.modal&&t.closeAll()}},{key:"_close",value:function(e){var t=this;function n(){clearTimeout(e._autoCloseTimeout),t.hasAttribute("smart-blazor")?t.$.fireEvent("close",{instance:e.id||""}):t.$.fireEvent("close",{instance:e}),e.parentNode&&e.parentNode.removeChild(e);var n=e._parent;n&&!n.children.length&&n.parentElement&&(t._removeContainerListeners(n),n.parentElement.removeChild(n))}if(t._instances.indexOf(e)>-1){var i=window.getComputedStyle(e,null).getPropertyValue("transition-duration"),r=i.indexOf("ms")>-1?parseInt(i):1e3*parseFloat(i);isNaN(r)&&(r=0),e.opened=!1,t._instances.splice(t._instances.indexOf(e),1),r?setTimeout(n,r):n()}}},{key:"_handleContainers",value:function(){var e,t=this;if("string"==typeof t.appendTo?e=document.getElementById(t.appendTo):t.appendTo instanceof HTMLElement&&(e=t.appendTo),t._container=t._getToastContainer(e),e)return t._appendTo=e,void(t._container.parentElement||(t._addContainerListeners(t._container),t._appendTo.appendChild(t._container)));e||!t.$.toastContainerCustom||t.$.toastContainerCustom.children.length||(t._removeContainerListeners(t.$.toastContainerCustom),t.$.toastContainerCustom.parentElement&&t.$.toastContainerCustom.parentElement.removeChild(t.$.toastContainerCustom)),t._container.parentElement||(t._addContainerListeners(t._container),t.getShadowRootOrBody().appendChild(t._container))}},{key:"_addContainerListeners",value:function(e){var t=this;if(e){var n=t["$"+e.getAttribute("smart-id")];n&&(n.listen("click",t._containerClickHandler.bind(t)),n.listen("swipeleft",t._swipeHandler.bind(t)),n.listen("swiperight",t._swipeHandler.bind(t)),n.listen("swipetop",t._swipeHandler.bind(t)),n.listen("swipebottom",t._swipeHandler.bind(t)))}}},{key:"_removeContainerListeners",value:function(e){if(e){var t=this["$"+e.getAttribute("smart-id")];t&&(t.unlisten("click"),t.unlisten("swipeleft"),t.unlisten("swiperight"),t.unlisten("swipetop"),t.unlisten("swipebottom"))}}},{key:"_getToastContainer",value:function(e){var t,n=this;e?t="Custom":n.modal?t="Modal":t=(t=Smart.Utilities.Core.toCamelCase(n.position)).charAt(0).toUpperCase()+t.slice(1);var i="toastContainer"+t;if(!n.$[i]){var r=document.createElement("div");r.setAttribute("smart-id",i),r.classList.add("smart-toast-container"),r.classList.add("smart-toast-container-"+Smart.Utilities.Core.toDash(t)),n.$["toastContainer"+t]=r,n["$toastContainer"+t]=Smart.Utilities.Extend(r)}return n.$[i]}},{key:"_handleItemTemplate",value:function(e){var t=this,n=t.itemTemplate;if("content"in document.createElement("template")){if(e||(e=t.value),!n)return e;if(null!==(n=document.getElementById(n))&&"content"in n)return n.innerHTML.replace(/{{\w+}}/g,e);t.error(t.localize("invalidTemplate",{elementType:t.nodeName.toLowerCase(),property:"template"}))}else t.error(t.localize("htmlTemplateNotSuported",{elementType:t.nodeName.toLowerCase()}))}},{key:"_swipeHandler",value:function(e){var t=this,n=e.originalEvent.target.closest("smart-toast-item");e.stopPropagation(),n&&(t.hasAttribute("smart-blazor")?t.$.fireEvent(e.type,{instance:n.id||""}):t.$.fireEvent(e.type,{instance:n}))}}],[{key:"properties",get:function(){return{appendTo:{value:null,type:"any"},autoClose:{value:!1,type:"boolean"},autoCloseDelay:{value:3e3,type:"number"},autoOpen:{value:!1,type:"boolean"},iconClass:{value:null,type:"string?"},itemClass:{value:null,type:"string?"},itemTemplate:{value:null,type:"string?"},modal:{value:!1,type:"boolean"},position:{allowedValues:["top-left","top-right","bottom-left","bottom-right"],value:"top-right",type:"string"},showCloseButton:{value:!1,type:"boolean"},type:{allowedValues:["info","warning","success","error","mail","time",null],value:"info",type:"string?"},value:{value:"",type:"any"}}}}]),n}())},6693:function(){var e;Smart("smart-tooltip",function(e){_inherits(n,Smart.ContentElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div id="container" role="presentation">
1\n <div id="content" class="smart-tooltip-content" inner-h-t-m-l="[[innerHTML]]" role="presentation">\n <content></content>\n </div>\n </div>'}},{key:"propertyChangedHandler",value:function(e,t,i){_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i);var r,a=this;switch(e){case"align":a._applyPosition(i);break;case"openMode":a.close(),a._handleEventListeners(t),a._handleResize();break;case"selector":a._oldOwnerElement=a._ownerElement,a._handleSelector(i,t),a._handleEventListeners();break;case"tooltipTemplate":a._handleTemplate(t);break;case"value":a.tooltipTemplate?a._handleTemplate():a.$.content.innerHTML=a.value;break;case"visible":r=i?"open":"close",a.$.fireEvent(r,{owner:a._ownerElement},a.isInShadowDOM?{composed:!0,bubbles:!0,cancelable:!0}:void 0);break;case"position":return void a._applyPosition(t)}a._applyPosition()}},{key:"ready",value:function(){var e=this;_get(_getPrototypeOf(n.prototype),"ready",this).call(this),e.getAttribute("role")||e.setAttribute("role","tooltip"),e._isParentPositionStatic="static"===window.getComputedStyle(e.parentElement||document.querySelector("body")).position,e._handleSelector(e.selector),e.visible&&e._applyPosition(),e._handleEventListeners(),e._handleResize(),e.value=e.$.content.innerHTML=e.value?e.value:e.innerHTML,e._handleTemplate()}},{key:"appendChild",value:function(e){var t=this;if(!t.isCompleted){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}e?(t.$.content.appendChild(e),t._applyPosition()):t.error(t.localize("invalidNode",{elementType:t.nodeName.toLowerCase(),method:"appendChild",node:"node"}))}},{key:"close",value:function(){var e=this;if(e._isOpening&&clearTimeout(e._isOpening),e.visible){var t=e.isInShadowDOM?{composed:!0,bubbles:!0,cancelable:!0}:void 0;e.$.fireEvent("closing",{owner:e._ownerElement},t).defaultPrevented||(e.$.fireEvent("close",{owner:e._ownerElement},t),e.visible=!1)}}},{key:"clear",value:function(){var e=this.$.content;if(e)for(;e.childNodes.length;)e.removeChild(e.firstChild)}},{key:"insertBefore",value:function(e,t){var n=this;if(!n.isCompleted){var i=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.insertBefore.apply(n,i.concat(Array.prototype.slice.call(arguments)))}e&&t?(n.$.content.insertBefore(e,t),n._applyPosition()):n.error(n.localize("invalidNode",{elementType:n.nodeName.toLowerCase(),method:"insertBefore",node:"newNode/referenceNode"}))}},{key:"open",value:function(){var e=this;e.disabled||e.readonly||e.visible||(clearTimeout(e._isOpening),e._isOpening=setTimeout(function(){var t=e.isInShadowDOM?{composed:!0,bubbles:!0,cancelable:!0}:void 0;if(e.$.fireEvent("opening",{owner:e._ownerElement},t).defaultPrevented)clearTimeout(e._isOpening);else{e._applyPosition(),e.$.fireEvent("open",{owner:e._ownerElement},t);var n=e.context;e.context=e,e.visible=!0,e.context=n}},e.delay))}},{key:"removeChild",value:function(e){var t=this;if(!t.isCompleted){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.insertBefore.apply(t,n.concat(Array.prototype.slice.call(arguments)))}e?(t.$.content.removeChild(e),t._applyPosition()):t.error(t.localize("invalidNode",{elementType:t.nodeName.toLowerCase(),method:"removeChild",node:"node"}))}},{key:"reposition",value:function(){this.isRendered&&this._applyPosition()}},{key:"toggle",value:function(){var e=this;e.visible?e.close():e.open()}},{key:"_getDomElementPosition",value:function(e){for(var t=[],n=e.parentElement;n&&"BODY"!==n.nodeName;)t.push(n),n=!this.enableShadowDOM||n.parentElement?n.parentElement:n.getRootNode().host;return t}},{key:"_getElementAndOwnerRelation",value:function(e){for(var t=this._getDomElementPosition(e||this),n=t.length,i=null,r=0;r<n;r++)if("static"!==window.getComputedStyle(t[r]).getPropertyValue("position")){i=t[r];break}return i}},{key:"_applyPosition",value:function(e){var t=this;if(t._ownerElement&&t.parentElement){t._isParentPositionStatic="static"===window.getComputedStyle(t.parentElement).position;var n,i,r=t._ownerElement.getBoundingClientRect(),a=t.parentElement?t.parentElement.getBoundingClientRect():{top:0,left:0};t.parentElement&&"BODY"===t.parentElement.nodeName.toUpperCase()?(n=r.top+window.scrollY,i=r.left+window.scrollX):(n=r.top-a.top,i=r.left-a.left);
1var o,s=t.position,l=t.iframeRect,c={top:r.top,left:r.left,right:r.right,width:r.width,height:r.height,nonStaticParent:t._getElementAndOwnerRelation()};switch(l&&(c.top+=l.top,c.left+=l.left,c.right+=l.right),s){case"auto":case"bottom":case"top":case"left":case"right":t.style.left="";var u=t["_position"+s.charAt(0).toUpperCase()+s.slice(1)](i,n,c);n=u.top,i=u.left,o=u.translate;break;case"absolute":e?(t.style.top=t.style.left="",n=i=0):(n=parseFloat(t.style.top),i=parseFloat(t.style.left))}var d=t.getAttribute("arrow-direction");o?t.$.container.style.setProperty("--smart-tooltip-arrow-translate",o+"px"):t.$.container.style.removeProperty("--smart-tooltip-arrow-translate"),void 0===n||isNaN(n)||(n+=("auto"===s&&"top"===d?-1:1)*parseInt(t.offset[1])||0,t.style.top=n+"px"),void 0===i||isNaN(i)||(i+=("auto"===s&&"left"===d?-1:1)*parseInt(t.offset[0])||0,t.style.left=i+"px")}}},{key:"_positionAuto",value:function(e,t,n){for(var i,r,a=this,o=a.parentElement;o;){if("hidden"===getComputedStyle(o).getPropertyValue("overflow")){i=o;break}o=o.parentElement}if(i)r=i.getBoundingClientRect();else{var s,l,c=document.scrollingElement;document.scrollingElement?(s=c.offsetWidth,l=c.offsetHeight):(s=window.innerWidth,l=window.innerHeight),i=document.body,r={width:s,height:l,left:0,top:0,right:s,bottom:l}}var u=parseFloat(window.getComputedStyle(a).getPropertyValue("--smart-tooltip-arrow-width"))||0,d=a._positionTop(e,t,n),h=n.nonStaticParent,f=a.offsetWidth/2-u,p=0,m=0,g=d.left,v=r.right-(g+m+a.offsetWidth),y=Math.min(0,v);if(g<=0&&v>0&&(g=Math.min(e,g+v)),y<=0&&(y=Math.sign(y)*(Math.abs(y)+r.right-(e+n.width))),h){var b=h.getBoundingClientRect();p=b.top,m=b.left}return d.top+p>=r.top?(g<=0&&(g=e),t=d.top,{left:e=Math.max(r.left-m,g+y),top:t,translate:Math.max(-f,Math.min(f,d.left-e))}):(d=a._positionBottom(e,t,n)).top+a.offsetHeight+p<=r.bottom?((g=d.left)<=0&&(g=e),t=d.top,{left:e=Math.max(r.left-m,g+y),top:t,translate:Math.max(-f,Math.min(f,d.left-e))}):(t=(d=a._positionLeft(e,t,n)).top,f=a.offsetHeight/2-u,t=Math.max(r.top-p,d.top+Math.min(0,r.bottom-(d.top+p+a.offsetHeight))),d.left+m>=r.left?e=d.left:e=(d=a._positionRight(e,t,n)).left+a.offsetWidth+m<=r.right?d.left:r.right-a.offsetWidth,{left:e,top:t,translate:Math.max(-f,Math.min(f,d.top-t))})}},{key:"_getRelativeParentOffset",value:function(e){var t=this,n=t._getElementAndOwnerRelation(t._ownerElement),i=0,r=0;if(!e)return{left:r,top:i};for(;e&&n&&e!==n;)i+=n.offsetTop,r+=n.offsetLeft,n=t._getElementAndOwnerRelation(n);return{left:r,top:i}}},{key:"_positionTop",value:function(e,t,n){var i=this,r=i._getRelativeParentOffset(n.nonStaticParent);if(i.set("arrowDirection","bottom"),null===n.nonStaticParent)return t=n.top+window.scrollY-i.offsetHeight,{left:(e=i._getAlignmentOffset(n.left,i.offsetWidth,n.width)+window.scrollX)+r.left,top:t+r.top};if(i._isParentPositionStatic){if(t=i._ownerElement.offsetTop-i.offsetHeight,e=i._getAlignmentOffset(i._ownerElement.offsetLeft,i.offsetWidth,n.width),i._ownerElement instanceof SVGElement){var a=i._ownerElement.getBoundingClientRect(),o=i._ownerElement.parentNode.getBoundingClientRect();t=a.top-o.top-i.offsetHeight/2,e=i._getAlignmentOffset(a.left,i.offsetWidth,o.left)}return{left:e+r.left,top:t+r.top}}if(i._ownerElement instanceof SVGElement&&i._ownerElement.parentElement){var s=i._ownerElement.getBoundingClientRect(),l=i._ownerElement.parentNode.getBoundingClientRect();return t=s.top-l.top-i.offsetHeight,{left:(e=i._getAlignmentOffset(s.left-l.left,i.offsetWidth,s.width))+r.left,top:t+r.top}}return t-=i.offsetHeight,{left:(e=i._getAlignmentOffset(e,i.offsetWidth,n.width))+r.left,top:t+r.top}}},{key:"_positionBottom",value:function(e,t,n){var i=this,r=i._getRelativeParentOffset(n.nonStaticParent);return i.set("arrowDirection","top"),null===n.nonStaticParent?(t=n.top+window.scrollY+n.height,{left:(e=i._getAlignmentOffset(n.left,i.offsetWidth,n.width)+window.scrollX)+r.left,top:t+r.top}):i._isParentPositionStatic?(t=i._ownerElement.offsetTop+n.height,{left:(e=i._getAlignmentOffset(i._ownerElement.offsetLeft,i.offsetWidth,n.width))+r.left,top:t+r.top}
1):(t+=n.height,{left:(e=i._getAlignmentOffset(e,i.offsetWidth,n.width))+r.left,top:t+r.top})}},{key:"_getAlignmentOffset",value:function(e,t,n){switch(this.align){case"left":return e;case"right":return e-t+n;default:return e-t/2+n/2}}},{key:"_positionLeft",value:function(e,t,n){var i=this,r=i._getRelativeParentOffset(n.nonStaticParent);return i.set("arrowDirection","right"),null===n.nonStaticParent?(t=n.top+window.scrollY+n.height/2-i.$.content.offsetHeight/2,{left:(e=n.left+window.scrollX-i.offsetWidth)+r.left,top:t+r.top}):i._isParentPositionStatic?{left:(e=i._ownerElement.offsetLeft-i.offsetWidth)+r.left,top:(t=i._ownerElement.offsetTop+n.height/2-i.$.content.offsetHeight/2)+r.top}:{left:(e-=i.offsetWidth)+r.left,top:(t=t+n.height/2-i.$.content.offsetHeight/2)+r.top}}},{key:"_positionRight",value:function(e,t,n){var i=this,r=i._getRelativeParentOffset(n.nonStaticParent);return i.set("arrowDirection","left"),null===n.nonStaticParent?(t=n.top+window.scrollY+n.height/2-i.$.content.offsetHeight/2,{left:(e=n.left+window.scrollX+n.width)+r.left,top:t+r.top}):i._isParentPositionStatic?{left:(e=i._ownerElement.offsetLeft+n.width)+r.left,top:(t=i._ownerElement.offsetTop+n.height/2-i.$.content.offsetHeight/2)+r.top}:{left:(e+=n.width)+r.left,top:(t=t+n.height/2-i.$.content.offsetHeight/2)+r.top}}},{key:"_eventsHandler",value:function(e){var t=this;t.disabled||t.readonly||("click"!==e.type?"mouseenter"===e.type||"focus"===e.type?this.open():this.close():t.visible?this.close():this.open())}},{key:"_handleEventListeners",value:function(e){var t=this;if(t._oldOwnerElement&&"manual"!==t.openMode){var n=t._oldOwnerElement.getAttribute("aria-describedby");n&&"tooltip"===t.getAttribute("role")&&(n===t.id?t._oldOwnerElement.removeAttribute("aria-describedby"):(n=(n=n.replace(" "+t.id,"")).replace(t.id+" ",""),t._oldOwnerElement.setAttribute("aria-describedby",n))),t._oldOwnerElement.$.unlisten("mouseenter.tooltip"),t._oldOwnerElement.$.unlisten("mouseleave.tooltip"),t._oldOwnerElement.$.unlisten("focus.tooltip"),t._oldOwnerElement.$.unlisten("blur.tooltip"),t._oldOwnerElement.$.unlisten("click.tooltip"),t._oldOwnerElement=null}if(t._ownerElement){if(e)switch(e){case"hover":t._ownerElement.$.unlisten("mouseenter.tooltip"),t._ownerElement.$.unlisten("mouseleave.tooltip");break;case"focus":t._ownerElement.$.unlisten("focus.tooltip"),t._ownerElement.$.unlisten("blur.tooltip");break;case"click":t._ownerElement.$.unlisten("click.tooltip")}if("manual"!==t.openMode)switch(t._ownerElement instanceof Smart.BaseElement||(t._ownerElement.$=Smart.Utilities.Extend(t._ownerElement)),t.openMode){case"hover":t._ownerElement.$.listen("mouseenter.tooltip",t._eventsHandler.bind(t)),t._ownerElement.$.listen("mouseleave.tooltip",t._eventsHandler.bind(t));break;case"focus":t._ownerElement.$.listen("focus.tooltip",t._eventsHandler.bind(t)),t._ownerElement.$.listen("blur.tooltip",t._eventsHandler.bind(t));break;case"click":t._ownerElement.$.listen("click.tooltip",t._eventsHandler.bind(t))}}}},{key:"_handleResize",value:function(){var e=this;function t(){e._applyPosition()}"click"===e.openMode?window.addEventListener("resize",t):window.removeEventListener("resize",t)}},{key:"_handleSelector",value:function(e,t){var n=this;if(t&&t.removeAttribute&&t.removeAttribute("aria-describedby"),"string"==typeof e)n._ownerElement=e.length>0?document.getElementById(e):void 0;else if(e&&e.nodeType===Node.ELEMENT_NODE)n._ownerElement=e;else{if(null===e)return void(n._ownerElement=void 0);n.error(n.localize("invalidSelector",{elementType:n.nodeName.toLowerCase(),property:"selector"}))}if(n._ownerElement&&"tooltip"===n.getAttribute("role")&&n.value){var i=n._ownerElement?n._ownerElement.getAttribute("aria-describedby"):null;i?i.indexOf(n.id)<0&&n._ownerElement.setAttribute("aria-describedby",i+" "+n.id):n._ownerElement.setAttribute("aria-describedby",n.id)}}},{key:"_handleTemplate",value:function(e){var t=this,n=t.tooltipTemplate;if(e&&(t.$.content.innerHTML=t.value?t.value:""),null!==n&&n)if("function"!=typeof t.tooltipTemplate)if("content"in document.createElement("template"))if(null!==(n=document.getElementById(n))&&"content"in n){for(var i,r=n.content,a=r.childNodes.length,o=/{{\w+}}/g,s=[],l=0;l<a;l++)for(i=o.exec(r.childNodes[l].innerHTML);i;)s.push({childNodeIndex:l,bindingString:i[0]}),i=o.exec(r.childNodes[l].innerHTML);for(var c,u,d=s.length,h=document.importNode(n.content,!0),f=0;f<d;f++){c=h.childNodes[s[f].childNodeIndex],u=s.length;for(var p=0;p<u;p++)c.innerHTML=c.innerHTML.replace(s[f].bindingString,t.value)}t.$.content.innerHTML="";for(var m=0;m<h.childNodes.length;m++)h.childNodes[m].outerHTML&&(t.$.content.innerHTML+=h.childNodes[m].outerHTML)}else t.error(t.localize("invalidTemplate",{elementType:t.nodeName.toLowerCase(),property:"template"}));else t.error(t.localize("htmlTemplateNotSuported",{elementType:t.nodeName.toLowerCase()}));else t.tooltipTemplate(t.$.content,{value:t.value})}}],[{key:"properties",get:function(){return{arrow:{value:!1,type:"boolean"},arrowDirection:{allowedValues:["bottom","top","left","right"],value:"bottom",type:"string"},align:{allowedValues:["left","center","right"],value:"center",type:"string"},delay:{value:0,type:"number"},messages:{extend:!0,value:{en:{invalidSelector:'{{elementType}}: "{{property}}" must be a String, an HTMLElement or null.',htmlTemplateNotSuported:"{{elementType}}: Browser doesn't support HTMLTemplate elements.",invalidTemplate:'{{elementType}}: "{{property}}" property accepts a string that must match the id of an HTMLTemplate element from the DOM.',invalidNode:'{{elementType}}: Invalid parameter "{{node}}" when calling {{method}}.'}},type:"object"},iframeRect:{value:null,type:"object?"},offset:{value:[],type:"array"}
1,openMode:{allowedValues:["click","focus","hover","manual"],value:"hover",type:"string"},position:{allowedValues:["bottom","top","left","right","absolute","auto"],value:"top",type:"string"},selector:{value:null,type:"any?"},tooltipTemplate:{value:null,type:"any"},value:{value:"",type:"string",reflectToAttribute:!1},visible:{value:!1,type:"boolean"}}}},{key:"styleUrls",get:function(){return["smart.tooltip.css"]}}]),n}()),e=function(){var e=document.querySelectorAll('[data-toggle="tooltip"');if(e.length>0)for(var t=0;t<e.length;t++)if(e[t].hasAttribute("data-title")){var n=document.createElement("smart-tooltip");n.selector=e[t],n.innerHTML=e[t].getAttribute("data-title"),document.body.appendChild(n),e[t].hasAttribute("data-placement")&&(n.position=e[t].getAttribute("data-placement"))}},"complete"===document.readyState?e():(window.removeEventListener("load",e),window.addEventListener("load",e))},8466:function(){Smart("smart-window",function(e){_inherits(n,Smart.ContentElement);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"hasStyleObserver",get:function(){return!1}},{key:"template",value:function(){return'<div role="presentation">\n <div class="smart-content-container" id="container">\n <div id="headerSection" class="smart-header-section" role="heading" aria-level="1">\n <div id="header" class="smart-header" role="presentation">[[label]]</div>\n <div id="buttonsContainer" class="smart-buttons-container" role="presentation">\n <button id="pinButton" class="smart-button smart-element smart-pin-button" aria-label="Pin"></button>\n <button id="collapseButton" class="smart-button smart-element smart-collapse-button" aria-label="Collapse"></button>\n <button id="minimizeButton" class="smart-button smart-element smart-minimize-button"aria-label="Minimize"></button>\n <button id="maximizeButton" class="smart-button smart-element smart-maximize-button" aria-label="Maximize"></button>\n <button id="closeButton" class="smart-button smart-element smart-close-button" aria-label="Close"></button>\n </div>\n </div>\n <div class="smart-content" inner-h-t-m-l="[[innerHTML]]"><content></content></div>\n <div id="footer" class="smart-footer"></div>\n </div>\n </div>'}},{key:"propertyChangedHandler",value:function(e,t,i){var r=this;switch(e){case"collapsed":i?r.collapse(!0):r.expand(!0);break;case"disabled":case"unfocusable":r._setFocusable();break;case"headerTemplate":case"footerTemplate":r._applyLayoutTemplate(r.$[e.split(/[T]/)[0]],i);break;case"headerButtons":r._setHeaderButtons();break;case"headerPosition":var a=r.minimized;r._preventEventFiring=!0,r.restore(),delete r._preventEventFiring,a&&r.minimize();break;case"label":r.$.header.innerHTML=r.label;break;case"maximized":i?r.maximize(!0):r.restore(e);break;case"modal":r._setModal(),r.setAttribute("aria-modal",i);break;case"minimized":i?r.minimize(!0):r.restore(e);break;case"opened":i?r.open(!0):r.close(!0);break;case"resizeMode":r.$.container.classList.remove("smart-window-resizing-bottom-right","smart-window-resizing-top-right","smart-window-resizing-top-left","smart-window-resizing-bottom-left","smart-window-resizing-top","smart-window-resizing-bottom","smart-window-resizing-left","smart-window-resizing-right");break;case"windowParent":r._setElementParent(i);break;default:_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i)}}},{key:"ready",value:function(){_get(_getPrototypeOf(n.prototype),"ready",this).call(this),this._windowParent={initialParent:this.parentElement}}},{key:"render",value:function(){var e=this,t=e.animation;e.$.header.id||(e.$.header.id=e.id+"Header"),e.$.content.id||(e.$.content.id=e.id+"Content"),e.opened||(e.animation="none"),e._windowParent={initialParent:e.parentElement},e.$.addClass("smart-window"),e._createElement(),e._setElementParent(e.windowParent),e._setHeaderButtons(),e.headerTemplate&&e._applyLayoutTemplate(e.$.header,e.headerTemplate),e.footerTemplate&&e._applyLayoutTemplate(e.$.footer,e.footerTemplate),e.opened?e.open():e.close(),e.maximized&&e.maximize(!0),e.minimized&&e.minimize(!0),e.collapsed&&e.collapse(!0),e.pinned?e.pin():e.unpin(),e._setFocusable(),e.animation=t,e.setAttribute("aria-modal",e.modal),e.setAttribute("aria-labelledby",e.$.header.id),e._setupDismissTargets(),_get(_getPrototypeOf(n.prototype),"render",this).call(this)}},{key:"refresh",value:function(){var e=this;e.headerTemplate&&e._applyLayoutTemplate(e.$.header,e.headerTemplate),e.footerTemplate&&e._applyLayoutTemplate(e.$.footer,e.footerTemplate),e.opened?e.open():e.close(),e.maximized&&e.maximize(!0),e.minimized&&e.minimize(!0),e.collapsed&&e.collapse(!0),e.pinned?e.pin():e.unpin()}},{key:"_setFocusable",value:function(){var e=this;e.disabled||e.unfocusable?e.removeAttribute("tabindex"):e.setAttribute("tabindex",e.tabIndex>0?e.tabIndex:0)}},{key:"appendChild",value:function(e){var t=this;if(!t.isCompleted||e instanceof HTMLElement&&e.classList.contains("smart-resize-trigger-container")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}e?t.$.content.appendChild(e):t.error(t.localize("invalidNode",{elementType:t.nodeName.toLowerCase(),method:"appendChild",no
1de:"node"}))}},{key:"collapse",value:function(e){var t=this;!e&&t.collapsed||(t.collapsed=!0,t.$.fireEvent("collapse"),"left"===t.headerPosition||"right"===t.headerPosition?t.style.width="":t.style.height="")}},{key:"close",value:function(e){var t=this;if(e||!t.$.hasClass("smart-visibility-hidden")){if(t.isCompleted){if(t.$.fireEvent("closing").defaultPrevented)return;t.$.addClass("smart-visibility-hidden"),t.opened=!1,t.isRendered&&t.$.fireEvent("close")}else t.$.addClass("smart-visibility-hidden"),t.opened=!1;t._setModal(),t.removeAttribute("ontop")}}},{key:"attached",value:function(){_get(_getPrototypeOf(n.prototype),"attached",this).call(this);var e=this;e._windowParent.parent&&e._windowParent.parent!==e.getShadowRootOrBody()&&e._windowParent.parent.querySelectorAll("smart-window, smart-dialog-window, smart-progress-window, smart-wait-window, smart-alert-window, smart-prompt-window, smart-multiline-prompt-window")&&"static"===window.getComputedStyle(e._windowParent.parent).getPropertyValue("position")&&(e._windowParent.parent.style.position="relative"),e.opened&&e._modal&&e.parentElement.insertBefore(e._modal,e)}},{key:"bringToFront",value:function(){var e=this;if(e.parentElement){var t=e.parentElement.closest(".smart-window");if(t)t.bringToFront();else{for(var n=document.body.getElementsByClassName("smart-window"),i=[],r=0;r<n.length;r++){var a=n[r];a.removeAttribute("ontop"),a.opened&&i.push(a)}1===i.length&&i[0]===e||e.setAttribute("ontop","")}}}},{key:"clear",value:function(){var e=this;e.isCompleted&&"Smart-WINDOW"===e.nodeName&&(e.innerHTML=e.$.content.innerHTML="")}},{key:"detached",value:function(){_get(_getPrototypeOf(n.prototype),"detached",this).call(this);var e=this;e._windowParent.parent&&!e._windowParent.parent.querySelectorAll("smart-window, smart-dialog-window, smart-progress-window, smart-wait-window, smart-alert-window, smart-prompt-window, smart-multiline-prompt-window")&&(e._windowParent.parent.style.position=""),e._modal&&e._modal.parentElement&&e._modal.parentElement.removeChild(e._modal),e._resizeDummy&&e._resizeDummy.parentElement&&e._handleWindowResizeDummy(),e._refreshMinimizedWindowsPosition()}},{key:"expand",value:function(e){var t=this;(e||t.collapsed)&&(t.collapsed=!1,t.$.fireEvent("expand"),t.maximized?"left"===t.headerPosition||"right"===t.headerPosition?t.style.width=Math.max(t._windowParent.scrollElement.scrollWidth,t._windowParent.element.clientWidth)-t._windowParent.borderWidth+"px":t.style.height=Math.max(t._windowParent.scrollElement.scrollHeight,t._windowParent.element.clientHeight)-t._windowParent.borderWidth+"px":"left"===t.headerPosition||"right"===t.headerPosition?t.style.width=t.className.indexOf("smart-window-snapped-")<0&&t._dragDetails?t._dragDetails.width+"px":"":t.style.height=t.className.indexOf("smart-window-snapped-")<0&&t._dragDetails?t._dragDetails.height+"px":"")}},{key:"maximize",value:function(e){var t=this;if(e||!t.maximized){t.minimized&&t._restoreFromMinimization(e),t._setDragDetails("minimize"),"none"!==t.resizeMode&&t.$.container.classList.remove("smart-window-resizing-bottom-right","smart-window-resizing-top-right","smart-window-resizing-top-left","smart-window-resizing-bottom-left","smart-window-resizing-top","smart-window-resizing-bottom","smart-window-resizing-left","smart-window-resizing-right"),t._snapDummy&&t.$.hasClass("smart-window-snapped-"+t._snapDummy._position)&&t.classList.remove("smart-window-snapped-"+t._snapDummy._position),t.maximized=!0,t.$.fireEvent("maximize"),t.style.left=t.style.top=0,t.style.maxWidth=t.style.maxHeight="none";var n=t._windowParent.scrollElement.scrollHeight,i=t._windowParent.scrollElement.scrollWidth,r=t._windowParent.element.clientHeight,a=t._windowParent.element.clientWidth,o=Math.max(n,r),s=Math.max(i,a);"top"===t.headerPosition||"bottom"===t.headerPosition?(t.style.width=i>a?s-t._windowParent.borderWidth+"px":"100%",t.collapsed||(t.style.height=n>r?o-t._windowParent.borderWidth+"px":"100%")):(t.collapsed||(t.style.width=i>a?s-t._windowParent.borderWidth+"px":"100%"),t.style.height=n>r?o-t._windowParent.borderWidth+"px":"100%"),"100%"!==t.style.height&&t.addEventListener("transitionend",function e(){if(t.maximized&&t.hasAnimation){var n=t._windowParent.scrollElement.scrollHeight,i=t._windowParent.element.clientHeight,r=Math.max(n,i);("top"===t.headerPosition||"bottom"===t.headerPosition)&&t.collapsed||(t.style.height=n>i?r-t._windowParent.borderWidth+"px":"100%"),t.removeEventListener("transitionend",e)}})}}},{key:"minimize",value:function(e){var t=this;if(e||!t.minimized){t.maximized&&(t._preventEventFiring=!0,t.restore(
1),delete t._preventEventFiring),t._setDragDetails(),t.minimized=!0,t.$.fireEvent("minimize"),t._snapDummy&&t.$.hasClass("smart-window-snapped-"+t._snapDummy._position)&&(t.$.removeClass("smart-window-snapped-"+t._snapDummy._position),t.style.right=t.style.top=t.style.left="");var n=t._getAllMinimizedWindows(t._windowParent.element);if(n.length>0){var i=n[n.length-1];t.style.left=(i.offsetLeft+i.offsetWidth+t._dragDetails.minWidth+10>t._windowParent.element.clientWidth?i.offsetLeft:i.offsetLeft+i.offsetWidth+5)+"px",t.style.top=i.offsetTop+"px"}else t.style.left="5px",t.style.top=t._windowParent.element.clientHeight+t._windowParent.scrollElement.scrollTop-t.$.headerSection.offsetHeight-5+"px";t.style.width="",t.style.height=t.$.headerSection.offsetHeight+"px"}}},{key:"_createElement",value:function(){this.setAttribute("role","dialog")}},{key:"removeChild",value:function(e){var t=this;if(!t.isCompleted){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.removeChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}e?t.$.content.removeChild(e):t.error(t.localize("invalidNode",{elementType:t.nodeName.toLowerCase(),method:"removeChild",node:"node"}))}},{key:"restore",value:function(e){var t=this;if("maximized"===e||t.maximized?(t.maximized=!1,t.style.width=t.style.height=t.style.top=t.style.left=""):("minimized"===e||t.minimized)&&t._restoreFromMinimization(e),t._preventEventFiring||t.$.fireEvent("restore"),t.style.maxWidth=t.style.maxHeight="",t._dragDetails){if(t.style.left=Math.max(0,Math.min(t._dragDetails.windowX,t._windowParent.element.clientWidth-t._dragDetails.width))+"px",t.style.top=Math.max(0,Math.min(t._dragDetails.windowY,t._windowParent.scrollElement.scrollHeight-t._dragDetails.height))+"px",t.collapsed)return void("top"===t.headerPosition||"bottom"===t.headerPosition?t.style.width=t._dragDetails.width+"px":t.style.height=t._dragDetails.height+"px");t._dragDetails.resized&&(t.style.width=t._dragDetails.width+"px",t.style.height=t._dragDetails.height+"px")}}},{key:"toggle",value:function(){var e=this;e.opened?e.close():e.open()}},{key:"openModal",value:function(){this.modal=!0,this.open()}},{key:"open",value:function(e){var t=this;if(e||t.$.hasClass("smart-visibility-hidden")){if(t.isCompleted){if(t.$.fireEvent("opening").defaultPrevented)return;t.$.removeClass("smart-visibility-hidden"),t.opened=!0,t.$.fireEvent("open")}else t.$.removeClass("smart-visibility-hidden"),t.opened=!0;t.bringToFront(),t._setModal(),t._handleActiveState(),t.hasAnimation?t.addEventListener("transitionend",n):n()}function n(e){if(!t.hasAnimation||e&&e.target===t){if(t.removeEventListener("transitionend",n),t._onOpenCallback)return void t._onOpenCallback();t.focus()}}}},{key:"_setupDismissTargets",value:function(){var e=this;if(e.querySelector('[data-dismiss="modal"]'))for(var t=e.querySelectorAll('[data-dismiss="modal"]'),n=function(){e.close()},i=0;i<t.length;i++)t[i].removeEventListener("click",n,null),t[i].addEventListener("click",n)}},{key:"pin",value:function(){this.pinned=!0}},{key:"unpin",value:function(){this.pinned=!1}},{key:"_applyLayoutTemplate",value:function(e,t){var n=this;if(!t)return e.innerHTML="",void(e===n.$.header&&n.label&&(e.innerHTML=n.label));"content"in document.createElement("template")?(t instanceof HTMLTemplateElement||(t=document.getElementById(t)),null!==t&&"content"in t?(e.innerHTML="",e.appendChild(document.importNode(t.content,!0))):n.error(n.localize("invalidTemplate",{elementType:n.nodeName.toLowerCase(),property:e===n.$.footer?"footerTemplate":"headerTemplate"}))):n.error(n.localize("htmlTemplateNotSuported",{elementType:n.nodeName.toLowerCase()}))}},{key:"_cancelDragging",value:function(e){var t=this;if(t._dragDetails&&t._dragDetails.started&&"drag"===t._dragDetails.type){if(!e){var n=t.getBoundingClientRect();e={pageX:n.left,pageY:n.top}}t.$.fireEvent("dragEnd",{left:e.pageX,top:e.pageY}),t.removeAttribute("dragged"),t._dragDetails.started=!1,delete t._mouseManipulation}}},{key:"_documentFocusInEventHandler",value:function(e){var t=this;t._changingFocus&&(t.contains(e.target)||t.contains(e.composedPath()[0])||t.focu
1s(),delete t._changingFocus)}},{key:"_downHandler",value:function(e){var t=this,n=Smart.Utilities.Core.isMobile?document.elementFromPoint(e.pageX-window.pageXOffset,e.pageY-window.pageYOffset):e.originalEvent.target;if((t.shadowRoot||t.isInShadowDOM)&&(n=e.originalEvent.composedPath()[0]),e.stopPropagation(),!t.disabled&&(Smart.Utilities.Core.isMobile||1===e.which)){if(t._tabsWindow&&(t._tabsWindow._isAutoHideWindowClicked=!0),t.hasAttribute("ontop")||t.bringToFront(),n.closest&&n.closest(".smart-buttons-container")===t.$.buttonsContainer){if(t._buttonPressed=n.closest(".smart-button"),t._buttonPressed)return}else if(n.getRootNode()&&n.getRootNode().host&&(t._buttonPressed=n.getRootNode().host,t._buttonPressed.closest(".smart-buttons-container")===t.$.buttonsContainer))return;t._isWindowContentClicked=n.closest(".smart-content");var i=t.closest("smart-docking-layout");if(t.isInShadowDOM&&!i)for(var r=t.getRootNode().host;r&&!(i=r.closest("smart-docking-layout"))&&r.getRootNode();)r=r.getRootNode().host;if(!(t instanceof Smart.TabsWindow&&i&&i.disabled)){if(t._handleActiveState(),!(t instanceof Smart.TabsWindow&&i))return n.closest(".smart-header-section")===t.$.headerSection&&(void 0===t._dblClickDetail
1s&&(t._dblClickDetails={clicks:0}),clearTimeout(t._dblClickDetails.timeOut),t._dblClickDetails.clicks++,t._dblClickDetails.timeOut=setTimeout(function(){t._dblClickDetails&&(t._dblClickDetails.clicks=0)},300),2===t._dblClickDetails.clicks)?(t._headerDblCickHandler(e),void(t._dblClickDetails.clicks=0)):void(t.maximized||(Smart.Utilities.Core.isMobile&&t._moveHandler(e),!t.pinned&&!t.minimized&&t.$.container.className.indexOf("smart-window-resizing")<0&&(n=n.closest(".smart-header-section"),n&&n===t.$.headerSection&&(t._mouseManipulation=!0,t._setDragDetails("drag",e))),"none"!==t.resizeMode&&t.$.container.className.indexOf("smart-window-resizing")>-1&&(t._mouseManipulation=!0,t._setDragDetails("resize",e))));t.$.hasClass("smart-docking-layout-auto-hide-window")&&(Smart.Utilities.Core.isMobile&&t._moveHandler(e),"none"!==t.resizeMode&&t.$.container.className.indexOf("smart-window-resizing")>-1&&(t._mouseManipulation=!0,t._setDragDetails("resize",e)))}}}},{key:"_documentMoveHandler",value:function(e){var t=this;!t._dragDetails||!t._dragDetails.started||t.minimized||!t._mouseManipulation||Math.abs(e.pageX-t._dragDetails.x)<=5&&Math.abs(e.pageY-t._dragDetails.y)<=5||(t.hasAttribute("dragged")||t.hasAttribute("resized")||t.$.fireEvent(t._dragDetails.type+"Start",{left:e.pageX,top:e.pageY,width:t.offsetWidth,height:t.offsetHeight}),e.stopPropagation(),"drag"!==t._dragDetails.type||t.pinned?(t._dragDetails.resized=!0,t._resize(t._dragDetails.side,e),t._dragDetails.x=Math.max(t._windowParent.offsetLeft+t._dragDetails.left,Math.min(t._windowParent.offsetLeft+t._dragDetails.left+(t._dragDetails.side.toLowerCase().indexOf("left")>-1?0:t._dragDetails.newWidth),e.pageX)),t._dragDetails.y=Math.max(t._windowParent.offsetTop+t._dragDetails.top,Math.min(t._windowParent.offsetTop+t._dragDetails.top+(t._dragDetails.side.toLowerCase().indexOf("top")>-1?0:t._dragDetails.newHeight),e.pageY))):(t.setAttribute("dragged",""),t._snapDummy&&t.$.hasClass("smart-window-snapped-"+t._snapDummy._position)&&(t.$.removeClass("smart-window-snapped-"+t._snapDummy._position),t.style.right=t.style.top=t.style.left="",t.collapsed||(t.style.height=t._dragDetails.height+"px",t.style.width=t._dragDetails.width+"px")),t._drag(e,"both"),t._dragDetails.x=Math.max(t._windowParent.offsetLeft+t._dragDetails.offsetX-t._windowParent.scrollElement.scrollLeft,Math.min(t._windowParent.offsetLeft+t._windowParent.element.offsetWidth-(t._windowParent.element.offsetWidth-t.offsetLeft)+t._dragDetails.offsetX,e.pageX)),t._dragDetails.y=Math.max(t._windowParent.offsetTop+t._dragDetails.offsetY-t._windowParent.scrollElement.scrollTop,Math.min(t._windowParent.offsetTop+t._windowParent.element.offsetHeight-(t._windowParent.element.offsetHeight-t.offsetTop)+t._dragDetails.offsetY,e.pageY)),e.pageX>=t._windowParent.offsetLeft+t._windowParent.scrollElement.scrollWidth-1?t._handleSnapping("right"):e.pageY<=t._windowParent.offsetTop?t._handleSnapping("top"):e.pageX<=t._windowParent.offsetLeft?t._handleSnapping("left"):t._handleSnapping()))}},{key:"_documentUpHandler",value:function(e){var t=this,n=t.shadowRoot||t.isInShadowDOM?e.originalEvent.composedPath()[0]:e.originalEvent.target;if(t.disabled)return t.removeAttribute("active"),delete t._buttonPressed,void delete t._isWindowContentClicked;if(t._dragDetails&&t._dragDetails.started&&(t.hasAttribute("resized")&&(t.$.fireEvent(t._dragDetails.type+"End",{left:e.pageX,top:e.pageY,width:t._dragDetails.newWidth,height:t._dragDetails.newHeight}),t.removeAttribute("resized"),t._handleWindowResizeDummy(),t.$.container.classList.remove("smart-window-resizing-bottom-right","smart-window-resizing-top-right","smart-window-resizing-top-left","smart-window-resizing-bottom-left","smart-window-resizing-top","smart-window-resizing-bottom","smart-window-resizing-left","smart-window-resizing-right")),setTimeout(function(){t.$.removeClass("no-transition")},20),t.hasAttribute("dragged")&&(t.$.fireEvent(t._dragDetails.type+"End",{left:e.pageX,top:e.pageY}),t.removeAttribute("dragged")),t._dragDetails.started=!1,delete t._mouseManipulation),t._snapDummy&&!t._snapDummy.classList.contains("smart-visibility-hidden")){switch(t._snapDummy._position){case"left":case"top":t.style.left=t.style.top="0",t.style.right="auto";break;case"right":t.style.left="auto",t.style.top=t.style.right="0"}t.style.width="top"===t._snapDummy._position?"100%":"50%",t.style.height="100%",t.$.addClass("smart-window-snapped-"+t._snapDummy._position),t._handleSnapping()}t._modal&&n===t._modal&&!t._isWindowContentClicked&&(t.closeOnMaskClick?t.close():t.focus()),t._isWindowButton(n)&&t.focu
1s(),delete t._isWindowContentClicked,delete t._buttonPressed;var i=t.shadowRoot&&t._windowParent.element&&t._windowParent.element.getRootNode()?t._windowParent.element.getRootNode().activeElement:document.activeElement;if(t.hasAttribute("active")&&i!==t&&n.closest){for(var r=n.closest(".smart-window");r&&r!==t;)(r=r.parentElement)&&(r=r.closest(".smart-window"));t.opened&&r!==t&&t.removeAttribute("active")}}},{key:"_documentSelectStartHandler",value:function(e){this._dragDetails&&this._dragDetails.started&&e.preventDefault()}},{key:"_drag",value:function(e,t){var n=this;if(e&&!n.pinned&&!n.maximized){var i,r;n._dragDetails&&n._dragDetails.started||n._setDragDetails("drag",e),n.$.addClass("no-transition"),"object"==typeof e?(i=e.pageX-n._dragDetails.x,r=e.pageY-n._dragDetails.y):i=r=e;var a=Math.max(n._windowParent.element.clientHeight,n._windowParent.scrollElement.scrollHeight),o=Math.max(n._windowParent.element.clientWidth,n._windowParent.scrollElement.scrollWidth);switch(t){case"horizontal":n._dragDetails.windowX=Math.max(0,Math.min(n._dragDetails.windowX+i,o-n.offsetWidth)),n.style.left=n._dragDetails.windowX+"px";break;case"vertical":n._dragDetails.windowY=Math.max(0,Math.min(n._dragDetails.windowY+r,a-n.offsetHeight)),n.style.top=n._dragDetails.windowY+"px";break;case"both":n._dragDetails.windowX=Math.max(0,Math.min(n._dragDetails.windowX+i,o-n.offsetWidth)),n._dragDetails.windowY=Math.max(0,Math.min(n._dragDetails.windowY+r,a-n.offsetHeight)),n.style.left=n._dragDetails.windowX+"px",n.style.top=n._dragDetails.windowY+"px"}n._dragDetails.top=n.offsetTop,n._dragDetails.left=n.offsetLeft}}},{key:"_dragStartHandler",value:function(e){this._dragDetails&&this._dragDetails.started&&e.preventDefault()}},{key:"_focusHandler",value:function(e){var t=this;"focus"===e.type?(t.setAttribute("focus",""),t.bringToFront()):t._buttonPressed||(t.removeAttribute("focus"),t._dragDetails&&t._dragDetails.started&&t._handleWindowResizeDummy())}},{key:"_getAllMinimizedWindows",value:function(e){var t=[];e||(e=this._windowParent.element);for(var n=e.querySelectorAll("smart-window"),i=0;i<n.length;i++)n[i]!==this&&n[i].hasAttribute("minimized")&&t.push(n[i]);return t.sort(function(e,t){var n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return n.right-i.right}),t}},{key:"_handleSnapping",value:function(e){var t=this;e?t.disableSnap||t.collapsed||(t._snapDummy||(t._snapDummy=document.createElement("div"),t._snapDummy.addEventListener("transitionend",function(){t._snapDummy.classList.contains("smart-visibility-hidden")&&t._snapDummy.parentElement&&t._snapDummy.parentElement.removeChild(t._snapDummy)})),t._snapDummy.className="smart-window-snap-"+e+"-feedback",t._snapDummy._position=e,t._snapDummy.parentElement||t._windowParent.element.appendChild(t._snapDummy)):t._snapDummy&&t._snapDummy.parentElement&&t._snapDummy.classList.add("smart-visibility-hidden")}},{key:"_headerDblCickHandler",value:function(e){var t=this,n=t.shadowRoot||t.isInShadowDOM?e.originalEvent.composedPath()[0]:e.originalEvent.target;n!==t.$.headerSection&&n!==t.$.header||t.$.maximizeButton&&0===t.$.maximizeButton.offsetHeight||(t.maximized?t.restore():t.maximize())}},{key:"_isWindowButton",value:function(e){for(var t=this;e&&(e.closest&&e.closest(".smart-buttons-container"))!==t.$.buttonsContainer;)e=e.getRootNode().host;if(e){var n=/smart-(\w+[-]*\w*)-button/gi;if((e=e.closest(".smart-button"))&&e===t._buttonPressed)switch(e){case t.$.closeButton:return t.close(),!0;case t.$.collapseButton:return t.collapsed?t.expand():t.collapse(),!0;case t.$.maximizeButton:return t.maximized?t.restore():t.maximize(),!0;case t.$.minimizeButton:return t.minimized?t.restore():t.minimize(),!0;case t.$.pinButton:return t.pinned?t.unpin():t.pin(),!0;default:if(!n.test(e.className))return;return t.$.fireEvent(Smart.Utilities.Core.toCamelCase(e.className.match(n).toString().replace("smart-","").replace("-button","")),{button:e}),!0}}}},{key:"_keyDownHandler",value:function(e){var t=this;if(delete t._changingFocus,!(t.disabled||(t.hasAttribute("dragged")||t.hasAttribute("resized"))&&t._mouseManipulation)){var n="ArrowDown"===e.key||"ArrowRight"===e.key?10:-10,i=t.enableShadowDOM&&t._windowParent.element.getRootNode()?t._windowParent.element.getRootNode().activeElement:document.activeElement;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":if(t.minimized||i!==t)return;var r=e.key.indexOf("Right")>-1||e.key.indexOf("Left")>-1;e.preventDefault();var a=(t.isInShadowDOM?t.getRootNode().host:t).closest("smart-docking-layout");if(!r&&e.altKey&&!(t instanceof Smart.TabsWindow&&a))return void("ArrowUp"===e.key?t.maximize():t.restore(
1));if(t.maximized)return;if(t.$.addClass("no-transition"),e.ctrlKey&&"none"!==t.resizeMode&&!t.collapsed)return r=-1===["horizontal","vertical","both"].indexOf(t.resizeMode)?t.resizeMode:r?"right":"bottom",t.hasAttribute("dragged")&&t._cancelDragging(e),t.hasAttribute("resized")||t.$.fireEvent("resizeStart",{position:{x:e.pageX,y:e.pageY}}),void t._resize(r,n);t.pinned||(t.hasAttribute("dragged")||(t.setAttribute("dragged",""),t.$.fireEvent("dragStart",{left:e.pageX,top:e.pageY})),t._drag(n,r?"horizontal":"vertical")),t.$.removeClass("no-transition");break;case"Escape":t.headerButtons.indexOf("close")>-1&&t.close();break;case"p":e.altKey&&t.headerButtons.indexOf("pin")>-1&&(t.pinned?t.unpin():t.pin());break;case"c":e.altKey&&t.headerButtons.indexOf("collapse")>-1&&(t.collapsed?t.expand():t.collapse());break;case"m":e.altKey&&t.headerButtons.indexOf("minimize")>-1&&(t.minimized?t.restore():t.minimize());break;case"Tab":t.opened&&t.modal&&(t._changingFocus=!0);break;case"Enter":case" ":var o;if(t.shadowRoot||t.isInShadowDOM?(o=e.composedPath()[0],t._buttonPressed=o.getRootNode().host):(o=e.target.closest&&e.target.closest(".smart-button"),t._buttonPressed=o),!o)return;t._isWindowButton(o),delete t._buttonPressed}}}},{key:"_keyUpHandler",value:function(e){var t=this;if(e.key){if("Control"===e.key&&t._dragDetails&&t.hasAttribute("resized")&&!t._mouseManipulation){if(!t._dragDetails.started)return;"drag"!==t._dragDetails.type&&(t.removeAttribute("resized"),t.$.fireEvent("resizeEnd",{left:e.pageX,top:e.pageY,width:t._dragDetails.newWidth,height:t._dragDetails.newHeight}),t._handleWindowResizeDummy()),t._dragDetails.started=!1}e.key.indexOf("Arrow")>-1&&t.hasAttribute("dragged")&&!t._mouseManipulation&&t._cancelDragging(e)}}},{key:"_mouseWheelHandler",value:function(e){var t=this;!t.disabled&&t._dragDetails&&t._dragDetails.started&&(e.deltaY<0&&t._windowParent.scrollElement.scrollTop+e.deltaY<=0?t.style.top=Math.max(0,t._dragDetails.windowY)+"px":e.deltaY>0&&(t._dragDetails.windowY+t.offsetHeight+e.deltaY>=t._windowParent.scrollElement.scrollHeight||t._windowParent.scrollElement.scrollTop+t._windowParent.element.clientHeight===t._windowParent.scrollElement.scrollHeight)||("drag"===t._dragDetails.type?(t._dragDetails.windowY+=e.deltaY,t.style.top=t._dragDetails.windowY+"px"):(t._dragDetails.height+=e.deltaY,t.style.height=t._dragDetails.height+"px")))}},{key:"_moveHandler",value:function(e){var t=this;if(!(t.disabled||t.collapsed||t.maximized||t.minimized||(Smart.Utilities.Core.isMobile&&navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)&&t.hasAttribute("dragged")&&e.originalEvent.preventDefault(),t._mouseManipulation||(t.$.container.className.indexOf("smart-window-resizing")>-1&&t.$.container.classList.remove("smart-window-resizing-bottom-right","smart-window-resizing-top-right","smart-window-resizing-top-left","smart-window-resizing-bottom-left","smart-window-resizing-top","smart-window-resizing-bottom","smart-window-resizing-left","smart-window-resizing-right"),"none"===t.resizeMode)))){var n=t.getBoundingClientRect(),i=e.clientY<n.top+10,r=e.clientY>n.bottom-10,a=e.clientX>n.right-10,o=e.clientX<n.left+10;switch(t.resizeMode){case"none":break;case"both":if(t.resizeIndicator)return void(r&&a&&t.$.container.classList.add("smart-window-resizing-bottom-right"));if(o||a)return i?void t.$.container.classList.add("smart-window-resizing-top-"+(o?"left":"right")):r?void t.$.container.classList.add("smart-window-resizing-bottom-"+(o?"left":"right")):void t.$.container.classList.add("smart-window-resizing-"+(o?"left":"right"));if(i||r){if(a)return void t.$.container.classList.add("smart-window-resizing-"+(i?"top-right":"bottom-right"));if(o)return void t.$.container.classList.add("smart-window-resizing-"+(i?"top-left":"bottom-left"));t.$.container.classList.add("smart-window-resizing-"+(i?"top":"bottom"))}break;case"horizontal":if(t.resizeIndicator)return void(r&&a&&t.$.container.classList.add("smart-window-resizing-right"));if(o)return void t.$.container.classList.add("smart-window-resizing-left");a&&t.$.container.classList.add("smart-window-resizing-right");break;case"vertical":if(t.resizeIndicator)return void(r&&a&&t.$.container.classList.add("smart-window-resizing-bottom"));if(i)return void t.$.container.classList.add("smart-window-resizing-top");r&&t.$.container.classList.add("smart-window-resizing-bottom");break;case"top":if(i){if(t.resizeIndicator&&!o)return;t.$.container.classList.add("smart-window-resizing-top")}break;case"bottom":if(r){if(t.resizeIndicator&&!a)return;t.$.container.classList.add("smart-window-resizing-bottom")}break;case"left":if(o){if(t.resizeIndicator&&!i)return;t.$.container.classList.add("smart-window-resizing-left")}break;case"right":if(a){if(t.resizeIndicator&&!r)return;t.$.container.classList.add("smart-window-resizing-right")}}}}},{key:"_handleActiveState",value:function(){for(var e=this,t=document.querySelectorAll(".smart-window"),n=0;n<t.length;n++)t[n].contains(e)||e.contains(t[n])||(t[n].removeAttribute("active"),t[n].removeAttribute("focus"));e.setAttribute("active","")}},{key:"_handleWindowResizeDummy",value:function(){var e=this;if(e._resizeDummy||(e._resizeDummy=document.createElement("div"),e._resizeDummy.classList.add("smart-window-resize-feedback")),!e.hasAttribute("resized"))return e._resizeDummy&&e._resizeDummy.remove(),void(!e.liveResize&&"resize"===e._dragDetails.type&&e._dragDetails.started&&(e.style.top=e._dragDetails.top+"px",e.style.left=e._dragDetails.left+"px",e.style.width=e._dragDetails.newWidth+"px",e.style.height=e._dragDetails.newHeight+"px"));e._resizeDummy.parentElement||e._resizeDummy.getRootNode().host||(e._resizeDummy.style.width=e.offsetWidth+"px",e._resizeDummy.style.height=e.offsetHeight+"px",e._resizeDummy.style.top=e.offsetTop+"px",e._resizeDummy.style.left=e.offsetLeft+"px",e._windowParent.element.appendChild(e._resizeDummy))}},{key:"_resize",value:function(e,t){var n,i=this;if((!i._dragDetails||i._dragDetails&&"drag"===i._dragDetails.type)&&i._setDragDetails("resize"),i._dragDetails){i._dragDetails.started=!0,i.hasAttribute("resized")||(i.setAttribute("resized",""),i.hasAnimation&&i.$.addClass("no-transition")),i.liveResize||i._handleWindowResizeDummy();var r=i._snapDummy&&i.$.hasClass("smart-window-snapped-"+i._snapDummy._position)?"snapWindowWidth":"width";switch(e){case"left":n=(n="object"==typeof t?t.pageX-i._dragDetails.x:t)>0?Math.min(n,i._dragDetails[r]-i._dragDetails.minWidth):-1*Math.min(i._dragDetails.maxWidth?i._dragDetails.maxWidth-i._dragDetails[r]:i._dragDetails.left,Math.abs(n)),i._dragDetails[r]=Math.min(i._dragDetails[r]+i._dragDetails.left-i._windowParent.scrollElement.scrollLeft,i._dragDetails[r]-n),i._dragDetails.windowX=Math.max(i._windowParent.scrollElement.scrollLeft,i._dragDetails.windowX+n),"object"!=typeof t&&(i._dragDetails[r]=Math.max(i._dragDetails[r],i._dragDetails.minWidth)),i._dragDetails[r]>=i._dragDetails.minWidth&&(i._dragDetails.left=i._dragDetails.windowX,i._dragDetails.newWidth=i._dragDetails[r]);break;case"right":var a=i._windowParent.element.clientWidth!==i._windowParent.element.offsetWidth?i._windowParent.borderWidth:0,o=i._snapDummy&&i.$.hasClass("smart-window-snapped-"+i._snapDummy._position)?"snapWindowWidth":"width";(n="object"==typeof t?t.pageX-i._dragDetails.x:t)>0&&i._dragDetails.maxWidth&&(n=Math.min(i._dragDetails.maxWidth-i._dragDetails[o],n)),i._dragDetails[o]=Math.min(i._windowParent.element.clientWidth+i._windowParent.scrollElement.scrollLeft-i._dragDetails.left-a,Math.max(0,i._dragDetails[o]+n)),"object"!=typeof t&&(i._dragDetails[o]=Math.max(i._dragDetails[o],i._dragDetails.minWidth)),i._dragDetails.left=i.offsetLeft,i._dragDetails.newWidth=Math.max(i._dragDetails.minWidth,i._dragDetails[o]);break;case"top":i._snapDummy&&i.$.hasClass("smart-window-snapped-"+i._snapDummy._position)&&(i._dragDetails.height=i._dragDetails.snapWindowHeight),n=(n="object"==typeof t?t.pageY-i._dragDetails.y:t)>0?Math.min(n,i._dragDetails.height-i._dragDetails.minHeight):-1*Math.min(i._dragDetails.maxHeight?i._dragDetails.maxHeight-i._dragDetails.height:i._dragDetails.top,Math.abs(n)),i._dragDetails.snapWindowHeight=i._dragDetails.height=Math.min(i._dragDetails.height+i._dragDetails.top-i._windowParent.scrollElement.scrollTop,i._dragDetails.height-n),i._dragDetails.windowY=Math.max(i._windowParent.scrollElement.scrollTop,i._dragDetails.windowY+n),"object"!=typeof t&&(i._dragDetails.snapWindowHeight=i._dragDetails.height=Math.max(i._dragDetails.height,i._dragDetails.minHeight)),i._dragDetails.height>=i._dragDetails.minHeight&&(i._dragDetails.top=i._dragDetails.windowY,i._dragDetails.newHeight=i._dragDetails.height),i._dragDetails.newWidth=Math.max(i._dragDetails[r],i._dragDetails.newWidth);break;case"bottom":i._snapDummy&&i.$.hasClass("smart-window-snapped-"+i._snapDummy._position)&&(i._dragDetails.height=i._dragDetails.snapWindowHeight),(n="object"==typeof t?t.pageY-i._dragDetails.y:t)>0&&i._dragDetails.maxHeight&&(n=Math.min(i._dragDetails.maxHeight-i._dragDetails.height,n)),i._dragDetails.snapWindowHeight=i._dragDetails.height=Math.min(i._windowParent.element.clientHeight+i._windowParent.scrollElement.scrollTop-i._dragDetails.top-i._windowParent.borderWidth,Math.max(0,i._dragDetails.height+n)),"object"!=typeof t&&(i._dragDetails.snapWindowHeight=i._dragDetails.height=Math.max(i._dragDetails.height,i._dragDetails.minHeight)),i._dragDetails.newHeight=Math.max(i._dragDetails.minHeight,i._dragDetails.height),i._dragDetails.newWidth=Math.max(i._dragDetails[r],i._dragDetails.newWidth);break;case"bottomLeftCorner":i._resize("bottom",t),i._resize("left",t);break;case"bottomRightCorner":i._resize("bottom",t),i._resize("right",t);break;case"topLeftCorner":i._resize("top",t),i._resize("left",t);break;case"topRightCorner":i._resize("top",t),i._resize("right",t)}var s=i.liveResize?i:i._resizeDummy;i._dragDetails.newHeight=Math.max(i._dragDetails.snapWindowHeight,i._dragDetails.newHeight),s.style.top=i._dragDetails.top+"px",s.style.left=i._dragDetails.left+"px",s.style.width=i._dragDetails.newWidth+"px",s.style.height=i._dragDetails.newHeight+"px"}}}
1,{key:"_restoreFromMinimization",value:function(){var e=this;e.minimized=!1,e.style.width=e.style.height=e.style.top=e.style.left="",e._refreshMinimizedWindowsPosition()}},{key:"_refreshMinimizedWindowsPosition",value:function(){var e=this._getAllMinimizedWindows();if(0!==e.length){var t;e[0].style.left="5px";for(var n=1;n<e.length;n++)parseFloat(e[n-1].style.left)+e[n-1].offsetWidth+e[n].offsetWidth+10<this._windowParent.element.clientWidth?(e[n].style.left=parseFloat(e[n-1].style.left)+e[n-1].offsetWidth+5+"px",e[n].style.top=e[n-1].offsetTop+"px",t=e[n]):(e[n].style.left=parseFloat(t.style.left)+"px",e[n].style.top=t.offsetTop+"px")}}},{key:"_setHeaderButtons",value:function(){for(var e=this,t=e.headerButtons,n=e.$.buttonsContainer.children,i=function(t){var n=e.$.buttonsContainer.getElementsByClassName("smart-"+(t+"").split(/(?=[A-Z])/).join("-").toLowerCase()+"-button")[0];return n&&n.classList.remove("smart-hidden"),n},r=0;r<n.length;r++)n[r].classList.add("smart-hidden");if(t.length>0)for(var a=0;a<t.length;a++){var o=i(t[a]);if(!o){var s=(t[a]+"").split(/(?=[A-Z])/);(o=document.createElement("button")).setAttribute("aria-label",s.map(function(e){return e.slice(0,1).toUpperCase()+e.slice(1)}).join(" ")),o.classList.add("smart-"+s.join("-").toLowerCase()+"-button","smart-button","smart-element")}e.$.buttonsContainer.insertBefore(o,e.$.buttonsContainer.firstElementChild)}}},{key:"_setDragDetails",value:function(e,t){var n=this;if(n._dragDetails||(n._dragDetails={}),void 0===n._dragDetails.minWidth||void 0===n._dragDetails.minHeight||void 0===n._dragDetails.maxWidth||void 0===n._dragDetails.maxHeight){var i=getComputedStyle(n);n._dragDetails.minWidth=parseFloat(i.getPropertyValue("min-width"))||0,n._dragDetails.minHeight=parseFloat(i.getPropertyValue("min-height"))||0,n._dragDetails.maxWidth=parseFloat(i.getPropertyValue("max-width"))||0,n._dragDetails.maxHeight=parseFloat(i.getPropertyValue("max-height"))||0}n._dragDetails.windowX=n.offsetLeft,n._dragDetails.windowY=n.offsetTop;var r=n.getBoundingClientRect();if(n._snapDummy&&n.$.hasClass("smart-window-snapped-"+n._snapDummy._position))"right"===n.headerPosition&&n.collapsed&&(n._dragDetails.offsetX=r.left+n.offsetWidth-t.clientX);else{var a=n.parentElement===document.body?document.documentElement.getBoundingClientRect():n.parentElement?n.parentElement.getBoundingClientRect():document.documentElement.getBoundingClientRect(),o=window.scrollX||window.pageXOffset,s=window.scrollY||window.pageYOffset;n._windowParent.offsetLeft=a.left+o,n._windowParent.offsetTop=a.top+s,t&&"object"==typeof t&&(n._dragDetails.offsetX=t.clientX-r.left,n._dragDetails.offsetY=t.clientY-r.top),n.collapsed||(n.hasAnimation&&"minimize"===e?(n._dragDetails.width=n._dragDetails.width?n._dragDetails.width:n.offsetWidth,n._dragDetails.height=n._dragDetails.height?n._dragDetails.height:n.offsetHeight):(n._dragDetails.width=n.offsetWidth,n._dragDetails.height=n.offsetHeight),(n.style.width||n.style.height)&&(n._dragDetails.resized=!0))}if("minimize"!==e&&e&&(n._dragDetails.type=e,n._dragDetails.started=!0,n._dragDetails.snapWindowWidth=n.offsetWidth,n._dragDetails.snapWindowHeight=n.offsetHeight,t&&"object"==typeof t?(n._dragDetails.x=t.pageX,n._dragDetails.y=t.pageY):(n._dragDetails.x=n.offsetLeft,n._dragDetails.y=n.offsetTop),"resize"===e)){if("none"===n.resizeMode)return void delete n._dragDetails;n._dragDetails.top=n.offsetTop,n._dragDetails.left=n.offsetLeft,n._dragDetails.newWidth=n._dragDetails.width,n._dragDetails.newHeight=n._dragDetails.height,n.$container.hasClass("smart-window-resizing-right")?n._dragDetails.side="right":n.$container.hasClass("smart-window-resizing-left")?n._dragDetails.side="left":n.$container.hasClass("smart-window-resizing-top")?n._dragDetails.side="top":n.$container.hasClass("smart-window-resizing-bottom")?n._dragDetails.side="bottom":n.$container.hasClass("smart-window-resizing-top-left")?n._dragDetails.side="topLeftCorner":n.$container.hasClass("smart-window-resizing-bottom-left")?n._dragDetails.side="bottomLeftCorner":n.$container.hasClass("smart-window-resizing-top-right")?n._dragDetails.side="topRightCorner":n.$container.hasClass("smart-window-resizing-bottom-right")&&(n._dragDetails.side="bottomRightCorner")}}},{key:"_setElementParent",value:function(e){var t=this;if(t._windowParent.element=void 0,t._windowParent.parent&&!t._windowParent.parent.querySelectorAll("smart-window, smart-dialog-window, smart-progress-window, smart-wait-window, smart-alert-window, smart-prompt-window, smart-multiline-prompt-window")&&(t._windowParent.parent.style.position=""),e instanceof HTMLElement)t._windowParent.element=e;else if("string"==typeof e)if("body"===e){var n=t.getRootNode();t._windowParent.element=n&&n.host?t.getShadowRootOrBody():document.body}else t._windowParent.element=document.getElementById(e);if(t._windowParent.element||(t._windowParent.element=t._windowParent.initialParent&&t._windowParent.initialParent.parentElement?t._windowParent.initialParent:t.getShadowRootOrBody()),t.parentElement!==t._windowParent.element&&t._windowParent.element.appendChild(t),t._windowParent.element===document.body)t._windowParent.element=document.documentElement,t._windowParent.scrollElement=document.scrollingElement,t._windowParent.parent=document.body,t._windowParent.borderWidth=0;else{if(t.parentElement instanceof Smart.Window&&!t.parentElement.isCompleted)return void t.parentElement.whenRendered(function(){t.parentElement.appendChild(t),t._setElementParent(t.windowParent)});t._windowParent.element instanceof Smart.Window&&(t._windowParent.element=t._windowParent.element.$.content);var i=getComputedStyle(t.parentElement),r=i.getPropertyValue("position");t._windowParent.borderWidth=2*parseInt(i.getPropertyValue("border-width")||0),t._windowParent.parent=t.parentElement,t._windowParent.scrollElement=t._windowParent.element,"static"===r&&(t.parentElement.style.position="relative")}t._setModal(),t.style.left&&t.offsetLeft>t._windowParent.scrollElement.scrollWidth&&(t.style.left=t._windowParent.scrollElement.scrollWidth-t.offsetWidth+"px"),t.style.top&&t.offsetTop>t._windowParent.scrollElement.scrollHeight&&(t.style.top=t._windowParent.scrollElement.scrollHeight-t.offsetHeight+"px")}},{key:"_setModal",value:function(){var e=this;if(delete e._changingFocus,e._windowParent.element)if(e.modal)if(e._modal||(e._modal=document.createElement("div"),e._modal.classList.add("smart-modal")),e._windowParent.parent!==document.body?e._modal.setAttribute("nested-modal",""):e._modal.removeAttribute("nested-modal"),e._modal._window=e,e.opened&&!e._modal.parentElement){var t=parseInt(getComputedStyle(e).getPropertyValue("z-index"));isNaN(t)||(e._modal.style.zIndex=t-1),e.parentElement.insertBefore(e._modal,e)}
1else e._modal.parentElement&&e._modal.parentElement.removeChild(e._modal);else e._modal&&e._modal.parentElement&&(e._modal.parentElement.removeChild(e._modal),delete e._modal)}}],[{key:"properties",get:function(){return{collapsed:{value:!1,type:"boolean"},closeOnMaskClick:{value:!1,type:"boolean"},disableSnap:{value:!1,type:"boolean"},footerPosition:{value:"bottom",allowedValues:["bottom","none"],type:"string"},footerTemplate:{value:null,type:"any"},headerButtons:{value:["close","maximize","minimize"],type:"array"},headerPosition:{value:"top",allowedValues:["top","bottom","left","right","none"],type:"string"},headerTemplate:{value:null,type:"any"},label:{value:"",type:"string"},liveResize:{value:!1,type:"boolean"},maximized:{value:!1,type:"boolean"},modal:{value:!1,type:"boolean"},minimized:{value:!1,type:"boolean"},opened:{value:!1,type:"boolean"},pinned:{value:!1,type:"boolean"},resizeIndicator:{value:!1,type:"boolean"},resizeMode:{allowedValues:["none","horizontal","vertical","both","top","bottom","left","right"],value:"none",type:"string"},windowParent:{value:null,type:"any"}}}},{key:"listeners",get:function(){return{"document.dragstart":"_dragStartHandler","document.focusin":"_documentFocusInEventHandler","document.move":"_documentMoveHandler","document.up":"_documentUpHandler","document.wheel":"_mouseWheelHandler","document.selectstart":"_documentSelectStartHandler",down:"_downHandler",focu
1s:"_focusHandler",blur:"_focusHandler",move:"_moveHandler",keydown:"_keyDownHandler",keyup:"_keyUpHandler"}}},{key:"styleUrls",get:function(){return["smart.button.css","smart.window.css"]}},{key:"requires",get:function(){return{"Smart.Button":"smart.button.js"}}}]),n}()),Smart("smart-dialog-window",function(e){_inherits(n,Smart.Window);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div role="presentation">\n <div class="smart-content-container" id="container">\n <div id="headerSection" class="smart-header-section" role="heading" aria-level="1">\n <div id="header" class="smart-header">[[label]]</div>\n <div id="buttonsContainer" class="smart-buttons-container">\n <button id="pinButton" class="smart-pin-button" aria-label="Pin"></button>\n <button id="collapseButton" class="smart-button smart-element smart-collapse-button" aria-label="Collapse"></button>\n <button id="minimizeButton" class="smart-button smart-element smart-minimize-button" aria-label="Minimize"></button>\n <button id="maximizeButton" class="smart-button smart-element smart-maximize-button" aria-label="Maximize"></button>\n <button id="closeButton" class="smart-button smart-element smart-close-button" aria-label="Close"></button>\n </div>\n </div>\n <div class="smart-content">\n <content></content>\n </div>\n <div id="footer" class="smart-footer">\n <button id="confirmButton" class="smart-button smart-element smart-confirm-button">[[confirmLabel]]</button>\n <button id="cancelButton" class="smart-button smart-element smart-cancel-button">[[cancelLabel]]</button>\n </div>\n </div>\n </div>'}},{key:"_createElement",value:function(){var e=this;e.setAttribute("role","alertdialog"),e.setAttribute("aria-describedby",e.$.content.id)}},{key:"_footerClickHandler",value:function(e){var t=e.target;t.closest(".smart-confirm-button")?this.$.fireEvent("confirm"):t.closest(".smart-cancel-button")&&this.$.fireEvent("cancel")}},{key:"_keyDownHandler",value:function(e){var t=this;if(delete t._changingFocus,!(t.disabled||(t.hasAttribute("dragged")||t.hasAttribute("resized"))&&t._mouseManipulation)){e.stopPropagation();var n="ArrowDown"===e.key||"ArrowRight"===e.key?10:-10,i=t.enableShadowDOM&&t._windowParent.element.getRootNode()?t._windowParent.element.getRootNode().activeElement:document.activeElement;switch(e.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":if(t.minimized||i!==t)return;var r=e.key.indexOf("Right")>-1||e.key.indexOf("Left")>-1;if(e.preventDefault(),!r&&e.altKey)return void("ArrowUp"===e.key?t.maximize():t.restore());if(t.$.addClass("no-transition"),t.maximized)return;if(e.ctrlKey&&"none"!==t.resizeMode)return t.hasAttribute("dragged")&&t._cancelDragging(e),t.hasAttribute("resized")||t.$.fireEvent("resizeStart",{position:{x:e.pageX,y:e.pageY}}),void t._resize(r?"right":"bottom",n);t.pinned||(t.hasAttribute("dragged")||(t.setAttribute("dragged",""),t.$.fireEvent("dragStart",{left:e.pageX,top:e.pageY})),t._drag(n,r?"horizontal":"vertical")),t.$.removeClass("no-transition");break;case"Escape":t.headerButtons.indexOf("close")>-1&&t.close();break;case"Tab":t.opened&&t.modal&&(t._changingFocus=!0);break;case"Enter":case" ":var a;if(t.shadowRoot||t.isInShadowDOM?(a=e.composedPath()[0],t._buttonPressed=a.getRootNode().host):(a=e.target.closest&&e.target.closest(".smart-button"),t._buttonPressed=a),!a)return;t._isWindowButton(a),delete t._buttonPressed}}}}],[{key:"properties",get:function(){return{cancelLabel:{value:"Cancel",type:"string"},confirmLabel:{value:"Ok",type:"string"}
1,disableSnap:{value:!0,readOnly:!0,type:"boolean"},headerButtons:{value:["close"],type:"array"},modal:{value:!0,readOnly:!0,type:"boolean",defaultReflectToAttribute:!0}}}},{key:"listeners",get:function(){return{"footer.click":"_footerClickHandler"}}}]),n}()),Smart("smart-alert-window",function(e){_inherits(n,Smart.DialogWindow);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"_createElement",value:function(){var e=this;e.setAttribute("role","alertdialog"),e.setAttribute("aria-describedby",e.$.content.id)}}],[{key:"properties",get:function(){return{headerButtons:{value:[],type:"array"}}}}]),n}()),Smart("smart-prompt-window",function(e){_inherits(n,Smart.DialogWindow);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div role="presentation">\n <div class="smart-content-container" id="container">\n <div id="headerSection" class="smart-header-section" role="heading" aria-level="1">\n <div id="header" class="smart-header">[[label]]</div>\n <div id="buttonsContainer" class="smart-buttons-container">\n <button id="closeButton" class="smart-button smart-element smart-close-button" aria-label="Close"></button>\n </div>\n </div>\n <div class="smart-content">\n <content></content>\n <smart-text-box id="textBox"\n animation="[[animation]]"\n auto-complete="[[autoComplete]]"\n max-length="[[maxLength]]"\n value="{{value}}"\n form="[[form]]"\n label="[[promptLabel]]"\n hint="[[hint]]"\n display-mode="[[displayMode]]"\n max-length="[[maxLength]]"\n placeholder="[[placeholder]]"\n required="[[required]]"\n required-message="[[requiredMessage]]"\n select-all-on-focus="[[selectAllOnFocus]]"\n theme="[[theme]]"\n right-to-left="[[rightToLeft]]">\n </smart-text-box>\n </div>\n <div id="footer" class="smart-footer">\n <button id="confirmButton" class="smart-button smart-element smart-confirm-button flat">[[confirmLabel]]</button>\n <button id="cancelButton" class="smart-button smart-element smart-cancel-button flat">[[cancelLabel]]</button>\n </div>\n </div>\n </div>'}},{key:"_footerClickHandler",value:function(e){var t=this,n=e.target;n.closest(".smart-confirm-button")?t.$.fireEvent("confirm",{value:t.$.textBox.value}):n.closest(".smart-cancel-button")&&t.$.fireEvent("cancel",{value:t.$.textBox.value})}},{key:"_keyDownHandler",value:function(e){var t=this;function n(){t._dragDetails&&(t._dragDetails.started=!1),t.$.removeClass("no-transition")}if(delete t._changingFocus,!(t.disabled||t._dragDetails&&t._dragDetails.started)){e.stopPropagation();var i="ArrowDown"===e.key||"ArrowRight"===e.key?10:-10,r=t.enableShadowDOM&&t._windowParent.element.getRootNode()?t._windowParent.element.getRootNode().activeElement:document.activeElement;switch(t.$.removeClass("no-transition"),e.key){case"ArrowUp":case"ArrowDown":if(r!==t)return;if(e.preventDefault(),e.altKey)return"ArrowUp"===e.key?t.maximize():t.restore(),void n();if(t.$.addClass("no-transition"),e.ctrlKey)return t._resize("bottom",i),void n();t._drag(i,"vertical");break;case"ArrowLeft":case"ArrowRight":if(r!==t)return;if(e.preventDefault(),t.$.addClass("no-transition"),e.ctrlKey)return t._resize("right",i),void n();t._drag(i,"horizontal"),t.$.removeClass("no-transition");break;case"Escape":t.headerButtons.indexOf("close")>-1&&t.close();break;case"Tab":t.opened&&t.modal&&(t._changingFocus=!0);break;case"Enter":case" ":var a;if(t.shadowRoot||t.isInShadowDOM?(a=e.composedPath()[0],t._buttonPressed=a.getRootNode().host):(a=e.target.closest&&e.target.closest(".smart-button"),t._buttonPressed=a),!a)return;t._isWindowButton(a),delete t._buttonPressed}n()}}}],[{key:"properties",get:function(){return{autoComplete:{allowedValues:["none","manual","auto","inline"],type:"string",value:"manual"},confirmLabel:{value:"Ok",type:"string"},cancelLabel:{value:"Cancel",type:"string"}
1,disableSnap:{value:!0,readOnly:!0,type:"boolean"},displayMode:{value:"default",allowedValues:["default","escaped"],type:"string"},headerButtons:{value:["close"],type:"array"},form:{value:"",type:"string"},hint:{value:null,type:"any?"},maxLength:{value:null,type:"number?"},minLength:{value:2,type:"number"},messages:{extend:!0,value:{en:{missingReference:"{{elementType}}: Missing reference to {{files}}."}},type:"object"},modal:{value:!0,readOnly:!0,type:"boolean",defaultReflectToAttribute:!0},name:{value:"",type:"string"},placeholder:{value:"",type:"string"},promptLabel:{value:"",type:"string?"},required:{value:!1,type:"boolean"},requiredMessage:{value:"",type:"string"},selectAllOnFocus:{value:!1,type:"boolean"},value:{value:"",type:"string"}}}},{key:"listeners",get:function(){return{"footer.click":"_footerClickHandler"}}},{key:"requires",get:function(){return{"Smart.TextBox":"smart.textbox.js"}}}]),n}()),Smart("smart-multiline-prompt-window",function(e){_inherits(n,Smart.PromptWindow);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div role="presentation">\n <div class="smart-content-container" id="container">\n <div id="headerSection" class="smart-header-section" role="heading" aria-level="1">\n <div id="header" class="smart-header">[[label]]</div>\n <div id="buttonsContainer" class="smart-buttons-container">\n <button id="closeButton" class="smart-button smart-element smart-close-button" aria-label="Close"></button>\n </div>\n </div>\n <div class="smart-content">\n <content></content>\n <smart-multiline-text-box id="textBox"\n animation="[[animation]]"\n horizontal-scroll-bar-visibility= "[[horizontalScrollBarVisibility]]"\n vertical-scroll-bar-visibility= "[[verticalScrollBarVisibility]]"\n auto-capitalize="[[autoCapitalize]]"\n auto-expand = "[[autoExpand]]"\n selection-direction= "[[selectionDirection]]"\n selection-end= "[[selectionEnd]]"\n selection-start="[[selectionStart]]"\n spell-check= "[[spellCheck]]"\n wrap="[[wrap]]"\n max-length="[[maxLength]]"\n value="{{value}}"\n form="[[form]]"\n label="[[promptLabel]]"\n hint="[[hint]]"\n display-mode="[[displayMode]]"\n max-length="[[maxLength]]"\n placeholder="[[placeholder]]"\n required="[[required]]"\n required-message="[[requiredMessage]]"\n select-all-on-focus="[[selectAllOnFocus]]"\n theme="[[theme]]"\n right-to-left="[[rightToLeft]]">\n </smart-multiline-text-box>\n </div>\n <div id="footer" class="smart-footer">\n <button id="confirmButton" class="smart-button smart-element smart-confirm-button flat">[[confirmLabel]]</button>\n <button id="cancelButton" class="smart-button smart-element smart-cancel-button flat">[[cancelLabel]]</button>\n </div>\n </div>\n </div>'}},{key:"_footerClickHandler",value:function(e){var t=this,n=e.target;n.closest(".smart-confirm-button")?t.$.fireEvent("confirm",{value:t.$.textBox.value}):n.closest(".smart-cancel-button")&&t.$.fireEvent("cancel",{value:t.$.textBox.value})}}],[{key:"properties",get:function(){return{autoCapitalize:{value:"none",allowedValues:["none","words","characters"],type:"string"},autoExpand:{value:!1,type:"boolean"}
1,headerButtons:{value:["close"],type:"array"},horizontalScrollBarVisibility:{type:"string",value:"auto",allowedValues:["auto","disabled","hidden","visible"]},modal:{value:!0,readOnly:!0,type:"boolean",defaultReflectToAttribute:!0},selectionDirection:{value:"none",allowedValues:["forward","backward","none"],type:"string"},selectionEnd:{value:0,reflectToAttribute:!1,type:"number"},selectionStart:{value:0,reflectToAttribute:!1,type:"number"},spellCheck:{value:!1,type:"boolean"},verticalScrollBarVisibility:{type:"string",value:"auto",allowedValues:["auto","disabled","hidden","visible"]},wrap:{value:"soft",allowedValues:["hard","soft","off"],type:"string"}}}},{key:"listeners",get:function(){return{"footer.click":"_footerClickHandler"}}},{key:"requires",get:function(){return{"Smart.MultilineTextBox":"smart.multilinetextbox.js"}}}]),n}()),Smart("smart-progress-window",function(e){_inherits(n,Smart.Window);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div role="presentation">\n <div class="smart-content-container" id="container">\n <div id="headerSection" class="smart-header-section" role="heading" aria-level="1">\n <div id="header" class="smart-header">[[label]]</div>\n <div id="buttonsContainer" class="smart-buttons-container">\n <button id="closeButton" class="smart-button smart-element smart-close-button" aria-label="Close"></button>\n </div>\n </div>\n <div class="smart-content" inner-h-t-m-l="[[innerHTML]]">\n <content></content>\n </div>\n <div id="footer" class="smart-footer">\n <smart-progress-bar id="progressBar"\n animation="[[animation]]"\n min="[[min]]"\n max="[[max]]"\n indeterminate="[[inditerminate]]"\n inverted="[[inverted]]"\n format-function="[[formatFunction]]"\n show-progress-value="[[showProgressValue]]"\n theme="[[theme]]"\n right-to-left="[[rightToLeft]]"\n value="{{value}}">\n </smart-progress-bar>\n <button id="completeButton" class="smart-button smart-element smart-complete-button smart-visibility-hidden">[[completeLabel]]</button>\n </div>\n </div>\n </div>'}},{key:"propertyChangedHandler",value:function(e,t,i){"value"===e?this._handleCompletion():_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i)}},{key:"_createElement",value:function(){this.setAttribute("role","dialog"),this._handleCompletion()}},{key:"_handleCompletion",value:function(){var e=this;e.$.completeButton&&(e.value>=e.max?(e.$completeButton.removeClass("smart-visibility-hidden"),e.$progressBar.addClass("smart-visibility-hidden")):(e.$completeButton.addClass("smart-visibility-hidden"),e.$progressBar.removeClass("smart-visibility-hidden")))}},{key:"_keyDownHandler",value:function(e){var t=this;function n(){t._dragDetails&&(t._dragDetails.started=!1),t.$.removeClass("no-transition")}if(delete t._changingFocus,!(t.disabled||t._dragDetails&&t._dragDetails.started)){e.stopPropagation();var i="ArrowDown"===e.key||"ArrowRight"===e.key?10:-10,r=t.enableShadowDOM&&t._windowParent.element.getRootNode()?t._windowParent.element.getRootNode().activeElement:document.activeElement;switch(t.$.removeClass("no-transition"),e.key){case"ArrowUp":case"ArrowDown":if(r!==t)return;if(e.preventDefault(),e.altKey)return"ArrowUp"===e.key?t.maximize():t.restore(),void n();if(t.$.addClass("no-transition"),e.ctrlKey)return t._resize("bottom",i),void n();t._drag(i,"vertical"),t.$.removeClass("no-transition");break;case"ArrowLeft":case"ArrowRight":if(r!==t)return;if(e.preventDefault(),t.$.addClass("no-transition"),e.ctrlKey)return t._resize("right",i),void n();t._drag(i,"horizontal"),t.$.removeClass("no-transition");break;case"Escape":t.headerButtons.indexOf("close")>-1&&t.close();break;case"Tab":t.opened&&t.modal&&(t._changingFocus=!0);break;case"Enter":case" ":var a;if(t.shadowRoot||t.isInShadowDOM?(a=e.composedPath()[0],t._buttonPressed=a.getRootNode().host):(a=e.target.closest&&e.target.closest(".smart-button"),t._buttonPressed=a),!a)return;t._isWindowButton(a),delete t._buttonPressed}n()}}}],[{key:"properties",get:function(){return{completeLabel:{value:"Continue",type:"string"}
1,disableSnap:{value:!0,readOnly:!0,type:"boolean"},headerButtons:{value:["close"],type:"array"},indeterminate:{value:!1,type:"boolean"},inverted:{value:!1,type:"boolean"},formatFunction:{value:null,type:"function"},max:{value:100,type:"number"},modal:{value:!0,readOnly:!0,type:"boolean",defaultReflectToAttribute:!0},min:{value:0,type:"number"},showProgressValue:{value:!1,type:"boolean"},value:{value:0,type:"number?"}}}},{key:"requires",get:function(){return{"Smart.ProgressBar":"smart.progressbar.js"}}}]),n}()),Smart("smart-tabs-window",function(e){_inherits(n,Smart.Window);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div role="presentation">\n <div class="smart-content-container" id="container">\n <div id="headerSection" class="smart-header-section" role="heading" aria-level="1">\n <div id="header" class="smart-header">[[label]]</div>\n <div id="buttonsContainer" class="smart-buttons-container">\n <button id="minimizeButton" class="smart-button smart-element smart-minimize-button" aria-label="Minimize"></button>\n <button id="maximizeButton" class="smart-button smart-element smart-maximize-button" aria-label="Maximize"></button>\n <button id="closeButton" class="smart-button smart-element smart-close-button" aria-label="Close"></button>\n </div>\n </div>\n <div id="contentSection" class="smart-content">\n <smart-tabs id="tabsElement"\n animation="[[animation]]"\n add-new-tab="[[addNewTab]]"\n allow-toggle="[[allowToggle]]"\n close-button-mode="[[tabCloseButtonMode]]"\n close-buttons="[[tabCloseButtons]]"\n disabled="[[disabled]]"\n overflow="[[tabOverflow]]"\n reorder="[[tabReorder]]"\n resize="[[tabResize]]"\n scroll-buttons-position="[[tabScrollButtonsPosition]]"\n selected-index="{{selectedIndex}}"\n selection-mode="[[selectionMode]]"\n tab-layout="[[tabLayout]]"\n tab-position="[[tabPosition]]"\n tab-text-orientation="[[tabTextOrientation]]"\n theme="[[theme]]"\n right-to-left="[[rightToLeft]]">\n <content></content>\n </smart-tabs>\n </div>\n <div id="footer" class="smart-footer smart-hidden"></div>\n </div>\n </div>'}},{key:"appendChild",value:function(e){var t=this;if(!t.isCompleted||e instanceof HTMLElement&&e.classList.contains("smart-resize-trigger-container")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.appendChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}e?(e instanceof Smart.TabItem||t.error(t.localize("tabItemRequired",{method:"removeChild"})),t.$.tabsElement.appendChild(e)):t.error(t.localize("invalidNode",{elementType:t.nodeName.toLowerCase(),method:"appendChild",node:"node"}))}},{key:"insert",value:function(e,t){this.$.tabsElement.insert(e,t);var n=this.$.tabsElement._tabs[e];n&&(n.draggable=void 0===t.draggable||t.draggable,n.floatable=void 0===t.floatable||t.floatable)}},{key:"insertBefore",value:function(e,t){this.$.tabsElement.insertBefore(e,t)}},{key:"removeAt",value:function(e){this.$.tabsElement.removeAt(e)}},{key:"removeChild",value:function(e){var t=this;if(!t.isCompleted||e instanceof HTMLElement&&e.classList.contains("smart-resize-trigger-container")){var n=Array.prototype.slice.call(arguments,2);return HTMLElement.prototype.removeChild.apply(t,n.concat(Array.prototype.slice.call(arguments)))}e?(e instanceof Smart.TabItem||t.error(t.localize("tabItemRequired",{method:"removeChild"})),(t.shadowRoot||t).contains(e)||t.error(t.localize("referenceNodeNotChild",{argument:"node"})),t.$.tabsElement.removeChild(e)):t.error(t.localize("invalidNode",{elementType:t.nodeName.toLowerCase(),method:"removeChild",no
1de:"node"}))}},{key:"refreshTabHeader",value:function(){var e=this;e.$.tabsElement&&e.$.tabsElement.isCompleted&&e.$.tabsElement.refreshTabHeader()}},{key:"refreshTabs",value:function(){var e=this;e.$.tabsElement&&e.$.tabsElement.isCompleted&&e.$.tabsElement._applyTabOverflow()}},{key:"select",value:function(e){this.$.tabsElement.select(e)}},{key:"update",value:function(e,t,n){this.$.tabsElement.update(e,t,n)}},{key:"items",get:function(){return this.isCompleted&&this.$.tabsElement?this.$.tabsElement._tabs:null}},{key:"itemLabels",get:function(){return this.$?this.$.tabsElement._tabLabelContainers:null}},{key:"siblings",get:function(){var e=this,t=[];if(!e.isCompleted)return t;var n=e.closest("smart-splitter");if(!n||!n.closest("smart-docking-layout"))return t;var i=n._items;if(!i||!i.length)return t;for(var r=0;r<i.length;r++){var a=i[r];a!==e.closest("smart-splitter-item")&&a.querySelector("smart-tabs-window").closest("smart-splitter")===n&&t.push(a.querySelector("smart-tabs-window"))}return t}},{key:"propertyChangedHandler",value:function(e,t,i){var r=this;switch("collapsed"!==e&&_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i),e){case"theme":""!==t&&(r.$.closeButton.classList.remove(t),r.$.collapseButton.classList.remove(t),r.$.maximizeButton.classList.remove(t),r.$.pinButton.classList.remove(t)),r._applyTheme(i);break;case"autoHideWindow":r._handleAutoHideWindow();break;case"autoHide":i||(null!==r.$.tabsElement.selectedIndex&&(r.$.tabsElement._tabs[r.$.tabsElement.selectedIndex]._autoHideWindowSize=void 0),r._autoHideWindow&&r._autoHideWindow.close());break;case"dataSource":r.$.tabsElement.dataSource=i;break;case"layout":r._handleLayoutProperty();break;case"collapsible":case"collapsed":case"locked":case"max":case"min":case"size":var a=r.getRootNode(),o=(a&&a.host?a.host:r).closest("smart-docking-layout"),s=r.closest("smart-splitter-item");if(!o)return void("collapsed"===e&&_get(_getPrototypeOf(n.prototype),"propertyChangedHandler",this).call(this,e,t,i));s&&(s[e]=i)}}},{key:"_applyTheme",value:function(e){if(""!==e)for(var t=this.$.buttonsContainer.children,n=0;n<t.length;n++)t[n].classList.add(e)}},{key:"_autoHideWindowCloseHandler",value:function(){var e=this;e.allowToggle&&null!==e.$.tabsElement.selectedIndex&&e.$.tabsElement.select(e.$.tabsElement.selectedIndex),e._autoHideWindow&&e._moveContent(e._autoHideWindow.items[0],e._autoHideWindow._tab)}},{key:"_autoHideWindowOpenHandler",value:function(){var e=this;e.$.tabsElement.selectedIndex&&e._handleAutoHide(e.$.tabsElement.selectedIndex)}},{key:"_createElement",value:function(){var e=this;e.setAttribute("role","dialog"),e.$.tabsElement.$.tabHeaderControls&&!e.$.tabsElement.$.tabHeaderControls.innerHTML&&e.$.tabsElement.$tabHeaderControls.addClass("smart-hidden"),e.$.tabsElement.dataSource=e.dataSource,e._applyTheme(e.theme),e._handleAutoHideWindow(),e.autoHide&&e._handleAutoHide(e.$.tabsElement.selectedIndex),e.allowToggle||e.selectedIndex||null===e.$.tabsElement.selectedIndex||(e.selectedIndex=e.$.tabsElement.selectedIndex,e.$.tabsElement.setAttribute("selected-index",e.selectedIndex)),e._handleLayoutProperty();var t=(e.isInShadowDOM?e.getRootNode().host:e||e).closest("smart-docking-layout"),n=e.closest("smart-splitter-item");t&&n&&(n.collapsible=e.collapsible,n.collapsed=e.collapsed,n.min=e.min,n.max=e.max,n.size=e.size,n.locked=e.locked)}},{key:"attached",value:function(){_get(_getPrototypeOf(n.prototype),"attached",this).call(this);var e=this;e.classList.add("smart-window"),e.shadowRoot&&e.$.root.classList.add("smart-window")}},{key:"_handleLayoutProperty",value:function(){var e=this,t=e.closest("smart-docking-layout");if(Smart.DockingLayout){if(!e.ownerLayout&&e.getRootNode())for(var n=e.getRootNode().host;n;){if(!n.closest)return;if(n.closest("smart-docking-layout")){t=n.closest("smart-docking-layout");break}n=n.getRootNode()?n.getRootNode().host:void 0}t?e.layout=t:e.layout instanceof Smart.DockingLayout||"string"==typeof e.layout&&(e.layout=document.getElementById(e.layout))}}},{key:"_headerDblCickHandler",value:function(e){var t=this,n=t.shadowRoot||t.isInShadowDOM?e.originalEvent.composedPath()[0]:e.originalEvent.target;e.ctrlKey||n!==t.$.headerSection&&n!==t.$.header||t.$.maximizeButton&&0===t.$.maximizeButton.offsetHeight||(t.maximized?t.restore(
1):t.maximize())}},{key:"_documentUpHandler",value:function(e){var t=this,i=e.originalEvent.target.closest?e.originalEvent.target.closest(".smart-window"):e.originalEvent.target,r=i===t||i===t._autoHideWindow||t._isAutoHideWindowClicked,a=t.closest("smart-docking-layout");(t.shadowRoot||t.isInShadowDOM)&&(r=(i=e.originalEvent.composedPath()[0]).getRootNode()===t.shadowRoot||i.closest(".smart-window")===t||i.closest(".smart-window")===t._autoHideWindow||t._isAutoHideWindowClicked),(a=((t.isInShadowDOM?t.getRootNode().host:t)||t).closest("smart-docking-layout"))&&a.disabled?delete t._isWindowContentClicked:(_get(_getPrototypeOf(n.prototype),"_documentUpHandler",this).call(this,e),delete t._isAutoHideWindowClicked,t.autoHide&&t._autoHideWindow&&(r&&t._autoHideWindow.opened||(t.selectedIndex=null,t._autoHideWindow.parentElement&&t._autoHideWindow.parentElement.closest(".smart-window")===t&&t._autoHideWindow.close())))}},{key:"_handleAutoHide",value:function(e){var t=this;if(t.autoHide&&null!==e&&(t._autoHideWindow||t._handleAutoHideWindow(!0),t._autoHideWindow)){t._autoHideWindow._tabsWindow&&t._autoHideWindow._tabsWindow!==t&&(t._autoHideWindow._tabsWindow.selectedIndex=null);var n=t.$.tabsElement._tabs[e];t._autoHideWindow._tab!==n&&t._moveContent(t._autoHideWindow.items[0],t._autoHideWindow._tab),t._autoHideWindow.label=n.label,t._autoHideWindow.draggable=n.draggable,t._autoHideWindow.floatable=n.floatable,t._autoHideWindow._tab=n,t._moveContent(t._autoHideWindow._tab,t._autoHideWindow.items[0]),t._autoHideWindow.bringToFront(),t._setAutoHideWindowSize(e),t._autoHideWindow.open(),t._autoHideWindow._tabsWindow=t,t._autoHideWindow.controlledBy&&t._autoHideWindow.controlledBy.removeAttribute("aria-controls"),t._autoHideWindow.controlledBy=t.$.tabsElement._tabLabelContainers[e],t._autoHideWindow.controlledBy.setAttribute("aria-controls",t._autoHideWindow.id)}}},{key:"_moveHandler",value:function(e){var t=this,i=t.closest("smart-docking-layout");i&&i.items.indexOf(t)>-1||(Smart.Utilities.Core.isMobile&&navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)&&t.layout instanceof Smart.DockingLayout&&t.layout.hasAttribute("dragged")&&e.originalEvent.preventDefault(),_get(_getPrototypeOf(n.prototype),"_moveHandler",this).call(this,e))}},{key:"_setAutoHideWindowSize",value:function(e){var t=this;if(t._autoHideWindow){t._autoHideWindow.$.addClass("no-transition"),t._autoHideWindow.style.maxWidth=t._autoHideWindow.style.maxHeight="";var n,i,r=t.$.tabsElement._tabs[e],a=(t._autoHideWindow.isInShadowDOM?t._autoHideWindow.getRootNode().host:t._autoHideWindow).closest("smart-docking-layout")||t._autoHideWindow.parentElement;if(r){if("top"===t.tabPosition||"bottom"===t.tabPosition){t._autoHideWindow.resizeMode="top"===t.tabPosition?"bottom":"top",t._autoHideWindow.style.width=t.$.tabsElement.offsetWidth+"px",n=a.getBoundingClientRect(),i=t.$.tabsElement.getBoundingClientRect();var o=r._autoHideWindowSize&&parseFloat(r._autoHideWindowSize)||"";Smart.DockingLayout&&a instanceof Smart.DockingLayout&&(o&&(o=Math.min(a.$.itemsContainer.offsetHeight,o)+"px"),t._autoHideWindow.style.maxHeight=a.$.itemsContainer.offsetHeight+"px"),t._autoHideWindow.style.height=o,t._autoHideWindow.style.left=i.left-n.left+"px",t._autoHideWindow&&(t._autoHideWindow.style.top="top"===t.tabPosition?i.top+-n.top+i.height+"px":i.top-n.top-t._autoHideWindow.offsetHeight+"px")}else{t._autoHideWindow.resizeMode="left"===t.tabPosition?"right":"left",t._autoHideWindow.style.height=t.$.tabsElement.offsetHeight+"px";var s=r._autoHideWindowSize&&parseFloat(r._autoHideWindowSize)||"";a instanceof Smart.DockingLayout&&(s&&(s=Math.min(a.$.itemsContainer.offsetWidth,s)+"px"),t._autoHideWindow.style.maxWidth=a.$.itemsContainer.offsetWidth+"px"),t._autoHideWindow.style.width=s,n=a.getBoundingClientRect(),i=t.$.tabsElement.getBoundingClientRect(),t._autoHideWindow.style.top=i.top-n.top+"px",t._autoHideWindow.style.left="left"===t.tabPosition?i.left-n.left+t.$.tabsElement.offsetWidth+"px":i.left-n.left-t._autoHideWindow.offsetWidth+"px"}
1t._autoHideWindow._dragDetails&&(t._autoHideWindow._dragDetails.maxWidth=void 0),t._autoHideWindow._setDragDetails("resize"),t._autoHideWindow._dragDetails.started=!1,t._autoHideWindow.$.removeClass("no-transition")}}}},{key:"_handleAutoHideWindow",value:function(e){var t=this;if(t.autoHideWindow){if(t._autoHideWindow&&t._autoHideWindow.parentElement.removeChild(t._autoHideWindow),"string"==typeof t.autoHideWindow)return void(t._autoHideWindow=document.getElementById(t.autoHideWindow));if(t.autoHideWindow instanceof Smart.Window)return void(t._autoHideWindow=t.autoHideWindow)}if(!(!e||t._autoHideWindow||2===t.$.contentSection.children.length&&t.$.contentSection.children[1]instanceof Smart.Window)){var n=document.createElement("smart-window");n.$=Smart.Utilities.Extend(n),n.disableSnap=n.pinned=!0,n.headerButtons=["close"],t.$.contentSection.appendChild(n),t._autoHideWindow=n}}},{key:"_moveContent",value:function(e,t){if(e&&t)for(var n=[].slice.call(e.$.content.childNodes),i=0;i<n.length;i++)t.appendChild(n[i])}},{key:"_tabsChangeHandler",value:function(e){var t=this;if(e.target===t.$.tabsElement&&t.autoHide){if(t._autoHideWindow||t._handleAutoHideWindow(!0),null!==e.detail.oldIndex&&t._autoHideWindow.opened&&(t.$.tabsElement._tabs[e.detail.oldIndex]._autoHideWindowSize=t._autoHideWindow.style["right"===t.$.tabsElement.tabPosition||"left"===t.$.tabsElement.tabPosition?"width":"height"]),!t.autoHide||null==e.detail.index)return t._autoHideWindow.setAttribute("active",""),void t._autoHideWindow.close();t._handleAutoHide(e.detail.index)}}},{key:"_tabsFocusHandler",value:function(e){var t=this;"focus"===e.type?(t.bringToFront(),t.setAttribute("focus","")):t.removeAttribute("focus")}}],[{key:"properties",get:function(){return{disableSnap:{value:!0,readOnly:!0,type:"boolean"},dropPosition:{value:["all"],type:"array"},addNewTab:{value:!1,type:"boolean"},allowToggle:{value:!1,type:"boolean"},autoHide:{value:!1,type:"boolean"},autoHideWindow:{value:null,type:"any"},dataSource:{value:null,type:"array?",reflectToAttribute:!1},tabCloseButtonMode:{value:"default",allowedValues:["default","selected"],type:"string"},tabCloseButtons:{value:!1,type:"boolean"},messages:{value:{en:{ambiguousIndexes:"smart-tabs: Initially set smart-tab-item indexes are ambiguous and are ignored in favour of the HTML structure.",detailsObjectRequired:'smart-tabs: The method "insert" requires a details Object to be passed as a second argument.',invalidIndex:'smart-tabs: "{{method}}" method accepts an index of type number.',referenceNodeNotChild:"smart-tabs: Passed {{argument}} is not part of this smart-tabs element.",tabItemRequired:'smart-tabs: The method "{{method}}" requires a "smart-tab-item" element to be passed as an argument.'}},type:"object",extend:!0},tabOverflow:{value:"auto",allowedValues:["auto","hidden","scroll"],type:"string"},tabReorder:{value:!1,type:"boolean"},tabResize:{value:!1,type:"boolean"},tabScrollButtonsPosition:{value:"both",allowedValues:["near","far","both"],type:"string"},selectedIndex:{value:null,type:"number?"},selectionMode:{value:"click",allowedValues:["click","dblclick","mouseenter","none"],type:"string"},collapsed:{value:!1,type:"boolean"},collapsible:{value:!1,type:"boolean"},locked:{value:!1,type:"boolean"},max:{value:"",type:"any"},min:{value:"",type:"any"},size:{value:"",type:"any"},tabLayout:{value:"scroll",allowedValues:["scroll","dropdown","wrap","shrink"],type:"string",defaultReflectToAttribute:!0},tabPosition:{value:"top",allowedValues:["top","bottom","left","right","hidden"],type:"string"},tabTextOrientation:{value:"horizontal",allowedValues:["horizontal","vertical"],type:"string"},layout:{value:null,type:"any"}}}},{key:"listeners",get:function(){return{"tabsElement.blur":"_tabsFocusHandler","tabsElement.change":"_tabsChangeHandler","tabsElement.focus":"_tabsFocusHandler","autoHideWindow.close":"_autoHideWindowCloseHandler","autoHideWindow.open":"_autoHideWindowOpenHandler"}}},{key:"requires",get:function(){return{"Smart.Tabs":"smart.tabs.js"}}}]),n}()),Smart("smart-wait-window",function(e){_inherits(n,Smart.ProgressWindow);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"template",value:function(){return'<div role="presentation">\n <div class="smart-content-container" id="container">\n <div id="headerSection" class="smart-header-section" role="heading" aria-level="1">\n <div id="header" class="smart-header">[[label]]</div>\n <div id="buttonsContainer" class="smart-buttons-container">\n <button id="closeButton" class="smart-button smart-element smart-close-button" aria-label="Close"></button>\n </div>\n </div>\n <div class="smart-content">\n <content></content>\n <smart-progress-bar id="progressBar" animation="[[animation]]" indeterminate theme="[[theme]]" right-to-left="[[rightToLeft]]"></smart-progress-bar>\n </div>\n <div id="footer" class="smart-footer"></div>\n </div>\n </div>'}},{key:"_keyDownHandler",value:function(e){var t=this;function n(){t._dragDetails&&(t._dragDetails.started=!1),t.$.removeClass("no-transition")}if(delete t._changingFocus,!(t.disabled||t._dragDetails&&t._dragDetails.started)){var i=t.shadowRoot||t._windowParent.element.getRootNode()?t._windowParent.element.getRootNode().activeElement:document.activeElement;e.stopPropagation();var r="ArrowDown"===e.key||"ArrowRight"===e.key?10:-10;switch(t.$.removeClass("no-transition"),e.key){case"ArrowUp":case"ArrowDown":if(i!==t)return;if(e.preventDefault(),e.altKey)return"ArrowUp"===e.key?t.maximize():t.restore(
1),void n();if(t.$.addClass("no-transition"),e.ctrlKey)return t._resize("bottom",r),void n();t._drag(r,"vertical");break;case"ArrowLeft":case"ArrowRight":if(i!==t)return;if(e.preventDefault(),t.$.addClass("no-transition"),e.ctrlKey)return t._resize("right",r),void n();t._drag(r,"horizontal");break;case"Tab":t.opened&&t.modal&&(t._changingFocus=!0);break;case"Enter":case" ":var a;if(t.shadowRoot||t.isInShadowDOM?(a=e.composedPath()[0],t._buttonPressed=a.getRootNode().host):(a=e.target.closest&&e.target.closest(".smart-button"),t._buttonPressed=a),!a)return;t._isWindowButton(a),delete t._buttonPressed}n()}}}],[{key:"properties",get:function(){return{headerButtons:{value:[],type:"array"},disableSnap:{value:!0,readOnly:!0,type:"boolean"},modal:{value:!0,readOnly:!0,type:"boolean",defaultReflectToAttribute:!0},pinned:{value:!0,type:"boolean",readOnly:!0}}}}]),n}())}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i].call(a.exports,a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";n(8536),n(2737),n(6321),n(6802),n(2612),n(9135),n(8588),n(2066),n(4896),n(5839),n(5039),n(8649),n(9097),n(6693),n(5707),n(8466),n(4595),n(7855),Smart}()})(),e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(e,n){var i;if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator])return(i=e[Symbol.iterator]()).next.bind(i);if(Array.isArray(e)||(i=function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(i="Object"===i&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){return u[e]}var r,a=(function(e){e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}}(r={exports:{}}),r.exports),o=/[&<>"']/,s=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(d,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var f=/(^|[^\[])\^/g,p=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},v=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r<i;){var a=e.charAt(i-r-1);if(a!==t||n){if(a===t||!n)break;r++}else r++}return e.substr(0,i-r)}var w=function(e,t){if(t){if(o.test(e))return e.replace(s,i)}else if(l.test(e))return e.replace(c,i);return e},k=h,C=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(f,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n},x={exec:function(){}},S=function(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},M=function(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var i=!1,r=t;0<=--r&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n}
1,D=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])i++;else if(e[r]===t[1]&&--i<0)return r;return-1},T=a.defaults,E=_,A=M,P=w,L=D;function O(e,t,n){var i=t.href,r=t.title?P(t.title):null;return t=e[1].replace(/\\([\[\]])/g,"$1"),"!"!==e[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:t}:{type:"image",raw:n,href:i,title:r,text:P(t)}}var I=function(){function e(e){this.options=e||T}var t=e.prototype;return t.space=function(e){if(e=this.rules.block.newline.exec(e))return 1<e[0].length?{type:"space",raw:e[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t)return e=t[0].replace(/^ {1,4}/gm,""),{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:E(e,"\n")}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0];return e=function(e,t){if(null===(e=e.match(/^(\s+)(?:```)/)))return t;var n=e[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null!==t&&t[0].length>=n.length?e.slice(n.length):e}).join("\n")}(n,t[3]||""),{type:"code",raw:n,lang:t[2]&&t[2].trim(),text:e}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();return/#$/.test(n)&&(e=E(n,"#"),!this.options.pedantic&&e&&!/ $/.test(e)||(n=e.trim())),{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){if(e=this.rules.block.nptable.exec(e)){var t={type:"table",header:A(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(t.header.length===t.align.length){for(var n=t.align.length,i=0;i<n;i++)t.align[i]=/^ *-+: *$/.test(t.align[i])?"right":/^ *:-+: *$/.test(t.align[i])?"center":/^ *:-+ *$/.test(t.align[i])?"left":null;for(n=t.cells.length,i=0;i<n;i++)t.cells[i]=A(t.cells[i],t.header.length);return t}}},t.hr=function(e){if(e=this.rules.block.hr.exec(e))return{type:"hr",raw:e[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t)return e=t[0].replace(/^ *> ?/gm,""),{type:"blockquote",raw:t[0],text:e}},t.list=function(e){if(e=this.rules.block.list.exec(e)){for(var t,n,i,r,a,o,s=e[0],l=e[2],c=1<l.length,u={type:"list",raw:s,ordered:c,start:c?+l.slice(0,-1):"",loose:!1,items:[]},d=e[0].match(this.rules.block.item),h=!1,f=d.length,p=this.rules.block.listItemStart.exec(d[0]),m=0;m<f;m++){if(s=t=d[m],this.options.pedantic||(o=t.match(new RegExp("\\n\\s*\\n {0,"+(p[0].length-1)+"}\\S")))&&(n=t.length-o.index+d.slice(m+1).join("\n").length,u.raw=u.raw.substring(0,u.raw.length-n),s=t=t.substring(0,o.index),f=m+1),m!==f-1){if(i=this.rules.block.listItemStart.exec(d[m+1]),this.options.pedantic?i[1].length>p[1].length:i[1].length>=p[0].length||3<i[1].length){d.splice(m,2,d[m]+(!this.options.pedantic&&i[1].length<p[0].length&&!d[m].match(/\n$/)?"":"\n")+d[m+1]),m--,f--;continue}(!this.options.pedantic||this.options.smartLists?i[2][i[2].length-1]!==l[l.length-1]:c==(1===i[2].length))&&(n=d.slice(m+1).join("\n").length,u.raw=u.raw.substring(0,u.raw.length-n),m=f-1),p=i}i=t.length,~(t=t.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(i-=t.length,t=t.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+i+"}","gm"),"")),t=E(t,"\n"),m!==f-1&&(s+="\n"),i=h||/\n\n(?!\s*$)/.test(s),m!==f-1&&(h="\n\n"===s.slice(-2),i=i||h),i&&(u.loose=!0),this.options.gfm&&(a=void 0,(r=/^\[[ xX]\] /.test(t))&&(a=" "!==t[1],t=t.replace(/^\[[ xX]\] +/,""))),u.items.push({type:"list_item",raw:s,task:r,checked:a,loose:i,text:t})}return u}},t.html=function(e){if(e=this.rules.block.html.exec(e))return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):P(e[0]):e[0]}},t.def=function(e){if(e=this.rules.block.def.exec(e))return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},t.table=function(e){if(e=this.rules.block.table.exec(e)){var t={type:"table",header:A(e[1].replace(/^ *| *\| *$/g,"")),al
1ign:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=e[0];for(var n=t.align.length,i=0;i<n;i++)t.align[i]=/^ *-+: *$/.test(t.align[i])?"right":/^ *:-+: *$/.test(t.align[i])?"center":/^ *:-+ *$/.test(t.align[i])?"left":null;for(n=t.cells.length,i=0;i<n;i++)t.cells[i]=A(t.cells[i].replace(/^ *\| *| *\| *$/g,""),t.header.length);return t}}},t.lheading=function(e){if(e=this.rules.block.lheading.exec(e))return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},t.paragraph=function(e){if(e=this.rules.block.paragraph.exec(e))return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},t.text=function(e){if(e=this.rules.block.text.exec(e))return{type:"text",raw:e[0],text:e[0]}},t.escape=function(e){if(e=this.rules.inline.escape.exec(e))return{type:"escape",raw:e[0],text:P(e[1])}},t.tag=function(e,t,n){if(e=this.rules.inline.tag.exec(e))return!t&&/^<a /i.test(e[0])?t=!0:t&&/^<\/a>/i.test(e[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):P(e[0]):e[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;if(e=E(n.slice(0,-1),"\\"),(n.length-e.length)%2==0)return}else-1<(r=L(t[2],"()"))&&(a=(0===t[0].indexOf("!")?5:4)+t[1].length+r,t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]="");var i,r=t[2],a="";return this.options.pedantic?(i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))&&(r=i[1],a=i[3]):a=t[3]?t[3].slice(1,-1):"",r=r.trim(),O(t,{href:(r=/^</.test(r)?this.options.pedantic&&!/>$/.test(n)?r.slice(1):r.slice(1,-1):r)&&r.replace(this.rules.inline._escapes,"$1"),title:a&&a.replace(this.rules.inline._escapes,"$1")},t[0])}},t.reflink=function(e,t){if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){if((e=t[(e=(n[2]||n[1]).replace(/\s+/g," ")).toLowerCase()])&&e.href)return O(n,e,n[0]);var n=n[0].charAt(0);return{type:"text",raw:n,text:n}}},t.emStrong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(e);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
10EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var a,o=i[0].length-1,s=o,l=0,c="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+o);null!=(i=c.exec(t));)if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=a.length,i[3]||i[4])s+=a;else if(!((i[5]||i[6])&&o%3)||(o+a)%3){if(!(0<(s-=a))){if(s+l-a<=0&&!t.slice(c.lastIndex).match(c)&&(a=Math.min(a,a+s+l)),Math.min(o,a)%2)return{type:"em",raw:e.slice(0,o+i.index+a+1),text:e.slice(1,o+i.index+a)};
1if(Math.min(o,a)%2==0)return{type:"strong",raw:e.slice(0,o+i.index+a+1),text:e.slice(2,o+i.index+a-1)}}}else l+=a}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n);return e=/^ /.test(n)&&/ $/.test(n),i&&e&&(n=n.substring(1,n.length-1)),n=P(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){if(e=this.rules.inline.br.exec(e))return{type:"br",raw:e[0]}},t.del=function(e){if(e=this.rules.inline.del.exec(e))return{type:"del",raw:e[0],text:e[2]}},t.autolink=function(e,t){var n;if(e=this.rules.inline.autolink.exec(e))return t="@"===e[2]?"mailto:"+(n=P(this.options.mangle?t(e[1]):e[1])):n=P(e[1]),{type:"link",raw:e[0],text:n,href:t,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n,i,r,a;if(n=this.rules.inline.url.exec(e)){if("@"===n[2])r="mailto:"+(i=P(this.options.mangle?t(n[0]):n[0]));else{for(;a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0],a!==n[0];);i=P(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){if(e=this.rules.inline.text.exec(e))return n=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):P(e[0]):e[0]:P(this.options.smartypants?n(e[0]):e[0]),{type:"text",raw:e[0],text:n}},e}();M=x,D=C,x=S,(C={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:M,table:M,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/}).def=D(C.def).replace("label",C._label).replace("title",C._title).getRegex(),C.bullet=/(?:[*+-]|\d{1,9}[.)])/,C.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,C.item=D(C.item,"gm").replace(/bull/g,C.bullet).getRegex(),C.listItemStart=D(/^( *)(bull) */).replace("bull",C.bullet).getRegex(),C.list=D(C.list).replace(/bull/g,C.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+C.def.source+")").getRegex(),C._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",C._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,C.html=D(C.html,"i").replace("comment",C._comment).replace("tag",C._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),C.paragraph=D(C._paragraph).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.blockquote=D(C.blockquote).replace("paragraph",C.paragraph).getRegex(),C.normal=x({},C),C.gfm=x({},C.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),C.gfm.nptable=D(C.gfm.nptable).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.gfm.table=D(C.gfm.table).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.pedantic=x({},C.normal,{html:D("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",C._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:M,paragraph:D(C.normal._paragraph).replace("hr",C.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",C.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),(M={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:M,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_]*?\*[^_]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^*]*?\_[^*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:M,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"}).punctuation=D(M.punctuation).replace(/punctuation/g,M._punctuation).getRegex(),M.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>
vendor: 17,906 bytes, line 1
1/g,M.escapedEmSt=/\\\*|\\_/g,M._comment=D(C._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),M.emStrong.lDelim=D(M.emStrong.lDelim).replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimAst=D(M.emStrong.rDelimAst,"g").replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimUnd=D(M.emStrong.rDelimUnd,"g").replace(/punct/g,M._punctuation).getRegex(),M._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,M._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,M._email=/[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])?)+(?![-_])/,M.autolink=D(M.autolink).replace("scheme",M._scheme).replace("email",M._email).getRegex(),M._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,M.tag=D(M.tag).replace("comment",M._comment).replace("attribute",M._attribute).getRegex(),M._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,M._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,M._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,M.link=D(M.link).replace("label",M._label).replace("href",M._href).replace("title",M._title).getRegex(),M.reflink=D(M.reflink).replace("label",M._label).getRegex(),M.reflinkSearch=D(M.reflinkSearch,"g").replace("reflink",M.reflink).replace("nolink",M.nolink).getRegex(),M.normal=x({},M),M.pedantic=x({},M.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:D(/^!?\[(label)\]\((.*?)\)/).replace("label",M._label).getRegex(),reflink:D(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",M._label).getRegex()}),M.gfm=x({},M.normal,{escape:D(M.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),M.gfm.url=D(M.gfm.url,"i").replace("email",M.gfm._extended_email).getRegex(),M.breaks=x({},M.gfm,{br:D(M.br).replace("{2,}","*").getRegex(),text:D(M.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var H=a.defaults,j=(M={block:C,inline:M}).block,F=M.inline,R=function(e,t){if(t<1)return"";for(var n="";1<t;)1&t&&(n+=e),t>>=1,e+=e;return n+e};function N(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function B(e){for(var t,n="",i=e.length,r=0;r<i;r++)t=e.charCodeAt(r),n+="&#"+(t=.5<Math.random()?"x"+t.toString(16):t)+";";return n}var Y=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||H,this.options.tokenizer=this.options.tokenizer||new I,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,e={block:j.normal,inline:F.normal},this.options.pedantic?(e.block=j.pedantic,e.inline=F.pedantic):this.options.gfm&&(e.block=j.gfm,e.inline=this.options.breaks?F.breaks:F.gfm),this.tokenizer.rules=e}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,i,r=t.prototype;return r.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},r.blockTokens=function(e,t,n){var i,r,a,o;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),(o=t[t.length-1])&&"paragraph"===o.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text):t.push(i);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),a=i.items.length,r=0;r<a;r++)i.items[r].tokens=this.blockTokens(i.items[r].text,[],!1);t.push(i)}else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.def(e)))e=e.substring(i.raw.length),this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.paragraph(e)))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(o=t[t.length-1])&&"text"===o.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text):t.push(i);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return t},r.inline=function(e){for(var t,n,i,r,a,o=e.length,s=0;s<o;s++)switch((a=e[s]).type){case"paragraph":case"text":case"heading":a.tokens=[],this.inlineTokens(a.text,a.tokens);break;case"table":for(a.tokens={header:[],cells:[]},i=a.header.length,t=0;t<i;t++)a.tokens.header[t]=[],this.inlineTokens(a.header[t],a.tokens.header[t]);for(i=a.cells.length,t=0;t<i;t++)for(r=a.cells[t],a.tokens.cells[t]=[],n=0;n<r.length;n++)a.tokens.cells[t][n]=[],this.inlineTokens(r[n],a.tokens.cells[t][n]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(i=a.items.length,t=0;t<i;t++)this.inline(a.items[t].tokens)}return e},r.inlineTokens=function(e,t,n,i){var r;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===i&&(i=!1);var a,o,s,l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(0<c.length)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+R("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+R("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(s=""),o=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i)){e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock;var u=t[t.length-1];u&&"text"===r.type&&"text"===u.type?(u.raw+=r.raw,u.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),u=t[t.length-1],"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,i),t.push(r)):u&&"text"===r.type&&"text"===u.type?(u.raw+=r.raw,u.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,s))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,B))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,B))){if(r=this.tokenizer.inlineText(e,i,N))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),o=!0,(d=t[t.length-1])&&"text"===d.type?(d.raw+=r.raw,d.text+=r.text):t.push(r);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(r.raw.length),t.push(r);return t},n=t,i=[{key:"rules",get:function(){return{block:j,inline:F}}}],(r=null)&&e(n.prototype,r),i&&e(n,i),t}(),z=a.defaults,V=function(e,t,n){if(e){var i;try{i=decodeURIComponent(h(n)).replace(p,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!m.test(n)&&(n=function(e,t){g[" "+e]||(g[" "+e]=v.test(e)?e+"/":_(e,"/",!0));var n=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(y,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(b,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},U=w,$=function(){function e(e){this.options=e||z}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];return!this.options.highlight||null!=(t=this.options.highlight(e,i))&&t!==e&&(n=!0,e=t),e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+U(i,!0)+'">'+(n?e:U(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:U(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n"+(t=t&&"<tbody>"+t+"</tbody>")+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){return null===(e=V(this.options.sanitize,this.options.baseUrl,e))?n:(e='<a href="'+U(e)+'"',t&&(e+=' title="'+t+'"'),e+">"+n+"</a>")},t.image=function(e,t,n){return null===(e=V(this.options.sanitize,this.options.baseUrl,e))?n:(n='<img src="'+e+'" alt="'+n+'"',t&&(n+=' title="'+t+'"'),n+(this.options.xhtml?"/>":">"))},t.text=function(e){return e},e}(),W=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),q=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n))for(i=this.seen[e];n=e+"-"+ ++i,this.seen.hasOwnProperty(n););return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),G=a.defaults,X=k,Q=function(){function e(e){this.options=e||G,this.options.renderer=this.options.renderer||new $,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new W,this.slugger=new q}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);for(var n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v="",y=e.length,b=0;b<y;b++)switch((c=e[b]).type){case"space":continue;case"hr":v+=this.renderer.hr();continue;case"heading":v+=this.renderer.heading(this.parseInline(c.tokens),c.depth,X(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":v+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(s=u="",r=c.header.length,n=0;n<r;n++)s+=this.renderer.tablecell(this.parseInline(c.tokens.header[n]),{header:!0,align:c.align[n]});for(u+=this.renderer.tablerow(s),l="",r=c.cells.length,n=0;n<r;n++){for(s="",a=(o=c.tokens.cells[n]).length,i=0;i<a;i++)s+=this.renderer.tablecell(this.parseInline(o[i]),{header:!1,align:c.align[i]});l+=this.renderer.tablerow(s)}v+=this.renderer.table(u,l);continue;case"blockquote":l=this.parse(c.tokens),v+=this.renderer.blockquote(l);continue;case"list":for(u=c.ordered,_=c.start,d=c.loose,r=c.items.length,l="",n=0;n<r;n++)p=(f=c.items[n]).checked,m=f.task,h="",f.task&&(g=this.renderer.checkbox(p),d?0<f.tokens.length&&"text"===f.tokens[0].type?(f.tokens[0].text=g+" "+f.tokens[0].text,f.tokens[0].tokens&&0<f.tokens[0].tokens.length&&"text"===f.tokens[0].tokens[0].type&&(f.tokens[0].tokens[0].text=g+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:g}):h+=g),h+=this.parse(f.tokens,d),l+=this.renderer.listitem(h,m,p);v+=this.renderer.list(l,u,_);continue;case"html":v+=this.renderer.html(c.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(l=c.tokens?this.parseInline(c.tokens):c.text;b+1<y&&"text"===e[b+1].type;)l+="\n"+((c=e[++b]).tokens?this.parseInline(c.tokens):c.text);v+=t?this.renderer.paragraph(l):l;continue;default:var _='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(_);throw new Error(_)}return v},t.parseInline=function(e,t){t=t||this.renderer;for(var n,i="",r=e.length,a=0;a<r;a++)switch((n=e[a]).type){case"escape":case"text":i+=t.text(n.text);break;case"html":i+=t.html(n.text);break;case"link":i+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":i+=t.image(n.href,n.title,n.text);break;case"strong":i+=t.strong(this.parseInline(n.tokens,t));break;case"em":i+=t.em(this.parseInline(n.tokens,t));break;case"codespan":i+=t.codespan(n.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(n.tokens,t));break;default:var o='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}return i},e}(),K=S,Z=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},J=w,ee=(w=a.getDefaults,a.changeDefaults);function te(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=K({},te.defaults,t||{}),Z(t),n){var i,r=t.highlight;try{i=Y.lex(e,t)}catch(e){return n(e)}var a=function(e){var a;if(!e)try{a=Q.parse(i,t)}catch(a){e=a}return t.highlight=r,e?n(e):n(null,a)};if(!r||r.length<3)return a();if(delete t.highlight,!i.length)return a();var o=0;return te.walkTokens(i,function(e){"code"===e.type&&(o++,setTimeout(function(){r(e.text,e.lang,function(t,n){return t?a(t):(null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),void(0==--o&&a()))})},0))}),void(0===o&&a())}try{var s=Y.lex(e,t);return t.walkTokens&&te.walkTokens(s,t.walkTokens),Q.parse(s,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+J(e.message+"",!0)+"</pre>";throw e}}return a=a.defaults,te.options=te.setOptions=function(e){return K(te.defaults,e),ee(te.defaults),te},te.getDefaults=w,te.defaults=a,te.use=function(e){var t,n=K({},e);e.renderer&&function(){var t,i=te.defaults.renderer||new $;for(t in e.renderer)!function(t){var n=i[t];i[t]=function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var s=e.renderer[t].apply(i,a);return!1===s?n.apply(i,a):s}}(t);n.renderer=i}(),e.tokenizer&&function(){var t,i=te.defaults.tokenizer||new I;for(t in e.tokenizer)!function(t){var n=i[t];i[t]=function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var s=e.tokenizer[t].apply(i,a);return!1===s?n.apply(i,a):s}}(t);n.tokenizer=i}(),e.walkTokens&&(t=te.defaults.walkTokens,n.walkTokens=function(n){e.walkTokens(n),t&&t(n)}),te.setOptions(n)},te.walkTokens=function(e,t){for(var i,r=n(e);!(i=r()).done;){var a=i.value;switch(t(a),a.type){case"table":for(var o=n(a.tokens.header);!(s=o()).done;){var s=s.value;te.walkTokens(s,t)}for(var l,c=n(a.tokens.cells);!(l=c()).done;)for(var u=n(l.value);!(d=u()).done;){var d=d.value;te.walkTokens(d,t)}break;case"list":te.walkTokens(a.items,t);break;default:a.tokens&&te.walkTokens(a.tokens,t)}}},te.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=K({},te.defaults,t||{}),Z(t);try{var n=Y.lexInline(e,t);return t.walkTokens&&te.walkTokens(n,t.walkTokens),Q.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+J(e.message+"",!0)+"</pre>";throw e}},te.Parser=Q,te.parser=Q.parse,te.Renderer=$,te.TextRenderer=W,te.
1Lexer=Y,te.lexer=Y.lex,te.Tokenizer=I,te.Slugger=q,te.parse=te}()},"3hLs":function(e){e.exports=JSON.parse('{"signal":{"Connect":"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b","PublicSignal":"\u041f\u0443\u0431\u043b\u0438\u0447\u043d\u044b\u0439 \u0421\u0438\u0433\u043d\u0430\u043b","PrivateSignal":"\u041f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u0421\u0438\u0433\u043d\u0430\u043b"},"app":{"Welcome":"\u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c","Notifications":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f","New":"\u041d\u043e\u0432\u044b\u0439"},"titles":{"Details":"\u0422\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0435 \u0441\u0434\u0435\u043b\u043a\u0438","DetailsHistory":"\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u0441\u0434\u0435\u043b\u043e\u043a","Collapse":"\u0411\u0430\u043b\u0430\u043d\u0441/\u041f\u0440\u0438\u0440\u043e\u0441\u0442","Balance":"\u0411\u0430\u043b\u0430\u043d\u0441","Equity":"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430","Gain":"\u041f\u0440\u0438\u0440\u043e\u0441\u0442","Deposits":"\u041f\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f","Withdrawals":"\u0421\u043d\u044f\u0442\u0438\u044f","Statistic":"\u041f\u0440\u0438\u0431\u044b\u043b\u044c \u0437\u0430 \u0432\u0441\u0435 \u0432\u0440\u0435\u043c\u044f \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438","StatisticNow":"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0432\u0441\u0435\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0441\u0434\u0435\u043b\u043e\u043a","StatisticSignal":"\u041f\u0440\u0438\u0431\u044b\u043b\u044c \u0437\u0430 \u0432\u0441\u0435 \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432","StatisticNowSignal":"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0432\u0441\u0435\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0441\u0434\u0435\u043b\u043e\u043a \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432","Delete":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442","Trades":"\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u0426\u0435\u043d","Sort":"\u0421\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0430","Description":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435","Edit":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c","Save":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","Cancel":"\u041e\u0442\u043c\u0435\u043d\u0430","MainHeader":"\u041a\u043b\u0438\u0435\u043d\u0442 \u0434\u043b\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0440\u0430\u0437\u043c\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c","MainAndroid":"Android \u0432\u0435\u0440\u0441\u0438\u044f \u0437\u0434\u0435\u0441\u044c","MainHere":"\u0437\u0434\u0435\u0441\u044c","MainUrlMT5":"https://www.mql5.com/ru/market/product/78953","MainUrlMT4":"https://www.mql5.com/ru/market/product/106509","Subscribers":"\u041f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438","Loading":"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430...","NoProducts":"\u041d\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432","NoProductsMessage":"\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0435\u0442 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0439\u0434\u0438\u0442\u0435 \u043f\u043e\u0437\u0436\u0435.","ChartDensity":"\u041f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a\u0430","ChartSettings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432","High":"\u0412\u044b\u0441\u043e\u043a\u0430\u044f","Medium":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f","Low":"\u041d\u0438\u0437\u043a\u0430\u044f","VeryLow":"\u041e\u0447\u0435\u043d\u044c \u043d\u0438\u0437\u043a\u0430\u044f","AdaptiveSampling":"\u
10410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u043e\u0435 \u0441\u0435\u043c\u043f\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435"},"instruction":{"subtitle":"\u041f\u043e\u043b\u043d\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u043d\u0430\u0448\u0435\u0439 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b","text":"<p><b>1.</b> \u041a\u043d\u043e\u043f\u043a\u0430 \u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0432\u0441\u0435\u0445 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432, \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f</p><p><b>2.</b> \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043a\u0430\u0436\u0434\u044b\u0435 5 \u043c\u0438\u043d\u0443\u0442</p><p><b>3.</b> \u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 https://www.mql5.com. \u042d\u0442\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 ForexVisible: Name, Url \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 MetaTrader 5</p><p><b>4.</b> \u041e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0434\u043d\u0435\u0439 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438</p><p><b>5.</b> \u041c\u0435\u043d\u044f\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0432\u0432\u0435\u0440\u0445, \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438</p><p><b>6.</b> \u041c\u0435\u043d\u044f\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u0432\u043d\u0438\u0437, \u043f\u043e\u0437\u0438\u0446\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438</p><p><b>7.</b> \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0433\u0440\u0430\u0444\u0438\u043a \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u0443 \u0437\u0430 \u0432\u0441\u0435 \u0432\u0440\u0435\u043c\u044f \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438</p><p><b>8.</b> \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u0441\u0435\u0445 \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0441\u0434\u0435\u043b\u043e\u043a</p><p><b>9.</b> \u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0430\u043a\u043a\u0430\u0443\u043d\u0442, \u043d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u043e\u0442\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u043b\u0438 \u043a\u043b\u0438\u0435\u043d\u0442 ForexVisible \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 MetaTrader 5, \u0430\u043a\u043a\u0430\u0443\u043d\u0442 \u043d\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u0441\u044f</p><p><b>10.</b> \u041a\u043d\u043e\u043f\u043a\u0430 \u0441\u043a\u0440\u044b\u0442\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u0430</p><p><b>11.</b> \u0413\u0440\u0430\u0444\u0438\u043a \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0433\u0430 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435</p><p><b>12.</b> \u041e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0431\u0430\u043b\u0430\u043d\u0441\u0430, \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0438.\u0442.\u0434, \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e</p><p><b>13.</b> \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0438\u043b\u0438 \u0443\u0431\u044b\u0442\u043a\u043e\u0432 \u0437\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043c\u0435\u0441\u044f\u0446 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438</p>"},"products":{"subtitle":"\u041e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043d\u0430\u0448\u0438 \u043f\u0440\u0435\u043c\u0438\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b","phythonML":"<p><b>\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 28 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d.</b></p><p>\u0412\u0441\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b: <a href=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' title=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' target=\'_blank\' rel=\'noopener\'>https://www.mql5.com/ru/signals/author/11breath11?orderby=gain</a></p><p>\u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0434\u0432\u0443\u043c\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c\u0438 H1 \u0438 H2 \u0432\u043c\u0435\u0441\u0442\u0435 \u0438\u043b\u0438 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 Use Time Intervals</p><p>\u0411\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u043b\u044e\u0441 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430 \u0442\u043e \u0447\u0442\u043e \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u043f\u043e \u0440\u0430\u0437\u043d\u044b\u043c \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0441\u0435\u0439\u0447\u0430\u0441 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u0430 5 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0432\u043c\u0435\u0441\u0442\u0435 \u0438\u043b\u0438 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u0431\u0443\u0434\u0443\u0442 \u0443\u043b\u0443\u0447\u0448\u0430\u0442\u044c\u0441\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430.</p><p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b EURUSD H1, \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 Models2</p><ul><li>
1\u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u0435 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430 ShowTradePanel \u0432 false</li></ul><ul><li>\u0412 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \'\u0422\u043e\u043b\u044c\u043a\u043e \u0446\u0435\u043d\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \', \u044d\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0435 \u043f\u043e\u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.</li></ul><ul><li>\u0422\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0435\u0441\u0442\u0435\u0440\u0430 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439</li></ul><ul><li>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0436\u0443\u0440\u043d\u0430\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0434\u043e\u0445\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438</li></ul><div><div><div>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430</div></div></div><ul><li>UseSameLotSizeForAllPairs - \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e true, \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0432\u044b\u0448\u0435</li><li>UseMaxAllTakeProfitProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0439\u043a-\u043f\u0440\u043e\u0444\u0438\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllTakeProfitProcent, \u
1043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li><li>UseMaxStopLossProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u043e\u043f-\u043b\u043e\u0441\u0441 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllStopLossProcent, \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li><li>IsDynamicLot - \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</li><li>is_koef_for_each- \u0435\u0441\u043b\u0438 true, \u0442\u043e <span>\u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0435\u0441\u043b\u0438 false, \u0442\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u0431\u0430\u043b\u0430\u043d\u0441\u0430 <span>\u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></span></li><li>koef- \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0434\u043b\u044f <span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430, \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0438\u0441\u043a\u0438</span></li><li>from- <span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></li><li><span> CountOfGrid - \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u0432 \u0441\u0435\u0442\u043a\u0435</span></li><li><span> GridDistanseBegin - \u043d\u0430\u0447\u0430\u043b\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0446\u0435\u043d\u044b</span></li><li><span> GridDistanseEnd - \u043a\u043e\u043d\u0435\u0446 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0446\u0435\u043d\u044b</span></li><li>GridKoefBegin, GridKoefEnd - \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435</li></ul>","titlePhythonML":"\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 28 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043f\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d.","buyPhythonML":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","urlPhythonML":"https://www.mql5.com/ru/market/product/63791","titleMultiBolbands":"\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 28 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u041f\u0440\u043e\u0433\u043d\u043e\u0437\u044b \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u0434\u0432\u0443\u0445 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430\u0445: Bollinger Bands \u0438 DEMA.","MultiBolbands":"<p>\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 28 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u041f\u0440\u043e\u0433\u043d\u043e\u0437\u044b \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u0434\u0432\u0443\u0445 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u0430\u0445: Bollinger Bands \u0438 DEMA.</p><p><span>\u0412\u0441\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b:</span><a href=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' title=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' target=\'_blank\' rel=\'noopener\'>https://www.mql5.com/en/signals/author/11breath11?orderby=gain</a></p><p><a href=\'https://drive.google.com/drive/folders/1cn-ECd4fOu9stERNUjTEvhBVCif7SPBm\' rel=\'nofollow noopener\' title=\'https://drive.google.com/drive/folders/1cn-ECd4fOu9stERNUjTEvhBVCif7SPBm\' target=\'_blank\'>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f MultiBolbands</a></p><p>\u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 MultiBolbandsTrainer, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u043c\u043d\u043e\u0439 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0442\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0447\u0430\u0442\u044c <a href=\'/go?link=https://drive.google.com/drive/folders/1cn-ECd4fOu9stERNUjTEvhBVCif7SPBm\' title=\'https://drive.google.com/drive/folders/1cn-ECd4fOu9stERNUjTEvhBVCif7SPBm\' target=\'_blank\' rel=\'noopener\'>\u0442\u0443\u0442 \u0436\u0435</a></p><p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b EURUSD H1 Algorithm1. </p><ul><li>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f \u0441 2016 \u0433\u043e\u0434\u0430</li></ul><ul><li>
1\u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u0435 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430 ShowTradePanel \u0432 false</li></ul><ul><li>\u0412 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \'\u0422\u043e\u043b\u044c\u043a\u043e \u0446\u0435\u043d\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f\', \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.</li></ul><ul><li>\u0416\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0431\u0440\u043e\u043a\u0435\u0440 Roboforex</li></ul><div><p>set \u0444\u0430\u0439\u043b\u044b \u0431\u0443\u0434\u0443\u0442 \u043c\u043d\u043e\u044e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f, \u043f\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0439\u0442\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e, \u0441\u043b\u0435\u0434\u0438\u0442\u0435 \u0437\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f\u043c\u0438</p><p>\u042d\u0442\u0438 \u0444\u0430\u0439\u043b\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0434\u043b\u044f \u0431\u0440\u043e\u043a\u0435\u0440\u0430 Roboforex, \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0431\u0440\u043e\u043a\u0435\u0440\u043e\u0432 \u0434\u0435\u043b\u0430\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u0441\u0442\u044c \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u044f\u0445 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u043d\u044b\u0445 \u0431\u0440\u043e\u043a\u0435\u0440\u043e\u0432.</p><p>\u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0446\u0435\u043d\u0430\u043c \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f, \u0434\u043b\u044f \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430.</p><p>\u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0434\u043e\u0445\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0432\u0442\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 isDynamicLot = true, koef = 0.5, \u043d\u043e \u0441\u043b\u0435\u0434\u0438\u0442\u0435 \u0437\u0430 \u0440\u0438\u0441\u043a\u0430\u043c\u0438, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043f\u0435\u0440\u0435\u0434 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c.</p></div><ul><li>LotSize - \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430</li><li>UseSameLotSizeForAllPairs - \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e true, \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0432\u044b\u0448\u0435</li><li>TakeProfit - \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0, \u0442\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443</li><li>StopLoss <span>- \u0435\u0441\u043b\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 0, \u0442\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043f\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443</span></li><li>UseMaxAllTakeProfitProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0439\u043a-\u043f\u0440\u043e\u0444\u0438\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435
1MaxAllTakeProfitProcent, \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li><li>UseMaxStopLossProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u043e\u043f-\u043b\u043e\u0441\u0441 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllStopLossProcent, \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. <span>\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</span></li><li>MaxProcentDropDown - \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u043e\u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u043f\u043e\u0437\u0438\u0446\u0438\u0439 \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0432 \u044d\u0442\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 \u043f\u0440\u043e\u0446\u0435\u043d\u0442, \u0435\u0441\u043b\u0438 0 \u0443\u043a\u0430\u0437\u0430\u043d \u044d\u0442\u0430 \u0444-\u044f \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 MaxProcentDropDown = 30 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0430 \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0435\u0442 30%, \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u043a\u0430 \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0430 \u043d\u0435 \u0441\u0442\u0430\u043d\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 30%)</li><li>CountOrders - \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u0441\u0434\u0435\u043b\u043e\u043a \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b</li><li>IsDynamicLot - \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</li><li>is_koef_for_each - \u0435\u0441\u043b\u0438 true, \u0442\u043e <span>\u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0435\u0441\u043b\u0438 false, \u0442\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u0431\u0430\u043b\u0430\u043d\u0441\u0430 <span>\u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></span></li><li>koef - \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0434\u043b\u044f <span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430, \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0438\u0441\u043a\u0438</span></li><li>from - <span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></li><li>CurrencyName - \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b \u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0431\u0440\u043e\u043a\u0435\u0440\u0430</li><li>Active - \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u0438 \u044d\u0442\u0443 \u0432\u0430\u043b\u044e\u0442\u043d\u0443\u044e \u043f\u0430\u0440\u0443, \u0438\u043b\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c</li><li>bands_period - \u043f\u0435\u0440\u0438\u043e\u0434 Bollinger Bands</li><li>dema_period - \u043f\u0435\u0440\u0438\u043e\u0434 DEMA</li><li>bands_shift - \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0433\u0440\u0430\u0444\u0438\u043a\u0430 Bollinger Bands</li></ul>","buyMultiBolbands":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","urlMultiBolbands":"https://www.mql5.com/ru/market/product/56214","buyForexVisibleDemo":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","buyForexVisible":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","titleForexVisible":"\u042d\u0442\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u0430-\u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 https://forexvisible.com","ForexVisible":"<p><b>\u042d\u0442\u0430 \u0443\u0442\u0438\u043b\u0438\u0442\u0430-\u043a\u043b\u0438\u0435\u043d\u0442 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0430 \u0434\u043b\u044f \u0440\u0430\u0437\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0432 \u043e\u0431\u0449\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\'/go?link=https://forexvisible.com/\' rel=\'nofollow\' title=\'https://forexvisible.com/\' target=\'_blank\'>https://forexvisible.com</a>.</b></p> <p>\u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043b\u0435\u0433\u043a\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044e \u043c\u0435\u0436\u0434\u0443 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430\u043c\u0438, \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u044f \u043e\u0434\u0438\u043d \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u0430, \u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0438\u0433\u043d\u0430\u043b.</p> <p><span>\u0412\u0441\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b:<span> </span></span><a href=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' title=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' target=\'_blank\'>https://www.mql5.com/en/signals/author/11breath11?orderby=gain</a></p> <p></p> <p><b>\u0413\u043b\u0430\u0432\u043d\u043e\u0439 \u0438 \u0441\u0430\u043c\u043e\u0439 \u043c\u043e\u0449\u043d\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c\u044e \u044d\u0442\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043ec\u0442\u044c \u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0437\u0430\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0440\u0438\u0431\u044b\u043b\u044c \u0441 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0434\u043b\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u043b\u0443\u0447\u0448\u0438\u043c \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c, \u043f\u043e\u0448\u0430\u0433\u043e\u0432\u043e \u043a\u0430\u043a \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442:</b></p> <p></p> <ul> <li>\u0435\u0441\u043b\u0438 \u0443 \u043d\u0430\u0441 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u0431\u044b\u043b\u044c \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u043f\u043e \u0432\u0441\u0435\u043c \u0441\u0434\u0435\u043b\u043a\u0430\u043c \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 5% \u043e\u0442 \u0434\u0435\u043f\u043e\u0437\u0438\u0442\u0430, \u043c\u044b \u0435\u0435 \u0437\u0430\u0431\u0438\u0440\u0430\u0435\u043c, \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044f \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u043a\u0438</li> </ul> <ul> <li>\u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043b\u0443\u0447\u0448\u0438\u0435 N \u043f\u0430\u0440 \u0432 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435 \u043f\u043e \u0432\u0441\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u043c \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c, \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u043f\u0443\u0442\u0435\u043c \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u0441\u0438\u0433\u043d\u0430\u043b\u0435 \u0438 \u0432\u044b\u0431\u043e\u0440\u0430 \u043f\u0435\u0440\u0432\u044b\u0445 N \u043f\u0430\u0440 \u0437\u0430\u0442\u0435\u043c \u0434\u043b\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f</li> </ul> <ul> <li>\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0437\u0430\u043d\u043e\u0432\u043e \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u0441 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u0434\u0430\u0442\u044b, \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b Chek Signals. \u0422\u043e \u0435\u0441\u0442\u044c \u0438\u043c\u0438\u0442\u0438\u0440\u0443\u0435\u043c \u0447\u0442\u043e \u043c\u044b \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u043b\u0438 \u0432\u0441\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u0441 \u044d\u0442\u043e\u0439 \u0434\u0430\u0442\u044b \u0438 \u0438\u0445 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0435 \u0437\u0430\u043d\u043e\u0432\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c</li> </ul> <p></p> <p><b>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0440\u043e\u0431\u043e\u0442\u043e\u0432 \u043d\u0430 \u0434\u0435\u043c\u043e \u0441\u0447\u0435\u0442\u0430 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u0435\u043b\u0430\u0435\u043c \u0438\u0437 \u043d\u0438\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0435\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u0430 \u0443\u0436\u0435 \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0447\u0435\u0442\u0435, \u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0435\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0430\u043c\u044b\u0435 \u043b\u0443\u0447\u0448\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043f\u043e \u0441\u0430\u043c\u044b\u043c \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u043c \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u043c \u043f\u0430\u0440\u0430\u043c \u0443 \u044d\u0442\u0438\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432, \u0438 \u0437\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u044c \u0441\u043e \u0432\u0441\u0435\u0445 \u043d\u0430\u0448\u0438\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432.</b></p> <p><b>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0440\u0438\u0441\u043a\u0438 \u0438 \u0442\u043e\u0440\u0433\u0443\u0435\u043c \u0441\u0430\u043c\u044b\u043c\u0438 \u043b\u0443\u0447\u0448\u0438\u043c\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c\u0438 \u0438 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0430\u043c\u0438 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0447\u0435\u0442\u0435, \u043d\u0435 \u0437\u0430\u0434\u0443\u043c\u044b\u0432\u0430\u044f\u0441\u044c \u043e \u0440\u0438\u0441\u043a\u0430\u0445 \u043d\u0430 \u0434\u0435\u043c\u043e \u0441\u0447\u0435\u0442\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u043a \u0434\u043e\u043d\u043e\u0440\u044b \u0434\u043b\u044f \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0434\u0435\u043b\u043e\u043a \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0447\u0435\u0442.</b></p> <p>\u0421\u0430\u0439\u0442 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043f\u0
1440\u0430\u0432\u043b\u044f\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u043a\u0430\u043c\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0438 \u0440\u0430\u0437\u043c\u0435\u0449\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0432 \u043e\u0431\u0449\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0431\u0430\u043b\u0430\u043d\u0441\u0430, \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0438, \u0438 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u0435.</p> <p><b>\u0422\u0430\u043a\u0436\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u044d\u0442\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0438 \u043b\u0443\u0447\u0448\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043d\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u0447\u0435\u0442\u0430:</b></p> <p>\u0422\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0438 \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u043f\u0440\u0438 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438. \u041f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0442\u044c \u043f\u0440\u0438 \u043f\u043e\u0442\u0435\u0440\u0435 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0441\u0430\u0439\u0442\u043e\u043c, \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u043d\u0438\u0438 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u0438\u043b\u0438 \u043f\u0440\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u043d\u044b\u0435 \u043a \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440.</p> <p>\u0414\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430:</p> <p></p> <ul> <li>\u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435<span> </span>\u0438 \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c</li> </ul> <ul> <li>\u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u0432 MetaTrader 5 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u0432 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u044b\u0435 - \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 -> \u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0438 -> \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c WebRequest \u0434\u043b\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 URL: -> <a href=\'/go?link=https://forexvisible.com/\' rel=\'nofollow\' title=\'https://forexvisible.com/\' target=\'_blank\'>https://forexvisible.com</a></li> </ul> <ul> <li>\u0441\u0442\u0430\u0432\u0438\u0442\u0435 \u043a\u043b\u0438\u0435\u043d\u0442 \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0438\u043b\u0438 \u043d\u043e\u0432\u044b\u0439 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0439 \u0433\u0440\u0430\u0444\u0438\u043a \u0433\u0434\u0435 \u043d\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, \u0443\u043a\u0430\u0437\u0430\u0432\u0448\u0438 \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 User \u0438 Password \u0432\u0430\u0448 \u043b\u043e\u0433\u0438\u043d \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 </li> </ul> <div> <p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432:</p> <p></p> <ul> <li>Name -<span> </span>\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0438\u043b\u0438 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435</li> </ul> <ul> <li>Url - <span> </span><span> </span>\u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0441\u0438\u0433\u043d\u0430\u043b \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430 \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u043e\u0439 \u0438\u043c\u0435\u0435\u0442\u0441\u044f</li> </ul> <ul> <li>User -<span> </span>\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043b\u043e\u0433\u0438\u043d \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435</li> </ul> <ul> <li>Password - <span> </span>\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440, \u043f\u0430\u0440\u043e\u043b\u044c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435</li> </ul> <ul> <li>TimeUpdateProfitSec -<span> </span>\u0432\u0440\u0435\u043c\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0431\u0430\u043b\u0430\u043d\u0441\u0430, \u0441\u0440\u0435\u0434\u0441\u0442\u0432, \u0438.\u0442.\u0434, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0435\u043a\u0443\u043d\u0434\u0443</li> </ul> <ul> <li>TimeUpdateBalanceSec - \u0432\u0440\u0435\u043c\u044f \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043a\u0430\u0436\u0434\u044b\u0435 300 \u0441\u0435\u043a\u0443\u043d\u0434. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 300 \u0441\u0435\u043a\u0443\u043d\u0434, \u0434\u043b\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442, \u043f\u0440\u0438 \u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439</li> </ul> </div>","urlForexVisible":"https://www.mql5.com/ru/market/product/78953","titleCatBoost":"\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 28 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440 \u0438 \u0434\u0432\u0430 \u0447\u0430\u0441\u043e\u0432\u044b\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u0434\u043b\u044f \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 H1 \u0438 H2. \u
10414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u043d\u0430 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0435 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f CatBoost.","pythonLSTM":"<p><b>\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 28 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a <b>\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442</b> \u0440\u0435\u043a\u0443\u0440\u0440\u0435\u043d\u0442\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0442\u0438\u043f\u0430 LSTM, \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d, \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u043e\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 mql5 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 ONNX \u043c\u043e\u0434\u0435\u043b\u0435\u0439 <a href=\'https://www.mql5.com/ru/docs/onnx\' title=\'https://www.mql5.com/ru/docs/onnx\' target=\'_blank\' rel=\'noopener\'>https://www.mql5.com/ru/docs/onnx</a></b></p><p>\u0412\u0441\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b: <a href=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' title=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' target=\'_blank\' rel=\'noopener\'>https://www.mql5.com/ru/signals/author/11breath11?orderby=gain</a></p><p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446 \u0442\u043e \u0441\u0432\u0435\u0440\u0448\u0438\u043b\u043e\u0441\u044c, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 mql5 \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0432\u043d\u0435\u0434\u0440\u0438\u043b\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 <b><a href=\'https://www.mql5.com/ru/docs/onnx\' title=\'https://www.mql5.com/ru/docs/onnx\' target=\'_blank\' rel=\'noopener\'>ONNX</a></b> \u0432 \u044f\u0437\u044b\u043a\u0435 mql5. \u0410 \u044d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0438 \u044d\u0442\u043e \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0431\u0435\u0437\u0433\u0440\u0430\u043d\u0438\u0447\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430 \u0432 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435.</p><p>\u041f\u043e\u0441\u043f\u0435\u0448\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0432\u044b\u0435 \u044d\u0442\u043e\u0442 \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043a\u043e\u0440\u043e \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0438 \u043d\u0430 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445 \u0431\u0443\u0434\u0443\u0442 \u0432 \u043d\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u0438, \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0438 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0435\u043c\u0438\u043c\u0438\u043b\u044c\u043d\u044b\u043c\u0438 \u0448\u0430\u0433\u0430\u043c\u0438.</p><p>\u0427\u0435\u043c \u043b\u0443\u0447\u0448\u0435 \u044d\u0442\u043e\u0442 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043e\u0442 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043d\u0430 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445 \u0432 mql5 \u043c\u0430\u0440\u043a\u0435\u0442\u0435? - \u0420\u0430\u043d\u044c\u0448\u0435 \u043d\u0435 \u0431\u044b\u043b\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0432 \u044f\u0437\u044b\u043a\u0435 mql5, \u0438 \u0432\u0441\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0438 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0441\u0434\u0435\u043b\u0430\u043d\u044b \u043d\u0430 \u0441\u0430\u043c\u043e\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u044f\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0438 \u043a\u0430\u043a \u043d\u0435 \u043c\u043e\u0433\u0443\u0442 \u043a\u043e\u043d\u043a\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u043c\u0438 \u0441\u0435\u0442\u044f\u043c\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0434\u043b\u044f \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0438 \u0443\u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u043d\u0430 \u043f\u0440\u043e\u0442\u044f\u0436\u0435\u043d\u0438\u0435 \u043c\u043d\u043e\u0433\u0438\u0445 \u043b\u0435\u0442 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b\u0438\u0441\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432.</p><p>
1\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 2 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445, \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0441\u043f\u043e\u0441\u043e\u0431\u0430\u043c\u0438 \u0438 \u0432\u043c\u0435\u0441\u0442\u0435 \u0432 \u0441\u0443\u043c\u043c\u0435 \u043e\u043d\u0438 \u0434\u0430\u044e\u0442 \u0431\u043e\u043b\u0435\u0435 \u0442\u043e\u0447\u043d\u044b\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b, \u0447\u0435\u043c \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.</p><p>\u0412 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u0431\u0443\u0434\u0443\u0442 \u0443\u043b\u0443\u0447\u0448\u0430\u0442\u044c\u0441\u044f \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430. </p><p><b>\u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043d\u0435 \u0432\u0441\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u0438\u0437 28, \u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0435 \u0432 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 2022 \u0433\u043e\u0434\u0430. \u041f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \'\u0416\u0443\u0440\u043d\u0430\u043b\', \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, </b><span><b>\u043e\u043f\u0446\u0438\u044f Active. \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0441\u0442\u043e\u043c \u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435 </b><span><b>Active = True \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0430\u0440 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430, \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0443\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u044b <span>Active = False, \u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044e.</span></b></span></span></p><ul><li>\u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u044d\u043a\u0441\u043f\u0435\u0440\u0442\u0435 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430 ShowTradePanel \u0432 false</li></ul><ul><li>\u0412 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \'\u0422\u043e\u043b\u044c\u043a\u043e \u0446\u0435\u043d\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \', \u044d\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0435 \u043f\u043e\u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.</li></ul><ul><li>\u0422\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0435\u0441\u0442\u0435\u0440\u0430 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439</li></ul><ul><li>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0436\u0443\u0440\u043d\u0430\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0434\u043e\u0445\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438</li></ul><div><div><div>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430</div></div></div><ul><li>UseSameLotSizeForAllPairs - \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e true, \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0432\u044b\u0448\u0435</li><li>UseMaxAllTakeProfitProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0439\u043a-\u043f\u0440\u043e\u0444\u0438\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllTakeProfitProcent, \u
1043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li><li>UseMaxStopLossProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u043e\u043f-\u043b\u043e\u0441\u0441 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllStopLossProcent, \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li><li>IsDynamicLot - \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</li><li>is_koef_for_each- \u0435\u0441\u043b\u0438 true, \u0442\u043e <span>\u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0435\u0441\u043b\u0438 false, \u0442\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u0431\u0430\u043b\u0430\u043d\u0441\u0430 <span>\u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></span></li><li>koef- \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0434\u043b\u044f <span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430, \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0438\u0441\u043a\u0438</span></li><li>from- <span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></li><li><span>CountOfGrid - \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u0432 \u0441\u0435\u0442\u043a\u0435</span></li><li><span>GridDistanseBegin - \u043d\u0430\u0447\u0430\u043b\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0446\u0435\u043d\u044b</span></li><li><span>GridDistanseEnd - \u043a\u043e\u043d\u0435\u0446 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0446\u0435\u043d\u044b</span></li><li>GridKoefBegin, GridKoefEnd - \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435</li></ul>","titlePythonLSTM":"\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 28 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0435\u043a\u0443\u0440\u0440\u0435\u043d\u0442\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0442\u0438\u043f\u0430 LSTM, \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d, \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u043e\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 mql5 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 ONNX \u043c\u043e\u0434\u0435\u043b\u0435\u0439","buyPythonLSTM":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","urlPythonLSTM":"https://www.mql5.com/ru/market/product/97276","QBotAI":"<p><b>QBotAI - \u044d\u0442\u043e \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0439 \u0440\u043e\u0431\u043e\u0442, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0440\u0435\u0439\u0434\u0438\u043d\u0433\u0430 \u043d\u0430 \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u044b\u0445 \u0440\u044b\u043d\u043a\u0430\u0445. \u041e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c Q-\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438.</b></p> <p>Q-\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u043e\u0431\u043e\u0442\u0443 \u043e\u0431\u0443\u0447\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u043e\u043f\u044b\u0442\u0435 \u043f\u0443\u0442\u0435\u043c \u043f\u0440\u043e\u0431 \u0438 \u043e\u0448\u0438\u0431\u043e\u043a. \u0420\u043e\u0431\u043e\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0443\u0435\u0442 \u0441 \u0442\u043e\u0440\u0433\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u043e\u0439, \u0441\u043e\u0432\u0435\u0440\u0448\u0430\u0435\u0442 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0435 \u0441\u0434\u0435\u043b\u043a\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u0448\u0442\u0440\u0430\u0444 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u0441\u0434\u0435\u043b\u043a\u0438. \u
10421\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c QBotAI \u0443\u0447\u0438\u0442\u0441\u044f \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043c\u0430\u043a\u0441\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c\u043e\u0435 \u0432\u043e\u0437\u043d\u0430\u0433\u0440\u0430\u0436\u0434\u0435\u043d\u0438\u0435.</p> <p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0438\u0433\u0440\u0430 Atari Breakout \u0431\u044b\u043b\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0430 \u0434\u043b\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0418\u0418 \u0438\u0433\u0440\u0430\u0442\u044c \u0432 \u043d\u0435\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Q-\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0430\u0433\u0435\u043d\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u043e, \u043d\u043e \u043f\u043e \u043c\u0435\u0440\u0435 \u0442\u0440\u0435\u043d\u0438\u0440\u043e\u0432\u043a\u0438 \u043e\u043d \u043d\u0430\u0443\u0447\u0438\u043b\u0441\u044f \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u0442\u044c \u0440\u0430\u043a\u0435\u0442\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u0431\u0438\u0432\u0430\u0442\u044c \u043c\u044f\u0447 \u0438 \u043d\u0435 \u0434\u043e\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u0430\u0434\u0435\u043d\u0438\u044f. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0418\u0418 \u0441\u043c\u043e\u0433 \u0434\u043e\u0441\u0442\u0438\u0447\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0438 \u0434\u0430\u0436\u0435 \u043f\u0440\u0435\u0432\u0437\u043e\u0439\u0442\u0438 \u0435\u0433\u043e \u0432 \u044d\u0442\u043e\u0439 \u0438\u0433\u0440\u0435 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044e \u0441 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435\u043c.</p> <p>\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 28 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0435\u043a\u0443\u0440\u0440\u0435\u043d\u0442\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0442\u0438\u043f\u0430 LSTM, \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d, \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u043e\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 mql5 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 ONNX \u043c\u043e\u0434\u0435\u043b\u0435\u0439</p> <p>\u0412 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0435 \u043f\u043e\u043c\u0438\u043c\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 UseModel1_QLearning, \u0435\u0441\u0442\u044c \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u043c\u043e\u0434\u0435\u043b\u044c UseModel2 \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u0443\u0447\u0435\u043d\u0430 \u043e\u0431\u044b\u0447\u043d\u044b\u043c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c, \u0438 \u0435\u0441\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u0432\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e(\u044d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e), \u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u0438\u043d\u044f\u0442\u0438\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0443 \u0438\u043b\u0438 \u043f\u043e\u043a\u0443\u043f\u043a\u0443 \u0431\u0443\u0434\u0443\u0442 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0443\u043c\u043c\u0435 \u0441\u0440\u0430\u0437\u0443 \u0434\u0432\u0443\u0445 \u044d\u0442\u0438\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u0447\u0442\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0442\u043e\u0447\u043d\u0435\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, \u0447\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438.</p> <p>\u0421\u0438\u0433\u043d\u0430\u043b \u0440\u0430\u0437\u0433\u043e\u043d\u0430 \u0434\u0435\u043f\u043e\u0437\u0438\u0442\u0430:<span> </span><a href=\'https://www.mql5.com/ru/signals/2178571\' title=\'https://www.mql5.com/ru/signals/2178571\' target=\'_blank\'>https://www.mql5.com/ru/signals/2178571</a></p> <p>
1\u041f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \'\u0416\u0443\u0440\u043d\u0430\u043b\', \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, \u0438\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0435, <span>\u043e\u043f\u0446\u0438\u044f Active. \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0441\u0442\u043e\u043c \u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435 <span> </span><span>Active = True \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0430\u0440 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430, \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0443\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u044b <span> </span><span>Active = False, \u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044e.</span></span></span></p> <p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u0441\u0430\u043c\u044b\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0435 9 \u043f\u0430\u0440 \u0438\u0437 28, \u043d\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440, \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u0442\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0435 \u043f\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u043c \u0442\u0435\u0441\u0442\u0430</p> <p><b>\u0422\u0430\u043a\u0436\u0435 \u0432\u0430\u0436\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u0438 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435 \u0432\u0441\u0435 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0437\u0430\u043d\u043e\u0432\u043e \u0435\u0441\u043b\u0438 \u043e\u043d \u0434\u043e\u0441\u0442\u0438\u0433 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 1% \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 UseMaxAllTakeProfitProcent \u0438 MaxAllTakeProfitProcent, \u0441 \u044d\u0442\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439 \u043d\u0443\u0436\u043d\u043e \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435, \u0435\u0441\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0431\u044b\u0441\u0442\u0440\u043e\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0438 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0439 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430 \u043f\u0440\u0438 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435 \u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c, \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u044c \u0441\u0443\u0434\u044f \u043f\u043e \u0431\u0435\u043a \u0442\u0435\u0441\u0442\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0435\u0441\u043b\u0438 \u0435\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0430 \u0434\u043b\u0438\u043d\u043d\u044b\u0445 \u0434\u0438\u0441\u0442\u0430\u043d\u0446\u0438\u044f\u0445 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438.</b></p> <p><b>\u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043e\u0431\u0443\u0447\u0430\u043b\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u043d\u0430 4 \u043c\u0435\u0441\u044f\u0446\u0430\u0445 2022 \u0433\u043e\u0434\u0430</b></p> <ul> <li>
1\u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0430\u043b\u044e\u0442\u043d\u0443\u044e \u043f\u0430\u0440\u0443 EURUSD \u0438 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 H1</li> </ul> <ul> <li>\u0422\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0435\u0441\u0442\u0435\u0440\u0430 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439</li> </ul> <ul> <li>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0436\u0443\u0440\u043d\u0430\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0434\u043e\u0445\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438</li> </ul> <div> <div> <div> <ol></ol> </div> </div> </div> <div> <p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430</p> <p></p> </div> <ul> <li>UseSameLotSizeForAllPairs - \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e true, \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0432\u044b\u0448\u0435</li> <li>UseMaxAllTakeProfitProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0439\u043a-\u043f\u0440\u043e\u0444\u0438\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllTakeProfitProcent, \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li> <li>UseMaxStopLossProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u043e\u043f-\u043b\u043e\u0441\u0441 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllStopLossProcent, \u
1043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li> <li>IsDynamicLot - \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</li> <li>is_koef_for_each<span> </span>- \u0435\u0441\u043b\u0438 true, \u0442\u043e <span> </span><span>\u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0435\u0441\u043b\u0438 false, \u0442\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u0431\u0430\u043b\u0430\u043d\u0441\u0430 <span> </span><span>\u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></span></li> <li>koef<span> </span>- \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0434\u043b\u044f <span> </span><span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430, \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0438\u0441\u043a\u0438</span></li> <li>from<span> </span>- <span> </span><span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></li> <li><span>CountOfGrid - \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u0432 \u0441\u0435\u0442\u043a\u0435</span></li> <li><span>GridDistanseBegin - \u043d\u0430\u0447\u0430\u043b\u043e \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0446\u0435\u043d\u044b</span></li> <li><span>GridDistanseEnd - \u043a\u043e\u043d\u0435\u0446 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0446\u0435\u043d\u044b</span></li> <li>GridKoefBegin, GridKoefEnd - \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435</li> </ul>","titleQBotAI":"QBotAI - \u044d\u0442\u043e \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0439 \u0440\u043e\u0431\u043e\u0442, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0440\u0435\u0439\u0434\u0438\u043d\u0433\u0430 \u043d\u0430 \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u044b\u0445 \u0440\u044b\u043d\u043a\u0430\u0445. \u041e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043c\u0435\u0442\u043e\u0434 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c Q-\u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0438","buyQBotAI":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","urlQBotAI":"https://www.mql5.com/ru/market/product/113435","IntervalAI":"<p>\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 28 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0435\u043a\u0443\u0440\u0440\u0435\u043d\u0442\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0442\u0438\u043f\u0430 LSTM, \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d, \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u043e\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 mql5 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 ONNX \u043c\u043e\u0434\u0435\u043b\u0435\u0439</p> <div class=\'code\'> <p>\u0416\u0438\u0432\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u043b: <a href=\'https://www.mql5.com/ru/signals/2258349\' title=\'https://www.mql5.com/ru/signals/2258349\' target=\'_blank\'>https://www.mql5.com/ru/signals/2258349</a></p> <p>\u0424\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430: <span><a href=\'https://c.mql5.com/31/1189/QIntervalAIPairs21Proc5.set\' title=\'https://c.mql5.com/31/1189/QIntervalAIPairs21Proc5.set\' target=\'_blank\'>IntervalAIPairs21Proc5.set</a></span> </p> <p><a href=\'https://www.mql5.com/ru/signals/2258349\' title=\'https://www.mql5.com/ru/signals/2258349\' target=\'_blank\'> </a> </p> </div> <p>\u0410\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u0441 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u0441 \u0434\u0432\u0443\u043c\u044f \u0447\u0430\u0441\u043e\u0432\u044b\u043c\u0438 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430\u043c\u0438 \u041d15 \u0438 \u041d1. \u0414\u043b\u044f \u043e\u0431\u043e\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u0432 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 28 \u043f\u0430\u0440 \u043e\u0431\u0443\u0447\u0435\u043d\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439. \u0418\u0434\u0435\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0442\u043e\u043c \u0447\u0442\u043e \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0432\u044b\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043e\u0440\u0434\u0435\u0440\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0433\u0434\u0430, \u043a\u043e\u0433\u0434\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043e\u0442 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u041d15 \u0441 \u043c\u043e\u0434\u0435\u043b\u044f\u043c\u0438 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u041d1. \u041d\u043e \u044d\u0442\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0440\u0435\u0436\u0438\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0442\u043e\u0440\u0433\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 <span>\u041d15 \u0438\u043b\u0438 <span>\u041d1 \u0438 \u0442\u0430\u043a\u0436\u0435 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u043c\u0438 \u0431\u0435\u0437 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439 \u043a\u0430\u043a \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435.</span></span></p> <p>
1\u0412\u043e\u0442 \u043a\u0430\u043a \u044d\u0442\u0438 4 \u0440\u0435\u0436\u0438\u043c\u0430 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0435 \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a <span>Use Time Intervals</span>:</p> <p>1) \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e H1 = true, M15 = true, UseM15IfEqualH1 = true - \u0440\u0435\u0436\u0438\u043c \u043a\u043e\u0433\u0434\u0430 \u0442\u043e\u0440\u0433\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0435 M15, \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043e\u0442 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0441 \u0441 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c\u0438 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0435 <span>\u041d1</span></p> <p><span>2) H1 = true, M15 = true, UseM15IfEqualH1 = false - \u0440\u0435\u0436\u0438\u043c \u043a\u043e\u0433\u0434\u0430 \u0442\u043e\u0440\u0433\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0435 M15 \u0438 H1, \u0431\u0435\u0437 \u0443\u0447\u0435\u0442\u0430 \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0439 \u043e\u0442 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0441 \u0441 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c\u0438 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0435 </span><span>\u041d1</span></p> <p><span>3) H1 = true, M15 = <span>false</span> , UseM15IfEqualH1 = false - \u0440\u0435\u0436\u0438\u043c \u043a\u043e\u0433\u0434\u0430 \u0442\u043e\u0440\u0433\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0435 H1</span></p><span>4) H1 = false, M15 =<span> true</span></span><span><span> </span></span><span>, UseM15IfEqualH1 = false - \u0440\u0435\u0436\u0438\u043c \u043a\u043e\u0433\u0434\u0430 \u0442\u043e\u0440\u0433\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0435 M15</span> <p><span></span> </p> <p><span></span> </p> <p><span></span> </p> <p><span><span></span></span></p> <p>\u041f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \'\u0416\u0443\u0440\u043d\u0430\u043b\', \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, \u0438\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0435, <span>\u043e\u043f\u0446\u0438\u044f Active. \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0441\u0442\u043e\u043c \u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435 <span> </span><span>Active = True \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043f\u0430\u0440 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430, \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0443\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u044b <span> </span><span>Active = False, \u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044e.</span></span></span></p> <p>
1\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u0441\u0430\u043c\u044b\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0435 9 \u043f\u0430\u0440 \u0438\u0437 28, \u043d\u043e \u0441\u0430\u043c\u044b\u0435 \u043b\u0443\u0447\u0448\u0438\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0435\u0441\u043b\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a <a href=\'https://c.mql5.com/31/1189/QIntervalAIPairs21Proc5.set\' title=\'https://c.mql5.com/31/1189/QIntervalAIPairs21Proc5.set\' target=\'_blank\'>IntervalAIPairs21Proc5.set</a></p> <p>\u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043e\u0431\u0443\u0447\u0430\u043b\u0441\u044f \u0441 2016 \u0433\u043e\u0434\u0430 \u043f\u043e 2023, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u043d\u0443\u0436\u043d\u043e \u0441 2023, \u0441 \u044d\u0442\u043e\u0433\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u043d\u0430\u043b \u043e\u0431 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043f\u0440\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u0438</p> <ul> <li>\u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0430\u043b\u044e\u0442\u043d\u0443\u044e \u043f\u0430\u0440\u0443 EURUSD \u0438 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 M15</li> </ul> <ul> <li>\u0412 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \'\u0422\u043e\u043b\u044c\u043a\u043e \u0446\u0435\u043d\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \', \u044d\u0442\u043e \u0441\u0438\u043b\u044c\u043d\u043e \u043d\u0435 \u043f\u043e\u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043d\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.</li> </ul> <ul> <li>\u0422\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0435\u0441\u0442\u0435\u0440\u0430 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439</li> </ul> <ul> <li>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0436\u0443\u0440\u043d\u0430\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0434\u043e\u0445\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438</li> </ul> <div> <div> <div> <ol></ol> </div> </div> </div> <div> <p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430</p> </div> <ul> <li>UseSameLotSizeForAllPairs - \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e true, \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0432\u044b\u0448\u0435</li> <li>UseMaxAllTakeProfitProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0439\u043a-\u043f\u0440\u043e\u0444\u0438\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllTakeProfitProcent, \u
1043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li> <li>UseMaxStopLossProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u043e\u043f-\u043b\u043e\u0441\u0441 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllStopLossProcent, \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li> <li>IsDynamicLot - \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</li> <li>is_koef_for_each<span> </span>- \u0435\u0441\u043b\u0438 true, \u0442\u043e <span> </span><span>\u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0435\u0441\u043b\u0438 false, \u0442\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u0431\u0430\u043b\u0430\u043d\u0441\u0430 <span> </span><span>\u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></span></li> <li>koef<span> </span>- \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0434\u043b\u044f <span> </span><span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430, \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0438\u0441\u043a\u0438</span></li> <li>from<span> </span>- <span> </span><span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></li> <li><span>CountOfGrid - \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u0432 \u0441\u0435\u0442\u043a\u0435</span></li> <li>CountGridBars - \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0431\u0430\u0440\u043e\u0432 \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043f\u043e \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0430\u044f \u0438 \u043d\u0430\u0438\u0432\u044b\u0441\u043e\u0447\u0430\u0439\u0448\u0430\u044f \u0446\u0435\u043d\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u043c\u0435\u0436\u0434\u0443 \u043e\u0440\u0434\u0435\u0440\u0430\u043c\u0438 \u0434\u043b\u044f \u0441\u0435\u0442\u043a\u0438: MaxPrice \u0438 MinPrice</li> <li>GridKoef - \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0440\u0434\u0435\u0440\u0430\u043c\u0438 \u0432 \u0441\u0435\u0442\u043a\u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 (MaxPrice - MinPrice)/ GridKoef</li> <li>GridKoefBegin, GridKoefEnd - \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435</li> </ul> <p><br/></p>","titleIntervalAI":"\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 28 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0435\u043a\u0443\u0440\u0440\u0435\u043d\u0442\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0442\u0438\u043f\u0430 LSTM, \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d, \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u043e\u0432\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0432 mql5 \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 ONNX \u043c\u043e\u0434\u0435\u043b\u0435\u0439","buyIntervalAI":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","urlIntervalAI":"https://www.mql5.com/ru/market/product/123612","omegaAI":"<p><span><b>\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 29 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0437\u043e\u043b\u043e\u0442\u043e. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0435\u043a\u0443\u0440\u0440\u0435\u043d\u0442\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0442\u0438\u043f\u0430 LSTM, \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435\u043c.</b></span></p><div class=\'atten\'><p><a href=\'https://www.mql5.com/ru/signals/2297251\' title=\'https://www.mql5.com/ru/signals/2297251\' target=\'_blank\' rel=\'noopener\'>\u0416\u0438\u0432\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u0439</a></p><p><span>\u0412 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0438 \u043c\u043d\u043e\u0433\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a, \u043f\u043e \u0441\u0443\u0442\u0438 \u044d\u0442\u043e \u0446\u0435\u043b\u044b\u0439 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439, \u0447\u0442\u043e \u0431\u044b \u0432\u044b \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043b\u0438\u0441\u044c \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430\u0445 \u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f, \u0443 \u043c\u0435\u043d\u044f \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 forexvisible.com (\u043f\u0440\u043e\u0441\u0442\u043e \u0432\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043c\u043e\u0435\u0433\u043e \u0441\u0430\u0439\u0442\u0430), \u043d\u0430 \u044d\u0442\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u0434\u0435\u0442\u044c \u0440\u0435\u0430\u043b\u044c\u043d\u0443\u044e \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044e \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c\u0438 \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, \u0442\u0430\u043c \u0438\u0434\u0435\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u043a\u0430\u0436\u0434\u044b\u0435 10 \u0441\u0435\u043a\u0443\u043d\u0434 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438. \u
10412\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \'\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\' \u043d\u0430 \u044d\u0442\u043e\u043c \u0441\u0430\u0439\u0442\u0435, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043b\u044f \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430</span> </p></div><p>\u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 4 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u0430 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0434\u043b\u044f 29 \u043f\u0430\u0440, \u0434\u0432\u0435 \u043f\u0435\u0440\u0432\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0435 H1 \u0438 \u0434\u0432\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u043c M15.</p><p>\u042d\u0442\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u043f\u043e \u043e\u0434\u0438\u043d\u043e\u0447\u043a\u0435 \u0442\u0430\u043a \u0438 \u0432\u043c\u0435\u0441\u0442\u0435, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u043f\u0430\u0440\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u0442\u043e \u0435\u0441\u0442\u044c 2 \u043b\u044e\u0431\u044b\u0435 \u0432\u043c\u0435\u0441\u0442\u0435 \u0438\u043b\u0438 4 \u0441\u0440\u0430\u0437\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0443 \u0438\u043b\u0438 \u043f\u0440\u043e\u0434\u0430\u0436\u0443 \u0431\u0443\u0434\u0443\u0442 \u0441\u0443\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0434\u043d\u0430 \u043c\u043e\u0434\u0435\u043b\u044c \u0432\u044b\u0434\u0430\u0435\u0442 \u0441\u0438\u0433\u043d\u0430\u043b \u043d\u0430 \u043f\u043e\u043a\u0443\u043f\u043a\u0443, \u0430 \u0434\u0440\u0443\u0433\u0430\u044f \u043d\u0430 \u043f\u0440\u043e\u0434\u0430\u0436\u0443, \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u0435\u0442 \u0442\u043e\u0433\u0434\u0430 \u0442\u0430\u043a\u043e\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432.</p><p>\u041f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \'\u0416\u0443\u0440\u043d\u0430\u043b\', \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, \u0438\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0435, <span>\u043e\u043f\u0446\u0438\u044f Active. </span></p><p><span></span>
1\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u044b\u0431\u0440\u0430\u043d\u043e \u0441\u0430\u043c\u044b\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0435 8 \u043f\u0430\u0440 \u0438\u0437 29 \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0435\u0439 UseModel1_QLearning + UseModel3_QLearning_M15, \u0441\u043c\u0435\u043b\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u044e \u0437\u043e\u043b\u043e\u0442\u043e\u043c \u043a \u044d\u0442\u0438\u043c 8 \u043f\u0430\u0440\u0430\u043c, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043d\u0430 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0430</p><p>\u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043e\u0431\u0443\u0447\u0430\u043b\u0441\u044f \u0441 2023 \u0433\u043e\u0434\u0430 \u043f\u043e 2024, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u043d\u0443\u0436\u043d\u043e \u0441 2023</p><ul><li>\u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0430\u043b\u044e\u0442\u043d\u0443\u044e \u043f\u0430\u0440\u0443 EURUSD \u0438 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 H1</li></ul><ul><li>\u0412 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \'1 minute OHLC\'</li></ul><ul><li>\u0422\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0435\u0441\u0442\u0435\u0440\u0430 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439</li></ul><ul><li>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0436\u0443\u0440\u043d\u0430\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0434\u043e\u0445\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438</li></ul><div><div><div><ol></ol></div></div></div><div><p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430</p></div><ul><li>UseSameLotSizeForAllPairs - \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e true, \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0432\u044b\u0448\u0435</li><li>UseMaxAllTakeProfitProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0439\u043a-\u043f\u0440\u043e\u0444\u0438\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllTakeProfitProcent, \u
1043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li><li>UseMaxStopLossProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u043e\u043f-\u043b\u043e\u0441\u0441 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllStopLossProcent, \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li><li>IsDynamicLot - \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</li><li>is_koef_for_each<span> </span>- \u0435\u0441\u043b\u0438 true, \u0442\u043e <span> </span><span>\u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0435\u0441\u043b\u0438 false, \u0442\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u0431\u0430\u043b\u0430\u043d\u0441\u0430 <span> </span><span>\u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></span></li><li>koef<span> </span>- \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0434\u043b\u044f <span> </span><span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430, \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0438\u0441\u043a\u0438</span></li><li>from<span> </span>- <span> </span><span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></li><li><span>CountOfGrid - \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u0432 \u0441\u0435\u0442\u043a\u0435</span></li><li>CountGridBars - \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0431\u0430\u0440\u043e\u0432 \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043f\u043e \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0430\u044f \u0438 \u043d\u0430\u0438\u0432\u044b\u0441\u043e\u0447\u0430\u0439\u0448\u0430\u044f \u0446\u0435\u043d\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u043c\u0435\u0436\u0434\u0443 \u043e\u0440\u0434\u0435\u0440\u0430\u043c\u0438 \u0434\u043b\u044f \u0441\u0435\u0442\u043a\u0438: MaxPrice \u0438 MinPrice</li><li>GridKoef - \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0440\u0434\u0435\u0440\u0430\u043c\u0438 \u0432 \u0441\u0435\u0442\u043a\u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 (MaxPrice - MinPrice)/ GridKoef</li><li>GridKoefBegin, GridKoefEnd - \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435</li></ul><p></p><p></p><p></p><p></p><div></div>","titleOmegaAI":"\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 29 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440, \u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0437\u043e\u043b\u043e\u0442\u043e. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0435\u043a\u0443\u0440\u0440\u0435\u043d\u0442\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0442\u0438\u043f\u0430 LSTM, \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435\u043c","buyOmegaAI":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","urlOmegaAI":"https://www.mql5.com/ru/market/product/134265","alphaAI":"<p><span>\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 29 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0435\u043a\u0443\u0440\u0440\u0435\u043d\u0442\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0442\u0438\u043f\u0430 LSTM, \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435\u043c.</span></p><p>\u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 4 \u0440\u0430\u0437\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u0430 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0445 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u0434\u043b\u044f 29 \u043f\u0430\u0440, \u0434\u0432\u0435 \u043f\u0435\u0440\u0432\u044b\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0435 H1 \u0438 \u0434\u0432\u0435 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u043c M15.</p><p>\u042d\u0442\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f\u0445 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b \u0438\u0437 29 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043d\u0438 \u0443\u0436\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u0441 2025 \u0433\u043e\u0434\u0430 \u043f\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f. \u041d\u043e \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0439 \u0441\u043e\u0444\u0442 AlphaAITrainer \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0434 \u0441\u0435\u0431\u044f \u0441\u0430\u043c\u043e\u0439 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b. \u0412 \u0432\u0438\u0434\u0435\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043b\u043e\u0436\u0435\u043d\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f \u043a\u0430\u043a \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c</p><p>
1\u041f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u043f\u043e\u0441\u043b\u0435 \u0442\u0435\u0441\u0442\u0430 \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \'\u0416\u0443\u0440\u043d\u0430\u043b\', \u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0443\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0435 \u043f\u0430\u0440\u044b \u043f\u043e \u043c\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430, \u0438\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u0431\u044b\u043b\u044c\u043d\u044b\u0435, <span>\u043e\u043f\u0446\u0438\u044f Active. </span></p><p><span></span>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u044b\u0431\u0440\u0430\u043d\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043b\u0443\u0447\u0448\u0438\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <a title=\'\u0421\u043a\u0430\u0447\u0430\u0442\u044c AlphaAIGridPairs10.set\' href=\'https://c.mql5.com/31/1535/AlphaAIGridPairs10.set\' target=\'_blank\'>AlphaAIGridPairs10.set</a> <a title=\'\u0421\u043a\u0430\u0447\u0430\u0442\u044c AlphaAIGridPairs10_NoGold.set\' href=\'https://c.mql5.com/31/1535/AlphaAIGridPairs10_NoGold.set\' target=\'_blank\'>AlphaAIGridPairs10_NoGold.set</a></p><p><a title=\'\u0421\u043a\u0430\u0447\u0430\u0442\u044c OmegaAIModel1234GridPairs10Proc5NoGold.set\' href=\'https://c.mql5.com/31/1450/OmegaAIModel1234GridPairs10Proc5NoGold.set\' target=\'_blank\'></a></p><p>\u0427\u0442\u043e \u0431\u044b \u0443\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0440\u0438\u0441\u043a \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0439\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \'koef\' \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445</p><p>\u0414\u0435\u043f\u043e\u0437\u0438\u0442 \u043d\u0443\u0436\u0435\u043d \u043e\u0442 1000$, \u0438\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0446\u0435\u043d\u0442\u043e\u0432\u044b\u0439 \u0441\u0447\u0435\u0442, \u0442\u043e\u0433\u0434\u0430 \u0445\u0432\u0430\u0442\u0438\u0442 \u0438 10$. \u041c\u043e\u0436\u0435\u0442\u0435 \u0438 \u0441 \u043c\u0435\u043d\u044c\u0448\u0438\u043c \u0434\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u043c, \u043d\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0431\u0435\u043a \u0442\u0435\u0441\u0442 \u0438 \u043e\u0446\u0435\u043d\u0438\u0442\u0435 \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0443</p><p>\u0421\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u043e\u0431\u0443\u0447\u0430\u043b\u0441\u044f \u0441 2023 \u0433\u043e\u0434\u0430 \u043f\u043e 2025, \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u043d\u0443\u0436\u043d\u043e \u0441 2025</p><ul><li>\u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0430\u043b\u044e\u0442\u043d\u0443\u044e \u043f\u0430\u0440\u0443 EURUSD \u0438 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0438\u043e\u0434 H1</li></ul><ul><li>\u0412 \u0442\u0435\u0441\u0442\u0435\u0440\u0435 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439 \u0432\u044b\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0438 \'1 minute OHLC\'</li></ul><ul><li>\u0422\u0430\u043a\u0436\u0435 \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0442\u044b \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0442\u0435\u0441\u0442\u0435\u0440\u0430 \u0441\u0442\u0440\u0430\u0442\u0435\u0433\u0438\u0439</li></ul><ul><li>\u0412 \u043a\u043e\u043d\u0446\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u043e \u0432\u043a\u043b\u0430\u0434\u043a\u0435 \u0436\u0443\u0440\u043d\u0430\u043b \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u0434\u043e\u0445\u043e\u0434\u043d\u043e\u0441\u0442\u0438 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0440\u043e\u0441\u0430\u0434\u043a\u0438 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438</li></ul><div><div><div><ol></ol></div></div></div><div><p>\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a\u0430</p></div><ul><li>UseSameLotSizeForAllPairs - \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e true, \u043e\u0434\u0438\u043d \u0440\u0430\u0437\u043c\u0435\u0440 \u043b\u043e\u0442\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c \u0432\u044b\u0448\u0435</li><li>UseMaxAllTakeProfitProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u0439\u043a-\u043f\u0440\u043e\u0444\u0438\u0442 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllTakeProfitProcent, \u
1043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li><li>UseMaxStopLossProcent - \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u043e\u043f-\u043b\u043e\u0441\u0441 \u0432 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u0430\u0445 \u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0440\u0438\u0431\u044b\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u0443\u044e \u0432 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 MaxAllStopLossProcent, \u043f\u043e\u0441\u043b\u0435 \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0432\u0441\u0435 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u043e\u0440\u0434\u0435\u0440\u0430 \u0437\u0430\u043a\u0440\u044b\u0432\u0430\u044e\u0442\u0441\u044f. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0432\u0441\u0435\u043c \u0442\u0438\u043a\u0430\u043c \u0438\u043b\u0438 1 \u043c\u0438\u043d\u0443\u0442\u0430 OHLC</li><li>IsDynamicLot - \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</li><li>is_koef_for_each<span> </span>- \u0435\u0441\u043b\u0438 true, \u0442\u043e <span> </span><span>\u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0432\u0430\u043b\u044e\u0442\u043d\u043e\u0439 \u043f\u0430\u0440\u044b \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0435\u0441\u043b\u0438 false, \u0442\u043e \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u0431\u0430\u043b\u0430\u043d\u0441\u0430 <span> </span><span>\u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></span></li><li>koef<span> </span>- \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0434\u043b\u044f <span> </span><span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430, \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435, \u0442\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0440\u0438\u0441\u043a\u0438</span></li><li>from<span> </span>- <span> </span><span>\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0437\u043c\u0435\u0440\u0430 \u043b\u043e\u0442\u0430 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0431\u0430\u043b\u0430\u043d\u0441\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u043e\u0439 \u043c\u0430\u0440\u0436\u0438</span></li><li><span>CountOfGrid - \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0445 \u043e\u0440\u0434\u0435\u0440\u043e\u0432 \u0432 \u0441\u0435\u0442\u043a\u0435</span></li><li>CountGridBars - \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0431\u0430\u0440\u043e\u0432 \u0432 \u0438\u0441\u0442\u043e\u0440\u0438\u0438 \u043f\u043e \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430\u0438\u043c\u0435\u043d\u044c\u0448\u0430\u044f \u0438 \u043d\u0430\u0438\u0432\u044b\u0441\u043e\u0447\u0430\u0439\u0448\u0430\u044f \u0446\u0435\u043d\u0430 \u0434\u043b\u044f \u0440\u0430\u0441\u0447\u0435\u0442\u0430 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u0430 \u043c\u0435\u0436\u0434\u0443 \u043e\u0440\u0434\u0435\u0440\u0430\u043c\u0438 \u0434\u043b\u044f \u0441\u0435\u0442\u043a\u0438: MaxPrice \u0438 MinPrice</li><li>GridKoef - \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u043c\u0438 \u043e\u0440\u0434\u0435\u0440\u0430\u043c\u0438 \u0432 \u0441\u0435\u0442\u043a\u0438 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e \u0444\u043e\u0440\u043c\u0443\u043b\u0435 (MaxPrice - MinPrice)/ GridKoef</li><li>GridKoefBegin, GridKoefEnd - \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u043e\u0432 \u0434\u043b\u044f \u0443\u043c\u043d\u043e\u0436\u0435\u043d\u0438\u0435 \u0446\u0435\u043d\u044b \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0440\u0434\u0435\u0440\u0430 \u0432 \u0441\u0435\u0442\u043a\u0435</li></ul>","titleAlphaAI":"\u042d\u0442\u043e\u0442 \u043c\u0443\u043b\u044c\u0442\u0438\u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0439 \u044d\u043a\u0441\u043f\u0435\u0440\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 29 \u0432\u0430\u043b\u044e\u0442\u043d\u044b\u0445 \u043f\u0430\u0440. \u0414\u043b\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u043e\u0432 \u0441\u043e\u0432\u0435\u0442\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0440\u0435\u043a\u0443\u0440\u0440\u0435\u043d\u0442\u043d\u044b\u0435 \u043d\u0435\u0439\u0440\u043e\u043d\u043d\u044b\u0435 \u0441\u0435\u0442\u0438 \u0442\u0438\u043f\u0430 LSTM, \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0431\u0443\u0447\u0435\u043d\u043d\u044b\u0435 \u0432 \u044f\u0437\u044b\u043a\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0438\u0442\u043e\u043d \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u043e\u0431\u0443\u0447\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u0434\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u0438\u0435\u043c","buyAlphaAIDemo":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0414\u0435\u043c\u043e","buyAlphaAITrainer":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u041e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440","buyAlphaAIShop":"\u041a\u0443\u043f\u0438\u0442\u044c 240$","buyAlphaAIMQL5":"\u041a\u0443\u043f\u0438\u0442\u044c 240$","urlAlphaAIMQL5":"https://www.mql5.com/ru/market/product/150596","urlAlphaAIDemo":"https://payhip.com/b/DHkze","urlAlphaAITrainer":"https://payhip.com/b/mRFBJ","urlAlphaAIShop":"https://payhip.com/b/lqiJr"},"mainMenu":{"Appointments":"\u041d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f","Customers":"\u041a\u043b\u0438\u0435\u043d\u0442\u044b","Monitoring":"\u
1041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433","Signals":"\u0421\u0438\u0433\u043d\u0430\u043b\u044b","SignalsMQL5":"MQL5","Products":"\u041f\u0440\u043e\u0434\u0443\u043a\u0442\u044b","Orders":"\u0417\u0430\u043a\u0430\u0437\u044b","About":"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b","Logout":"\u0412\u044b\u0439\u0442\u0438","Login":"\u0412\u043e\u0439\u0442\u0438","Register":"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f","Instruction":"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f","Licenses":"\u041f\u043e\u043a\u0443\u043f\u043a\u0438","Language":"\u042f\u0437\u044b\u043a","English":"\u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439","Russian":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},"binancebot":{"subtitle":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0439 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a"},"privacy":{"text":"<div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h4 style=color:#212529;font-size:24px><strong style=color:#212529>\u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0432 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445</strong></h4></div></div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px>1. \u041e\u0431\u0449\u0438\u0435 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f</h5><div style=color:#212529>\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0437\u0430\u043a\u043e\u043d\u0430 \u043e\u0442 27.07.2006. \u2116 152-\u0424\u0417 \xab\u041e \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445\xbb (\u0434\u0430\u043b\u0435\u0435 \u2014 \u0417\u0430\u043a\u043e\u043d \u043e \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445) \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u043c\u0435\u0440\u044b \u043f\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044e \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0435 <span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'>\u0427\u0438\u0441\u0442\u044e\u0445\u0438\u043d\u043e\u043c \u0415\u0432\u0433\u0435\u043d\u0438\u0435\u043c \u0410\u043b\u0435\u043a\u0441\u0430\u043d\u0434\u0440\u043e\u0432\u0438\u0447\u0435\u043c</span> (\u0434\u0430\u043b\u0435\u0435 \u2014 \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440).</div><div style=color:#212529><div style=color:#212529>1.1. \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0441\u0442\u0430\u0432\u0438\u0442 \u0441\u0432\u043e\u0435\u0439 \u0432\u0430\u0436\u043d\u0435\u0439\u0448\u0435\u0439 \u0446\u0435\u043b\u044c\u044e \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u0435\u043c \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0432\u043e\u0435\u0439 \u0434\u0435\u044f\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0430\u0432 \u0438 \u0441\u0432\u043e\u0431\u043e\u0434 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430 \u0438 \u0433\u0440\u0430\u0436\u0434\u0430\u043d\u0438\u043d\u0430 \u043f\u0440\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0435\u0433\u043e \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0437\u0430\u0449\u0438\u0442\u044b \u043f\u0440\u0430\u0432 \u043d\u0430 \u043d\u0435\u043f\u0440\u0438\u043a\u043e\u0441\u043d\u043e\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0447\u0430\u0441\u0442\u043d\u043e\u0439 \u0436\u0438\u0437\u043d\u0438, \u043b\u0438\u0447\u043d\u0443\u044e \u0438 \u0441\u0435\u043c\u0435\u0439\u043d\u0443\u044e \u0442\u0430\u0439\u043d\u0443.</div><div style=color:#212529>1.2. \u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u0432 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0434\u0430\u043b\u0435\u0435 \u2014 \u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430) \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043a\u043e \u0432\u0441\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u0435\u043b\u044f\u0445 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u0430 https://forexvisible.com.</div></div></div>","name":"\u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438","Logout":"\u0412\u044b\u0439\u0442\u0438","Login":"\u0412\u043e\u0439\u0442\u0438","Register":"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f","Instru
1ction":"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f","Licenses":"\u041f\u043e\u043a\u0443\u043f\u043a\u0438","Language":"\u042f\u0437\u044b\u043a","English":"\u0410\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439","Russian":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},"pageHeader":{"Dashboard":"\u0414\u043e\u0441\u043a\u0430","Customers":"\u041a\u043b\u0438\u0435\u043d\u0442\u044b","Monitoring":"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433","Products":"\u041f\u0440\u043e\u0434\u0443\u043a\u0442\u044b","Orders":"\u0417\u0430\u043a\u0430\u0430\u0437\u044b","NotFound":"\u041d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e","About":"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b","Settings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","Instruction":"\u0418\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f","BinanceBot":"BinanceBot"},"home":{"NoWidgets1":"\u0423 \u0432\u0430\u0441 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u044e\u0442\u0441\u044f \u0432\u0438\u0434\u0436\u0435\u0442\u044b. \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a ","NoWidgets2":"\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043d\u044b\u0445 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432","StatisticsTitle":"\u0411\u0430\u043b\u0430\u043d\u0441"},"notFound":{"404":"404","pageNotFound":"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u0438\u0449\u0435\u0442\u0435, \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442","backToHome":"\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443"},"settings":{"tab":{"Profile":"\u041f\u0440\u043e\u0444\u0438\u043b\u044c","Preferences":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","Users":"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438","Roles":"\u0420\u043e\u043b\u0438"},"header":{"UserProfile":"\u041f\u0440\u043e\u0444\u0438\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","UserPreferences":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","UserDepartments":"\u041e\u0442\u0434\u0435\u043b\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","UsersManagements":"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c\u0438","RolesManagement":"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u043e\u043b\u044f\u043c\u0438"}},"preferences":{"ReloadPreferences":"\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:","ReloadPreferencesHint":"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e (\u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u044e\u0442\u0441\u044f)","Language":"\u042f\u0437\u044b\u043a\u0438:","Default":"\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","English":"English","Russian":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","French":"French","German":"German","Portuguese":"Portuguese","Arabic":"Arabic","Korean":"Korean","LanguageHint":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0435\u043c\u044b\u0439 \u044f\u0437\u044b\u043a \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438","HomePage":"\u0414\u043e\u043c\u0430\u0448\u043d\u044f\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430:","Dashboard":"\u0414\u043e\u0441\u043a\u0430","Customers":"\u041a\u043b\u0438\u0435\u043d\u0442\u044b","Products":"\u041f\u0440\u043e\u0434\u0443\u043a\u0442\u044b","Orders":"\u0417\u0430\u043a\u0430\u0437\u044b","About":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435","Settings":"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438","HomePageHint":"\u
10412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443","Theme":"\u0422\u0435\u043c\u044b:","DefaultTheme":"\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","CosmoTheme":"Cosmo","SolarTheme":"Solar","CeruleanTheme":"Cerulean","FlatlyTheme":"Flatly","SketchyTheme":"Sketchy","SlateTheme":"Slate","SpacelabTheme":"Spacelab","SuperheroTheme":"Superhero","UnitedTheme":"United","JournalTheme":"Journal","LumenTheme":"Lumen","MintyTheme":"Minty","PulseTheme":"Pulse","ThemeHint":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0446\u0432\u0435\u0442\u043e\u0432\u0443\u044e \u0442\u0435\u043c\u0443 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0432\u0430\u0448\u0435\u0439 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438.","DashboardStatistics":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043f\u0440\u0438\u0431\u043e\u0440\u043d\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438:","DashboardStatisticsHint":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0438\u0434\u0436\u0435\u0442 \u0434\u0435\u043c\u043e-\u0433\u0440\u0430\u0444\u0438\u043a\u0430 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432 ","DashboardNotifications":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432:","DashboardNotificationsHint":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432","DashboardTodo":"\u041f\u0430\u043d\u0435\u043b\u044c \u0437\u0430\u0434\u0430\u0447:","DashboardTodoHint":"\u041f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0432\u0438\u0434\u0436\u0435\u0442 todo \u043d\u0430 \u043f\u0430\u043d\u0435\u043b\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432","DashboardBanner":"\u0411\u0430\u043d\u043d\u0435\u0440 \u043f\u0440\u0438\u0431\u043e\u0440\u043d\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438:","DashboardBannerHint":"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0438\u0434\u0436\u0435\u0442 \u0434\u0435\u043c\u043e-\u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0430 \u043f\u0440\u0438\u0431\u043e\u0440\u043d\u043e\u0439 \u043f\u0430\u043d\u0435\u043b\u0438","ChartDensity":"\u041f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432:","ChartDensityHint":"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u0442\u043e\u0447\u0435\u043a \u0434\u0430\u043d\u043d\u044b\u0445, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0445 \u043d\u0430 \u0433\u0440\u0430\u0444\u0438\u043a\u0430\u0445","High":"\u0412\u044b\u0441\u043e\u043a\u0430\u044f","Medium":"\u0421\u0440\u0435\u0434\u043d\u044f\u044f","Low":"\u041d\u0438\u0437\u043a\u0430\u044f","VeryLow":"\u041e\u0447\u0435\u043d\u044c \u043d\u0438\u0437\u043a\u0430\u044f","AdaptiveSampling":"\u0410\u0434\u0430\u043f\u0442\u0438\u0432\u043d\u0430\u044f \u0432\u044b\u0431\u043e\u0440\u043a\u0430:","AdaptiveSamplingHint":"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u0432 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043e\u0431\u044a\u0435\u043c\u0430 \u0434\u0430\u043d\u043d\u044b\u0445","ResetDefault":"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c","SetDefault":"\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e"},"users":{"management":{"ResetPassword":"\u0421\u0431\u0440\u043e\u0441 \u043f\u0430\u0440\u043e\u043b\u044f","Search":"\u041f\u043e\u0438\u0441\u043a \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f...","NewUser":"\u041d\u043e\u0432\u044b\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c","Edit":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c","Delete":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","EditUser":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \\"{{name}}\\"","Title":"\u0417\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a","UserName":"\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","FullName":"\u041f\u043e\u043b\u043d\u043e\u0435 \u0438\u043c\u044f","Email":"\u041f\u043e\u0447\u0442\u0430","Roles":"\u0420\u043e\u043b\u0438","PhoneNumber":"\u0422\u0435\u043b\u0435\u0444\u043e\u043d\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440"},"editor":{"JobTitle":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0442\u044b:","UserName":"\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:","UserNameRequired":"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0438\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f (\u043c\u0438\u043d\u0438\u043c\u0443\u043c 2 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 200 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)","Password":"\u041f\u0430\u0440\u043e\u043b\u044c:","PasswordHint":"\u
10412\u0430\u0448 \u043f\u0430\u0440\u043e\u043b\u044c \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u043c\u0435\u043d\u0435 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f","CurrentPasswordRequired":"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u043f\u0430\u0440\u043e\u043b\u044c","Email":"\u041f\u043e\u0447\u0442\u0430:","EmailRequired":"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0430\u0434\u0440\u0435\u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b (\u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 200 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)","InvalidEmail":"\u0423\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441 \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u043e\u0439 \u043f\u043e\u0447\u0442\u044b \u043d\u0435\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u0435\u043d","ChangePassword":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c","CurrentPassword":"\u0422\u0435\u043a\u0443\u0449\u0438\u0439 \u043f\u0430\u0440\u043e\u043b\u044c:","NewPassword":"\u041d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c:","NewPasswordRequired":"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c (\u043c\u0438\u043d\u0438\u043c\u0443\u043c 6 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)","ConfirmPassword":"\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c:","ConfirmationPasswordRequired":"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u043e\u043b\u044f","PasswordMismatch":"\u041d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u043e\u043b\u044c \u0438 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044f \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442","Roles":"\u0420\u043e\u043b\u0438:","FullName":" \u041f\u043e\u043b\u043d\u043e\u0435 \u0438\u043c\u044f:","RoleRequired":" \u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u043e\u043b\u044c","PhoneNumber":"\u0422\u0435\u043b\u0435\u0444\u043e\u043d #:","Enabled":"\u0412\u043a\u043b\u044e\u0447\u0435\u043d\u043e","Unblock":"\u0420\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c","Close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c","Edit":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c","Cancel":"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c","Save":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","Saving":"\u0421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435...","Google":"\u0412\u043e\u0439\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 Google"}},"roles":{"management":{"Search":"\u041f\u043e\u0438\u0441\u043a \u0440\u043e\u043b\u0438...","NewRole":"\u041d\u043e\u0432\u0430\u044f \u0440\u043e\u043b\u044c","Edit":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c","Details":"\u0414\u0435\u0442\u0430\u043b\u0438","Delete":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","RoleDetails":"\u0421\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e \u0440\u043e\u043b\u0438 \\"{{name}}\\"","EditRole":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u043e\u043b\u044c \\"{{name}}\\"","Name":"\u0418\u043c\u044f","Description":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435","Users":"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438"},"editor":{"Name":"\u0418\u043c\u044f:","Description":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435:","RoleNameRequired":"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0438\u043c\u044f \u0440\u043e\u043b\u0438 (\u043c\u0438\u043d\u0438\u043c\u0443\u043c 2 \u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c 200 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432)","SelectAll":"\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435","SelectNone":"\u0412\u044b\u0431\u0435\u0440\u0430\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e","Close":"\u0417\u0430\u043a\u0440\u044b\u0442\u044c","Cancel":"\u041e\u0442\u043c\u0435\u043d\u0430","Save":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","Saving":"\u
10421\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435..."}},"messages":{"DeleteAccount":"\u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u044d\u0442\u0443 \u0443\u0447\u0435\u0442\u043d\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c?","ConnectSignal":"\u0423 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438. \u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b?","ChangeTypeSignal":"\u0423 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0435\u0441\u0442\u044c \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438. \u0412\u044b \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u0447\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b?"},"notifications":{"Delete":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435","Pin":"\u041f\u0438\u043d-\u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435","Date":"\u0414\u0430\u0442\u0430","Notification":"\u0423\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435"},"todoDemo":{"management":{"Search":"\u041f\u043e\u0438\u0441\u043a \u0437\u0430\u0434\u0430\u0447\u0438...","HideCompleted":"\u0421\u043a\u0440\u044b\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u043e\u0435","AddTask":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443","Delete":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443","Important":"\u041e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043a\u0430\u043a \u0432\u0430\u0436\u043d\u043e\u0435","Task":"\u0417\u0430\u0434\u0430\u0447\u0430","Description":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435"},"editor":{"NewTask":"\u041d\u043e\u0432\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430","Name":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435","TaskNameRequired":"\u0418\u043c\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e","Description":"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435","Important":"\u041e\u0442\u043c\u0435\u0442\u0438\u0442\u044c \u043a\u0430\u043a \u0432\u0430\u0436\u043d\u043e\u0435","AddTask":"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u0434\u0430\u0447\u0443"}},"licenseManagement":{"subtitle":"\u0423\u043f\u0440\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u0438\u0440\u0443\u0439\u0442\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e","Title":"\u041b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439","UsernameLabel":"\u041b\u043e\u0433\u0438\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f:","OrSpecifyEmail":"\u0418\u043b\u0438 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 Email","EmailLabel":"Email:","OrSpecifyUsername":"\u0418\u043b\u0438 \u0443\u043a\u0430\u0436\u0438\u0442\u0435 Username","ProductLabel":"\u041f\u0440\u043e\u0434\u0443\u043a\u0442:","ProductVersionLabel":"\u0412\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 (\u0444\u043e\u0440\u043c\u0430\u0442: 1.0):","ExampleVersion":"\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: 1.0","MaxAccountsLabel":"\u041c\u0430\u043a\u0441. \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432:","CreateLicenseButton":"\u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e","BulkProductLabel":"\u041f\u0440\u043e\u0434\u0443\u043a\u0442 (\u0434\u043b\u044f \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f):","ExactProductName":"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 (\u0442\u043e\u0447\u043d\u043e)","NewVersionLabel":"\u041d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f:","ApplyToAllButton":"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u043e \u0432\u0441\u0435\u043c","KeyColumn":"\u041a\u043b\u044e\u0447","UserColumn":"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c","ProductColumn":"\u041f\u0440\u043e\u0434\u0443\u043a\u0442","VersionColumn":"\u0412\u0435\u0440\u0441\u0438\u044f","ExpirationColumn":"\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f","Unlimited":"\u0411\u0435\u0441\u0441\u0440\u043e\u0447\u043d\u043e","MaxAccountsColumn":"\u041c\u0430\u043a\u0441. \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432","UsedColumn":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e","ActionsColumn":"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f","EditTitle":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c","DeactivateTitle":"\u041f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u0442\u044c","EditLicenseModalTitle":"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e","ProductModalLabel":"\u041f\u0440\u043e\u0434\u0443\u043a\u0442:","VersionModalLabel":"\u0412\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430:","ExpirationModalLabel":"\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:","MaxAccountsModalLabel":"\u041c\u0430\u043a\u0441. \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432:","SaveButton":"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c","CancelButton":"\u041e\u0442\u043c\u0435\u043d\u0430"},"aboutPage":{"title":"\u041e \u043d\u0430\u0441","subtitle":"\u0421\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u043d\u0430\u043c\u0438 \u0447\u0435\u0440\u0435\u0437 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043a\u0430\u043d\u0430\u043b\u044b","email":{"title":"Email","address":"[email protected]","button":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438"},"telegram":{"title":"Telegram","username":"@musbreath","button":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438"},"telegramChannel":{"title":"Telegram Channel","username":"@forexvisible1","button":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438"},"youtube":{"title":"YouTube","channel":"\u041a\u0430\u043d\u0430\u043b ForexVisible","button":"\u041f\u0435\u0440\u0435\u0439\u0442\u0438"},"footer":{"title":"\u041e ForexVisible","description":"\u0412\u0430\u0448 \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u043f\u0430\u0440\u0442\u043d\u0435\u0440 \u0432 \u0444\u043e\u0440\u0435\u043a\u0441-\u0442\u043e\u0440\u0433\u043e\u0432\u043b\u0435 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0435, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430 \u0440\u044b\u043d\u043a\u0435 \u043a\u0440\u0438\u043f\u0442\u043e\u0432\u0430\u043b\u044e\u0442. \u041c\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u043e\u0432\u044b\u0435 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u044b \u0438 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043c\u043e\u0447\u044c \u0432\u0430\u043c \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0443\u0441\u043f\u0435\u0445\u0430 \u043d\u0430 \u0444\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u044b\u0445 \u0440\u044b\u043d\u043a\u0430\u0445."}},"parsing":{"title":"\u0421\u0438\u0433\u043d\u0430\u043b\u044b MQL5","subtitle":"\u041f\u0440\u043e\u0444\u0435\u0441\u0441\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u043e\u0440\u0433\u043e\u0432\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u0438 \u0430\u043d\u0430\u043b\u0438\u0437","backToSignals":"\u041d\u0430\u0437\u0430\u0434 \u043a \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c","filters":{"platformAndSignal":"\u0422\u0438\u043f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0438 \u0442\u0438\u043f \u0441\u0438\u0433\u043d\u0430\u043b\u0430","demo":"\u0414\u0435\u043c\u043e","real":"\u0420\u0435\u0430\u043b","product":"\u041f\u0440\u043e\u0434\u0443\u043a\u0442","signal":"\u0421\u0438\u0433\u043d\u0430\u043b","seller":"\u041f\u0440\u043e\u0434\u0430\u0432\u0435\u0446"},"source":"\u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a","stats":{"balance":"\u0411\u0430\u043b\u0430\u043d\u0441","equity":"\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430","profit":"\u041f\u0440\u0438\u0431\u044b\u043b\u044c","latestTrade":"\u041f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0441\u0434\u0435\u043b\u043a\u0430","profitFactor":"\u0424\u0430\u043a\u0442\u043e\u0440 \u043f\u0440\u0438\u0431\u044b\u043b\u0438"}}}')},"4I5i":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},"4MV3":function(e,t,n){!function(e){"use strict";var t={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},n={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};e.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ab9\u0ac7\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%
1d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(e){return e.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0ab0\u0abe\u0aa4"===t?e<4?e:e+12:"\u0ab8\u0ab5\u0abe\u0ab0"===t?e:"\u0aac\u0aaa\u0acb\u0ab0"===t?e>=10?e:e+12:"\u0ab8\u0abe\u0a82\u0a9c"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0ab0\u0abe\u0aa4":e<10?"\u0ab8\u0ab5\u0abe\u0ab0":e<17?"\u0aac\u0aaa\u0acb\u0ab0":e<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(n("wd/R"))},"4dOw":function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},"5+tZ":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),a=n("zx2A");function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(a){return a.pipe(o(function(n,a){return Object(r.a)(e(n,a)).pipe(Object(i.a)(function(e,i){return t(n,e,a,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new s(e,n))})}var s=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project,this.concurrent))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.concurrent=a,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=new a.a(this),n=this.destination;n.add(t);var i=Object(a.c)(e,t);i!==t&&n.add(i)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(a.b)},"6+QB":function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wd/R"))},"6B0Y":function(e,t,n){!function(e){"use strict";var t={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},n={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};e.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u
117a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(e){return"\u179b\u17d2\u1784\u17b6\u1785"===e},meridiem:function(e,t,n){return e<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(e){return e.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n("wd/R"))},"7BjC":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[e+" minuti",e+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[e+" tunni",e+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[e+" kuu",e+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d p\xe4eva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"7C5Q":function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n("wd/R"))},"7aBd":function(e){e.exports=JSON.parse('{"app":{"Welcome":"Bienvenue","Notifications":"Notifications","New":"Nouveau"},"mainMenu":{"Appointments":"Rendez-vous","Customers":"Les clients","Products":"Les produits","Orders":"Les ordres","About":"\xc0 Propos","Logout":"Se D\xe9connecter"},"pageHeader":{"Dashboard":"Tableau de bord","Customers":"Les clients","Products":"Les produits","Orders":"Les ordres","NotFound":"Pas trouv\xe9","About":"\xc0 Propos","Settings":"Param\xe8tres"},"home":{"NoWidgets1":"Vous n\'avez pas de widgets affich\xe9s. Aller \xe0","NoWidgets2":"Configurer les widgets disponibles","StatisticsTitle":"Quelques trucs importants"},"notFound":{"404":"404","pageNotFound":"La page que vous recherchez n\'existe pas","backToHome":"De retour \xe0 la page d\'accueil"},"settings":{"tab":{"Profile":"Profil","Preferences":"Pr\xe9f\xe9rences","Users":"Utilisateurs","Roles":"R\xf4les"},"header":{"UserProfile":"Profil de l\'utilisateur","UserPreferences":"Pr\xe9f\xe9rences de l\'utilisateur","UserDepartments":"D\xe9partements d\'utilisateurs","UsersManagements":"Gestion des utilisateurs","RolesManagement":"Gestion des r\xf4les"}},"preferences":{"ReloadPreferences":"Recharger les pr\xe9f\xe9rences:","ReloadPreferencesHint":"Charger les pr\xe9f\xe9rences par d\xe9faut (les modifications locales sont rejet\xe9es)","Language":"La langue:","Default":"D\xe9faut","English":"Anglais","French":"Fran\xe7ais","German":"Allemand","Portuguese":"Portugais","Arabic":"Arabe","Korean":"Cor\xe9en","LanguageHint":"S\xe9lectionnez la langue pr\xe9f\xe9r\xe9e pour votre compte","HomePage":"Page d\'accueil:","Dashboard":"Tableau de bord","Customers":"Les clients","Products":"Les produits","Orders":"Les ordres","About":"\xc0 propos","Settings":"Param\xe8tres","HomePageHint":"S\xe9lectionnez la page par d\xe9faut pour naviguer jusqu\'\xe0 la connexion","Theme":"Th\xe8me:","DefaultTheme":"D\xe9faut","CosmoTheme":"Cosmo","SolarTheme":"Solaire","CeruleanTheme":"Azur\xe9","FlatlyTheme":"Cat\xe9goriquement","SketchyTheme":"Vague","SlateTheme":"Ardoise","SpacelabTheme":"Laboratoirespatial","SuperheroTheme":"Super-h\xe9ros","UnitedTheme":"Uni","JournalTheme":"Journal","LumenTheme":"Lumen","MintyTheme":"Minty","PulseTheme":"Impulsion","ThemeHint":"S\xe9lectionnez le th\xe8me de couleur par d\xe9faut pour votre compte","DashboardStatistics":"Statistiques du tableau de bord:","DashboardStatisticsHint":"Afficher le widget de graphique de d\xe9monstration sur le tableau de bord","DashboardNotifications":"Notifications du tableau de bord:","DashboardNotifications
1Hint":"Afficher les notifications d\'application sur le tableau de bord","DashboardTodo":"Tableau de bord \xe0 faire:","DashboardTodoHint":"Afficher le widget de d\xe9mon tout sur le tableau de bord","DashboardBanner":"Banni\xe8re de Tableau de Bord:","DashboardBannerHint":"Afficher le widget de banni\xe8re d\'information de d\xe9monstration sur le tableau de bord","ResetDefault":"R\xe9initialiser par d\xe9faut","SetDefault":"D\xe9finir par d\xe9faut"},"users":{"management":{"Search":"Rechercher un utilisateur...","NewUser":"Nouvel utilisateur","Edit":"Modif.","Delete":"Supp.","EditUser":"Modifier Utilisateur \\"{{name}}\\"","Title":"Titre","UserName":"Nom d\'utilisateur","FullName":"Nom Complet","Email":"Adresse \xe9lectronique","Roles":"Les r\xf4les","PhoneNumber":"Num\xe9ro de t\xe9l\xe9phone"},"editor":{"JobTitle":"Profession: ","UserName":"Nom d\'utilisateur:","UserNameRequired":"Le nom d\'utilisateur est requis (minimum de 2 et maximum de 200 caract\xe8res)","Password":"Mot de passe:","PasswordHint":"Votre mot de passe est n\xe9cessaire lors de la modification du nom d\'utilisateur","CurrentPasswordRequired":"Le mot de passe actuel est requis","Email":"Adresse \xe9lectronique:","EmailRequired":"L\'adresse de courrier \xe9lectronique est requise (maximum de 200 caract\xe8res)","InvalidEmail":"Le courrier \xe9lectronique sp\xe9cifi\xe9 n\'est pas valide","ChangePassword":"Changer le mot de passe","CurrentPassword":"Mot de passe actuel:","NewPassword":"Nouveau mot de passe:","NewPasswordRequired":"Un nouveau mot de passe est n\xe9cessaire (minimum de 6 caract\xe8res)","ConfirmPassword":"Confirmez le mot de passe:","ConfirmationPasswordRequired":"Le mot de passe de confirmation est requis","PasswordMismatch":"Le nouveau mot de passe et le mot de passe de confirmation ne correspondent pas","Roles":"Les r\xf4les:","FullName":" Nom complet:","RoleRequired":"R\xf4le requis ","PhoneNumber":"T\xe9l\xe9phone #:","Enabled":"Activ\xe9e","Unblock":"D\xe9bloquer","Close":"Fermer","Edit":"Modifier","Cancel":"Annuler","Save":"Enregistrer","Saving":"En cours d\'enregistrement..."}},"roles":{"management":{"Search":"Recherche r\xf4le...","NewRole":"Nouveau r\xf4le","Edit":"Modifier","Details":"D\xe9tails","Delete":"Effacer","RoleDetails":"D\xe9tails des r\xf4les \\"{{name}}\\"","EditRole":"Modifier R\xf4le \\"{{name}}\\"","Name":"Nom","Description":"La description","Users":"Utilisateurs"},"editor":{"Name":"Nom:","Description":"La description:","RoleNameRequired":"Le nom du r\xf4le est requis (minimum de 2 et maximum de 200 caract\xe8res)","SelectAll":"Tout s\xe9lectionner","SelectNone":"Ne rien s\xe9lectionner","Close":"Fermer","Cancel":"Annuler","Save":"Enregistrer","Saving":"En cours d\'enregistrement..."}},"notifications":{"Delete":"Supprimer notification","Pin":"\xc9pingler notification","Date":"Date","Notification":"Notification"},"todoDemo":{"management":{"Search":"Rechercher une t\xe2che...","HideCompleted":"Masquer compl\xe9t\xe9","AddTask":"Ajouter une t\xe2che","Delete":"Supprimer la t\xe2che","Important":"Marquer comme important","Task":"T\xe2che","Description":"Description"},"editor":{"NewTask":"Nouvelle t\xe2che","Name":"Nom","TaskNameRequired":"Le nom de la t\xe2che est requis","Description":"Description","Important":"Marquer comme important","AddTask":"Ajouter une t\xe2che"}}}')},"7aV9":function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(e){return e+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(e){return"\u0db4.\u0dc0."===e||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===e},meridiem:function(e,t,n){return e>11?n?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":n?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(n("wd/R"))},"7o/Q":function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("n6bG"),r=n("gRHU"),a=n("quSY"),o=n("2QA8"),s=n("2fFW"),l=n("NJ4a"),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,a){var o;switch(_classCallCheck(this,n),(o=t.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=r.a;break;case 1:if(!e){o.destination=r.a;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(_assertThisInitialized(o))):(o.syncErrorThrowable=!0,o.destination=new u(_assertThisInitialized(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new u(_assertThisInitialized(o),e,i,a)}return o}return _createClass(n,[{key:o.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,i){var r=new n(e,t,i);return r.syncErrorThrowable=!1,r}}]),n}(a.a),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,a,o,s){var l,c;_classCallCheck(this,n),(l=t.call(this))._parentSubscriber=e;var u=_assertThisInitialized(l);return Object(i.a)(a)?c=a:a&&(c=a.next,o=a.error,s=a.complete,a!==r.a&&(u=Object.create(a),Object(i.a)(u.unsubscribe)&&l.add(u.unsubscribe.bind(u)),u.unsubscribe=l.unsubscribe.bind(_assertThisInitialized(l)))),l._context=u,l._next=c,l._error=o,l._complete=s,l}return _createClass(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;s.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=s.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};s.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),s.a.useDeprecatedSynchronousErrorHandling)throw n;Object(l.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!s.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(i){return s.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(Object(l.a)(i),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(c)},"8/+R":function(e,t,n){!function(e){"use strict";var t={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},n={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};e.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0
1a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(e){return e.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0a30\u0a3e\u0a24"===t?e<4?e:e+12:"\u0a38\u0a35\u0a47\u0a30"===t?e:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===t?e>=10?e:e+12:"\u0a38\u0a3c\u0a3e\u0a2e"===t?e+12:void 0}
1,meridiem:function(e,t,n){return e<4?"\u0a30\u0a3e\u0a24":e<10?"\u0a38\u0a35\u0a47\u0a30":e<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":e<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(n("wd/R"))},"8mBD":function(e,t,n){!function(e){"use strict";e.defineLocale("pt",{months:"janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},"9ppp":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},"9rRi":function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},"9wZE":function(e,t,n){var i;!function(n){"use strict";var r,a=n.document;r=function(){var e,t,i,r,o,s,l,c,u,d,h,f,p={},m={},g=!1,v=[];return m={buttons:{holder:'<nav class="alertify-buttons">{{buttons}}</nav>',submit:'<button type="submit" class="alertify-button alertify-button-ok" id="alertify-ok">{{ok}}</button>',ok:'<button class="alertify-button alertify-button-ok" id="alertify-ok">{{ok}}</button>',cancel:'<button class="alertify-button alertify-button-cancel" id="alertify-cancel">{{cancel}}</button>'},input:'<div class="alertify-text-wrapper"><input type="text" class="alertify-text" id="alertify-text"></div>',message:'<p class="alertify-message">{{message}}</p>',log:'<article class="alertify-log{{class}}">{{message}}</article>'},f=function(){var e,t,n=!1,i=a.createElement("fakeelement"),r={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend",transition:"transitionend"};for(e in r)if(void 0!==i.style[e]){t=r[e],n=!0;break}return{type:t,supported:n}},e=function(e){return a.getElementById(e)},{alert:function(e,t,n){return p.dialog(e,"alert",t,"",n),this},confirm:function(e,t,n){return p.dialog(e,"confirm",t,"",n),this},extend:(p={labels:{ok:"OK",cancel:"Cancel"},delay:5e3,buttonReverse:!1,buttonFocus:"ok",transition:void 0,addListeners:function(e){var n,s,l,c,u,d=void 0!==i,f=void 0!==t,p=void 0!==h,m="",g=this;n=function(t){return void 0!==t.preventDefault&&t.preventDefault(),l(t),void 0!==h&&(m=h.value),"function"==typeof e&&(void 0!==h?e(!0,m):e(!0)),!1},s=function(t){return void 0!==t.preventDefault&&t.preventDefault(),l(t),"function"==typeof e&&e(!1),!1},l=function(e){g.hide(),g.unbind(a.body,"keyup",c),g.unbind(r,"focus",u),d&&g.unbind(i,"click",n),f&&g.unbind(t,"click",s)},c=function(e){var t=e.keyCode;(32===t&&!p||p&&13===t)&&n(e),27===t&&f&&s(e)},this.bind(r,"focus",u=function(e){p?h.focus():!f||g.buttonReverse?i.focus():t.focus()}),this.bind(o,"focus",u),d&&this.bind(i,"click",n),f&&this.bind(t,"click",s),this.bind(a.body,"keyup",c),this.transition.supported||this.setFocus()},bind:function(e,t,n){"function"==typeof e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,n)},handleErrors:function(){if(void 0!==n.onerror){var e=this;return n.onerror=function(t,n,i){e.error("["+t+" on line "+i+" of "+n+"]",0)},!0}return!1},appendButtons:function(e,t){return this.buttonReverse?t+e:e+t},build:function(e){var t="",n=e.type,i=e.cssClass||"";switch(t+='<div class="alertify-dialog">',t+='<a id="alertify-resetFocusBack" class="alertify-resetFocus" href="#">Reset Focus</a>',"none"===p.buttonFocus&&(t+='<a href="#" id="alertify-noneFocus" class="alertify-hidden"></a>'),"prompt"===n&&(t+='<div id="alertify-form">'),t+='<article class="alertify-inner">',t+=m.message.replace("{{message}}",e.message),"prompt"===n&&(t+=m.input),t+=m.buttons.holder,t+="</article>","prompt"===n&&(t+="</div>"),t+='<a id="alertify-resetFocus" class="alertify-resetFocus" href="#">Reset Focus</a>',t+="</div>",n){case"confirm":t=(t=t.replace("{{buttons}}",this.appendButtons(m.buttons.cancel,m.buttons.ok))).replace("{{ok}}",this.labels.ok).replace("{{cancel}}",this.labels.cancel);break;case"prompt":t=(t=t.replace("{{buttons}}",this.appendButtons(m.buttons.cancel,m.buttons.submit))).replace("{{ok}}",this.labels.ok).replace("{{cancel}}",this.labels.cancel);break;case"alert":t=(t=t.replace("{{buttons}}",m.buttons.ok)).replace("{{ok}}",this.labels.ok)}return u.className="alertify alertify-"+n+" "+i,c.className="alertify-cover",t},close:function(e,t){var n,i,r=t&&!isNaN(t)?+t:this.delay,a=this;this.bind(e,"click",function(){n(e)}),i=function(e){e.stopPropagation(),a.unbind(this,a.transition.type,i),d.removeChild(this),d.hasChildNodes()||(d.className+=" alertify-logs-hidden")},n=function(e){void 0!==e&&e.parentNode===d&&(a.transition.supported?(a.bind(e,a.transition.type,i),e.className+=" alertify-log-hide"):(d.removeChild(e),d.hasChildNodes()||(d.className+=" alertify-logs-hidden")))},0!==t&&setTimeout(function(){n(e)},r)},dialog:function(e,t,n,i,r){l=a.activeElement;if("string"!=typeof e)throw new Error("message must be a string");if("string"!=typeof t)throw new Error("type must be a string");if(void 0!==n&&"function"!=typeof n)throw new Error("fn must be a function");return this.init(),function e(){d&&null!==d.scrollTop&&c&&null!==c.scrollTop||e()}(),v.push({type:t,message:e,callback:n,placeholder:i,cssClass:r}),g||this.setup(),this},extend:function(e){if("string"!=typeof e)throw new Error("extend method must have exactly one paramter");return function(t,n){return this.log(t,e,n),this}},hide:function(){var e,t=this;v.splice(0,1),v.length>0?this.setup(!0):(g=!1,e=function(n){n.stopPropagation(),t.unbind(u,t.transition.type,e)},this.transition.supported?(this.bind(u,this.transition.type,e),u.className="alertify alertify-hide alertify-hidden"):u.className="alertify alertify-hide alertify-hidden alertify-isHidden",c.className="alertify-cover alert
1ify-cover-hidden",l.focus())},init:function(){a.createElement("nav"),a.createElement("article"),a.createElement("section"),null==e("alertify-cover")&&((c=a.createElement("div")).setAttribute("id","alertify-cover"),c.className="alertify-cover alertify-cover-hidden",a.body.appendChild(c)),null==e("alertify")&&(g=!1,v=[],(u=a.createElement("section")).setAttribute("id","alertify"),u.className="alertify alertify-hidden",a.body.appendChild(u)),null==e("alertify-logs")&&((d=a.createElement("section")).setAttribute("id","alertify-logs"),d.className="alertify-logs alertify-logs-hidden",a.body.appendChild(d)),a.body.setAttribute("tabindex","0"),this.transition=f()},log:function(e,t,n){return this.init(),function e(){d&&null!==d.scrollTop||e()}(),d.className="alertify-logs",this.notify(e,t,n),this},notify:function(e,t,n){var i=a.createElement("article");i.className="alertify-log"+("string"==typeof t&&""!==t?" alertify-log-"+t:""),i.innerHTML=e,d.appendChild(i),setTimeout(function(){i.className=i.className+" alertify-log-show"},50),this.close(i,n)},set:function(e){var t;if("object"!=typeof e&&e instanceof Array)throw new Error("args must be an object");for(t in e)e.hasOwnProperty(t)&&(this[t]=e[t])},setFocus:function(){h?(h.focus(),h.select()):s.focus()},setup:function(n){var a,l=v[0],c=this;g=!0,a=function(e){e.stopPropagation(),c.setFocus(),c.unbind(u,c.transition.type,a)},this.transition.supported&&!n&&this.bind(u,this.transition.type,a),u.innerHTML=this.build(l),r=e("alertify-resetFocus"),o=e("alertify-resetFocusBack"),i=e("alertify-ok")||void 0,t=e("alertify-cancel")||void 0,s="cancel"===p.buttonFocus?t:"none"===p.buttonFocus?e("alertify-noneFocus"):i,h=e("alertify-text")||void 0,e("alertify-form"),"string"==typeof l.placeholder&&""!==l.placeholder&&(h.value=l.placeholder),n&&this.setFocus(),this.addListeners(l.callback)},unbind:function(e,t,n){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent&&e.detachEvent("on"+t,n)}}).extend,init:p.init,log:function(e,t,n){return p.log(e,t,n),this},prompt:function(e,t,n,i){return p.dialog(e,"prompt",t,n,i),this},success:function(e,t){return p.log(e,"success",t),this},error:function(e,t){return p.log(e,"error",t),this},set:function(e){p.set(e)},labels:p.labels,debug:p.handleErrors}},void 0===(i=(function(){return new r}).apply(t,[]))||(e.exports=i)}(window)},"A+xa":function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(e){return e+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(e)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(e)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(n("wd/R"))},AQ68:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n("wd/R"))},AvvY:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%
1d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===t&&e>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===t||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":e<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":e<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":e<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(n("wd/R"))},B55N:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"\u4ee4\u548c",narrow:"\u32ff",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"\u5e73\u6210",narrow:"\u337b",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"\u662d\u548c",narrow:"\u337c",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"\u5927\u6b63",narrow:"\u337d",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"\u660e\u6cbb",narrow:"\u337e",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"\u897f\u66a6",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"\u7d00\u5143\u524d",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(\u5143|\d+)\u5e74/,eraYearOrdinalParse:function(e,t){return"\u5143"===t[1]?1:parseInt(t[1]||e,10)},months:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(e){return"\u5348\u5f8c"===e},meridiem:function(e,t,n){return e<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(e){return e.week()!==this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(e){return this.week()!==e.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(e,t){switch(t){case"y":return 1===e?"\u5143\u5e74":e+"\u5e74";case"d":case"D":case"DDD":return e+"\u65e5";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(n("wd/R"))},BVg3:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var a=e+" ";switch(i){case"s":return n||r?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return t(e)?a+(n||r?"sek\xfandur":"sek\xfandum"):a+"sek\xfanda";case"m":return n?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return t(e)?a+(n||r?"m\xedn\xfatur":"m\xedn\xfatum"):n?a+"m\xedn\xfata":a+"m\xedn\xfatu";case"hh":return t(e)?a+(n||r?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(r?"daga":"d\xf6gum"):n?a+"dagur":a+(r?"dag":"degi");case"M":return n?"m\xe1nu\xf0ur":r?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return t(e)?n?a+"m\xe1nu\xf0ir":a+(r?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):n?a+"m\xe1nu\xf0ur":a+(r?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return n||r?"\xe1r":"\xe1ri";case"yy":return t(e)?a+(n||r?"\xe1r":"\xe1rum"):a+(n||r?"\xe1r":"\xe1ri")}}e.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},ByF4:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},Cfvw:function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n("HDdC"),r=n("SeVD"),a=n("quSY"),o=n("kJWO"),s=n("jZKg"),l=n("Lhse"),c=n("c2HN"),u=n("I55L");function d(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new i.a(function(n){var i=new a.a;return i.add(t.schedule(function(){var r=e[o.a]();i.add(r.subscribe({next:function(e){i.add(t.schedule(function(){return n.next(e)}))},error:function(e){i.add(t.schedule(function(){return n.error(e)}))},complete:function(){i.add(t.schedule(function(){return n.complete()}
1))}}))})),i})}(e,t);if(Object(c.a)(e))return function(e,t){return new i.a(function(n){var i=new a.a;return i.add(t.schedule(function(){return e.then(function(e){i.add(t.schedule(function(){n.next(e),i.add(t.schedule(function(){return n.complete()}))}))},function(e){i.add(t.schedule(function(){return n.error(e)}))})})),i})}(e,t);if(Object(u.a)(e))return Object(s.a)(e,t);if(function(e){return e&&"function"==typeof e[l.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new i.a(function(n){var i,r=new a.a;return r.add(function(){i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(function(){i=e[l.a](),r.add(t.schedule(function(){if(!n.closed){var e,t;try{var r=i.next();e=r.value,t=r.done}catch(a){return void n.error(a)}t?n.complete():(n.next(e),this.schedule())}}))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof i.a?e:new i.a(Object(r.a)(e))}},CjzT:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},CoRJ:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n("wd/R"))},"D/JM":function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},D0XW:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("3N8a"),r=new(n("IjjT").a)(i.a)},DH7j:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},"DKr+":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0}
vendor: 6,079 bytes, line 1
1,meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n("wd/R"))},Dkky:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},Dmvi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n("wd/R"))},DoHr:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};e.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_\xc7ar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"\xf6\xf6":"\xd6\xd6":n?"\xf6s":"\xd6S"},meridiemParse:/\xf6\xf6|\xd6\xd6|\xf6s|\xd6S/,isPM:function(e){return"\xf6s"===e||"\xd6S"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'\u0131nc\u0131";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},DxQv:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},Dzi0:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%
1d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},"E+lV":function(e,t,n){!function(e){"use strict";var t={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0438\u043d\u0443\u0442\u0430"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0430","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],d:["\u0458\u0435\u0434\u0430\u043d \u0434\u0430\u043d","\u0458\u0435\u0434\u043d\u043e\u0433 \u0434\u0430\u043d\u0430"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],M:["\u0458\u0435\u0434\u0430\u043d \u043c\u0435\u0441\u0435\u0446","\u0458\u0435\u0434\u043d\u043e\u0433 \u043c\u0435\u0441\u0435\u0446\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],y:["\u0458\u0435\u0434\u043d\u0443 \u0433\u043e\u0434\u0438\u043d\u0443","\u0458\u0435\u0434\u043d\u0435 \u0433\u043e\u0434\u0438\u043d\u0435"],yy:["\u0433\u043e\u0434\u0438\u043d\u0443","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var a,o=t.words[i];return 1===i.length?"y"===i&&n?"\u0458\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430":r||n?o[0]:o[1]:(a=t.correctGrammaticalCase(e,o),"yy"===i&&n&&"\u0433\u043e\u0434\u0438\u043d\u0443"===a?e+" \u0433\u043e\u0434\u0438\u043d\u0430":e+" "+a)}};e.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},EOgW:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(e){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===e},meridiem:function(e,t,n){return e<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",w:"1 \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",ww:"%d \u0e2a\u0e31\u0e1b\u0e14\u0e32\u0e2b\u0e4c",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(n("wd/R"))},EQ5u:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return c});var i,r=n("XNiG"),a=n("HDdC"),o=(n("7o/Q"),n("quSY")),s=n("x+ZX"),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).source=e,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return _createClass(n,[{key:"_subscribe",value:function(e){return this.get
1Subject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new o.a).add(this.source.subscribe(new u(this.getSubject(),this))),e.closed&&(this._connection=null,e=o.a.EMPTY)),e}},{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:(i=l.prototype)._subscribe},_isComplete:{value:i._isComplete,writable:!0},getSubject:{value:i.getSubject},connect:{value:i.connect},refCount:{value:i.refCount}},u=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(r.b)},EY2u:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a});var i=n("HDdC"),r=new i.a(function(e){return e.complete()});function a(e){return e?function(e){return new i.a(function(t){return e.schedule(function(){return t.complete()})})}(e):r}},FUe0:function(e,t,n){"use strict";var i;n.d(t,"a",function(){return l}),n.d(t,"b",function(){return s}),"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global&&global,function(e){e.Unimplemented="UNIMPLEMENTED",e.Unavailable="UNAVAILABLE"}(i||(i={}));var r,a=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).message=e,a.code=i,a.data=r,a}return n}(_wrapNativeSuper(Error)),o=(r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).Capacitor=function(e){var t,n,r,o,s,l=e.CapacitorCustomPlatform||null,c=e.Capacitor||{},u=c.Plugins=c.Plugins||{},d=e.CapacitorPlatforms,h=(null===(t=null==d?void 0:d.currentPlatform)||void 0===t?void 0:t.getPlatform)||function(){return null!==l?l.name:function(e){var t,n;return(null==e?void 0:e.androidBridge)?"android":(null===(n=null===(t=null==e?void 0:e.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===n?void 0:n.bridge)?"ios":"web"}(e)},f=(null===(n=null==d?void 0:d.currentPlatform)||void 0===n?void 0:n.isNativePlatform)||function(){return"web"!==h()},p=(null===(r=null==d?void 0:d.currentPlatform)||void 0===r?void 0:r.isPluginAvailable)||function(e){var t=g.get(e);return!!(null==t?void 0:t.platforms.has(h()))||!!m(e)},m=(null===(o=null==d?void 0:d.currentPlatform)||void 0===o?void 0:o.getPluginHeader)||function(e){var t;return null===(t=c.PluginHeaders)||void 0===t?void 0:t.find(function(t){return t.name===e})},g=new Map,v=(null===(s=null==d?void 0:d.currentPlatform)||void 0===s?void 0:s.registerPlugin)||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=g.get(e);if(n)return console.warn('Capacitor plugin "'.concat(e,'" already registered. Cannot register plugins twice.')),n.proxy;var r,o=h(),s=m(e),d=function(n){var u,d=function(){for(var d=arguments.length,h=new Array(d),f=0;f<d;f++)h[f]=arguments[f];var p=_asyncToGenerator(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(r||!(o in t)){e.next=11;break}if("function"!=typeof t[o]){e.next=7;break}return e.next=4,t[o]();case 4:e.t0=e.sent,e.next=8;break;case 7:e.t0=t[o];case 8:r=r=e.t0,e.next=21;break;case 11:if(e.t1=null!==l&&!r&&"web"in t,!e.t1){e.next=21;break}if("function"!=typeof t.web){e.next=19;break}return e.next=16,t.web();case 16:e.t2=e.sent,e.next=20;break;case 19:e.t2=t.web;case 20:r=r=e.t2;case 21:return e.abrupt("return",r);case 22:case"end":return e.stop()}},e)}))().then(function(t){var r=function(t,n){var r,l;
1if(!s){if(t)return null===(l=t[n])||void 0===l?void 0:l.bind(t);throw new a('"'.concat(e,'" plugin is not implemented on ').concat(o),i.Unimplemented)}var u=null==s?void 0:s.methods.find(function(e){return n===e.name});return u?"promise"===u.rtype?function(t){return c.nativePromise(e,n.toString(),t)}:function(t,i){return c.nativeCallback(e,n.toString(),t,i)}:t?null===(r=t[n])||void 0===r?void 0:r.bind(t):void 0}(t,n);if(r){var l=r.apply(void 0,h);return u=null==l?void 0:l.remove,l}throw new a('"'.concat(e,".").concat(n,'()" is not implemented on ').concat(o),i.Unimplemented)});return"addListener"===n&&(p.remove=_asyncToGenerator(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u());case 1:case"end":return e.stop()}},e)}))),p};return d.toString=function(){return"".concat(n.toString(),"() { [capacitor code] }")},Object.defineProperty(d,"name",{value:n,writable:!1,configurable:!1}),d},f=d("addListener"),p=d("removeListener"),v=function(e,t){var n=f({eventName:e},t),i=function(){var i=_asyncToGenerator(regeneratorRuntime.mark(function i(){var r;return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n;case 2:r=i.sent,p({eventName:e,callbackId:r},t);case 4:case"end":return i.stop()}},i)}));return function(){return i.apply(this,arguments)}}(),r=new Promise(function(e){return n.then(function(){return e({remove:i})})});return r.remove=_asyncToGenerator(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("Using addListener() without 'await' is deprecated."),e.next=3,i();case 3:case"end":return e.stop()}},e)})),r},y=new Proxy({},{get:function(e,t){switch(t){case"$$typeof":return;case"toJSON":return function(){return{}};case"addListener":return s?v:f;case"removeListener":return p;default:return d(t)}}});return u[e]=y,g.set(e,{name:e,proxy:y,platforms:new Set([].concat(_toConsumableArray(Object.keys(t)),_toConsumableArray(s?[o]:[])))}),y};return c.convertFileSrc||(c.convertFileSrc=function(e){return e}),c.getPlatform=h,c.handleError=function(t){return e.console.error(t)},c.isNativePlatform=f,c.isPluginAvailable=p,c.pluginMethodNoop=function(e,t,n){return Promise.reject("".concat(n,' does not have an implementation of "').concat(t,'".'))},c.registerPlugin=v,c.Exception=a,c.DEBUG=!!c.DEBUG,c.isLoggingEnabled=!!c.isLoggingEnabled,c.platform=c.getPlatform(),c.isNative=c.isNativePlatform(),c}(r),s=o.registerPlugin,l=function(){function e(t){_classCallCheck(this,e),this.listeners={},this.windowListeners={},t&&(console.warn('Capacitor WebPlugin "'.concat(t.name,'" config object was deprecated in v3 and will be removed in v4.')),this.config=t)}var t,n;return _createClass(e,[{key:"addListener",value:function(e,t){var n=this;this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t);var i=this.windowListeners[e];i&&!i.registered&&this.addWindowListener(i);var r,a=function(){var i=_asyncToGenerator(regeneratorRuntime.mark(function i(){return regeneratorRuntime.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",n.removeListener(e,t));case 1:case"end":return i.stop()}},i)}));return function(){return i.apply(this,arguments)}}(),o=Promise.resolve({remove:a});return Object.defineProperty(o,"remove",{value:(r=_asyncToGenerator(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("Using addListener() without 'await' is deprecated."),e.next=3,a();case 3:case"end":return e.stop()}},e)})),function(){return r.apply(this,arguments)})}),o}},{key:"removeAllListeners",value:(n=_asyncToGenerator(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(t in this.listeners={},this.windowListeners)this.removeWindowListener(this.windowListeners[t]);this.windowListeners={};case 3:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"notifyListeners",value:function(e,t){var n=this.listeners[e];
1n&&n.forEach(function(e){return e(t)})}},{key:"hasListeners",value:function(e){return!!this.listeners[e].length}},{key:"registerWindowListener",value:function(e,t){var n=this;this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:function(e){n.notifyListeners(t,e)}}}},{key:"unimplemented",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"not implemented";return new o.Exception(e,i.Unimplemented)}},{key:"unavailable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"not available";return new o.Exception(e,i.Unavailable)}},{key:"removeListener",value:(t=_asyncToGenerator(regeneratorRuntime.mark(function e(t,n){var i,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=this.listeners[t]){e.next=3;break}return e.abrupt("return");case 3:r=i.indexOf(n),this.listeners[t].splice(r,1),this.listeners[t].length||this.removeWindowListener(this.windowListeners[t]);case 5:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"addWindowListener",value:function(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}},{key:"removeWindowListener",value:function(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}]),e}(),c=function(e){return encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape)},u=function(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},d=function(e){_inherits(s,e);var t,n,i,r,a,o=_createSuper(s);function s(){return _classCallCheck(this,s),o.apply(this,arguments)}return _createClass(s,[{key:"getCookies",value:(a=_asyncToGenerator(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return t=document.cookie,n={},e.abrupt("return",(t.split(";").forEach(function(e){if(!(e.length<=0)){var t=_slicedToArray(e.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE"),2),i=t[0],r=t[1];i=u(i).trim(),r=u(r).trim(),n[i]=r}}),n));case 2:case"end":return e.stop()}},e)})),function(){return a.apply(this,arguments)})},{key:"setCookie",value:(r=_asyncToGenerator(regeneratorRuntime.mark(function e(t){var n,i,r,a,o;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,n=c(t.key),i=c(t.value),r="; expires=".concat((t.expires||"").replace("expires=","")),a=(t.path||"/").replace("path=",""),o=null!=t.url&&t.url.length>0?"domain=".concat(t.url):"",document.cookie="".concat(n,"=").concat(i||"").concat(r,"; path=").concat(a,"; ").concat(o,";"),e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 8:case"end":return e.stop()}},e,null,[[0,5]])})),function(e){return r.apply(this,arguments)})},{key:"deleteCookie",value:(i=_asyncToGenerator(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,document.cookie="".concat(t.key,"=; Max-Age=0"),e.next=7;break;case 4:return e.prev=4,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 7:case"end":return e.stop()}},e,null,[[0,4]])})),function(e){return i.apply(this,arguments)})},{key:"clearCookies",value:(n=_asyncToGenerator(regeneratorRuntime.mark(function e(){var t,n,i,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,t=document.cookie.split(";")||[],n=_createForOfIteratorHelper(t);try{for(n.s();!(i=n.n()).done;)r=i.value,document.cookie=r.replace(/^ +/,"").replace(/=.*/,"=;expires=".concat((new Date).toUTCString(),";path=/"))}catch(a){n.e(a)}finally{n.f()}e.next=9;break;case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 9:case"end":return e.stop()}},e,null,[[0,6]])})),function(){return n.apply(this,arguments)})},{key:"clearAllCookies",value:(t=_asyncToGenerator(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.clearCookies();case 3:e.next=8;break;case 5:return e.prev=5,e.t0=e.catch(0),e.abrupt("return",Promise.reject(e.t0));case 8:case"end":return e.stop()}},e,this,[[0,5]])})),function(){return t.apply(this,arguments)})}]),s}(l);s("CapacitorCookies",{web:function(){return new d}});var h=function(e){_inherits(l,e);var t,n,i,r,a,o,s=_createSuper(l);function l(){return _classCallCheck(this,l),s.apply(this,arguments)}return _createClass(l,[{key:"request",value:(o=_asyncToGenerator(regeneratorRuntime.mark(function e(t){var n,i,r,a,o,s,l,c,u,d,h;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({method:e.method||"GET",headers:e.headers},t),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e);return Object.keys(e).map(function(e){return e.toLocaleLowerCase()}).reduce(function(n,i,r){return n[i]=e[t[r]],n},{})}(e.headers)["content-type"]||"";if("string"==typeof e.data)n.body=e.data;else if(i.includes("application/x-www-form-urlencoded")){for(var r=new
1URLSearchParams,a=0,o=Object.entries(e.data||{});a<o.length;a++){var s=_slicedToArray(o[a],2),l=s[0],c=s[1];r.set(l,c)}n.body=r.toString()}else if(i.includes("multipart/form-data")){var u=new FormData;if(e.data instanceof FormData)e.data.forEach(function(e,t){u.append(t,e)});else for(var d=0,h=Object.keys(e.data);d<h.length;d++){var f=h[d];u.append(f,e.data[f])}n.body=u;var p=new Headers(n.headers);p.delete("content-type"),n.headers=p}else(i.includes("application/json")||"object"==typeof e.data)&&(n.body=JSON.stringify(e.data));return n}(t,t.webFetchExtra),i=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?Object.entries(e).reduce(function(e,n){var i,r,a=_slicedToArray(n,2),o=a[0],s=a[1];return Array.isArray(s)?(r="",s.forEach(function(e){i=t?encodeURIComponent(e):e,r+="".concat(o,"=").concat(i,"&")}),r.slice(0,-1)):(i=t?encodeURIComponent(s):s,r="".concat(o,"=").concat(i)),"".concat(e,"&").concat(r)},"").substr(1):null}(t.params,t.shouldEncodeUrlParams),r=i?"".concat(t.url,"?").concat(i):t.url,e.next=5,fetch(r,n);case 5:a=e.sent,o=a.headers.get("content-type")||"",c=a.ok?t:{},u=c.responseType,d=void 0===u?"text":u,e.t0=(o.includes("application/json")&&(d="json"),d),e.next="arraybuffer"===e.t0||"blob"===e.t0?11:"json"===e.t0?18:22;break;case 11:return e.next=13,a.blob();case 13:return l=e.sent,e.next=16,function(){var e=_asyncToGenerator(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e,n){var i=new FileReader;i.onload=function(){var t=i.result;e(t.indexOf(",")>=0?t.split(",")[1]:t)},i.onerror=function(e){return n(e)},i.readAsDataURL(t)}));case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}()(l);case 16:return s=e.sent,e.abrupt("break",25);case 18:return e.next=20,a.json();case 20:return s=e.sent,e.abrupt("break",25);case 22:return e.next=24,a.text();case 24:s=e.sent;case 25:return h={},e.abrupt("return",(a.headers.forEach(function(e,t){h[t]=e}),{data:s,headers:h,status:a.status,url:a.url}));case 27:case"end":return e.stop()}},e)})),function(e){return o.apply(this,arguments)})},{key:"get",value:(a=_asyncToGenerator(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.request(Object.assign(Object.assign({},t),{method:"GET"})));case 1:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"post",value:(r=_asyncToGenerator(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.request(Object.assign(Object.assign({},t),{method:"POST"})));case 1:case"end":return e.stop()}},e,this)})),function(e){return r.apply(this,arguments)})},{key:"put",value:(i=_asyncToGenerator(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.request(Object.assign(Object.assign({},t),{method:"PUT"})));case 1:case"end":return e.stop()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"patch",value:(n=_asyncToGenerator(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.request(Object.assign(Object.assign({},t),{method:"PATCH"})));case 1:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"delete",value:(t=_asyncToGenerator(regeneratorRuntime.mark(function e(t){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.request(Object.assign(Object.assign({},t),{method:"DELETE"})));case 1:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})}]),l}(l);s("CapacitorHttp",{web:function(){return new h}})},Fnuy:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"geni\xe8r_febri\xe8r_mar\xe7_abril_mai_junh_julhet_agost_setembre_oct\xf2bre_novembre_decembre".split("_"),format:"de geni\xe8r_de febri\xe8r_de mar\xe7_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'oct\xf2bre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dim\xe8cres_dij\xf2us_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[u\xe8i a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[i\xe8r a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%
1d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"\xe8";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n("wd/R"))},G0Uy:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},H8ED:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===n?t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":e+" "+(i=+e,r={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:t?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}e.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".
1split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:t,mm:t,h:t,hh:t,d:"\u0434\u0437\u0435\u043d\u044c",dd:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u044b":e<12?"\u0440\u0430\u043d\u0456\u0446\u044b":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-\u044b":e+"-\u0456";case"D":return e+"-\u0433\u0430";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},HDdC:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i,r=n("7o/Q"),a=n("2QA8"),o=n("gRHU"),s=n("kJWO"),l=n("mCNh"),c=n("2fFW"),u=((i=function(){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(e,t,n){var i=this.operator,s=function(e,t,n){if(e){if(e instanceof r.a)return e;if(e[a.a])return e[a.a]()}return e||t||n?new r.a(e,t,n):new r.a(o.a)}(e,t,n);if(s.add(i?i.call(s,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){c.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,i=t.destination,a=t.isStopped;if(n||a)return!1;e=i&&i instanceof r.a?i:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=d(t))(function(t,i){var r;r=n.subscribe(function(t){try{e(t)}catch(n){i(n),r&&r.unsubscribe()}},i,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:s.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:Object(l.b)(t)(this)}},{key:"toPromise",value:function(e){var t=this;return new(e=d(e))(function(e,n){var i;t.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})}}]),e}()).create=function(e){return new i(e)},i);function d(e){if(e||(e=c.a.Promise||Promise),!e)throw new Error("no Promise impl found");return e}},HP3h:function(e,t,n){!function(e){"use strict";var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},i={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]}
1,r=function(e){return function(t,r,a,o){var s=n(t),l=i[e][n(t)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,t)}},a=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},I55L:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},IBtZ:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u
110d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(\u10ec\u10d0\u10db|\u10ec\u10e3\u10d7|\u10e1\u10d0\u10d0\u10d7|\u10ec\u10d4\u10da|\u10d3\u10e6|\u10d7\u10d5)(\u10d8|\u10d4)/,function(e,t,n){return"\u10d8"===n?t+"\u10e8\u10d8":t+n+"\u10e8\u10d8"})},past:function(e){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(e)?e.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(e)?e.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):e},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(e){return 0===e?e:1===e?e+"-\u10da\u10d8":e<20||e<=100&&e%20==0||e%100==0?"\u10db\u10d4-"+e:e+"-\u10d4"},week:{dow:1,doy:7}})}(n("wd/R"))},IjjT:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=function(){var e=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.now;_classCallCheck(this,e),this.SchedulerAction=t,this.now=n}return _createClass(e,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,e).schedule(n,t)}}]),e}();return e.now=function(){return Date.now()},e}(),r=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;return _classCallCheck(this,n),(r=t.call(this,e,function(){return n.delegate&&n.delegate!==_assertThisInitialized(r)?n.delegate.now():a()})).actions=[],r.active=!1,r.scheduled=void 0,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(e,t,i):_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t,i)}},{key:"flush",value:function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}}]),n}(i)},"Ivi+":function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\uc77c";case"M":return e+"\uc6d4";case"w":case"W":return e+"\uc8fc";default:return e}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(e){return"\uc624\ud6c4"===e},meridiem:function(e,t,n){return e<12?"\uc624\uc804":"\uc624\ud6c4"}})}(n("wd/R"))},IzEk:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var i=n("7o/Q"),r=n("4I5i"),a=n("EY2u");function o(e){return function(t){return 0===e?Object(a.b)():t.lift(new s(e))}}var s=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new r.a}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.total))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))}}]),n}(i.a)},"JCF/":function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(e){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(e)},meridiem:function(e,t,n){return e<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},JIr8:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("zx2A");function r(e){return function(t){var n=new a(e),i=t.lift(n);return n.caught=i}}var a=function(){function e(t){_classCallCheck(this,e),this.selector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.selector,this.caught))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).selector=i,a.caught=r,a}return _createClass(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(o){return void _get(_getPrototypeOf(n.prototype),"error",this).call(this,o)}this._unsubscribeAndRecycle();var r=new i.a(this);this.add(r);var a=Object(i.c)(t,r);a!==r&&this.add(a)}}}]),n}(i.b)},JVSJ:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return"jedan sat";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:function(e,t,n,i){if("m"===n)return t?"jedna minuta":i?"jednu minutu":"jedne minute"},mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},"Ju5/":function(e,t,n){"use strict";var i=n("XqMk"),r="object"==typeof self&&self&&self.Object===Object&&self,a=i.a||r||Function("return this")();t.a=a},JvlW:function(e,t,n){!function(e){"use strict";var t={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_die
1n\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function a(e,t,a,o){var s=e+" ";return 1===e?s+n(0,t,a[0],o):t?s+(i(e)?r(a)[1]:r(a)[0]):o?s+r(a)[1]:s+(i(e)?r(a)[1]:r(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function(e,t,n,i){return t?"kelios sekund\u0117s":i?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n("wd/R"))},"K/tc":function(e,t,n){!function(e){"use strict";e.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(e){return/^nm$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"vm":"VM":n?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},KSF8:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n tr\u01b0\u1edbc l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",w:"m\u1ed9t tu\u1ea7n",ww:"%d tu\u1ea7n",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n("wd/R"))},KTz0:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},Kj3r:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("7o/Q"),r=n("D0XW");function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.a;return function(n){return n.lift(new o(e,t))}}var o=function(){function e(t,n){_classCallCheck(this,e),this.dueTime=t,this.scheduler
1=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.dueTime,this.scheduler))}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).dueTime=i,a.scheduler=r,a.debouncedSubscription=null,a.lastValue=null,a.hasValue=!1,a}return _createClass(n,[{key:"_next",value:function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(l,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}},{key:"clearDebounce",value:function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}]),n}(i.a);function l(e){e.debouncedNext()}},KqfI:function(e,t,n){"use strict";function i(){}n.d(t,"a",function(){return i})},L3Qv:function(e,t,n){"use strict";t.a=function(){return!1}},LRne:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("z+Ro"),r=n("yCtX"),a=n("jZKg");function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=t[t.length-1];return Object(i.a)(o)?(t.pop(),Object(a.a)(t,o)):Object(r.a)(t)}},LgUO:function LgUO(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return OAuthModule}),__webpack_require__.d(__webpack_exports__,"b",function(){return OAuthService});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("fXoL"),_angular_common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("ofXK"),_angular_common_http__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("tk/3"),tslib__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("mrSG"),rxjs__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("XNiG"),rxjs__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("LRne"),rxjs__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("Cfvw"),rxjs__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("Nv8m"),rxjs__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("z6cu"),rxjs__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("itXk"),rxjs__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("VRyK"),rxjs_operators__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("pLZG"),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("vkgz"),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("Kj3r"),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("3E0/"),rxjs_operators__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("eIep"),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("lJxs"),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("SxV6"),rxjs_operators__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("JIr8"),rxjs_operators__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("tS1D"),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__("IzEk"),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__("5+tZ"),LoginOptions=function e(){_classCallCheck(this,e),this.preventClearHashAfterLogin=!1},OAuthLogger=function e(){_classCallCheck(this,e)},OAuthStorage=function e(){_classCallCheck(this,e)},MemoryStorage=function(){var e=function(){function e(){_classCallCheck(this,e),this.data=new Map}return _createClass(e,[{key:"getItem",value:function(e){return this.data.get(e)}},{key:"removeItem",value:function(e){this.data.delete(e)}},{key:"setItem",value:function(e,t){this.data.set(e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb({token:e,factory:e.\u0275fac}),e}(),ReceivedTokens=function e(){_classCallCheck(this,e)};function b64DecodeUnicode(e){var t=e.replace(/\-/g,"+").replace(/\_/g,"/");return decodeURIComponent(atob(t).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function base64UrlEncode(e){return btoa(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var ValidationHandler=function e(){_classCallCheck(this,e)},AbstractValidationHandler=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateAtHash",value:function(e){return Object(tslib__WEBPACK_IMPORTED_MODULE_3__.a)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n,i,r,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.inferHashAlgorithm(e.idTokenHeader),t.next=3,this.calcHash(e.accessToken,n);case 3:return i=t.sent,r=base64UrlEncode(i.substr(0,i.length/2)),a=e.idTokenClaims.at_hash.replace(/=/g,""),t.abrupt("return",(r!==a&&(console.error("exptected at_hash: "+r),console.error("actual at_hash: "+a)),r===a));case 7:case"end":return t.stop()}},t,this)}))}},{key:"inferHashAlgorithm",value:function(e){var t=e.alg;if(!t.match(/^.S[0-9]{3}$/))throw new Error("Algorithm not supported: "+t);return"sha-"+t.substr(2)}}]),e}(),UrlHelperService=function(){var e=function(){function e(){_classCallCheck(this,e)}
1return _createClass(e,[{key:"getHashFragmentParams",value:function(e){var t=e||window.location.hash;if(0!==(t=decodeURIComponent(t)).indexOf("#"))return{};var n=t.indexOf("?");return t=t.substr(n>-1?n+1:1),this.parseQueryString(t)}},{key:"parseQueryString",value:function(e){var t,n,i,r,a,o,s,l={};if(null===e)return l;t=e.split("&");for(var c=0;c<t.length;c++)-1===(i=(n=t[c]).indexOf("="))?(r=n,a=null):(r=n.substr(0,i),a=n.substr(i+1)),o=decodeURIComponent(r),s=decodeURIComponent(a),"/"===o.substr(0,1)&&(o=o.substr(1)),l[o]=s;return l}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb({token:e,factory:e.\u0275fac}),e}(),OAuthEvent=function e(t){_classCallCheck(this,e),this.type=t},OAuthSuccessEvent=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,n),(i=t.call(this,e)).info=r,i}return n}(OAuthEvent),OAuthInfoEvent=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return _classCallCheck(this,n),(i=t.call(this,e)).info=r,i}return n}(OAuthEvent),OAuthErrorEvent=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return _classCallCheck(this,n),(r=t.call(this,e)).reason=i,r.params=a,r}return n}(OAuthEvent),AuthConfig=function e(t){_classCallCheck(this,e),this.clientId="",this.redirectUri="",this.postLogoutRedirectUri="",this.loginUrl="",this.scope="openid profile",this.resource="",this.rngUrl="",this.oidc=!0,this.requestAccessToken=!0,this.options=null,this.issuer="",this.logoutUrl="",this.clearHashAfterLogin=!0,this.tokenEndpoint=null,this.revocationEndpoint=null,this.customTokenParameters=[],this.userinfoEndpoint=null,this.responseType="",this.showDebugInformation=!1,this.silentRefreshRedirectUri="",this.silentRefreshMessagePrefix="",this.silentRefreshShowIFrame=!1,this.siletRefreshTimeout=2e4,this.silentRefreshTimeout=2e4,this.dummyClientSecret=null,this.requireHttps="remoteOnly",this.strictDiscoveryDocumentValidation=!0,this.jwks=null,this.customQueryParams=null,this.silentRefresh
1IFrameName="angular-oauth-oidc-silent-refresh-iframe",this.timeoutFactor=.75,this.sessionChecksEnabled=!1,this.sessionCheckIntervall=3e3,this.sessionCheckIFrameUrl=null,this.sessionCheckIFrameName="angular-oauth-oidc-check-session-iframe",this.disableAtHashCheck=!1,this.skipSubjectCheck=!1,this.useIdTokenHintForSilentRefresh=!1,this.skipIssuerCheck=!1,this.nonceStateSeparator=";",this.useHttpBasicAuth=!1,this.waitForTokenInMsec=0,this.disablePKCE=!1,this.openUri=function(e){location.href=e},t&&Object.assign(this,t)},WebHttpUrlEncodingCodec=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return encodeURIComponent(e)}},{key:"encodeValue",value:function(e){return encodeURIComponent(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}(),ERROR="input is invalid type",WINDOW="object"==typeof window,root=WINDOW?window:{};root.JS_SHA256_NO_WINDOW&&(WINDOW=!1);var WEB_WORKER=!WINDOW&&"object"==typeof self,NODE_JS=!root.JS_SHA256_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;NODE_JS?root=global:WEB_WORKER&&(root=self);var COMMON_JS=!root.JS_SHA256_NO_COMMON_JS&&"object"==typeof module&&module.exports,AMD="function"==typeof define&&__webpack_require__("PDX0"),ARRAY_BUFFER=!root.JS_SHA256_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],K=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[];!root.JS_SHA256_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!ARRAY_BUFFER||!root.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});var createOutputMethod=function(e,t){return function(n){return new Sha256(t,!0).update(n)[e]()}},\u02750=createOutputMethod,createMethod=function(e){var t=createOutputMethod("hex",e);NODE_JS&&(t=nodeWrap(t,e)),t.create=function(){return new Sha256(e)},t.update=function(e){return t.create().update(e)};for(var n=0;n<OUTPUT_TYPES.length;++n){var i=OUTPUT_TYPES[n];t[i]=createOutputMethod(i,e)}return t},\u02751=createMethod,nodeWrap=function nodeWrap(method,is224){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),algorithm=is224?"sha224":"sha256",nodeMethod=function(e){if("string"==typeof e)return crypto.createHash(algorithm).update(e,"utf8").digest("hex");if(null==e)throw new Error(ERROR);return e.constructor===ArrayBuffer&&(e=new Uint8Array(e)),Array.isArray(e)||ArrayBuffer.isView(e)||e.constructor===Buffer?crypto.createHash(algorithm).update(new Buffer(e)).digest("hex"):method(e)};return nodeMethod},\u02752=nodeWrap,createHmacOutputMethod=function(e,t){return function(n,i){return new HmacSha256(n,t,!0).update(i)[e]()}},\u02753=createHmacOutputMethod,createHmacMethod=function(e){var t=createHmacOutputMethod("hex",e);t.create=function(t){return new HmacSha256(t,e)},t.update=function(e,n){return t.create(e).update(n)};for(var n=0;n<OUTPUT_TYPES.length;++n){var i=OUTPUT_TYPES[n];t[i]=createHmacOutputMethod(i,e)}return t},\u02754=createHmacMethod;function Sha256(e,t){t?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=e}function HmacSha256(e,t,n){var i,r=typeof e;if("string"===r){var a,o=[],s=e.length,l=0;for(i=0;i<s;++i)(a=e.charCodeAt(i))<128?o[l++]=a:a<2048?(o[l++]=192|a>>
16,o[l++]=128|63&a):a<55296||a>=57344?(o[l++]=224|a>>12,o[l++]=128|a>>6&63,o[l++]=128|63&a):(a=65536+((1023&a)<<10|1023&e.charCodeAt(++i)),o[l++]=240|a>>18,o[l++]=128|a>>12&63,o[l++]=128|a>>6&63,o[l++]=128|63&a);e=o}else{if("object"!==r)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR)}e.length>64&&(e=new Sha256(t,!0).update(e).array());var c=[],u=[];for(i=0;i<64;++i){var d=e[i]||0;c[i]=92^d,u[i]=54^d}Sha256.call(this,t,n),this.update(u),this.oKeyPad=c,this.inner=!0,this.sharedMemory=n}Sha256.prototype.update=function(e){if(!this.finalized){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(ERROR);if(null===e)throw new Error(ERROR);if(ARRAY_BUFFER&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||ARRAY_BUFFER&&ArrayBuffer.isView(e)))throw new Error(ERROR);t=!0}for(var i,r,a=0,o=e.length,s=this.blocks;a<o;){if(this.hashed&&(this.hashed=!1,s[0]=this.block,s[16]=s[1]=s[2]=s[3]=s[4]=s[5]=s[6]=s[7]=s[8]=s[9]=s[10]=s[11]=s[12]=s[13]=s[14]=s[15]=0),t)for(r=this.start;a<o&&r<64;++a)s[r>>2]|=e[a]<<SHIFT[3&r++];else for(r=this.start;a<o&&r<64;++a)(i=e.charCodeAt(a))<128?s[r>>2]|=i<<SHIFT[3&r++]:i<2048?(s[r>>2]|=(192|i>>6)<<SHIFT[3&r++],s[r>>2]|=(128|63&i)<<SHIFT[3&r++]):i<55296||i>=57344?(s[r>>2]|=(224|i>>12)<<SHIFT[3&r++],s[r>>2]|=(128|i>>6&63)<<SHIFT[3&r++],s[r>>2]|=(128|63&i)<<SHIFT[3&r++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++a)),s[r>>2]|=(240|i>>18)<<SHIFT[3&r++],s[r>>2]|=(128|i>>12&63)<<SHIFT[3&r++],s[r>>2]|=(128|i>>6&63)<<SHIFT[3&r++],s[r>>2]|=(128|63&i)<<SHIFT[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.block=s[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this}},Sha256.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha256.prototype.hash=function(){var e,t,n,i,r,a,o=this.h0,s=this.h1,l=this.h2,c=this.h3,u=this.h4,d=this.h5,h=this.h6,f=this.h7,p=this.blocks;for(e=16;e<64;++e)p[e]=p[e-16]+(((t=p[e-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+p[e-7]+(((t=p[e-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)|0;for(a=s&l,e=0;e<64;e+=4)this.first?(this.is224?(n=300032,f=(t=p[0]-1413257819)-150054599|0,c=t+24177077|0):(n=704751109,f=(t=p[0]-210244248)-1521486534|0,c=t+143694565|0),this.first=!1):(f=c+(t=f+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&d^~u&h)+K[e]+p[e])|0,c=t+(((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((n=o&s)^o&l^a))|0),h=l+(t=h+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&u^~f&d)+K[e+1]+p[e+1])|0,l=t+(((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+((i=c&o)^c&s^n))|0,d=s+(t=d+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&f^~h&u)+K[e+2]+p[e+2])|0,s=t+(((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+((r=l&c)^l&o^i))|0,u=o+(t=u+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^~d&f)+K[e+3]+p[e+3])|0,o=t+(((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+((a=s&l)^s&c^r))|0;this.h0=this.h0+o|0,this.h1=this.h1+s|0,this.h2=this.h2+l|0,this.h3=this.h3+c|0,this.h4=this.h4+u|0,this.h5=this.h5+d|0,this.h6=this.h6+h|0,this.h7=this.h7+f|0},Sha256.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,a=this.h5,o=this.h6,s=this.h7,l=HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[i>>28&15]+HEX_CHARS[i>>24&15]+HEX_CHARS[i>>20&15]+HEX_CHARS[i>>16&15]+HEX_CHARS[i>>12&15]+HEX_CHARS[i>>8&15]+HEX_CHARS[i>>4&15]+HEX_CHARS[15&i]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[a>>28&15]+HEX_CHARS[a>>24&15]+HEX_CHARS[a>>20&15]+HEX_CHARS[a>>16&15]+HEX_CHARS[a>>12&15]+HEX_CHARS[a>>8&15]+HEX_CHARS[a>>4&15]+HEX_CHARS[15&a]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o];return this.is224||(l+=HEX_CHARS[s>>28&15]+HEX_CHARS[s>>24&15]+HEX_CHARS[s>>20&15]+HEX_CHARS[s>>16&15]+HEX_CHARS[s>>12&15]+HEX_CHARS[s>>8&15]+HEX_CHARS[s>>4&15]+HEX_CHARS[15&s]),l},Sha256.prototype.toString=Sha256.prototype.hex,Sha256.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,i=this.h3,r=this.h4,a=this.h5,o=this.h6,s=this.h7,l=[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,i>>24&255,i>>16&255,i>>8&255,255&i,r>>24&255,r>>16&255,r>>8&255,255&r,a>>24&255,a>>16&255,a>>8&255,255&a,o>>24&255,o>>16&255,o>>8&255,255&o];return this.is224||l.push(s>>24&255,s>>16&255,s>>8&255,255&s),l},Sha256.prototype.array=Sha256.prototype.digest,Sha256.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(this.is224?28:32),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),t.setUint32(20,this.h5),t.setUint32(24,this.h6),this.is224||t.setUint32(28,this.h7),e},HmacSha256.prototype=new Sha256,HmacSha256.prototype.finalize=function(){if(Sha256.prototype.finalize.call(this),this.inner){this.inner=!1;var e=this.array();Sha256.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(e),Sha256.prototype.finalize.call(this)}};var exports=createMethod();exports.sha256=exports,exports.sha224=createMethod(!0),exports.sha256.hmac=createHmacMethod(),exports.sha224.hmac=createHmacMethod(!0);var HashHandler=function e(){_classCallCheck(this,e)},DefaultHashHandler=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"calcHash",value:function(e,t){return Object(tslib__WEBPACK_IMPORTED_MODULE_3__.a)(this,void 0,void 0,regeneratorRuntime.mark(function t(){var n;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=exports.array(e),t.abrupt("return",this.toHashString2(n));case 2:case"end":return t.stop()}},t,this)}))}},{key:"toHashString2",value:function(e){var t,n="",i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n+=String.fromCharCode(r)}}catch(err){i.e(err)}finally{i.f()}return n}},{key:"toHashString",value:function(e){var t,n="",i=_createForOfIteratorHelper(new Uint8Array(e));try{for(i.s();!(t=i.n()).done;){var r=t.value;n+=String.fromCharCode(r)}}catch(err){i.e(err)}finally{i.f()}return n}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb({token:e,factory:e.\u0275fac}),e}(),OAuthService=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l,c,u){var d,h;_classCallCheck(this,n),(d=t.call(this)).ngZone=e,d.http=i,d.config=o,d.urlHelper=s,d.logger=l,d.crypto=c,d.discoveryDocumentLoaded=!1,d.state="",d.eventsSubject=ne
1w rxjs__WEBPACK_IMPORTED_MODULE_4__.a,d.discoveryDocumentLoadedSubject=new rxjs__WEBPACK_IMPORTED_MODULE_4__.a,d.grantTypesSupported=[],d.inImplicitFlow=!1,d.saveNoncesInLocalStorage=!1,d.debug("angular-oauth2-oidc v10"),d.document=u,o||(o={}),d.discoveryDocumentLoaded$=d.discoveryDocumentLoadedSubject.asObservable(),d.events=d.eventsSubject.asObservable(),a&&(d.tokenValidationHandler=a),o&&d.configure(o);try{r?d.setStorage(r):"undefined"!=typeof sessionStorage&&d.setStorage(sessionStorage)}catch(p){console.error("No OAuthStorage provided and cannot access default (sessionStorage).Consider providing a custom OAuthStorage implementation in your module.",p)}if("undefined"!=typeof window&&void 0!==window.localStorage){var f=null===(h=null===window||void 0===window?void 0:window.navigator)||void 0===h?void 0:h.userAgent;((null==f?void 0:f.includes("MSIE "))||(null==f?void 0:f.includes("Trident")))&&(d.saveNoncesInLocalStorage=!0)}return d.setupRefreshTimer(),d}return _createClass(n,[{key:"configure",value:function(e){Object.assign(this,new AuthConfig,e),this.config=Object.assign({},new AuthConfig,e),this.sessionChecksEnabled&&this.setupSessionCheck(),this.configChanged()}},{key:"configChanged",value:function(){this.setupRefreshTimer()}},{key:"restartSessionChecksIfStillLoggedIn",value:function(){this.hasValidIdToken()&&this.initSessionCheck()}},{key:"restartRefreshTimerIfStillLoggedIn",value:function(){this.setupExpirationTimers()}},{key:"setupSessionCheck",value:function(){var e=this;this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return"token_received"===e.type})).subscribe(function(t){e.initSessionCheck()})}},{key:"setupAutomaticSilentRefresh",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!0;this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(function(e){"token_received"===e.type?r=!0:"logout"===e.type&&(r=!1)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return"token_expires"===e.type}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.a)(1e3)).subscribe(function(a){null!=n&&"any"!==n&&a.info!==n||!r||e.refreshInternal(t,i).catch(function(t){e.debug("Automatic silent refresh did not work")})}),this.restartRefreshTimerIfStillLoggedIn()}},{key:"refreshInternal",value:function(e,t){return this.useSilentRefresh||"code"!==this.responseType?this.silentRefresh(e,t):this.refreshToken()}},{key:"loadDiscoveryDocumentAndTryLogin",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.loadDiscoveryDocument().then(function(n){return e.tryLogin(t)})}},{key:"loadDiscoveryDocumentAndLogin",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.loadDiscoveryDocumentAndTryLogin(t=t||{}).then(function(n){return!(!e.hasValidIdToken()||!e.hasValidAccessToken())||(e.initLoginFlow("string"==typeof t.state?t.state:""),!1)})}},{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.showDebugInformation&&this.logger.debug.apply(this.logger,t)}},{key:"validateUrlFromDiscoveryDocument",value:function(e){var t=[],n=this.validateUrlForHttps(e),i=this.validateUrlAgainstIssuer(e);return n||t.push("https for all urls required. Also for urls received by discovery."),i||t.push("Every url in discovery document has to start with the issuer url.Also see property strictDiscoveryDocumentValidation."),t}},{key:"validateUrlForHttps",value:function(e){if(!e)return!0;var t=e.toLowerCase();return!1===this.requireHttps||!(!t.match(/^http:\/\/localhost($|[:\/])/)&&!t.match(/^http:\/\/localhost($|[:\/])/)||"remoteOnly"!==this.requireHttps)||t.startsWith("https://")}},{key:"assertUrlNotNullAndCorrectProtocol",value:function(e,t){if(!e)throw new Error("'".concat(t,"' should not be null"));if(!this.validateUrlForHttps(e))throw new Error("'".concat(t,"' must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS)."))}},{key:"validateUrlAgainstIssuer",value:function(e){return!this.strictDiscoveryDocumentValidation||!e||e.toLowerCase().startsWith(this.issuer.toLowerCase())}},{key:"setupRefreshTimer",value:function(){var e=this;"undefined"!=typeof window?((this.hasValidIdToken()||this.hasValidAccessToken())&&(this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.setupExpirationTimers()),this.tokenReceivedSubscription&&this.tokenReceivedSubscription.unsubscribe(),this.tokenReceivedSubscription=this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return"token_received"===e.type})).subscribe(function(t){e.clearAccessTokenTimer(),e.clearIdTokenTimer(),e.setupExpirationTimers()})):this.debug("timer not supported on this plattform")}},{key:"setupExpirationTimers",value:function(){this.hasValidAccessToken()&&this.setupAccessTokenTimer(),this.hasValidIdToken()&&this.setupIdTokenTimer()}},{key:"setupAccessTokenTimer",value:function(){var e=this,t=this.getAccessTokenExpiration(),n=this.getAccessTokenStoredAt(),i=this.calcTimeout(n,t);this.ngZone.runOutsideAngular(function(){e.accessTokenTimeoutSubscription=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(new OAuthInfoEvent("token_expires","access_token")).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(i)).subscribe(function(t){e.ngZone.run(function(){e.eventsSubject.next(t)})})})}},{key:"setupIdTokenTimer",value:function(){var e=this,t=this.getIdTokenExpiration(),n=this.getIdTokenStoredAt(),i=this.calcTimeout(n,t);this.ngZone.runOutsideAngular(function(){e.idTokenTimeoutSubscription=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(new OAuthInfoEvent("token_expires","id_token")).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(i)).subscribe(function(t){e.ngZone.run(function(){e.eventsSubject.next(t)})})})}},{key:"stopAutomaticRefresh",value:function(){this.clearAccessTokenTimer(),this.clearIdTokenTimer()}},{key:"clearAccessTokenTimer",value:function(){this.accessTokenTimeoutSubscription&&this.accessTokenTimeoutSubscription.unsubscribe()}},{key:"clearIdTokenTimer",value:function(){this.idTokenTimeoutSubscription&&this.idTokenTimeoutSubscription.unsubscribe()}},{key:"calcTimeout",value:function(e,t){var n=Date.now();return Math.max(0,(t-e)*this.timeoutFactor-(n-e))}},{key:"setStorage",value:function(e){this._storage=e,this.configChanged()}},{key:"loadDiscoveryDocument",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return new Promise(function(n,i){t||((t=e.issuer||"").endsWith("/")||(t+="/"),t+=".well-known/openid-configuration"),e.validateUrlForHttps(t)?e.http.get(t).subscribe(function(t){if(!e.validateDiscoveryDocument(t))return e.eventsSubject.next(new OAuthErrorEvent("discovery_document_validation_error",null)),void i("discovery_document_validation_error");e.loginUrl=t.authorization_endpoint,e.logoutUrl=t.end_session_endpoint||e.logoutUrl,e.grantTypesSupported=t.grant_types_supported,e.issuer=t.issuer,e.tokenEndpoint=t.token_endpoint,e.userinfoEndpoint=t.userinfo_endpoint||e.userinfoEndpoint,e.jwksUri=t.jwks_uri,e.sessionCheckIFrameUrl=t.check_session_iframe||e.sessionCheckIFrameUrl,e.discoveryDocumentLoaded=!0,e.discoveryDocumentLoadedSubject.next(t),e.revocationEndpoint=t.revocation_endpoint,e.sessionChecksEnabled&&e.restartSessionChecksIfStillLoggedIn(),e.loadJwks().then(function(i){var r=new OAuthSuccessEvent("discovery_document_loaded",{discoveryDocument:t,jwks:i});e.eventsSubject.next(r),n(r)}).catch(function(t){e.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)})},function(t){e.logger.error("error loading discovery document",t),e.eventsSubject.next(new OAuthErrorEvent("discovery_document_load_error",t)),i(t)}):i("issuer must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).")})}},{key:"loadJwks",value:function(){var e=this;return new Promise(function(t,n){e.jwksUri?e.http.get(e.jwksUri).subscribe(function(n){e.jwks=n,e.eventsSubject.next(new OAuthSuccessEvent("discovery_document_loaded")),t(n)},function(t){e.logger.error("error loading jwks",t),e.eventsSubject.next(new OAuthErrorEvent("jwks_load_error",t)),n(t)}):t(null)})}},{key:"validateDiscoveryDocument",value:function(e){var t;return this.skipIssuerCheck||e.issuer===this.issuer?(t=this.validateUrlFromDiscoveryDocument(e.authorization_endpoint)).length>0?(this.logger.error("error validating authorization_endpoint in discovery document",t),!1):(t=this.validateUrlFromDiscoveryDocument(e.end_session_endpoint)).length>0?(this.logger.error("error validating end_session_endpoint in discovery document",t),!1):((t=this.validateUrlFromDiscoveryDocument(e.token_endpoint)).length>0&&this.logger.error("error validating token_endpoint in discovery document",t),(t=this.validateUrlFromDiscoveryDocument(e.revocation_endpoint)).length>0&&this.logger.error("error validating revocation_endpoint in discovery document",t),(t=this.validateUrlFromDiscoveryDocument(e.userinfo_endpoint)).length>0?(this.logger.error("error validating userinfo_endpoint in discovery document",t),!1):(t=this.validateUrlFromDiscoveryDocument(e.jwks_uri)).length>0?(this.logger.error("error validating jwks_uri in discovery document",t),!1):(this.sessionChecksEnabled&&!e.check_session_iframe&&this.logger.warn("sessionChecksEnabled is activated but discovery document does not contain a check_session_iframe field"),!0)):(this.logger.error("invalid issuer in discovery document","expected: "+this.issuer,"current: "+e.issuer),!1)}},{key:"fetchTokenUsingPasswordFlowAndLoadUserProfile",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e;return this.fetchTokenUsingPasswordFlow(e,t,i).then(function(){return n.loadUserProfile()})}},{key:"loadUserProfile",value:function(){var e=this;if(!this.hasValidAccessToken())throw new Error("Can not load User Profile without access_token");if(!this.validateUrlForHttps(this.userinfoEndpoint))throw new Error("userinfoEndpoint must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");return new Promise(function(t,n){var i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e).set("Authorization","Bearer "+e.getAccessToken());e.http.get(e.userinfoEndpoint,{headers:i}).subscribe(function(i){e.debug("userinfo received",i);var r=e.getIdentityClaims()||{};e.skipSubjectCheck||!e.oidc||r.sub&&i.sub===r.sub?(i=Object.assign({},r,i),e._storage.setItem("id_token_claims_obj",JSON.stringify(i)),e.eventsSubject.next(new OAuthSuccessEvent("user_profile_loaded")),t(i)):n("if property oidc is true, the received user-id (sub) has to be the user-id of the user that has logged in with oidc.\nif you are not using oidc but just oauth2 password flow set oidc to fal
1se")},function(t){e.logger.error("error loading user info",t),e.eventsSubject.next(new OAuthErrorEvent("user_profile_load_error",t)),n(t)})})}},{key:"fetchTokenUsingPasswordFlow",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e;return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise(function(r,a){var o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.f({encoder:new WebHttpUrlEncodingCodec}).set("grant_type","password").set("scope",n.scope).set("username",e).set("password",t);if(n.useHttpBasicAuth){var s=btoa("".concat(n.clientId,":").concat(n.dummyClientSecret));i=i.set("Authorization","Basic "+s)}if(n.useHttpBasicAuth||(o=o.set("client_id",n.clientId)),!n.useHttpBasicAuth&&n.dummyClientSecret&&(o=o.set("client_secret",n.dummyClientSecret)),n.customQueryParams){var l,c=_createForOfIteratorHelper(Object.getOwnPropertyNames(n.customQueryParams));try{for(c.s();!(l=c.n()).done;){var u=l.value;o=o.set(u,n.customQueryParams[u])}}catch(err){c.e(err)}finally{c.f()}}i=i.set("Content-Type","application/x-www-form-urlencoded"),n.http.post(n.tokenEndpoint,o,{headers:i}).subscribe(function(e){n.debug("tokenResponse",e),n.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||n.fallbackAccessTokenExpirationTimeInSec,e.scope,n.extractRecognizedCustomParameters(e)),n.eventsSubject.next(new OAuthSuccessEvent("token_received")),r(e)},function(e){n.logger.error("Error performing password flow",e),n.eventsSubject.next(new OAuthErrorEvent("token_error",e)),a(e)})})}},{key:"refreshToken",value:function(){var e=this;return this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint"),new Promise(function(t,n){var i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.f).set("grant_type","refresh_token").set("scope",e.scope).set("refresh_token",e._storage.getItem("refresh_token")),r=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e).set("Content-Type","application/x-www-form-urlencoded");if(e.useHttpBasicAuth){var a=btoa("".concat(e.clientId,":").concat(e.dummyClientSecret));r=r.set("Authorization","Basic "+a)}if(e.useHttpBasicAuth||(i=i.set("client_id",e.clientId)),!e.useHttpBasicAuth&&e.dummyClientSecret&&(i=i.set("client_secret",e.dummyClientSecret)),e.customQueryParams){var o,s=_createForOfIteratorHelper(Object.getOwnPropertyNames(e.customQueryParams));try{for(s.s();!(o=s.n()).done;){var l=o.value;i=i.set(l,e.customQueryParams[l])}}catch(err){s.e(err)}finally{s.f()}}e.http.post(e.tokenEndpoint,i,{headers:r}).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_15__.a)(function(t){return t.id_token?Object(rxjs__WEBPACK_IMPORTED_MODULE_6__.a)(e.processIdToken(t.id_token,t.access_token,!0)).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.a)(function(t){return e.storeIdToken(t)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(function(e){return t})):Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(t)})).subscribe(function(n){e.debug("refresh tokenResponse",n),e.storeAccessTokenResponse(n.access_token,n.refresh_token,n.expires_in||e.fallbackAccessTokenExpirationTimeInSec,n.scope,e.extractRecognizedCustomParameters(n)),e.eventsSubject.next(new OAuthSuccessEvent("token_received")),e.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),t(n)},function(t){e.logger.error("Error refreshing token",t),e.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",t)),n(t)})})}},{key:"removeSilentRefreshEventListener",value:function(){this.silentRefreshPostMessageEventListener&&(window.removeEventListener("message",this.silentRefreshPostMessageEventListener),this.silentRefreshPostMessageEventListener=null)}},{key:"setupSilentRefreshEventListener",value:function(){var e=this;this.removeSilentRefreshEventListener(),this.silentRefreshPostMessageEventListener=function(t){var n=e.processMessageEventMessage(t);e.tryLogin({customHashFragment:n,preventClearHashAfterLogin:!0,customRedirectUri:e.silentRefreshRedirectUri||e.redirectUri}).catch(function(t){return e.debug("tryLogin during silent refresh failed",t)})},window.addEventListener("message",this.silentRefreshPostMessageEventListener)}},{key:"silentRefresh",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.getIdentityClaims()||{};if(this.useIdTokenHintForSilentRefresh&&this.hasValidIdToken()&&(t.id_token_hint=this.getIdToken()),!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(void 0===this.document)throw new Error("silent refresh is not supported on this platform");
1var r=this.document.getElementById(this.silentRefreshIFrameName);r&&this.document.body.removeChild(r),this.silentRefreshSubject=i.sub;var a=this.document.createElement("iframe");a.id=this.silentRefreshIFrameName,this.setupSilentRefreshEventListener(),this.createLoginUrl(null,null,this.silentRefreshRedirectUri||this.redirectUri,n,t).then(function(t){a.setAttribute("src",t),e.silentRefreshShowIFrame||(a.style.display="none"),e.document.body.appendChild(a)});var o=this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return e instanceof OAuthErrorEvent}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)()),s=this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return"token_received"===e.type}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)()),l=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(new OAuthErrorEvent("silent_refresh_timeout",null)).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.a)(this.silentRefreshTimeout));return Object(rxjs__WEBPACK_IMPORTED_MODULE_7__.a)([o,s,l]).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(function(t){if(t instanceof OAuthErrorEvent)throw"silent_refresh_timeout"===t.type||(t=new OAuthErrorEvent("silent_refresh_error",t)),e.eventsSubject.next(t),t;return"token_received"===t.type&&(t=new OAuthSuccessEvent("silently_refreshed"),e.eventsSubject.next(t)),t})).toPromise()}},{key:"initImplicitFlowInPopup",value:function(e){return this.initLoginFlowInPopup(e)}},{key:"initLoginFlowInPopup",value:function(e){var t=this;return e=e||{},this.createLoginUrl(null,null,this.silentRefreshRedirectUri,!1,{display:"popup"}).then(function(n){return new Promise(function(i,r){var a,o=window.open(n,"_blank",t.calculatePopupFeatures(e));o?a=window.setInterval(function(){o&&!o.closed||(s(),r(new OAuthErrorEvent("popup_closed",{})))},500):r(new OAuthErrorEvent("popup_blocked",{}));var s=function(){window.clearInterval(a),window.removeEventListener("message",l),null!==o&&o.close(),o=null},l=function(e){var n=t.processMessageEventMessage(e);n&&null!==n?t.tryLogin({customHashFragment:n,preventClearHashAfterLogin:!0,customRedirectUri:t.silentRefreshRedirectUri}).then(function(){s(),i()},function(e){s(),r(e)}):console.log("false event firing")};window.addEventListener("message",l)})})}},{key:"calculatePopupFeatures",value:function(e){var t=e.height||470,n=e.width||500,i=window.screenLeft+(window.outerWidth-n)/2;return"location=no,toolbar=no,width=".concat(n,",height=").concat(t,",top=").concat(window.screenTop+(window.outerHeight-t)/2,",left=").concat(i)}},{key:"processMessageEventMessage",value:function(e){var t="#";if(this.silentRefreshMessagePrefix&&(t+=this.silentRefreshMessagePrefix),e&&e.data&&"string"==typeof e.data){var n=e.data;return n.startsWith(t)?"#"+n.substr(t.length):void 0}}},{key:"canPerformSessionCheck",value:function(){return!!this.sessionChecksEnabled&&(this.sessionCheckIFrameUrl?this.get
1SessionState()?void 0!==this.document:(console.warn("sessionChecksEnabled is activated but there is no session_state"),!1):(console.warn("sessionChecksEnabled is activated but there is no sessionCheckIFrameUrl"),!1))}},{key:"setupSessionCheckEventListener",value:function(){var e=this;this.removeSessionCheckEventListener(),this.sessionCheckEventListener=function(t){var n=t.origin.toLowerCase(),i=e.issuer.toLowerCase();if(e.debug("sessionCheckEventListener"),i.startsWith(n)){switch(t.data){case"unchanged":e.handleSessionUnchanged();break;case"changed":e.ngZone.run(function(){e.handleSessionChange()});break;case"error":e.ngZone.run(function(){e.handleSessionError()})}e.debug("got info from session check inframe",t)}else e.debug("sessionCheckEventListener","wrong origin",n,"expected",i,"event",t)},this.ngZone.runOutsideAngular(function(){window.addEventListener("message",e.sessionCheckEventListener)})}},{key:"handleSessionUnchanged",value:function(){this.debug("session check","session unchanged")}},{key:"handleSessionChange",value:function(){var e=this;this.eventsSubject.next(new OAuthInfoEvent("session_changed")),this.stopSessionCheckTimer(),this.useSilentRefresh||"code"!==this.responseType?this.silentRefreshRedirectUri?(this.silentRefresh().catch(function(t){return e.debug("silent refresh failed after session changed")}),this.waitForSilentRefreshAfterSessionChange()):(this.eventsSubject.next(new OAuthInfoEvent("session_terminated")),this.logOut(!0)):this.refreshToken().then(function(t){e.debug("token refresh after session change worked")}).catch(function(t){e.debug("token refresh did not work after session changed"),e.eventsSubject.next(new OAuthInfoEvent("session_terminated")),e.logOut(!0)})}},{key:"waitForSilentRefreshAfterSessionChange",value:function(){var e=this;this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return"silently_refreshed"===e.type||"silent_refresh_timeout"===e.type||"silent_refresh_error"===e.type}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.a)()).subscribe(function(t){"silently_refreshed"!==t.type&&(e.debug("silent refresh did not work after session changed"),e.eventsSubject.next(new OAuthInfoEvent("session_terminated")),e.logOut(!0))})}},{key:"handleSessionError",value:function(){this.stopSessionCheckTimer(),this.eventsSubject.next(new OAuthInfoEvent("session_error"))}},{key:"removeSessionCheckEventListener",value:function(){this.sessionCheckEventListener&&(window.removeEventListener("message",this.sessionCheckEventListener),this.sessionCheckEventListener=null)}},{key:"initSessionCheck",value:function(){if(this.canPerformSessionCheck()){var e=this.document.getElementById(this.sessionCheckIFrameName);e&&this.document.body.removeChild(e);var t=this.document.createElement("iframe");t.id=this.sessionCheckIFrameName,this.setupSessionCheckEventListener(),t.setAttribute("src",this.sessionCheckIFrameUrl),t.style.display="none",this.document.body.appendChild(t),this.startSessionCheckTimer()}}},{key:"startSessionCheckTimer",value:function(){var e=this;this.stopSessionCheckTimer(),this.ngZone.runOutsideAngular(function(){e.sessionCheckTimer=setInterval(e.checkSession.bind(e),e.sessionCheckIntervall)})}},{key:"stopSessionCheckTimer",value:function(){this.sessionCheckTimer&&(clearInterval(this.sessionCheckTimer),this.sessionCheckTimer=null)}},{key:"checkSession",value:function(){var e=this.document.getElementById(this.sessionCheckIFrameName);e||this.logger.warn("checkSession did not find iframe",this.sessionCheckIFrameName);var t=this.getSessionState();t||this.stopSessionCheckTimer(),e.contentWindow.postMessage(this.clientId+" "+t,this.issuer)}},{key:"createLoginUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return Object(tslib__WEBPACK_IMPORTED_MODULE_3__.a)(this,void 0,void 0,regeneratorRuntime.mark(function a(){var o,s,l,c,u,d,h,f,p,m,g,v,y,b,_;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=n||this.redirectUri,a.next=3,this.createAndSaveNonce();case 3:if(s=a.sent,e=e?s+this.config.nonceStateSeparator+encodeURIComponent(e):s,this.requestAccessToken||this.oidc){a.next=6;break}throw new Error("Either requestAccessToken or oidc or both must be true");case 6:if(this.responseType=this.config.responseType?this.config.responseType:this.oidc&&this.requestAccessToken?"id_token token":this.oidc&&!this.requestAccessToken?"id_token":"token",l=this.loginUrl.indexOf("?")>-1?"&":"?",c=this.scope,this.oidc&&!c.match(/(^|\s)openid($|\s)/)&&(c="openid "+c),u=this.loginUrl+l+"response_type="+encodeURIComponent(this.responseType)+"&client_id="+encodeURIComponent(this.clientId)+"&state="+encodeURIComponent(e)+"&redirect_uri="+encodeURIComponent(o)+"&scope="+encodeURIComponent(c),!this.responseType.includes("code")||this.disablePKCE){a.next=19;break}return a.next=14,this.createChallangeVerifierPairForPKCE();case 14:d=a.sent,h=_slicedToArray(d,2),f=h[0],p=h[1],this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("PKCE_verifier",p):this._storage.setItem("PKCE_verifier",p),u+="&code_challenge="+f,u+="&code_challenge_method=S256";case 19:for(t&&(u+="&login_hint="+encodeURIComponent(t)),this.resource&&(u+="&resource="+encodeURIComponent(this.resource)),this.oidc&&(u+="&nonce="+encodeURIComponent(s)),i&&(u+="&prompt=none"),m=0,g=Object.keys(r);m<g.length;m++)v=g[m],u+="&"+encodeURIComponent(v)+"="+encodeURIComponent(r[v]);if(this.customQueryParams){y=_createForOfIteratorHelper(Object.getOwnPropertyNames(this.customQueryParams));try{for(y.s();!(b=y.n()).done;)_=b.value,u+="&"+_+"="+encodeURIComponent(this.customQueryParams[_])}catch(err){y.e(err)}finally{y.f()}}return a.abrupt("return",u);case 23:case"end":return a.stop()}},a,this)}))}},{key:"initImplicitFlowInternal",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!this.inImplicitFlow){if(this.inImplicitFlow=!0,!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");var i={},r=null;"string"==typeof n?r=n:"object"==typeof n&&(i=n),this.createLoginUrl(t,r,null,!1,i).then(this.config.openUri).catch(function(t){console.error("Error in initImplicitFlow",t),e.inImplicitFlow=!1})}}},{key:"initImplicitFlow",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";""!==this.loginUrl?this.initImplicitFlowInternal(t,n):this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return"discovery_document_loaded"===e.type})).subscribe(function(i){return e.initImplicitFlowInternal(t,n)})}},{key:"resetImplicitFlow",value:function(){this.inImplicitFlow=!1}}
1,{key:"callOnTokenReceivedIfExists",value:function(e){var t=this;if(e.onTokenReceived){var n={idClaims:t.getIdentityClaims(),idToken:t.getIdToken(),accessToken:t.getAccessToken(),state:t.state};e.onTokenReceived(n)}}},{key:"storeAccessTokenResponse",value:function(e,t,n,i,r){var a=this;if(this._storage.setItem("access_token",e),i&&!Array.isArray(i)?this._storage.setItem("granted_scopes",JSON.stringify(i.split("+"))):i&&Array.isArray(i)&&this._storage.setItem("granted_scopes",JSON.stringify(i)),this._storage.setItem("access_token_stored_at",""+Date.now()),n){var o=1e3*n,s=(new Date).getTime()+o;this._storage.setItem("expires_at",""+s)}t&&this._storage.setItem("refresh_token",t),r&&r.forEach(function(e,t){a._storage.setItem(t,e)})}},{key:"tryLogin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return"code"===this.config.responseType?this.tryLoginCodeFlow(e).then(function(e){return!0}):this.tryLoginImplicitFlow(e)}},{key:"parseQueryString",value:function(e){return e&&0!==e.length?("?"===e.charAt(0)&&(e=e.substr(1)),this.urlHelper.parseQueryString(e)):{}}},{key:"tryLoginCodeFlow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(e=e||{}).customHashFragment?e.customHashFragment.substring(1):window.location.search,n=this.getCodePartsFromUrl(t),i=n.code,r=n.state,a=n.session_state;if(!e.preventClearHashAfterLogin){var o=location.href.replace(/[&\?]code=[^&\$]*/,"").replace(/[&\?]scope=[^&\$]*/,"").replace(/[&\?]state=[^&\$]*/,"").replace(/[&\?]session_state=[^&\$]*/,"");history.replaceState(null,window.name,o)}var s=this.parseState(r),l=_slicedToArray(s,2),c=l[0],u=l[1];if(this.state=u,n.error){this.debug("error trying to login"),this.handleLoginError({},n);var d=new OAuthErrorEvent("code_error",{},n);return this.eventsSubject.next(d),Promise.reject(d)}if(!c)return Promise.resolve();if(!this.validateNonce(c)){var h=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(h),Promise.reject(h)}return this.storeSessionState(a),i?this.getTokenFromCode(i,e).then(function(e){return null}):Promise.resolve()}},{key:"getCodePartsFromUrl",value:function(e){return e&&0!==e.length?("?"===e.charAt(0)&&(e=e.substr(1)),this.urlHelper.parseQueryString(e)):this.urlHelper.getHashFragmentParams()}},{key:"getTokenFromCode",value:function(e,t){var n,i=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.f).set("grant_type","authorization_code").set("code",e).set("redirect_uri",t.customRedirectUri||this.redirectUri);this.disablePKCE||((n=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("PKCE_verifier"):this._storage.getItem("PKCE_verifier"))?i=i.set("code_verifier",n):console.warn("No PKCE verifier found in oauth storage!"));return this.fetchAndProcessToken(i)}},{key:"fetchAndProcessToken",value:function(e){var t=this;this.assertUrlNotNullAndCorrectProtocol(this.tokenEndpoint,"tokenEndpoint");var n=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){var i=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));n=n.set("Authorization","Basic "+i)}return this.useHttpBasicAuth||(e=e.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(e=e.set("client_secret",this.dummyClientSecret)),new Promise(function(i,r){if(t.customQueryParams){var a,o=_createForOfIteratorHelper(Object.getOwnPropertyNames(t.customQueryParams));try{for(o.s();!(a=o.n()).done;){var s=a.value;e=e.set(s,t.customQueryParams[s])}}catch(err){o.e(err)}finally{o.f()}}t.http.post(t.tokenEndpoint,e,{headers:n}).subscribe(function(e){t.debug("refresh tokenResponse",e),t.storeAccessTokenResponse(e.access_token,e.refresh_token,e.expires_in||t.fallbackAccessTokenExpirationTimeInSec,e.scope,t.extractRecognizedCustomParameters(e)),t.oidc&&e.id_token?t.processIdToken(e.id_token,e.access_token).then(function(n){t.storeIdToken(n),t.eventsSubject.next(new OAuthSuccessEvent("token_received")),t.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),i(e)}).catch(function(e){t.eventsSubject.next(new OAuthErrorEvent("token_validation_error",e)),console.error("Error validating tokens"),console.error(e),r(e)}):(t.eventsSubject.next(new OAuthSuccessEvent("token_received")),t.eventsSubject.next(new OAuthSuccessEvent("token_refreshed")),i(e))},function(e){console.error("Error getting token",e),t.eventsSubject.next(new OAuthErrorEvent("token_refresh_error",e)),r(e)})})}},{key:"tryLoginImplicitFlow",value:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e=(n=n||{}
1).customHashFragment?this.urlHelper.getHashFragmentParams(n.customHashFragment):this.urlHelper.getHashFragmentParams(),this.debug("parsed url",e);var i=e.state,r=this.parseState(i),a=_slicedToArray(r,2),o=a[0],s=a[1];if(this.state=s,e.error){this.debug("error trying to login"),this.handleLoginError(n,e);var l=new OAuthErrorEvent("token_error",{},e);return this.eventsSubject.next(l),Promise.reject(l)}var c=e.access_token,u=e.id_token,d=e.session_state,h=e.scope;if(!this.requestAccessToken&&!this.oidc)return Promise.reject("Either requestAccessToken or oidc (or both) must be true.");if(this.requestAccessToken&&!c)return Promise.resolve(!1);if(this.requestAccessToken&&!n.disableOAuth2StateCheck&&!i)return Promise.resolve(!1);if(this.oidc&&!u)return Promise.resolve(!1);if(this.sessionChecksEnabled&&!d&&this.logger.warn("session checks (Session Status Change Notification) were activated in the configuration but the id_token does not contain a session_state claim"),this.requestAccessToken&&!n.disableOAuth2StateCheck&&!this.validateNonce(o)){var f=new OAuthErrorEvent("invalid_nonce_in_state",null);return this.eventsSubject.next(f),Promise.reject(f)}return this.requestAccessToken&&this.storeAccessTokenResponse(c,null,e.expires_in||this.fallbackAccessTokenExpirationTimeInSec,h),this.oidc?this.processIdToken(u,c).then(function(e){return n.validationHandler?n.validationHandler({accessToken:c,idClaims:e.idTokenClaims,idToken:e.idToken,state:i}).then(function(t){return e}):e}).then(function(e){return t.storeIdToken(e),t.storeSessionState(d),t.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&(location.hash=""),t.eventsSubject.next(new OAuthSuccessEvent("token_received")),t.callOnTokenReceivedIfExists(n),t.inImplicitFlow=!1,!0}).catch(function(e){return t.eventsSubject.next(new OAuthErrorEvent("token_validation_error",e)),t.logger.error("Error validating tokens"),t.logger.error(e),Promise.reject(e)}):(this.eventsSubject.next(new OAuthSuccessEvent("token_received")),this.clearHashAfterLogin&&!n.preventClearHashAfterLogin&&(location.hash=""),this.callOnTokenReceivedIfExists(n),Promise.resolve(!0))}},{key:"parseState",value:function(e){var t=e,n="";if(e){var i=e.indexOf(this.config.nonceStateSeparator);i>-1&&(t=e.substr(0,i),n=e.substr(i+this.config.nonceStateSeparator.length))}return[t,n]}},{key:"validateNonce",value:function(e){var t;return(t=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"))===e||(console.error("Validating access_token failed, wrong state/nonce.",t,e),!1)}},{key:"storeIdToken",value:function(e){this._storage.setItem("id_token",e.idToken),this._storage.setItem("id_token_claims_obj",e.idTokenClaimsJson),this._storage.setItem("id_token_expires_at",""+e.idTokenExpiresAt),this._storage.setItem("id_token_stored_at",""+Date.now())}},{key:"storeSessionState",value:function(e){this._storage.setItem("session_state",e)}},{key:"getSessionState",value:function(){return this._storage.getItem("session_state")}},{key:"handleLoginError",value:function(e,t){e.onLoginError&&e.onLoginError(t),this.clearHashAfterLogin&&!e.preventClearHashAfterLogin&&(location.hash="")}},{key:"processIdToken",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=e.split("."),o=b64DecodeUnicode(this.padBase64(a[0])),s=JSON.parse(o),l=b64DecodeUnicode(this.padBase64(a[1])),c=JSON.parse(l);if(n=this.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.getItem("nonce"):this._storage.getItem("nonce"),Array.isArray(c.aud)){if(c.aud.every(function(e){return e!==i.clientId})){var u="Wrong audience: "+c.aud.join(",");return this.logger.warn(u),Promise.reject(u)}}else if(c.aud!==this.clientId){var d="Wrong audience: "+c.aud;return this.logger.warn(d),Promise.reject(d)}if(!c.sub){var h="No sub claim in id_token";return this.logger.warn(h),Promise.reject(h)}if(this.sessionChecksEnabled&&this.silentRefreshSubject&&this.silentRefreshSubject!==c.sub){var f="After refreshing, we got an id_token for another user (sub). Expected sub: ".concat(this.silentRefreshSubject,", received sub: ").concat(c.sub);return this.logger.warn(f),Promise.reject(f)}if(!c.iat){var p="No iat claim in id_token";return this.logger.warn(p),Promise.reject(p)}if(!this.skipIssuerCheck&&c.iss!==this.issuer){var m="Wrong issuer: "+c.iss;return this.logger.warn(m),Promise.reject(m)}if(!r&&c.nonce!==n){var g="Wrong nonce: "+c.nonce;return this.logger.warn(g),Promise.reject(g)}if(!this.hasOwnProperty("responseType")||"code"!==this.responseType&&"id_token"!==this.responseType||(this.disableAtHashCheck=!0),!this.disableAtHashCheck&&this.requestAccessToken&&!c.at_hash){var v="An at_hash is needed!";return this.logger.warn(v),Promise.reject(v)}var y=Date.now(),b=1e3*c.iat,_=1e3*c.exp,w=1e3*(this.clockSkewInSec||600);if(b-w>=y||_+w<=y){var k="Token has expired";return console.error(k),console.error({now:y,issuedAtMSec:b,expiresAtMSec:_}),Promise.reject(k)}var C={accessToken:t,idToken:e,jwks:this.jwks,idTokenClaims:c,idTokenHeader:s,loadKeys:function(){return i.loadJwks()}};return this.disableAtHashCheck?this.checkSignature(C).then(function(t){return{idToken:e,idTokenClaims:c,idTokenClaimsJson:l,idTokenHeader:s,idTokenHeaderJson:o,idTokenExpiresAt:_}}):this.checkAtHash(C).then(function(t){if(!i.disableAtHashCheck&&i.requestAccessToken&&!t){var n="Wrong at_hash";return i.logger.warn(n),Promise.reject(n)}return i.checkSignature(C).then(function(t){var n={idToken:e,idTokenClaims:c,idTokenClaimsJson:l,idTokenHeader:s,idTokenHeaderJson:o,idTokenExpiresAt:_};
1return i.disableAtHashCheck?n:i.checkAtHash(C).then(function(e){if(i.requestAccessToken&&!e){var t="Wrong at_hash";return i.logger.warn(t),Promise.reject(t)}return n})})})}},{key:"getIdentityClaims",value:function(){var e=this._storage.getItem("id_token_claims_obj");return e?JSON.parse(e):null}},{key:"getGrantedScopes",value:function(){var e=this._storage.getItem("granted_scopes");return e?JSON.parse(e):null}},{key:"getIdToken",value:function(){return this._storage?this._storage.getItem("id_token"):null}},{key:"padBase64",value:function(e){for(;e.length%4!=0;)e+="=";return e}},{key:"getAccessToken",value:function(){return this._storage?this._storage.getItem("access_token"):null}},{key:"getRefreshToken",value:function(){return this._storage?this._storage.getItem("refresh_token"):null}},{key:"getAccessTokenExpiration",value:function(){return this._storage.getItem("expires_at")?parseInt(this._storage.getItem("expires_at"),10):null}},{key:"getAccessTokenStoredAt",value:function(){return parseInt(this._storage.getItem("access_token_stored_at"),10)}},{key:"getIdTokenStoredAt",value:function(){return parseInt(this._storage.getItem("id_token_stored_at"),10)}},{key:"getIdTokenExpiration",value:function(){return this._storage.getItem("id_token_expires_at")?parseInt(this._storage.getItem("id_token_expires_at"),10):null}},{key:"hasValidAccessToken",value:function(){if(this.getAccessToken()){var e=this._storage.getItem("expires_at"),t=new Date;return!(e&&parseInt(e,10)<t.getTime())}return!1}},{key:"hasValidIdToken",value:function(){if(this.getIdToken()){var e=this._storage.getItem("id_token_expires_at"),t=new Date;return!(e&&parseInt(e,10)<t.getTime())}return!1}},{key:"getCustomTokenResponseProperty",value:function(e){return this._storage&&this.config.customTokenParameters&&this.config.customTokenParameters.indexOf(e)>=0&&null!==this._storage.getItem(e)?JSON.parse(this._storage.getItem(e)):null}},{key:"authorizationHeader",value:function(){return"Bearer "+this.getAccessToken()}},{key:"logOut",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=!1;"boolean"==typeof t&&(i=t,t={});var r=this.getIdToken();if(this._storage.removeItem("access_token"),this._storage.removeItem("id_token"),this._storage.removeItem("refresh_token"),this.saveNoncesInLocalStorage?(localStorage.removeItem("nonce"),localStorage.removeItem("PKCE_verifier")):(this._storage.removeItem("nonce"),this._storage.removeItem("PKCE_verifier")),this._storage.removeItem("expires_at"),this._storage.removeItem("id_token_claims_obj"),this._storage.removeItem("id_token_expires_at"),this._storage.removeItem("id_token_stored_at"),this._storage.removeItem("access_token_stored_at"),this._storage.removeItem("granted_scopes"),this._storage.removeItem("session_state"),this.config.customTokenParameters&&this.config.customTokenParameters.forEach(function(t){return e._storage.removeItem(t)}),this.silentRefreshSubject=null,this.eventsSubject.next(new OAuthInfoEvent("logout")),this.logoutUrl&&!i&&(r||this.postLogoutRedirectUri)){var a;if(!this.validateUrlForHttps(this.logoutUrl))throw new Error("logoutUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");if(this.logoutUrl.indexOf("{{")>-1)a=this.logoutUrl.replace(/\{\{id_token\}\}/,r).replace(/\{\{client_id\}\}/,this.clientId);else{var o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.f;r&&(o=o.set("id_token_hint",r));var s=this.postLogoutRedirectUri||this.redirectUri;for(var l in s&&(o=o.set("post_logout_redirect_uri",s),n&&(o=o.set("state",n))),t)o=o.set(l,t[l]);a=this.logoutUrl+(this.logoutUrl.indexOf("?")>-1?"&":"?")+o.toString()}this.config.openUri(a)}}},{key:"createAndSaveNonce",value:function(){var e=this;return this.createNonce().then(function(t){return e.saveNoncesInLocalStorage&&void 0!==window.localStorage?localStorage.setItem("nonce",t):e._storage.setItem("nonce",t),t})}},{key:"ngOnDestroy",value:function(){this.clearAccessTokenTimer(),this.clearIdTokenTimer(),this.removeSilentRefreshEventListener();
1var e=this.document.getElementById(this.silentRefreshIFrameName);e&&e.remove(),this.stopSessionCheckTimer(),this.removeSessionCheckEventListener();var t=this.document.getElementById(this.sessionCheckIFrameName);t&&t.remove()}},{key:"createNonce",value:function(){var e=this;return new Promise(function(t){if(e.rngUrl)throw new Error("createNonce with rng-web-api has not been implemented so far");var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",i=45,r="",a="undefined"==typeof self?null:self.crypto||self.msCrypto;if(a){var o=new Uint8Array(i);a.getRandomValues(o),o.map||(o.map=Array.prototype.map),o=o.map(function(e){return n.charCodeAt(e%66)}),r=String.fromCharCode.apply(null,o)}else for(;0<i--;)r+=n[66*Math.random()|0];t(base64UrlEncode(r))})}},{key:"checkAtHash",value:function(e){return Object(tslib__WEBPACK_IMPORTED_MODULE_3__.a)(this,void 0,void 0,regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.tokenValidationHandler?this.tokenValidationHandler.validateAtHash(e):(this.logger.warn("No tokenValidationHandler configured. Cannot check at_hash."),!0));case 1:case"end":return t.stop()}},t,this)}))}},{key:"checkSignature",value:function(e){return this.tokenValidationHandler?this.tokenValidationHandler.validateSignature(e):(this.logger.warn("No tokenValidationHandler configured. Cannot check signature."),Promise.resolve(null))}},{key:"initLoginFlow",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"code"===this.responseType?this.initCodeFlow(e,t):this.initImplicitFlow(e,t)}},{key:"initCodeFlow",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};""!==this.loginUrl?this.initCodeFlowInternal(t,n):this.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return"discovery_document_loaded"===e.type})).subscribe(function(i){return e.initCodeFlowInternal(t,n)})}},{key:"initCodeFlowInternal",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.validateUrlForHttps(this.loginUrl))throw new Error("loginUrl must use HTTPS (with TLS), or config value for property 'requireHttps' must be set to 'false' and allow HTTP (without TLS).");this.createLoginUrl(e,"",null,!1,t).then(this.config.openUri).catch(function(e){console.error("Error in initAuthorizationCodeFlow"),console.error(e)})}},{key:"createChallangeVerifierPairForPKCE",value:function(){return Object(tslib__WEBPACK_IMPORTED_MODULE_3__.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.crypto){e.next=2;break}throw new Error("PKCE support for code flow needs a CryptoHander. Did you import the OAuthModule using forRoot() ?");case 2:return e.next=4,this.createNonce();case 4:return t=e.sent,e.t0=base64UrlEncode,e.next=8,this.crypto.calcHash(t,"sha-256");case 8:return e.t1=e.sent,e.t2=(0,e.t0)(e.t1),e.t3=t,e.abrupt("return",[e.t2,e.t3]);case 12:case"end":return e.stop()}},e,this)}))}},{key:"extractRecognizedCustomParameters",value:function(e){var t=new Map;return this.config.customTokenParameters?(this.config.customTokenParameters.forEach(function(n){e[n]&&t.set(n,JSON.stringify(e[n]))}),t):t}},{key:"revokeTokenAndLogout",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.revocationEndpoint,r=this.getAccessToken(),a=this.getRefreshToken();if(r){var o=new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.f,s=(new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__.e).set("Content-Type","application/x-www-form-urlencoded");if(this.useHttpBasicAuth){var l=btoa("".concat(this.clientId,":").concat(this.dummyClientSecret));s=s.set("Authorization","Basic "+l)}if(this.useHttpBasicAuth||(o=o.set("client_id",this.clientId)),!this.useHttpBasicAuth&&this.dummyClientSecret&&(o=o.set("client_secret",this.dummyClientSecret)),this.customQueryParams){var c,u=_createForOfIteratorHelper(Object.getOwnPropertyNames(this.customQueryParams));try{for(u.s();!(c=u.n()).done;){var d=c.value;o=o.set(d,this.customQueryParams[d])}}
1catch(err){u.e(err)}finally{u.f()}}return new Promise(function(l,c){var u,d;if(r){var h=o.set("token",r).set("token_type_hint","access_token");u=e.http.post(i,h,{headers:s})}else u=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(null);if(a){var f=o.set("token",a).set("token_type_hint","refresh_token");d=e.http.post(i,f,{headers:s})}else d=Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(null);n&&(u=u.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(function(e){return 0===e.status?Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(null):Object(rxjs__WEBPACK_IMPORTED_MODULE_8__.a)(e)})),d=d.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(function(e){return 0===e.status?Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(null):Object(rxjs__WEBPACK_IMPORTED_MODULE_8__.a)(e)}))),Object(rxjs__WEBPACK_IMPORTED_MODULE_9__.b)([u,d]).subscribe(function(n){e.logOut(t),l(n),e.logger.info("Token successfully revoked")},function(t){e.logger.error("Error revoking token",t),e.eventsSubject.next(new OAuthErrorEvent("token_revoke_error",t)),c(t)})})}}}]),n}(AuthConfig);return e.\u0275fac=function(t){return new(t||e)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(_angular_core__WEBPACK_IMPORTED_MODULE_0__.J),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.b),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(OAuthStorage,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(ValidationHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(AuthConfig,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(UrlHelperService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(OAuthLogger),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(HashHandler,8),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(_angular_common__WEBPACK_IMPORTED_MODULE_1__.d))},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb({token:e,factory:e.\u0275fac}),e}(),OAuthModuleConfig=function e(){_classCallCheck(this,e)},OAuthResourceServerConfig=function e(){_classCallCheck(this,e)},OAuthResourceServerErrorHandler=function e(){_classCallCheck(this,e)},OAuthNoopResourceServerErrorHandler=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"handleError",value:function(e){return Object(rxjs__WEBPACK_IMPORTED_MODULE_8__.a)(e)}}]),e}(),DefaultOAuthInterceptor=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this.authStorage=t,this.oAuthService=n,this.errorHandler=i,this.moduleConfig=r}return _createClass(e,[{key:"checkUrl",value:function(e){return this.moduleConfig.resourceServer.customUrlValidation?this.moduleConfig.resourceServer.customUrlValidation(e):!this.moduleConfig.resourceServer.allowedUrls||!!this.moduleConfig.resourceServer.allowedUrls.find(function(t){return e.startsWith(t)})}},{key:"intercept",value:function(e,t){var n=this,i=e.url.toLowerCase();return this.moduleConfig&&this.moduleConfig.resourceServer&&this.checkUrl(i)?this.moduleConfig.resourceServer.sendAccessToken?Object(rxjs__WEBPACK_IMPORTED_MODULE_10__.a)(Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(this.oAuthService.getAccessToken()).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return!!e})),this.oAuthService.events.pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_11__.a)(function(e){return"token_received"===e.type}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_19__.a)(this.oAuthService.waitForTokenInMsec||0),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(function(e){return Object(rxjs__WEBPACK_IMPORTED_MODULE_5__.a)(null)}),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.a)(function(e){return n.oAuthService.getAccessToken()}))).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.a)(1),Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.a)(function(i){if(i){var r=e.headers.set("Authorization","Bearer "+i);e=e.clone({headers:r})}return t.handle(e).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(function(e){return n.errorHandler.handleError(e)}))})):t.handle(e).pipe(Object(rxjs_operators__WEBPACK_IMPORTED_MODULE_18__.a)(function(e){return n.errorHandler.handleError(e)})):t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(OAuthStorage),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(OAuthService),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(OAuthResourceServerErrorHandler),_angular_core__WEBPACK_IMPORTED_MODULE_0__.qc(OAuthModuleConfig,8))},e.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Zb({token:e,factory:e.\u0275fac}),e}
1(),NullValidationHandler=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateSignature",value:function(e){return Promise.resolve(null)}},{key:"validateAtHash",value:function(e){return Promise.resolve(!0)}}]),e}();function createDefaultLogger(){return console}function createDefaultStorage(){return"undefined"!=typeof sessionStorage?sessionStorage:new MemoryStorage}var OAuthModule=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:NullValidationHandler;return{ngModule:e,providers:[OAuthService,UrlHelperService,{provide:OAuthLogger,useFactory:createDefaultLogger},{provide:OAuthStorage,useFactory:createDefaultStorage},{provide:ValidationHandler,useClass:n},{provide:HashHandler,useClass:DefaultHashHandler},{provide:OAuthResourceServerErrorHandler,useClass:OAuthNoopResourceServerErrorHandler},{provide:OAuthModuleConfig,useValue:t},{provide:_angular_common_http__WEBPACK_IMPORTED_MODULE_2__.a,useClass:DefaultOAuthInterceptor,multi:!0}]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.bc({type:e}),e.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.ac({imports:[[_angular_common__WEBPACK_IMPORTED_MODULE_1__.c]]}),e}(),err="PLEASE READ THIS CAREFULLY:\n\nBeginning with angular-oauth2-oidc version 9, the JwksValidationHandler\nhas been moved to an library of its own. If you need it for implementing\nOAuth2/OIDC **implicit flow**, please install it using npm:\n\n npm i angular-oauth2-oidc-jwks --save\n\nAfter that, you can import it into your application:\n\n import { JwksValidationHandler } from 'angular-oauth2-oidc-jwks';\n\nPlease note, that this dependency is not needed for the **code flow**,\nwhich is nowadays the **recommented** one for single page applications.\nThis also results in smaller bundle sizes.\n",JwksValidationHandler=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),e=t.call(this),console.error(err),e}return n}(NullValidationHandler),AUTH_CONFIG=new _angular_core__WEBPACK_IMPORTED_MODULE_0__.y("AUTH_CONFIG")}).call(this,__webpack_require__("3UD+")(module))},Lhse:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},Loxo:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(n("wd/R"))},"MO+k":function(e,t,n){e.exports=function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
vendor: 13,209 bytes, line 1
1ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},n=function(e,n){return function(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[t[i]]=i);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var a in r)if(r.hasOwnProperty(a)){if(!("channels"in r[a]))throw new Error("missing channels property: "+a);if(!("labels"in r[a]))throw new Error("missing channel labels property: "+a);if(r[a].labels.length!==r[a].channels)throw new Error("channel and label counts mismatch: "+a);var o=r[a].channels,s=r[a].labels;delete r[a].channels,delete r[a].labels,Object.defineProperty(r[a],"channels",{value:o}),Object.defineProperty(r[a],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,i=e[0]/255,r=e[1]/255,a=e[2]/255,o=Math.min(i,r,a),s=Math.max(i,r,a),l=s-o;return s===o?t=0:i===s?t=(r-a)/l:r===s?t=2+(a-i)/l:a===s&&(t=4+(i-r)/l),(t=Math.min(60*t,360))<0&&(t+=360),n=(o+s)/2,[t,100*(s===o?0:n<=.5?l/(s+o):l/(2-s-o)),100*n]},r.rgb.hsv=function(e){var t,n,i,r,a,o=e[0]/255,s=e[1]/255,l=e[2]/255,c=Math.max(o,s,l),u=c-Math.min(o,s,l),d=function(e){return(c-e)/6/u+.5};return 0===u?r=a=0:(a=u/c,t=d(o),n=d(s),i=d(l),o===c?r=i-n:s===c?r=1/3+t-i:l===c&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*a,100*c]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-i,1-r)))/(1-t)||0),100*((1-i-t)/(1-t)||0),100*((1-r-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var i=n[e];if(i)return i;var r,a,o,s=1/0;for(var l in t)if(t.hasOwnProperty(l)){var c=(a=e,o=t[l],Math.pow(a[0]-o[0],2)+Math.pow(a[1]-o[1],2)+Math.pow(a[2]-o[2],2));c<s&&(s=c,r=l)}return r},r.keyword.rgb=function(e){return t[e]},r.rgb.xyz=function(e){var t=e[0]/255,n=e[1]/255,i=e[2]/255;return[100*(.4124*(t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],a=t[2];return i/=100,a/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(a=a>.008856?Math.pow(a,1/3):7.787*a+16/116))]},r.hsl.rgb=function(e){var t,n,i,r,a,o=e[0]/360,s=e[1]/100,l=e[2]/100;if(0===s)return[a=255*l,a,a];t=2*l-(n=l<.5?l*(1+s):l+s-l*s),r=[0,0,0];for(var c=0;c<3;c++)(i=o+1/3*-(c-1))<0&&i++,i>1&&i--,r[c]=255*(a=6*i<1?t+6*(n-t)*i:2*i<1?n:3*i<2?t+(n-t)*(2/3-i)*6:t);return r},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,i=e[2]/100,r=n,a=Math.max(i,.01);return n*=(i*=2)<=1?i:2-i,r*=a<=1?a:2-a,[t,100*(0===i?2*r/(a+r):2*n/(i+n)),(i+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,i=e[2]/100,r=Math.floor(t)%6,a=t-Math.floor(t),o=255*i*(1-n),s=255*i*(1-n*a),l=255*i*(1-n*(1-a));switch(i*=255,r){case 0:return[i,l,o];case 1:return[s,i,o];case 2:return[o,i,l];case 3:return[o,s,i];case 4:return[l,o,i];case 5:return[i,o,s]}},r.hsv.hsl=function(e){var t,n,i,r=e[0],a=e[1]/100,o=e[2]/100,s=Math.max(o,.01);return i=(2-a)*o,n=a*s,[r,100*(n=(n/=(t=(2-a)*s)<=1?t:2-t)||0),100*(i/=2)]},r.hwb.rgb=function(e){var t,n,i,r,a,o,s,l=e[0]/360,c=e[1]/100,u=e[2]/100,d=c+u;switch(d>1&&(c/=d,u/=d),i=6*l-(t=Math.floor(6*l)),1&t&&(i=1-i),r=c+i*((n=1-u)-c),t){default:case 6:case 0:a=n,o=r,s=c;break;case 1:a=r,o=n,s=c;break;case 2:a=c,o=n,s=r;break;case 3:a=c,o=r,s=n;break;case 4:a=r,o=c,s=n;break;case 5:a=n,o=c,s=r}return[255*a,255*o,255*s]},r.cmyk.rgb=function(e){var t=e[1]/100,n=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,e[0]/100*(1-i)+i)),255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i))]},r.xyz.rgb=function(e){var t,n,i,r=e[0]/100,a=e[1]/100,o=e[2]/100;return n=-.9689*r+1.8758*a+.0415*o,i=.0557*r+-.204*a+1.057*o,t=(t=3.2406*r+-1.5372*a+-.4986*o)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:12.92*i,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(i=Math.min(Math.max(0,i),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],i=e[2];return n/=100,i/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},r.lab.xyz=function(e){var t,n,i;t=e[1]/500+(n=(e[0]+16)/116),i=n-e[2]/200;var r=Math.pow(n,3),a=Math.pow(t,3),o=Math.pow(i,3);return n=r>.008856?r:(n-16/116)/7.787,t=a>.008856?a:(t-16/116)/7.787,i=o>.008856?o:(i-16/116)/7.787,[t*=95.047,n*=100,i*=108.883]},r.lab.lch=function(e){var t,n=e[0],i=e[1],r=e[2];return(t=360*Math.atan2(r,i)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(i*i+r*r),t]},r.lch.lab=function(e){var t,n=e[1];return t=e[2]/360*2*Math.PI,[e[0],n*Math.cos(t),n*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],a=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(a=Math.round(a/50)))return 30;var o=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===a&&(o+=60),o},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],i=e[2];return t===n&&n===i?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map(function(e){return e+e}).join(""));var i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},r.rgb.hcg=function(e){var t,n=e[0]/255,i=e[1]/255,r=e[2]/255,a=Math.max(Math.max(n,i),r),o=Math.min(Math.min(n,i),r),s=a-o;return t=s<=0?0:a===n?(i-r)/s%6:a===i?2+(r-n)/s:4+(n-i)/s+4,t/=6,[360*(t%=1),100*s,100*(s<1?o/(1-s):0)]},r.hsl.hcg=function(e){var t,n=e[1]/100,i=e[2]/100,r=0;return(t=i<.5?2*n*i:2*n*(1-i))<1&&(r=(i-.5*t)/(1-t)),[e[0],100*t,100*r]},r.hsv.hcg=function(e){var t=e[2]/100,n=e[1]/100*t,i=0;return n<1&&(i=(t-n)/(1-n)),[e[0],100*n,100*i]},r.hcg.rgb=function(e){var t=e[1]/100,n=e[2]/100;if(0===t)return[255*n,255*n,255*n];var i,r=[0,0,0],a=e[0]/360%1*6,o=a%1,s=1-o;switch(Math.floor(a)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return[255*(t*r[0]+(i=(1-t)*n)),255*(t*r[1]+i),255*(t*r[2]+i)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=1-e[2]/100,n=t-e[1]/100,i=0;return n<1&&(i=(t-n)/(1-n)),[e[0],100*n,100*i]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}(n={exports:{}}),n.exports}();function i(e,t){return function(n){return t(e(n))}}function r(e,t){for(var r=[t[e].parent,e],a=n[t[e].parent][e],o=t[e].parent;t[o].parent;)r.unshift(t[o].parent),a=i(n[t[o].parent][o],a),o=t[o].parent;return a.conversion=r,a}var a={};Object.keys(n).forEach(function(e){a[e]={},Object.defineProperty(a[e],"channels",{value:n[e].channels}),Object.defineProperty(a[e],"labels",{value:n[e].labels});var t=function(e){for(var t=function(e){var t=function(){for(var e={},t=Object.keys(n),i=t.length,r=0;r<i;r++)e[t[r]]={distance:-1,parent:null};return e}(),i=[e];for(t[e].distance=0;i.length;)for(var r=i.pop(),a=Object.keys(n[r]),o=a.length,s=0;s<o;s++){var l=a[s],c=t[l];-1===c.distance&&(c.distance=t[r].distance+1,c.parent=r,i.unshift(l))}return t}(e),i={},a=Object.keys(t),o=a.length,s=0;s<o;s++){var l=a[s];null!==t[l].parent&&(i[l]=r(l,t))}return i}(e);Object.keys(t).forEach(function(n){var i=t[n];a[e][n]=function(e){var t=function(t){if(null==t)return t;arguments.length>1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var i=n.length,r=0;r<i;r++)n[r]=Math.round(n[r]);return n};return"conversion"in e&&(t.conversion=e.conversion),t}(i),a[e][n].raw=function(e){var t=function(t){return null==t?t:(arguments.length>1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(i)})});var o=a,s={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],ol
vendor: 5,274 bytes, line 1
1ive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},l={getRgba:c,getHsla:u,getRgb:function(e){var t=c(e);return t&&t.slice(0,3)},getHsl:function(e){var t=u(e);return t&&t.slice(0,3)},getHwb:d,getAlpha:function(e){var t=c(e);return t||(t=u(e))||(t=d(e))?t[3]:void 0},hexString:function(e,t){return t=void 0!==t&&3===e.length?t:e[3],"#"+g(e[0])+g(e[1])+g(e[2])+(t>=0&&t<1?g(Math.round(255*t)):"")},rgbString:function(e,t){return t<1||e[3]&&e[3]<1?h(e,t):"rgb("+e[0]+", "+e[1]+", "+e[2]+")"},rgbaString:h,percentString:function(e,t){return t<1||e[3]&&e[3]<1?f(e,t):"rgb("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%)"},percentaString:f,hslString:function(e,t){return t<1||e[3]&&e[3]<1?p(e,t):"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)"},hslaString:p,hwbString:function(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"},keyword:function(e){return v[e.slice(0,3)]}};function c(e){if(e){var t=[0,0,0],n=1,i=e.match(/^#([a-fA-F0-9]{3,4})$/i),r="";if(i){r=(i=i[1])[3];for(var a=0;a<t.length;a++)t[a]=parseInt(i[a]+i[a],16);r&&(n=Math.round(parseInt(r+r,16)/255*100)/100)}else if(i=e.match(/^#([a-fA-F0-9]{6}([a-fA-F0-9]{2})?)$/i)){for(r=i[2],i=i[1],a=0;a<t.length;a++)t[a]=parseInt(i.slice(2*a,2*a+2),16);r&&(n=Math.round(parseInt(r,16)/255*100)/100)}else if(i=e.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<t.length;a++)t[a]=parseInt(i[a+1]);n=parseFloat(i[4])}else if(i=e.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(a=0;a<t.length;a++)t[a]=Math.round(2.55*parseFloat(i[a+1]));n=parseFloat(i[4])}else if(i=e.match(/(\w+)/)){if("transparent"==i[1])return[0,0,0,0];if(!(t=s[i[1]]))return}for(a=0;a<t.length;a++)t[a]=m(t[a],0,255);return n=n||0==n?m(n,0,1):1,t[3]=n,t}}function u(e){if(e){var t=e.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[m(parseInt(t[1]),0,360),m(parseFloat(t[2]),0,100),m(parseFloat(t[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function d(e){if(e){var t=e.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(t){var n=parseFloat(t[4]);return[m(parseInt(t[1]),0,360),m(parseFloat(t[2]),0,100),m(parseFloat(t[3]),0,100),m(isNaN(n)?1:n,0,1)]}}}function h(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"rgba("+e[0]+", "+e[1]+", "+e[2]+", "+t+")"}function f(e,t){return"rgba("+Math.round(e[0]/255*100)+"%, "+Math.round(e[1]/255*100)+"%, "+Math.round(e[2]/255*100)+"%, "+(t||e[3]||1)+")"}function p(e,t){return void 0===t&&(t=void 0!==e[3]?e[3]:1),"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+t+")"}function m(e,t,n){return Math.min(Math.max(t,e),n)}function g(e){var t=e.toString(16).toUpperCase();return t.length<2?"0"+t:t}var v={};for(var y in s)v[s[y]]=y;var b=function e(t){return t instanceof e?t:this instanceof e?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(n=l.getRgba(t))?this.setValues("rgb",n):(n=l.getHsla(t))?this.setValues("hsl",n):(n=l.getHwb(t))&&this.setValues("hwb",n):"object"==typeof t&&(void 0!==(n=t).r||void 0!==n.red?this.setValues("rgb",n):void 0!==n.l||void 0!==n.lightness?this.setValues("hsl",n):void 0!==n.v||void 0!==n.value?this.setValues("hsv",n):void 0!==n.w||void 0!==n.whiteness?this.setValues("hwb",n):void 0===n.c&&void 0===n.cyan||this.setValues("cmyk",n)))):new e(t);var n};(b.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var e=this.values;return 1!==e.alpha?e.hwb.concat([e.alpha]):e.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var e=this.values;return e.rgb.concat([e.alpha])},hslaArray:function(){var e=this.values;return e.hsl.concat([e.alpha])}
vendor: 4,783 bytes, line 1
1,alpha:function(e){return void 0===e?this.values.alpha:(this.setValues("alpha",e),this)},red:function(e){return this.setChannel("rgb",0,e)},green:function(e){return this.setChannel("rgb",1,e)},blue:function(e){return this.setChannel("rgb",2,e)},hue:function(e){return e&&(e=(e%=360)<0?360+e:e),this.setChannel("hsl",0,e)},saturation:function(e){return this.setChannel("hsl",1,e)},lightness:function(e){return this.setChannel("hsl",2,e)},saturationv:function(e){return this.setChannel("hsv",1,e)},whiteness:function(e){return this.setChannel("hwb",1,e)},blackness:function(e){return this.setChannel("hwb",2,e)},value:function(e){return this.setChannel("hsv",2,e)},cyan:function(e){return this.setChannel("cmyk",0,e)},magenta:function(e){return this.setChannel("cmyk",1,e)},yellow:function(e){return this.setChannel("cmyk",2,e)},black:function(e){return this.setChannel("cmyk",3,e)},hexString:function(){return l.hexString(this.values.rgb)},rgbString:function(){return l.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return l.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return l.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return l.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return l.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return l.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return l.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var e=this.values.rgb;return e[0]<<16|e[1]<<8|e[2]},luminosity:function(){for(var e=this.values.rgb,t=[],n=0;n<e.length;n++){var i=e[n]/255;t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(e){var t=this.luminosity(),n=e.luminosity();return t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)},level:function(e){var t=this.contrast(e);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var e=this.values.rgb;return(299*e[0]+587*e[1]+114*e[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var e=[],t=0;t<3;t++)e[t]=255-this.values.rgb[t];return this.setValues("rgb",e),this},lighten:function(e){var t=this.values.hsl;return t[2]+=t[2]*e,this.setValues("hsl",t),this},darken:function(e){var t=this.values.hsl;return t[2]-=t[2]*e,this.setValues("hsl",t),this},saturate:function(e){var t=this.values.hsl;return t[1]+=t[1]*e,this.setValues("hsl",t),this},desaturate:function(e){var t=this.values.hsl;return t[1]-=t[1]*e,this.setValues("hsl",t),this},whiten:function(e){var t=this.values.hwb;return t[1]+=t[1]*e,this.setValues("hwb",t),this},blacken:function(e){var t=this.values.hwb;return t[2]+=t[2]*e,this.setValues("hwb",t),this},greyscale:function(){var e=this.values.rgb,t=.3*e[0]+.59*e[1]+.11*e[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(e){var t=this.values.alpha;return this.setValues("alpha",t-t*e),this},opaquer:function(e){var t=this.values.alpha;return this.setValues("alpha",t+t*e),this},rotate:function(e){var t=this.values.hsl,n=(t[0]+e)%360;return t[0]=n<0?360+n:n,this.setValues("hsl",t),this},mix:function(e,t){var n=e,i=void 0===t?.5:t,r=2*i-1,a=this.alpha()-n.alpha(),o=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,s=1-o;return this.rgb(o*this.red()+s*n.red(),o*this.green()+s*n.green(),o*this.blue()+s*n.blue()).alpha(this.alpha()*i+n.alpha()*(1-i))},toJSON:function(){return this.rgb()},clone:function(){var e,t,n=new b,i=this.values,r=n.values;for(var a in i)i.hasOwnProperty(a)&&("[object Array]"===(t={}.toString.call(e=i[a]))?r[a]=e.slice(0):"[object Number]"===t?r[a]=e:console.error("unexpected color value:",e));return n}}).spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},b.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},b.prototype.getValues=function(e){for(var t=this.values,n={},i=0;i<e.length;i++)n[e.charAt(i)]=t[e][i];return 1!==t.alpha&&(n.a=t.alpha),n},b.prototype.setValues=function(e,t){var n,i,r=this.values,a=this.spaces,s=this.maxes,l=1;if(this.valid=!0,"alpha"===e)l=t;else if(t.length)r[e]=t.slice(0,e.length),l=t[e.length];else if(void 0!==t[e.charAt(0)]){for(n=0;n<e.length;n++)r[e][n]=t[e.charAt(n)];l=t.a}else if(void 0!==t[a[e][0]]){var c=a[e];for(n=0;n<e.length;n++)r[e][n]=t[c[n]];l=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===l?r.alpha:l)),"alpha"===e)return!1;for(n=0;n<e.length;n++)i=Math.max(0,Math.min(s[e][n],r[e][n])),r[e][n]=Math.round(i);for(var u in a)u!==e&&(r[u]=o[e][u](r[e]));return!0},b.prototype.setSpace=function(e,t){var n=t[0];return void 0===n?this.getValues(e):("number"==typeof n&&(n=Array.prototype.slice.call(t)),this.setValues(e,n
vendor: 5,419 bytes, line 1
1),this)},b.prototype.setChannel=function(e,t,n){var i=this.values[e];return void 0===n?i[t]:(n===i[t]||(i[t]=n,this.setValues(e,i)),this)},"undefined"!=typeof window&&(window.Color=b);var _=b;function w(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}var k,C={noop:function(){},uid:(k=0,function(){return k++}),isNullOrUndef:function(e){return null==e},isArray:function(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)},isObject:function(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)},isFinite:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){return("number"==typeof e||e instanceof Number)&&isFinite(e)}),valueOrDefault:function(e,t){return void 0===e?t:e},valueAtIndexOrDefault:function(e,t,n){return C.valueOrDefault(C.isArray(e)?e[t]:e,n)},callback:function(e,t,n){if(e&&"function"==typeof e.call)return e.apply(n,t)},each:function(e,t,n,i){var r,a,o;if(C.isArray(e))if(a=e.length,i)for(r=a-1;r>=0;r--)t.call(n,e[r],r);else for(r=0;r<a;r++)t.call(n,e[r],r);else if(C.isObject(e))for(a=(o=Object.keys(e)).length,r=0;r<a;r++)t.call(n,e[o[r]],o[r])},arrayEquals:function(e,t){var n,i,r,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(a=t[n],(r=e[n])instanceof Array&&a instanceof Array){if(!C.arrayEquals(r,a))return!1}else if(r!==a)return!1;return!0},clone:function(e){if(C.isArray(e))return e.map(C.clone);if(C.isObject(e)){for(var t=Object.create(e),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=C.clone(e[n[r]]);return t}return e},_merger:function(e,t,n,i){if(w(e)){var r=t[e],a=n[e];C.isObject(r)&&C.isObject(a)?C.merge(r,a,i):t[e]=C.clone(a)}},_mergerIf:function(e,t,n){if(w(e)){var i=t[e],r=n[e];C.isObject(i)&&C.isObject(r)?C.mergeIf(i,r):t.hasOwnProperty(e)||(t[e]=C.clone(r))}},merge:function(e,t,n){var i,r,a,o,s,l=C.isArray(t)?t:[t],c=l.length;if(!C.isObject(e))return e;for(i=(n=n||{}).merger||C._merger,r=0;r<c;++r)if(C.isObject(t=l[r]))for(s=0,o=(a=Object.keys(t)).length;s<o;++s)i(a[s],e,t,n);return e},mergeIf:function(e,t){return C.merge(e,t,{merger:C._mergerIf})},extend:Object.assign||function(e){return C.merge(e,[].slice.call(arguments,1),{merger:function(e,t,n){t[e]=n[e]}})},inherits:function(e){var t=this,n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return t.apply(this,arguments)},i=function(){this.constructor=n};return i.prototype=t.prototype,n.prototype=new i,n.extend=C.inherits,e&&C.extend(n.prototype,e),n.__super__=t.prototype,n},_deprecated:function(e,t,n,i){void 0!==t&&console.warn(e+': "'+n+'" is deprecated. Please use "'+i+'" instead')}},x=C;C.callCallback=C.callback,C.indexOf=function(e,t,n){return Array.prototype.indexOf.call(e,t,n)},C.getValueOrDefault=C.valueOrDefault,C.getValueAtIndexOrDefault=C.valueAtIndexOrDefault;var S={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*(Math.PI/2))},easeOutSine:function(e){return Math.sin(e*(Math.PI/2))},easeInOutSine:function(e){return-.5*(Math.cos(Math.PI*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return 0===e?0:1===e?1:(e/=.5)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*--e))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),-i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n))},easeOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:1===e?1:(n||(n=.3),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},easeInOutElastic:function(e){var t=1.70158,n=0,i=1;return 0===e?0:2==(e/=.5)?1:(n||(n=.45),i<1?(i=1,t=n/4):t=n/(2*Math.PI)*Math.asin(1/i),e<1?i*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*-.5:i*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-S.easeOutBounce(1-e)},easeOutBounce:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*S.easeInBounce(2*e):.5*S.easeOutBounce(2*e-1)+.5}},M={effects:S};
vendor: 29,683 bytes, line 1
1x.easingEffects=S;var D=Math.PI,T=D/180,E=2*D,A=D/2,P=D/4,L=2*D/3,O={clear:function(e){e.ctx.clearRect(0,0,e.width,e.height)},roundedRect:function(e,t,n,i,r,a){if(a){var o=Math.min(a,r/2,i/2),s=t+o,l=n+o,c=t+i-o,u=n+r-o;e.moveTo(t,l),s<c&&l<u?(e.arc(s,l,o,-D,-A),e.arc(c,l,o,-A,0),e.arc(c,u,o,0,A),e.arc(s,u,o,A,D)):s<c?(e.moveTo(s,n),e.arc(c,l,o,-A,A),e.arc(s,l,o,A,D+A)):l<u?(e.arc(s,l,o,-D,0),e.arc(s,u,o,0,D)):e.arc(s,l,o,-D,D),e.closePath(),e.moveTo(t,n)}else e.rect(t,n,i,r)},drawPoint:function(e,t,n,i,r,a){var o,s,l,c,u,d=(a||0)*T;if(t&&"object"==typeof t&&("[object HTMLImageElement]"===(o=t.toString())||"[object HTMLCanvasElement]"===o))return e.save(),e.translate(i,r),e.rotate(d),e.drawImage(t,-t.width/2,-t.height/2,t.width,t.height),void e.restore();if(!(isNaN(n)||n<=0)){switch(e.beginPath(),t){default:e.arc(i,r,n,0,E),e.closePath();break;case"triangle":e.moveTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=L,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),d+=L,e.lineTo(i+Math.sin(d)*n,r-Math.cos(d)*n),e.closePath();break;case"rectRounded":c=n-(u=.516*n),s=Math.cos(d+P)*c,l=Math.sin(d+P)*c,e.arc(i-s,r-l,u,d-D,d-A),e.arc(i+l,r-s,u,d-A,d),e.arc(i+s,r+l,u,d,d+A),e.arc(i-l,r+s,u,d+A,d+D),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*n,e.rect(i-c,r-c,2*c,2*c);break}d+=P;case"rectRot":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+l,r-s),e.lineTo(i+s,r+l),e.lineTo(i-l,r+s),e.closePath();break;case"crossRot":d+=P;case"cross":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"star":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s),d+=P,s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l),e.moveTo(i+l,r-s),e.lineTo(i-l,r+s);break;case"line":s=Math.cos(d)*n,l=Math.sin(d)*n,e.moveTo(i-s,r-l),e.lineTo(i+s,r+l);break;case"dash":e.moveTo(i,r),e.lineTo(i+Math.cos(d)*n,r+Math.sin(d)*n)}e.fill(),e.stroke()}},_isPointInArea:function(e,t){return e.x>t.left-1e-6&&e.x<t.right+1e-6&&e.y>t.top-1e-6&&e.y<t.bottom+1e-6},clipArea:function(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()},unclipArea:function(e){e.restore()},lineTo:function(e,t,n,i){var r=n.steppedLine;if(r){if("middle"===r){var a=(t.x+n.x)/2;e.lineTo(a,i?n.y:t.y),e.lineTo(a,i?t.y:n.y)}else"after"===r&&!i||"after"!==r&&i?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}else n.tension?e.bezierCurveTo(i?t.controlPointPreviousX:t.controlPointNextX,i?t.controlPointPreviousY:t.controlPointNextY,i?n.controlPointNextX:n.controlPointPreviousX,i?n.controlPointNextY:n.controlPointPreviousY,n.x,n.y):e.lineTo(n.x,n.y)}},I=O;x.clear=O.clear,x.drawRoundedRectangle=function(e){e.beginPath(),O.roundedRect.apply(O,arguments)};var H={_set:function(e,t){return x.merge(this[e]||(this[e]={}),t)}};H._set("global",{defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",defaultLineHeight:1.2,showLines:!0});var j=H,F=x.valueOrDefault,R={toLineHeight:function(e,t){var n=(""+e).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e},toPadding:function(e){var t,n,i,r;return x.isObject(e)?(t=+e.top||0,n=+e.right||0,i=+e.bottom||0,r=+e.left||0):t=n=i=r=+e||0,{top:t,right:n,bottom:i,left:r,height:t+i,width:r+n}},_parseFont:function(e){var t=j.global,n=F(e.fontSize,t.defaultFontSize),i={family:F(e.fontFamily,t.defaultFontFamily),lineHeight:x.options.toLineHeight(F(e.lineHeight,t.defaultLineHeight),n),size:n,style:F(e.fontStyle,t.defaultFontStyle),weight:null,string:""};return i.string=function(e){return!e||x.isNullOrUndef(e.size)||x.isNullOrUndef(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i},resolve:function(e,t,n,i){var r,a,o,s=!0;for(r=0,a=e.length;r<a;++r)if(void 0!==(o=e[r])&&(void 0!==t&&"function"==typeof o&&(o=o(t),s=!1),void 0!==n&&x.isArray(o)&&(o=o[n],s=!1),void 0!==o))return i&&!s&&(i.cacheable=!1),o}},N={_factorize:function(e){var t,n=[],i=Math.sqrt(e);for(t=1;t<i;t++)e%t==0&&(n.push(t),n.push(e/t));return i===(0|i)&&n.push(i),n.sort(function(e,t){return e-t}).pop(),n},log10:Math.log10||function(e){var t=Math.log(e)*Math.LOG10E,n=Math.round(t);return e===Math.pow(10,n)?n:t}},B=N;x.log10=N.log10;var Y=x,z=I,V=R,U=B;Y.easing=M,Y.canvas=z,Y.options=V,Y.math=U,Y.rtl={getRtlAdapter:function(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}},overrideTextDirection:function(e,t){var n,i;"ltr"!==t&&"rtl"!==t||(i=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=i)},restoreTextDirection:function(e){var t=e.prevTextDirection;void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}};var $=function(e){Y.extend(this,e),this.initialize.apply(this,arguments)};Y.extend($.prototype,{_type:void 0,initialize:function(){this.hidden=!1},pivot:function(){var e=this;return e._view||(e._view=Y.extend({},e._model)),e._start={},e},transition:function(e){var t=this,n=t._model,i=t._start,r=t._view;return n&&1!==e?(r||(r=t._view={}),i||(i=t._start={}),function(e,t,n,i){var r,a,o,s,l,c,u,d,h,f=Object.keys(n);for(r=0,a=f.length;r<a;++r)if(c=n[o=f[r]],t.hasOwnProperty(o)||(t[o]=c),(s=t[o])!==c&&"_"!==o[0]){if(e.hasOwnProperty(o)||(e[o]=s),(u=typeof c)==typeof(l=e[o]))if("string"===u){if((d=_(l)).valid&&(h=_(c)).valid){t[o]=h.mix(d,i).rgbString();continue}}else if(Y.isFinite(l)&&Y.isFinite(c)){t[o]=l+(c-l)*i;continue}t[o]=c}}(i,r,n,e),t):(t._view=Y.extend({},n),t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return Y.isNumber(this._model.x)&&Y.isNumber(this._model.y)}}),$.extend=Y.inherits;var W=$,q=W.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),G=q;Object.defineProperty(q.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(q.prototype,"chartInstance",{get:function(){return this.chart},set:function(e){this.chart=e}}),j._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:Y.noop,onComplete:Y.noop}});var X={animations:[],request:null,addAnimation:function(e,t,n,i){var r,a,o=this.animations;for(t.chart=e,t.startTime=Date.now(),t.duration=n,i||(e.animating=!0),r=0,a=o.length;r<a;++r)if(o[r].chart===e)return void(o[r]=t);o.push(t),1===o.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=Y.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var e=this;null===e.request&&(e.request=Y.requestAnimFrame.call(window,function(){e.request=null,e.startDigest()}))},startDigest:function(){this.advance(),this.animations.length>0&&this.requestAnimationFrame()},advance:function(){for(var e,t,n,i,r=this.animations,a=0;a<r.length;)t=(e=r[a]).chart,n=e.numSteps,i=Math.floor((Date.now()-e.startTime)/e.duration*n)+1,e.currentStep=Math.min(i,n),Y.callback(e.render,[t,e],t),Y.callback(e.onAnimationProgress,[e],t),e.currentStep>=n?(Y.callback(e.onAnimationComplete,[e],t),t.animating=!1,r.splice(a,1)):++a}},Q=Y.options.resolve,K=["push","pop","shift","splice","unshift"];function Z(e,t){var n=e._chartjs;if(n){var i=n.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||(K.forEach(function(t){delete e[t]}),delete e._chartjs)}}var J=function(e,t){this.initialize(e,t)};Y.extend(J.prototype,{datasetElementType:null,dataElementType:null,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth"],_dataElementOptions:["backgroundColor","borderColor","borderWidth","pointStyle"],initialize:function(e,t){var n=this;n.chart=e,n.index=t,n.linkScales(),n.addElements(),n._type=n.getMeta().type},updateIndex:function(e){this.index=e},linkScales:function(){var e=this.getMeta(),t=this.chart,n=t.scales,i=this.getDataset(),r=t.options.scales;null!==e.xAxisID&&e.xAxisID in n&&!i.xAxisID||(e.xAxisID=i.xAxisID||r.xAxes[0].id),null!==e.yAxisID&&e.yAxisID in n&&!i.yAxisID||(e.yAxisID=i.yAxisID||r.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(e){return this.chart.scales[e]},_getValueScaleId:function(){return this.getMeta().yAxisID},_getIndexScaleId:function(){return this.getMeta().xAxisID},_getValueScale:function(){return this.getScaleForId(this._getValueScaleId())},_getIndexScale:function(){return this.getScaleForId(this._getIndexScaleId())},reset:function(){this._update(!0)},destroy:function(){this._data&&Z(this._data,this)},createMetaDataset:function(){var e=this.datasetElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(e){var t=this.dataElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index,_index:e})},addElements:function(){var e,t,n=this.getMeta(),i=this.getDataset().data||[],r=n.data;for(e=0,t=i.length;e<t;++e)r[e]=r[e]||this.createMetaData(e);n.dataset=n.dataset||this.createMetaDataset()},addElementAndReset:function(e){var t=this.createMetaData(e);this.getMeta().data.splice(e,0,t),this.updateElement(t,e,!0)},buildOrUpdateElements:function(){var e,t,n=this,i=n.getDataset(),r=i.data||(i.data=[]);n._data!==r&&(n._data&&Z(n._data,n),r&&Object.isExtensible(r)&&(t=n,(e=r)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),K.forEach(function(t){var n="onData"+t.charAt(0).toUpperCase()+t.slice(1),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){var t=Array.prototype.slice.call(arguments),r=i.apply(this,t);return Y.each(e._chartjs.listeners,function(e){"function"==typeof e[n]&&e[n].apply(e,t)}),r}})}))),n._data=r),n.resyncElements()},_configure:function(){this._config=Y.merge(Object.create(null),[this.chart.options.datasets[this._type],this.getDataset()],{merger:function(e,t,n){"_meta"!==e&&"data"!==e&&Y._merger(e,t,n)}})},_update:function(e){this._configure(),this._cachedDataOpts=null,this.update(e)},update:Y.noop,transition:function(e){for(var t=this.getMeta(),n=t.data||[],i=n.length,r=0;r<i;++r)n[r].transition(e);t.dataset&&t.dataset.transition(e)},draw:function(){var e=this.getMeta(),t=e.data||[],n=t.length,i=0;for(e.dataset&&e.dataset.draw();i<n;++i)t[i].draw()},getStyle:function(e){var t,n=this.getMeta(),i=n.dataset;return this._configure(),!1!==(t=i&&void 0===e?this._resolveDatasetElementOptions(i||{}):this._resolveDataElementOptions(n.data[e=e||0]||{},e)).fill&&null!==t.fill||(t.backgroundColor=t.borderColor),t},_resolveDatasetElementOptions:function(e,t){var n,i,r,a,o=this,s=o.chart,l=o._config,c=e.custom||{},u=s.options.elements[o.datasetElementType.prototype._type]||{},d=o._datasetElementOptions,h={},f={chart:s,dataset:o.getDataset(),datasetIndex:o.index,hover:t};for(n=0,i=d.length;n<i;++n)r=d[n],a=t?"hover"+r.charAt(0).toUpperCase()+r.slice(1):r,h[r]=Q([c[a],l[a],u[a]],f);return h},_resolveDataElementOptions:function(e,t){var n=this,i=e&&e.custom,r=n._cachedDataOpts;if(r&&!i)return r;var a,o,s,l,c=n.chart,u=n._config,d=c.options.elements[n.dataElementType.prototype._type]||{},h=n._dataElementOptions,f={},p={chart:c,dataIndex:t,dataset:n.getDataset(),datasetIndex:n.index},m={cacheable:!i};if(i=i||{},Y.isArray(h))for(o=0,s=h.length;o<s;++o)f[l=h[o]]=Q([i[l],u[l],d[l]],p,t,m);else for(o=0,s=(a=Object.keys(h)).length;o<s;++o)f[l=a[o]]=Q([i[l],u[h[l]],u[l],d[l]],p,t,m);return m.cacheable&&(n._cachedDataOpts=Object.freeze(f)),f},removeHoverStyle:function(e){Y.merge(e._model,e.$previousStyle||{}),delete e.$previousStyle},setHoverStyle:function(e){var t=this.chart.data.datasets[e._datasetIndex],n=e._index,i=e.custom||{},r=e._model,a=Y.getHoverColor;e.$previousStyle={backgroundColor:r.backgroundColor,borderColor:r.borderColor,borderWidth:r.borderWidth},r.backgroundColor=Q([i.hoverBackgroundColor,t.hoverBackgroundColor,a(r.backgroundColor)],void 0,n),r.borderColor=Q([i.hoverBorderColor,t.hoverBorderColor,a(r.borderColor)],void 0,n),r.borderWidth=Q([i.hoverBorderWidth,t.hoverBorderWidth,r.borderWidth],void 0,n)},_removeDatasetHoverStyle:function(){var e=this.getMeta().dataset;e&&this.removeHoverStyle(e)},_setDatasetHoverStyle:function(){var e,t,n,i,r,a,o=this.getMeta().dataset,s={};if(o){for(a=o._model,r=this._resolveDatasetElementOptions(o,!0),e=0,t=(i=Object.keys(r)).length;e<t;++e)s[n=i[e]]=a[n],a[n]=r[n];o.$previousStyle=s}},resyncElements:function(){var e=this.getMeta(),t=this.getDataset().data,n=e.data.length,i=t.length;i<n?e.data.splice(i,n-i):i>n&&this.insertElements(n,i-n)},insertElements:function(e,t){for(var n=0;n<t;++n)this.addElementAndReset(e+n)},onDataPush:function(){var e=arguments.length;this.insertElements(this.getDataset().data.length-e,e)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(e,t){this.getMeta().data.splice(e,t),this.insertElements(e,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),J.extend=Y.inherits;var ee=J,te=2*Math.PI;function ne(e,t){var n=t.startAngle,i=t.endAngle,r=t.pixelMargin,a=r/t.outerRadius,o=t.x,s=t.y;e.beginPath(),e.arc(o,s,t.outerRadius,n-a,i+a),t.innerRadius>r?e.arc(o,s,t.innerRadius-r,i+(a=r/t.innerRadius),n-a,!0):e.arc(o,s,r,i+Math.PI/2,n-Math.PI/2),e.closePath(),e.clip()}j._set("global",{elements:{arc:{backgroundColor:j.global.defaultColor,borderColor:"#fff",borderWidth:2,borderAlign:"center"}}});var ie=W.extend({_type:"arc",inLabelRange:function(e){var t=this._view;return!!t&&Math.pow(e-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(e,t){var n=this._view;if(n){for(var i=Y.getAngleFromPoint(n,{x:e,y:t}),r=i.angle,a=i.distance,o=n.startAngle,s=n.endAngle;s<o;)s+=te;for(;r>s;)r-=te;for(;r<o;)r+=te;return r>=o&&r<=s&&a>=n.innerRadius&&a<=n.outerRadius}return!1},getCenterPoint:function(){var e=this._view,t=(e.startAngle+e.endAngle)/2,n=(e.innerRadius+e.outerRadius)/2;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},getArea:function(){var e=this._view;return Math.PI*((e.endAngle-e.startAngle)/(2*Math.PI))*(Math.pow(e.outerRadius,2)-Math.pow(e.innerRadius,2))},tooltipPosition:function(){var e=this._view,t=e.startAngle+(e.endAngle-e.startAngle)/2,n=(e.outerRadius-e.innerRadius)/2+e.innerRadius;return{x:e.x+Math.cos(t)*n,y:e.y+Math.sin(t)*n}},draw:function(){var e,t=this._chart.ctx,n=this._view,i="inner"===n.borderAlign?.33:0,r={x:n.x,y:n.y,innerRadius:n.innerRadius,outerRadius:Math.max(n.outerRadius-i,0),pixelMargin:i,startAngle:n.startAngle,endAngle:n.endAngle,fullCircles:Math.floor(n.circumference/te)};if(t.save(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,r.fullCircles){for(r.endAngle=r.startAngle+te,t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),e=0;e<r.fullCircles;++e)t.fill();r.endAngle=r.startAngle+n.circumference%te}t.beginPath(),t.arc(r.x,r.y,r.outerRadius,r.startAngle,r.endAngle),t.arc(r.x,r.y,r.innerRadius,r.endAngle,r.startAngle,!0),t.closePath(),t.fill(),n.borderWidth&&function(e,t,n){var i="inner"===t.borderAlign;i?(e.lineWidth=2*t.borderWidth,e.lineJoin="round"):(e.lineWidth=t.borderWidth,e.lineJoin="bevel"),n.fullCircles&&function(e,t,n,i){var r,a=n.endAngle;for(i&&(n.endAngle=n.startAngle+te,ne(e,n),n.endAngle=a,n.endAngle===n.startAngle&&n.fullCircles&&(n.endAngle+=te,n.fullCircles--)),e.beginPath(),e.arc(n.x,n.y,n.innerRadius,n.startAngle+te,n.startAngle,!0),r=0;r<n.fullCircles;++r)e.stroke();for(e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.startAngle+te),r=0;r<n.fullCircles;++r)e.stroke()}(e,t,n,i),i&&ne(e,n),e.beginPath(),e.arc(n.x,n.y,t.outerRadius,n.startAngle,n.endAngle),e.arc(n.x,n.y,n.innerRadius,n.endAngle,n.startAngle,!0),e.closePath(),e.stroke()}(t,n,r),t.restore()}}),re=Y.valueOrDefault,ae=j.global.defaultColor;j._set("global",{elements:{line:{tension:.4,backgroundColor:ae,borderWidth:3,borderColor:ae,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}});var oe=W.extend({_type:"line",draw:function(){var e,t,n,i=this,r=i._view,a=i._chart.ctx,o=r.spanGaps,s=i._children.slice(),l=j.global,c=l.elements.line,u=-1,d=i._loop;if(s.length){if(i._loop){for(e=0;e<s.length;++e)if(t=Y.previousItem(s,e),!s[e]._view.skip&&t._view.skip){s=s.slice(e).concat(s.slice(0,e)),d=o;break}d&&s.push(s[0])}for(a.save(),a.lineCap=r.borderCapStyle||c.borderCapStyle,a.setLineDash&&a.setLineDash(r.borderDash||c.borderDash),a.lineDashOffset=re(r.borderDashOffset,c.borderDashOffset),a.lineJoin=r.borderJoinStyle||c.borderJoinStyle,a.lineWidth=re(r.borderWidth,c.borderWidth),a.strokeStyle=r.borderColor||l.defaultColor,a.beginPath(),(n=s[0]._view).skip||(a.moveTo(n.x,n.y),u=0),e=1;e<s.length;++e)n=s[e]._view,t=-1===u?Y.previousItem(s,e):s[u],n.skip||(u!==e-1&&!o||-1===u?a.moveTo(n.x,n.y):Y.canvas.lineTo(a,t._view,n),u=e);d&&a.closePath(),a.stroke(),a.restore()}}}),se=Y.valueOrDefault,le=j.global.defaultColor;function ce(e){var t=this._view;return!!t&&Math.abs(e-t.x)<t.radius+t.hitRadius}j._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:le,borderColor:le,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}});var ue=W.extend({_type:"point",inRange:function(e,t){var n=this._view;return!!n&&Math.pow(e-n.x,2)+Math.pow(t-n.y,2)<Math.pow(n.hitRadius+n.radius,2)},inLabelRange:ce,inXRange:ce,inYRange:function(e){var t=this._view;return!!t&&Math.abs(e-t.y)<t.radius+t.hitRadius},getCenterPoint:function(){var e=this._view;return{x:e.x,y:e.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y,padding:e.radius+e.borderWidth}},draw:function(e){var t=this._view,n=this._chart.ctx,i=t.pointStyle,r=t.rotation,a=t.radius,o=t.x,s=t.y,l=j.global,c=l.defaultColor;t.skip||(void 0===e||Y.canvas._isPointInArea(t,e))&&(n.strokeStyle=t.borderColor||c,n.lineWidth=se(t.borderWidth,l.elements.point.borderWidth),n.fillStyle=t.backgroundColor||c,Y.canvas.drawPoint(n,i,a,o,s,r))}}),de=j.global.defaultColor;function he(e){return e&&void 0!==e.width}function fe(e){var t,n,i,r,a;return he(e)?(t=e.x-(a=e.width/2),n=e.x+a,i=Math.min(e.y,e.base),r=Math.max(e.y,e.base)):(a=e.height/2,t=Math.min(e.x,e.base),n=Math.max(e.x,e.base),i=e.y-a,r=e.y+a),{left:t,top:i,right:n,bottom:r}}function pe(e,t,n){return e===t?n:e===n?t:e}function me(e,t,n){var i=null===t,r=null===n,a=!(!e||i&&r)&&fe(e);return a&&(i||t>=a.left&&t<=a.right)&&(r||n>=a.top&&n<=a.bottom)}j._set("global",{elements:{rectangle:{backgroundColor:de,borderColor:de,borderSkipped:"bottom",borderWidth:0}}});var ge=W.extend({_type:"rectangle",draw:function(){var e=this._chart.ctx,t=this._view,n=function(e){var t=fe(e),n=t.right-t.left,i=t.bottom-t.top,r=function(e,t,n){var i,r,a,o,s=e.borderWidth,l=function(e){var t=e.borderSkipped,n={};return t?(e.horizontal?e.base>e.x&&(t=pe(t,"left","right")):e.base<e.y&&(t=pe(t,"bottom","top")),n[t]=!0,n):n}(e);return Y.isObject(s)?(i=+s.top||0,r=+s.right||0,a=+s.bottom||0,o=+s.left||0):i=r=a=o=+s||0,{t:l.top||i<0?0:i>n?n:i,r:l.right||r<0?0:r>t?t:r,b:l.bottom||a<0?0:a>n?n:a,l:l.left||o<0?0:o>t?t:o}}(e,n/2,i/2);return{outer:{x:t.left,y:t.top,w:n,h:i},inner:{x:t.left+r.l,y:t.top+r.t,w:n-r.l-r.r,h:i-r.t-r.b}}}(t),i=n.outer,r=n.inner;e.fillStyle=t.backgroundColor,e.fillRect(i.x,i.y,i.w,i.h),i.w===r.w&&i.h===r.h||(e.save(),e.beginPath(),e.rect(i.x,i.y,i.w,i.h),e.clip(),e.fillStyle=t.borderColor,e.rect(r.x,r.y,r.w,r.h),e.fill("evenodd"),e.restore())},height:function(){var e=this._view;return e.base-e.y},inRange:function(e,t){return me(this._view,e,t)},inLabelRange:function(e,t){var n=this._view;return he(n)?me(n,e,null):me(n,null,t)},inXRange:function(e){return me(this._view,e,null)},inYRange:function(e){return me(this._view,null,e)},getCenterPoint:function(){var e,t,n=this._view;return he(n)?(e=n.x,t=(n.y+n.base)/2):(e=(n.x+n.base)/2,t=n.y),{x:e,y:t}},getArea:function(){var e=this._view;return he(e)?e.width*Math.abs(e.y-e.base):e.height*Math.abs(e.x-e.base)},tooltipPosition:function(){var e=this._view;return{x:e.x,y:e.y}}}),ve={},ye=oe,be=ue,_e=ge;ve.Arc=ie,ve.Line=ye,ve.Point=be,ve.Rectangle=_e;var we=Y._deprecated,ke=Y.valueOrDefault;j._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),j._set("global",{datasets:{bar:{categoryPercentage:.8,barPercentage:.9}}});var Ce=ee.extend({dataElementType:ve.Rectangle,_dataElementOptions:["backgroundColor","borderColor","borderSkipped","borderWidth","barPercentage","barThickness","categoryPercentage","maxBarThickness","minBarLength"],initialize:function(){var e,t,n=this;ee.prototype.initialize.apply(n,arguments),(e=n.getMeta()).stack=n.getDataset().stack,e.bar=!0,t=n._getIndexScale().options,we("bar chart",t.barPercentage,"scales.[x/y]Axes.barPercentage","dataset.barPercentage"),we("bar chart",t.barThickness,"scales.[x/y]Axes.barThickness","dataset.barThickness"),we("bar chart",t.categoryPercentage,"scales.[x/y]Axes.categoryPercentage","dataset.categoryPercentage"),we("bar chart",n._getValueScale().options.minBarLength,"scales.[x/y]Axes.minBarLength","dataset.minBarLength"),we("bar chart",t.maxBarThickness,"scales.[x/y]Axes.maxBarThickness","dataset.maxBarThickness")},update:function(e){var t,n,i=this.getMeta().data;for(this._ruler=this.getRuler(),t=0,n=i.length;t<n;++t)this.updateElement(i[t],t,e)},updateElement:function(e,t,n){var i=this,r=i.getMeta(),a=i.getDataset(),o=i._resolveDataElementOptions(e,t);e._xScale=i.getScaleForId(r.xAxisID),e._yScale=i.getScaleForId(r.yAxisID),e._datasetIndex=i.index,e._index=t,e._model={backgroundColor:o.backgroundColor,borderColor:o.borderColor,borderSkipped:o.borderSkipped,borderWidth:o.borderWidth,datasetLabel:a.label,label:i.chart.data.labels[t]},Y.isArray(a.data[t])&&(e._model.borderSkipped=null),i._updateElementGeometry(e,t,n,o),e.pivot()},_updateElementGeometry:function(e,t,n,i){var r=this,a=e._model,o=r._getValueScale(),s=o.getBasePixel(),l=o.isHorizontal(),c=r._ruler||r.getRuler(),u=r.calculateBarValuePixels(r.index,t,i),d=r.calculateBarIndexPixels(r.index,t,c,i);a.horizontal=l,a.base=n?s:u.base,a.x=l?n?s:u.head:d.center,a.y=l?d.center:n?s:u.head,a.height=l?d.size:void 0,a.width=l?void 0:d.size},_getStacks:function(e){var t,n,i=this._getIndexScale(),r=i._getMatchingVisibleMetas(this._type),a=i.options.stacked,o=r.length,s=[];for(t=0;t<o&&(n=r[t],(!1===a||-1===s.indexOf(n.stack)||void 0===a&&void 0===n.stack)&&s.push(n.stack),n.index!==e);++t);return s},getStackCount:function(){return this._getStacks().length},getStackIndex:function(e,t){var n=this._getStacks(e),i=void 0!==t?n.indexOf(t):-1;return-1===i?n.length-1:i},getRuler:function(){var e,t,n=this._getIndexScale(),i=[];for(e=0,t=this.getMeta().data.length;e<t;++e)i.push(n.getPixelForValue(null,e,this.index));return{pixels:i,start:n._startPixel,end:n._endPixel,stackCount:this.getStackCount(),scale:n}},calculateBarValuePixels:function(e,t,n){var i,r,a,o,s,l,c,u=this.chart,d=this._getValueScale(),h=d.isHorizontal(),f=u.data.datasets,p=d._getMatchingVisibleMetas(this._type),m=d._parseValue(f[e].data[t]),g=n.minBarLength,v=d.options.stacked,y=this.getMeta().stack,b=void 0===m.start?0:m.max>=0&&m.min>=0?m.min:m.max,_=void 0===m.start?m.end:m.max>=0&&m.min>=0?m.max-m.min:m.min-m.max,w=p.length;if(v||void 0===v&&void 0!==y)for(i=0;i<w&&(r=p[i]).index!==e;++i)r.stack===y&&(a=void 0===(c=d._parseValue(f[r.index].data[t])).start?c.end:c.min>=0&&c.max>=0?c.max:c.min,(m.min<0&&a<0||m.max>=0&&a>0)&&(b+=a));return o=d.getPixelForValue(b),l=(s=d.getPixelForValue(b+_))-o,void 0!==g&&Math.abs(l)<g&&(l=g,s=_>=0&&!h||_<0&&h?o-g:o+g),{size:l,base:o,head:s,center:s+l/2}},calculateBarIndexPixels:function(e,t,n,i){var r="flex"===i.barThickness?function(e,t,n){var i,r=t.pixels,a=r[e],o=e>0?r[e-1]:null,s=e<r.length-1?r[e+1]:null,l=n.categoryPercentage;return null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o),i=a-(a-Math.min(o,s))/2*l,{chunk:Math.abs(s-o)/2*l/t.stackCount,ratio:n.barPercentage,start:i}}(t,n,i):function(e,t,n){var i,r,a=n.barThickness,o=t.stackCount,s=t.pixels[e],l=Y.isNullOrUndef(a)?function(e,t){var n,i,r,a,o=e._length;for(r=1,a=t.length;r<a;++r)o=Math.min(o,Math.abs(t[r]-t[r-1]));for(r=0,a=e.getTicks().length;r<a;++r)i=e.getPixelForTick(r),o=r>0?Math.min(o,Math.abs(i-n)):o,n=i;return o}(t.scale,t.pixels):-1;return Y.isNullOrUndef(a)?(i=l*n.categoryPercentage,r=n.barPercentage):(i=a*o,r=1),{chunk:i/o,ratio:r,start:s-i/2}}(t,n,i),a=this.getStackIndex(e,this.getMeta().stack),o=r.start+r.chunk*a+r.chunk/2,s=Math.min(ke(i.maxBarThickness,1/0),r.chunk*r.ratio);return{base:o-s/2,head:o+s/2,center:o,size:s}},draw:function(){var e=this.chart,t=this._getValueScale(),n=this.getMeta().data,i=this.getDataset(),r=n.length,a=0;for(Y.canvas.clipArea(e.ctx,e.chartArea);a<r;++a){var o=t._parseValue(i.data[a]);isNaN(o.min)||isNaN(o.max)||n[a].draw()}Y.canvas.unclipArea(e.ctx)},_resolveDataElementOptions:function(){var e=Y.extend({},ee.prototype._resolveDataElementOptions.apply(this,arguments)),t=this._getIndexScale().options,n=this._getValueScale().options;return e.barPercentage=ke(t.barPercentage,e.barPercentage),e.barThickness=ke(t.barThickness,e.barThickness),e.categoryPercentage=ke(t.categoryPercentage,e.categoryPercentage),e.maxBarThickness=ke(t.maxBarThickness,e.maxBarThickness),e.minBarLength=ke(n.minBarLength,e.minBarLength),e}}),xe=Y.valueOrDefault,Se=Y.options.resolve;j._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return(t.datasets[e.datasetIndex].label||"")+": ("+e.xLabel+", "+e.yLabel+", "+t.datasets[e.datasetIndex].data[e.index].r+")"}}}});var Me=ee.extend({dataElementType:ve.Point,_dataElementOptions:["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle","rotation"],update:function(e){var t=this,n=t.getMeta();Y.each(n.data,function(n,i){t.updateElement(n,i,e)})},updateElement:function(e,t,n){var i=this,r=i.getMeta(),a=e.custom||{},o=i.getScaleForId(r.xAxisID),s=i.getScaleForId(r.yAxisID),l=i._resolveDataElementOptions(e,t),c=i.getDataset().data[t],u=i.index,d=n?o.getPixelForDecimal(.5):o.getPixelForValue("object"==typeof c?c:NaN,t,u),h=n?s.getBasePixel():s.getPixelForValue(c,t,u);e._xScale=o,e._yScale=s,e._options=l,e._datasetIndex=u,e._index=t,e._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,rotation:l.rotation,radius:n?0:l.radius,skip:a.skip||isNaN(d)||isNaN(h),x:d,y:h},e.pivot()},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=xe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=xe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=xe(n.hoverBorderWidth,n.borderWidth),t.radius=n.radius+n.hoverRadius},_resolveDataElementOptions:function(e,t){var n=this,i=n.chart,r=n.getDataset(),a=e.custom||{},o=r.data[t]||{},s=ee.prototype._resolveDataElementOptions.apply(n,arguments),l={chart:i,dataIndex:t,dataset:r,datasetIndex:n.index};return n._cachedDataOpts===s&&(s=Y.extend({},s)),s.radius=Se([a.radius,o.r,n._config.radius,i.options.elements.point.radius],l,t),s}}),De=Y.valueOrDefault,Te=Math.PI,Ee=2*Te,Ae=Te/2;j._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),a=e.data,o=a.datasets,s=a.labels;if(r.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var r=e.getDatasetMeta(0),a=r.controller.getStyle(i);return{text:n,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,r,a=t.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n<i;++n)(r=o.getDatasetMeta(n)).data[a]&&(r.data[a].hidden=!r.data[a].hidden);o.update()}},cutoutPercentage:50,rotation:-Ae,circumference:Ee,tooltips:{callbacks:{title:function(){return""},label:function(e,t){var n=t.labels[e.index],i=": "+t.datasets[e.datasetIndex].data[e.index];return Y.isArray(n)?(n=n.slice())[0]+=i:n+=i,n}}}});var Pe=ee.extend({dataElementType:ve.Arc,linkScales:Y.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroun
1dColor","hoverBorderColor","hoverBorderWidth"],getRingIndex:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&++t;return t},update:function(e){var t,n,i=this,r=i.chart,a=r.chartArea,o=r.options,s=1,l=1,c=0,u=0,d=i.getMeta(),h=d.data,f=o.cutoutPercentage/100||0,p=o.circumference,m=i._getRingWeight(i.index);if(p<Ee){var g=o.rotation%Ee,v=(g+=g>=Te?-Ee:g<-Te?Ee:0)+p,y=Math.cos(g),b=Math.sin(g),_=Math.cos(v),w=Math.sin(v),k=g<=0&&v>=0||v>=Ee,C=g<=Ae&&v>=Ae||v>=Ee+Ae,x=g<=-Ae&&v>=-Ae||v>=Te+Ae,S=g===-Te||v>=Te?-1:Math.min(y,y*f,_,_*f),M=x?-1:Math.min(b,b*f,w,w*f),D=k?1:Math.max(y,y*f,_,_*f),T=C?1:Math.max(b,b*f,w,w*f);s=(D-S)/2,l=(T-M)/2,c=-(D+S)/2,u=-(T+M)/2}for(t=0,n=h.length;t<n;++t)h[t]._options=i._resolveDataElementOptions(h[t],t);for(r.borderWidth=i.getMaxBorderWidth(),r.outerRadius=Math.max(Math.min((a.right-a.left-r.borderWidth)/s,(a.bottom-a.top-r.borderWidth)/l)/2,0),r.innerRadius=Math.max(r.outerRadius*f,0),r.radiusLength=(r.outerRadius-r.innerRadius)/(i._getVisibleDatasetWeightTotal()||1),r.offsetX=c*r.outerRadius,r.offsetY=u*r.outerRadius,d.total=i.calculateTotal(),i.outerRadius=r.outerRadius-r.radiusLength*i._getRingWeightOffset(i.index),i.innerRadius=Math.max(i.outerRadius-r.radiusLength*m,0),t=0,n=h.length;t<n;++t)i.updateElement(h[t],t,e)},updateElement:function(e,t,n){var i=this,r=i.chart,a=r.chartArea,o=r.options,s=o.animation,l=(a.left+a.right)/2,c=(a.top+a.bottom)/2,u=o.rotation,d=o.rotation,h=i.getDataset(),f=n&&s.animateRotate||e.hidden?0:i.calculateCircumference(h.data[t])*(o.circumference/Ee),p=e._options||{};Y.extend(e,{_datasetIndex:i.index,_index:t,_model:{backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,borderAlign:p.borderAlign,x:l+r.offsetX,y:c+r.offsetY,startAngle:u,endAngle:d,circumference:f,outerRadius:n&&s.animateScale?0:i.outerRadius,innerRadius:n&&s.animateScale?0:i.innerRadius,label:Y.valueAtIndexOrDefault(h.label,t,r.data.labels[t])}});var m=e._model;n&&s.animateRotate||(m.startAngle=0===t?o.rotation:i.getMeta().data[t-1]._model.endAngle,m.endAngle=m.startAngle+m.circumference),e.pivot()},calculateTotal:function(){var e,t=this.getDataset(),n=this.getMeta(),i=0;return Y.each(n.data,function(n,r){e=t.data[r],isNaN(e)||n.hidden||(i+=Math.abs(e))}),i},calculateCircumference:function(e){var t=this.getMeta().total;return t>0&&!isNaN(e)?Ee*(Math.abs(e)/t):0},getMaxBorderWidth:function(e){var t,n,i,r,a,o,s,l,c=0,u=this.chart;if(!e)for(t=0,n=u.data.datasets.length;t<n;++t)if(u.isDatasetVisible(t)){e=(i=u.getDatasetMeta(t)).data,t!==this.index&&(a=i.controller);break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)r=e[t],a?(a._configure(),o=a._resolveDataElementOptions(r,t)):o=r._options,"inner"!==o.borderAlign&&(c=(l=o.hoverBorderWidth)>(c=(s=o.borderWidth)>c?s:c)?l:c);return c},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=De(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=De(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=De(n.hoverBorderWidth,n.borderWidth)},_getRingWeightOffset:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t},_getRingWeight:function(e){return Math.max(De(this.chart.data.datasets[e].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});j._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),j._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var Le=Ce.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),Oe=Y.valueOrDefault,Ie=Y.options.resolve,He=Y.canvas._isPointInArea;function je(e,t){var n=e&&e.options.ticks||{},i=n.reverse,r=void 0===n.min?t:0,a=void 0===n.max?t:0;return{start:i?a:r,end:i?r:a}}j._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var Fe=ee.extend({datasetElementType:ve.Line,dataElementType:ve.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(e){var t,n,i=this,r=i.getMeta(),a=r.dataset,o=r.data||[],s=i._config,l=i._showLine=Oe(s.showLine,i.chart.options.showLines);for(i._xScale=i.getScaleForId(r.xAxisID),i._yScale=i.getScaleForId(r.yAxisID),l&&(void 0!==s.tension&&void 0===s.lineTension&&(s.lineTension=s.tension),a._scale=i._yScale,a._datasetIndex=i.index,a._children=o,a._model=i._resolveDatasetElementOptions(a),a.pivot()),t=0,n=o.length;t<n;++t)i.updateElement(o[t],t,e);for(l&&0!==a._model.tension&&i.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var i,r,a=this,o=a.getMeta(),s=e.custom||{},l=a.getDataset(),c=a.index,u=l.data[t],d=a._xScale,h=a._yScale,f=o.dataset._model,p=a._resolveDataElementOptions(e,t);i=d.getPixelForValue("object"==typeof u?u:NaN,t,c),r=n?h.getBasePixel():a.calculatePointY(u,t,c),e._xScale=d,e._yScale=h,e._options=p,e._datasetIndex=c,e._index=t,e._model={x:i,y:r,skip:s.skip||isNaN(i)||isNaN(r),radius:p.radius,pointStyle:p.pointStyle,rotation:p.rotation,backgroundColor:p.backgroundColor,borderColor:p.borderColor,borderWidth:p.borderWidth,tension:Oe(s.tension,f?f.tension:0),steppedLine:!!f&&f.steppedLine,hitRadius:p.hitRadius}},_resolveDatasetElementOptions:function(e){var t,n,i,r,a,o,s,l,c,u=this,d=u._config,h=e.custom||{},f=u.chart.options,p=f.elements.line,m=ee.prototype._resolveDatasetElementOptions.apply(u,arguments);return m.spanGaps=Oe(d.spanGaps,f.spanGaps),m.tension=Oe(d.lineTension,p.tension),m.steppedLine=Ie([h.steppedLine,d.steppedLine,p.stepped]),m.clip=(t=Oe(d.clip,(o=u._yScale,l=je(u._xScale,s=m.borderWidth/2),{top:(c=je(o,s)).end,right:l.end,bottom:c.start,left:l.start})),Y.isObject(t)?(n=t.top,i=t.right,r=t.bottom,a=t.left):n=i=r=a=t,{top:n,right:i,bottom:r,left:a}),m},calculatePointY:function(e,t,n){var i,r,a,o,s,l,c=this.chart,u=this._yScale,d=0,h=0;if(u.options.stacked){for(o=+u.getRightValue(e),l=(s=c._getSortedVisibleDatasetMetas()).length,i=0;i<l&&(r=s[i]).index!==n;++i)"line"===r.type&&r.yAxisID===u.id&&((a=+u.getRightValue(c.data.datasets[r.index].data[t]))<0?h+=a||0:d+=a||0);return u.getPixelForValue(o<0?h+o:d+o)}return u.getPixelForValue(e)},updateBezierControlPoints:function(){var e,t,n,i,r=this.chart,a=this.getMeta(),o=a.dataset._model,s=r.chartArea,l=a.data||[];function c(e,t,n){return Math.max(Math.min(e,n),t)}if(o.spanGaps&&(l=l.filter(function(e){return!e._model.skip})),"monotone"===o.cubicInterpolationMode)Y.splineCurveMonotone(l);else for(e=0,t=l.length;e<t;++e)n=l[e]._model,i=Y.splineCurve(Y.previousItem(l,e)._model,n,Y.nextItem(l,e)._model,o.tension),n.controlPointPreviousX=i.previous.x,n.controlPointPreviousY=i.previous.y,n.controlPointNextX=i.next.x,n.controlPointNextY=i.next.y;if(r.options.elements.line.capBezierPoints)for(e=0,t=l.length;e<t;++e)He(n=l[e]._model,s)&&(e>0&&He(l[e-1]._model,s)&&(n.controlPointPreviousX=c(n.controlPointPreviousX,s.left,s.right),n.controlPointPreviousY=c(n.controlPointPreviousY,s.top,s.bottom)),e<l.length-1&&He(l[e+1]._model,s)&&(n.controlPointNextX=c(n.controlPointNextX,s.left,s.right),n.controlPointNextY=c(n.controlPointNextY,s.top,s.bottom)))},draw:function(){var e,t=this.chart,n=this.getMeta(),i=n.data||[],r=t.chartArea,a=t.canvas,o=0,s=i.length;for(this._showLine&&(Y.canvas.clipArea(t.ctx,{left:!1===(e=n.dataset._model.clip).left?0:r.left-e.left,right:!1===e.right?a.width:r.right+e.right,top:!1===e.top?0:r.top-e.top,bottom:!1===e.bottom?a.height:r.bottom+e.bottom}),n.dataset.draw(),Y.canvas.unclipArea(t.ctx));o<s;++o)i[o].draw(r)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Oe(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Oe(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Oe(n.hoverBorderWidth,n.borderWidth),t.radiu
vendor: 4,280 bytes, line 1
1s=Oe(n.hoverRadius,n.radius)}}),Re=Y.options.resolve;j._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(e){var t,n,i,r=document.createElement("ul"),a=e.data,o=a.datasets,s=a.labels;if(r.setAttribute("class",e.id+"-legend"),o.length)for(t=0,n=o[0].data.length;t<n;++t)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=o[0].backgroundColor[t],s[t]&&i.appendChild(document.createTextNode(s[t]));return r.outerHTML},legend:{labels:{generateLabels:function(e){var t=e.data;return t.labels.length&&t.datasets.length?t.labels.map(function(n,i){var r=e.getDatasetMeta(0),a=r.controller.getStyle(i);return{text:n,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,lineWidth:a.borderWidth,hidden:isNaN(t.datasets[0].data[i])||r.data[i].hidden,index:i}}):[]}},onClick:function(e,t){var n,i,r,a=t.index,o=this.chart;for(n=0,i=(o.data.datasets||[]).length;n<i;++n)(r=o.getDatasetMeta(n)).data[a].hidden=!r.data[a].hidden;o.update()}},tooltips:{callbacks:{title:function(){return""},label:function(e,t){return t.labels[e.index]+": "+e.yLabel}}}});var Ne=ee.extend({dataElementType:ve.Arc,linkScales:Y.noop,_dataElementOptions:["backgroundColor","borderColor","borderWidth","borderAlign","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth"],_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i,r=this,a=r.getDataset(),o=r.getMeta(),s=r.chart.options.startAngle||0,l=r._starts=[],c=r._angles=[],u=o.data;for(r._updateRadius(),o.count=r.countVisibleElements(),t=0,n=a.data.length;t<n;t++)l[t]=s,i=r._computeAngle(t),c[t]=i,s+=i;for(t=0,n=u.length;t<n;++t)u[t]._options=r._resolveDataElementOptions(u[t],t),r.updateElement(u[t],t,e)},_updateRadius:function(){var e=this,t=e.chart,n=t.chartArea,i=t.options,r=Math.min(n.right-n.left,n.bottom-n.top);t.outerRadius=Math.max(r/2,0),t.innerRadius=Math.max(i.cutoutPercentage?t.outerRadius/100*i.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),e.outerRadius=t.outerRadius-t.radiusLength*e.index,e.innerRadius=e.outerRadius-t.radiusLength},updateElement:function(e,t,n){var i=this,r=i.chart,a=i.getDataset(),o=r.options,s=o.animation,l=r.scale,c=r.data.labels,u=l.xCenter,d=l.yCenter,h=o.startAngle,f=e.hidden?0:l.getDistanceFromCenterForValue(a.data[t]),p=i._starts[t],m=p+(e.hidden?0:i._angles[t]),g=s.animateScale?0:l.getDistanceFromCenterForValue(a.data[t]),v=e._options||{};Y.extend(e,{_datasetIndex:i.index,_index:t,_scale:l,_model:{backgroundColor:v.backgroundColor,borderColor:v.borderColor,borderWidth:v.borderWidth,borderAlign:v.borderAlign,x:u,y:d,innerRadius:0,outerRadius:n?g:f,startAngle:n&&s.animateRotate?h:p,endAngle:n&&s.animateRotate?h:m,label:Y.valueAtIndexOrDefault(c,t,c[t])}}),e.pivot()},countVisibleElements:function(){var e=this.getDataset(),t=this.getMeta(),n=0;return Y.each(t.data,function(t,i){isNaN(e.data[i])||t.hidden||n++}),n},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor,r=Y.valueOrDefault;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth},t.backgroundColor=r(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=r(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=r(n.hoverBorderWidth,n.borderWidth)},_computeAngle:function(e){var t=this,n=this.getMeta().count,i=t.getDataset(),r=t.getMeta();return isNaN(i.data[e])||r.data[e].hidden?0:Re([t.chart.options.elements.arc.angle,2*Math.PI/n],{chart:t.chart,dataIndex:e,dataset:i,datasetIndex:t.index},e)}});j._set("pie",Y.clone(j.doughnut)),j._set("pie",{cutoutPercentage:0});var Be=Pe,Ye=Y.valueOrDefault;j._set("radar",{spanGaps:!1,scale:{type:"radialLinear"},elements:{line:{fill:"start",tension:0}}});var ze=ee.extend({datasetElementType:ve.Line,dataElementType:ve.Point,linkScales:Y.noop,_datasetElementOptions:["backgroundColor","borderWidth","borderColor","borderCapStyle","borderDash","borderDashOffset","borderJoinStyle","fill"],_dataElementOptions:{backgroundColor:"pointBackgroun
1dColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},_getIndexScaleId:function(){return this.chart.scale.id},_getValueScaleId:function(){return this.chart.scale.id},update:function(e){var t,n,i=this,r=i.getMeta(),a=r.dataset,o=r.data||[],s=i.chart.scale,l=i._config;for(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),a._scale=s,a._datasetIndex=i.index,a._children=o,a._loop=!0,a._model=i._resolveDatasetElementOptions(a),a.pivot(),t=0,n=o.length;t<n;++t)i.updateElement(o[t],t,e);for(i.updateBezierControlPoints(),t=0,n=o.length;t<n;++t)o[t].pivot()},updateElement:function(e,t,n){var i=this,r=e.custom||{},a=i.getDataset(),o=i.chart.scale,s=o.getPointPositionForValue(t,a.data[t]),l=i._resolveDataElementOptions(e,t),c=i.getMeta().dataset._model,u=n?o.xCenter:s.x,d=n?o.yCenter:s.y;e._scale=o,e._options=l,e._datasetIndex=i.index,e._index=t,e._model={x:u,y:d,skip:r.skip||isNaN(u)||isNaN(d),radius:l.radius,pointStyle:l.pointStyle,rotation:l.rotation,backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,tension:Ye(r.tension,c?c.tension:0),hitRadius:l.hitRadius}},_resolveDatasetElementOptions:function(){var e=this._config,t=this.chart.options,n=ee.prototype._resolveDatasetElementOptions.apply(this,arguments);return n.spanGaps=Ye(e.spanGaps,t.spanGaps),n.tension=Ye(e.lineTension,t.elements.line.tension),n},updateBezierControlPoints:function(){var e,t,n,i,r=this.getMeta(),a=this.chart.chartArea,o=r.data||[];function s(e,t,n){return Math.max(Math.min(e,n),t)}for(r.dataset._model.spanGaps&&(o=o.filter(function(e){return!e._model.skip})),e=0,t=o.length;e<t;++e)n=o[e]._model,i=Y.splineCurve(Y.previousItem(o,e,!0)._model,n,Y.nextItem(o,e,!0)._model,n.tension),n.controlPointPreviousX=s(i.previous.x,a.left,a.right),n.controlPointPreviousY=s(i.previous.y,a.top,a.bottom),n.controlPointNextX=s(i.next.x,a.left,a.right),n.controlPointNextY=s(i.next.y,a.top,a.bottom)},setHoverStyle:function(e){var t=e._model,n=e._options,i=Y.getHoverColor;e.$previousStyle={backgroundColor:t.backgroundColor,borderColor:t.borderColor,borderWidth:t.borderWidth,radius:t.radius},t.backgroundColor=Ye(n.hoverBackgroundColor,i(n.backgroundColor)),t.borderColor=Ye(n.hoverBorderColor,i(n.borderColor)),t.borderWidth=Ye(n.hoverBorderWidth,n.borderWidth),t.radius=Ye(n.hoverRadius,n.radius)}});j._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},tooltips:{callbacks:{title:function(){return""},label:function(e){return"("+e.xLabel+", "+e.yLabel+")"}}}}),j._set("global",{datasets:{scatter:{showLine:!1}}});var Ve={bar:Ce,bubble:Me,doughnut:Pe,horizontalBar:Le,line:Fe,polarArea:Ne,pie:Be,radar:ze,scatter:Fe};function Ue(e,t){return e.native?{x:e.x,y:e.y}:Y.getRelativePosition(e,t)}function $e(e,t){var n,i,r,a,o,s,l=e._getSortedVisibleDatasetMetas();for(i=0,a=l.length;i<a;++i)for(r=0,o=(n=l[i].data).length;r<o;++r)(s=n[r])._view.skip||t(s)}function We(e,t){var n=[];return $e(e,function(e){e.inRange(t.x,t.y)&&n.push(e)}),n}function qe(e,t,n,i){var r=Number.POSITIVE_INFINITY,a=[];return $e(e,function(e){if(!n||e.inRange(t.x,t.y)){var o=e.getCenterPoint(),s=i(t,o);s<r?(a=[e],r=s):s===r&&a.push(e)}}),a}function Ge(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,i){var r=t?Math.abs(e.x-i.x):0,a=n?Math.abs(e.y-i.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(a,2))}}function Xe(e,t,n){var i=Ue(t,e);n.axis=n.axis||"x";var r=Ge(n.axis),a=n.intersect?We(e,i):qe(e,i,!1,r),o=[];return a.length?(e._getSortedVisibleDatasetMetas().forEach(function(e){var t=e.data[a[0]._index];t&&!t._view.skip&&o.push(t)}),o):[]}var Qe={modes:{single:function(e,t){var n=Ue(t,e),i=[];return $e(e,function(e){if(e.inRange(n.x,n.y))return i.push(e),i}),i.slice(0,1)},label:Xe,index:Xe,dataset:function(e,t,n){var i=Ue(t,e);n.axis=n.axis||"xy";var r=Ge(n.axis),a=n.intersect?We(e,i):qe(e,i,!1,r);return a.length>0&&(a=e.getDatasetMeta(a[0]._datasetIndex).data),a},"x-axis":function(e,t){return Xe(e,t,{intersect:!1})},point:function(e,t){return We(e,Ue(t,e))},nearest:function(e,t,n){var i=Ue(t,e);n.axis=n.axis||"xy";var r=Ge(n.axis);return qe(e,i,n.intersect,r)},x:function(e,t,n){var i=Ue(t,e),r=[],a=!1;return $e(e,function(e){e.inXRange(i.x)&&r.push(e),e.inRange(i.x,i.y)&&(a=!0)}),n.intersect&&!a&&(r=[]),r},y:function(e,t,n){var i=Ue(t,e),r=[],a=!1;return $e(e,function(e){e.inYRange(i.y)&&r.push(e),e.inRange(i.x,i.y)&&(a=!0)}),n.intersect&&!a&&(r=[]),r}}},Ke=Y.extend;
vendor: 4,470 bytes, line 1
1function Ze(e,t){return Y.where(e,function(e){return e.pos===t})}function Je(e,t){return e.sort(function(e,n){var i=t?n:e,r=t?e:n;return i.weight===r.weight?i.index-r.index:i.weight-r.weight})}function et(e,t,n,i){return Math.max(e[n],t[n])+Math.max(e[i],t[i])}function tt(e,t,n){var i,r,a=n.box,o=e.maxPadding;if(n.size&&(e[n.pos]-=n.size),n.size=n.horizontal?a.height:a.width,e[n.pos]+=n.size,a.getPadding){var s=a.getPadding();o.top=Math.max(o.top,s.top),o.left=Math.max(o.left,s.left),o.bottom=Math.max(o.bottom,s.bottom),o.right=Math.max(o.right,s.right)}if(i=t.outerWidth-et(o,e,"left","right"),r=t.outerHeight-et(o,e,"top","bottom"),i!==e.w||r!==e.h){e.w=i,e.h=r;var l=n.horizontal?[i,e.w]:[r,e.h];return!(l[0]===l[1]||isNaN(l[0])&&isNaN(l[1]))}}function nt(e,t){var n,i=t.maxPadding;return n={left:0,top:0,right:0,bottom:0},(e?["left","right"]:["top","bottom"]).forEach(function(e){n[e]=Math.max(t[e],i[e])}),n}function it(e,t,n){var i,r,a,o,s,l,c=[];for(i=0,r=e.length;i<r;++i)(o=(a=e[i]).box).update(a.width||t.w,a.height||t.h,nt(a.horizontal,t)),tt(t,n,a)&&(l=!0,c.length&&(s=!0)),o.fullWidth||c.push(a);return s&&it(c,t,n)||l}function rt(e,t,n){var i,r,a,o,s=n.padding,l=t.x,c=t.y;for(i=0,r=e.length;i<r;++i)o=(a=e[i]).box,a.horizontal?(o.left=o.fullWidth?s.left:t.left,o.right=o.fullWidth?n.outerWidth-s.right:t.left+t.w,o.top=c,o.bottom=c+o.height,o.width=o.right-o.left,c=o.bottom):(o.left=l,o.right=l+o.width,o.top=t.top,o.bottom=t.top+t.h,o.height=o.bottom-o.top,l=o.right);t.x=l,t.y=c}j._set("global",{layout:{padding:{top:0,right:0,bottom:0,left:0}}});var at,ot={defaults:{},addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(){t.draw.apply(t,arguments)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){for(var i,r=["fullWidth","position","weight"],a=r.length,o=0;o<a;++o)n.hasOwnProperty(i=r[o])&&(t[i]=n[i])},update:function(e,t,n){if(e){var i=Y.options.toPadding((e.options.layout||{}).padding),r=t-i.width,a=n-i.height,o=function(e){var t=function(e){var t,n,i,r=[];for(t=0,n=(e||[]).length;t<n;++t)r.push({index:t,box:i=e[t],pos:i.position,horizontal:i.isHorizontal(),weight:i.weight});return r}(e),n=Je(Ze(t,"left"),!0),i=Je(Ze(t,"right")),r=Je(Ze(t,"top"),!0),a=Je(Ze(t,"bottom"));return{leftAndTop:n.concat(r),rightAndBottom:i.concat(a),chartArea:Ze(t,"chartArea"),vertical:n.concat(i),horizontal:r.concat(a)}}(e.boxes),s=o.vertical,l=o.horizontal,c=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:r,vBoxMaxWidth:r/2/s.length,hBoxMaxHeight:a/2}),u=Ke({maxPadding:Ke({},i),w:r,h:a,x:i.left,y:i.top},i);(function(e,t){var n,i,r;for(n=0,i=e.length;n<i;++n)(r=e[n]).width=r.horizontal?r.box.fullWidth&&t.availableWidth:t.vBoxMaxWidth,r.height=r.horizontal&&t.hBoxMaxHeight})(s.concat(l),c),it(s,u,c),it(l,u,c)&&it(s,u,c),function(e){var t=e.maxPadding;function n(n){var i=Math.max(t[n]-e[n],0);return e[n]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(u),rt(o.leftAndTop,u,c),u.x+=u.w,u.y+=u.h,rt(o.rightAndBottom,u,c),e.chartArea={left:u.left,top:u.top,right:u.left+u.w,bottom:u.top+u.h},Y.each(o.chartArea,function(t){var n=t.box;Ke(n,e.chartArea),n.update(u.w,u.h)})}}},st=(at=Object.freeze({__proto__:null,default:"/*\r\n * DOM element rendering detection\r\n * https://davidwalsh.name/detect-node-insertion\r\n */\r\n@keyframes chartjs-render-animation {\r\n\tfrom { opacity: 0.99; }\r\n\tto { opacity: 1; }\r\n}\r\n\r\n.chartjs-render-monitor {\r\n\tanimation: chartjs-render-animation 0.001s;\r\n}\r\n\r\n/*\r\n * DOM element resizing detection\r\n * https://github.com/marcj/css-element-queries\r\n */\r\n.chartjs-size-monitor,\r\n.chartjs-size-monitor-expand,\r\n.chartjs-size-monitor-shrink {\r\n\tposition: absolute;\r\n\tdirection: ltr;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tbottom: 0;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\tvisibility: hidden;\r\n\tz-index: -1;\r\n}\r\n\r\n.chartjs-size-monitor-expand > div {\r\n\tposition: absolute;\r\n\twidth: 1000000px;\r\n\theight: 1000000px;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n\r\n.chartjs-size-monitor-shrink > div {\r\n\tposition: absolute;\r\n\twidth: 200%;\r\n\theight: 200%;\r\n\tleft: 0;\r\n\ttop: 0;\r\n}\r\n"}))&&at.default||at,lt=["animationstart","webkitAnimationStart"],ct={touchstart:"mousedown",touchmove:"mou
1semove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};function ut(e,t){var n=Y.getStyle(e,t),i=n&&n.match(/^(\d+)(\.\d+)?px$/);return i?Number(i[1]):void 0}var dt=!!function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("e",null,t)}catch(n){}return e}()&&{passive:!0};function ht(e,t,n){e.addEventListener(t,n,dt)}function ft(e,t,n){e.removeEventListener(t,n,dt)}function pt(e,t,n,i,r){return{type:e,chart:t,native:r||null,x:void 0!==n?n:null,y:void 0!==i?i:null}}function mt(e){var t=document.createElement("div");return t.className=e||"",t}var gt={disableCSSInjection:!1,_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,_ensureLoaded:function(e){if(!this.disableCSSInjection){var t=e.getRootNode?e.getRootNode():document;!function(e,t){var n=e.$chartjs||(e.$chartjs={});if(!n.containsStyles){n.containsStyles=!0,t="/* Chart.js */\n"+t;var i=document.createElement("style");i.setAttribute("type","text/css"),i.appendChild(document.createTextNode(t)),e.appendChild(i)}}(t.host?t:document.head,st)}},acquireContext:function(e,t){"string"==typeof e?e=document.getElementById(e):e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas);var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(this._ensureLoaded(e),function(e,t){var n=e.style,i=e.getAttribute("height"),r=e.getAttribute("width");if(e.$chartjs={initial:{height:i,width:r,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",null===r||""===r){var a=ut(e,"width");void 0!==a&&(e.width=a)}if(null===i||""===i)if(""===e.style.height)e.height=e.width/(t.options.aspectRatio||2);else{var o=ut(e,"height");void 0!==a&&(e.height=o)}}(e,t),n):null},releaseContext:function(e){var t=e.canvas;if(t.$chartjs){var n=t.$chartjs.initial;["height","width"].forEach(function(e){var i=n[e];Y.isNullOrUndef(i)?t.removeAttribute(e):t.setAttribute(e,i)}),Y.each(n.style||{},function(e,n){t.style[n]=e}),t.width=t.width,delete t.$chartjs}},addEventListener:function(e,t,n){var i=e.canvas;if("resize"!==t){var r=n.$chartjs||(n.$chartjs={});ht(i,t,(r.proxies||(r.proxies={}))[e.id+"_"+t]=function(t){n(function(e,t){var n=ct[e.type]||e.type,i=Y.getRelativePosition(e,t);return pt(n,t,i.x,i.y,e)}(t,e))})}else!function(e,t,n){var i,r,a,o,s=e.$chartjs||(e.$chartjs={}),l=s.resizer=function(e){var t=mt("chartjs-size-monitor"),n=mt("chartjs-size-monitor-expand"),i=mt("chartjs-size-monitor-shrink");n.appendChild(mt()),i.appendChild(mt()),t.appendChild(n),t.appendChild(i),t._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,i.scrollLeft=1e6,i.scrollTop=1e6};var r=function(){t._reset(),e()};return ht(n,"scroll",r.bind(n,"expand")),ht(i,"scroll",r.bind(i,"shrink")),t}((i=function(){if(s.resizer){var i=n.options.maintainAspectRatio&&e.parentNode,r=i?i.clientWidth:0;t(pt("resize",n)),i&&i.clientWidth<r&&n.canvas&&t(pt("resize",n))}},a=!1,o=[],function(){o=Array.prototype.slice.call(arguments),r=r||this,a||(a=!0,Y.requestAnimFrame.call(window,function(){a=!1,i.apply(r,o)}))}));!function(e,t){var n=e.$chartjs||(e.$chartjs={}),i=n.renderProxy=function(e){"chartjs-render-animation"===e.animationName&&t()};Y.each(lt,function(t){ht(e,t,i)}),n.reflow=!!e.offsetParent,e.classList.add("chartjs-render-monitor")}(e,function(){if(s.resizer){var t=e.parentNode;t&&t!==l.parentNode&&t.insertBefore(l,t.firstChild),l._reset()}})}(i,n,e)},removeEventListener:function(e,t,n){var i,r,a,o=e.canvas;if("resize"!==t){var s=((n.$chartjs||{}).proxies||{})[e.id+"_"+t];s&&ft(o,t,s)}else a=(r=(i=o).$chartjs||{}).resizer,delete r.resizer,function(e){var t=e.$chartjs||{},n=t.renderProxy;n&&(Y.each(lt,function(t){ft(e,t,n)}),delete t.renderProxy),e.classList.remove("chartjs-render-monitor")}(i),a&&a.parentNode&&a.parentNode.removeChild(a)}};Y.addEvent=ht,Y.removeEvent=ft;var vt=Y.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},gt._enabled?gt:{acquireContext:function(e){return e&&e.canvas&&(e=e.canvas),e&&e.getContext("2d")||null}});j._set("global",{plugins:{}});var yt={_plugins:[],_cacheId:0,register:function(e){var t=this._plugins;[].concat(e).forEach(function(e){-1===t.indexOf(e)&&t.push(e)}),this._cacheId++},unregister:function(e){var t=this._plugins;[].concat(e).forEach(function(e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(e,t,n){var i,r,a,o,s,l=this.descriptors(e),c=l.length;for(i=0;i<c;++i)if("function"==typeof(s=(a=(r=l[i]).plugin)[t])&&((o=[e].concat(n||[])).push(r.options),!1===s.apply(a,o)))return!1;return!0},descriptors:function(e){var t=e.$plugins||(e.$plugins={});if(t.id===this._cacheId)return t.descriptors;var n=[],i=[],r=e&&e.config||{},a=r.options&&r.options.plugins||{};
vendor: 5,327 bytes, line 1
1return this._plugins.concat(r.plugins||[]).forEach(function(e){if(-1===n.indexOf(e)){var t=e.id,r=a[t];!1!==r&&(!0===r&&(r=Y.clone(j.global.plugins[t])),n.push(e),i.push({plugin:e,options:r||{}}))}}),t.descriptors=i,t.id=this._cacheId,i},_invalidate:function(e){delete e.$plugins}},bt={constructors:{},defaults:{},registerScaleType:function(e,t,n){this.constructors[e]=t,this.defaults[e]=Y.clone(n)},getScaleConstructor:function(e){return this.constructors.hasOwnProperty(e)?this.constructors[e]:void 0},getScaleDefaults:function(e){return this.defaults.hasOwnProperty(e)?Y.merge(Object.create(null),[j.scale,this.defaults[e]]):{}},updateScaleDefaults:function(e,t){this.defaults.hasOwnProperty(e)&&(this.defaults[e]=Y.extend(this.defaults[e],t))},addScalesToLayout:function(e){Y.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,ot.addBox(e,t)})}},_t=Y.valueOrDefault,wt=Y.rtl.getRtlAdapter;j._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:Y.noop,title:function(e,t){var n="",i=t.labels,r=i?i.length:0;if(e.length>0){var a=e[0];a.label?n=a.label:a.xLabel?n=a.xLabel:r>0&&a.index<r&&(n=i[a.index])}return n},afterTitle:Y.noop,beforeBody:Y.noop,beforeLabel:Y.noop,label:function(e,t){var n=t.datasets[e.datasetIndex].label||"";return n&&(n+=": "),Y.isNullOrUndef(e.value)?n+=e.yLabel:n+=e.value,n},labelColor:function(e,t){var n=t.getDatasetMeta(e.datasetIndex).data[e.index]._view;return{borderColor:n.borderColor,backgroundColor:n.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:Y.noop,afterBody:Y.noop,beforeFooter:Y.noop,footer:Y.noop,afterFooter:Y.noop}}});var kt={average:function(e){if(!e.length)return!1;var t,n,i=0,r=0,a=0;for(t=0,n=e.length;t<n;++t){var o=e[t];if(o&&o.hasValue()){var s=o.tooltipPosition();i+=s.x,r+=s.y,++a}}return{x:i/a,y:r/a}},nearest:function(e,t){var n,i,r,a=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,i=e.length;n<i;++n){var l=e[n];if(l&&l.hasValue()){var c=l.getCenterPoint(),u=Y.distanceBetweenPoints(t,c);u<s&&(s=u,r=l)}}if(r){var d=r.tooltipPosition();a=d.x,o=d.y}return{x:a,y:o}}};function Ct(e,t){return t&&(Y.isArray(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function xt(e){return("string"==typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function St(e){var t=j.global;return{xPadding:e.xPadding,yPadding:e.yPadding,xAlign:e.xAlign,yAlign:e.yAlign,rtl:e.rtl,textDirection:e.textDirection,bodyFontColor:e.bodyFontColor,_bodyFontFamily:_t(e.bodyFontFamily,t.defaultFontFamily),_bodyFontStyle:_t(e.bodyFontStyle,t.defaultFontStyle),_bodyAlign:e.bodyAlign,bodyFontSize:_t(e.bodyFontSize,t.defaultFontSize),bodySpacing:e.bodySpacing,titleFontColor:e.titleFontColor,_titleFontFamily:_t(e.titleFontFamily,t.defaultFontFamily),_titleFontStyle:_t(e.titleFontStyle,t.defaultFontStyle),titleFontSize:_t(e.titleFontSize,t.defaultFontSize),_titleAlign:e.titleAlign,titleSpacing:e.titleSpacing,titleMarginBottom:e.titleMarginBottom,footerFontColor:e.footerFontColor,_footerFontFamily:_t(e.footerFontFamily,t.defaultFontFamily),_footerFontStyle:_t(e.footerFontStyle,t.defaultFontStyle),footerFontSize:_t(e.footerFontSize,t.defaultFontSize),_footerAlign:e.footerAlign,footerSpacing:e.footerSpacing,footerMarginTop:e.footerMarginTop,caretSize:e.caretSize,cornerRadius:e.cornerRadius,backgroundColor:e.backgroundColor,opacity:0,legendColorBackground:e.multiKeyBackground,displayColors:e.displayColors,borderColor:e.borderColor,borderWidth:e.borderWidth}}function Mt(e,t){return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-e.xPadding:e.x+e.xPadding}function Dt(e){return Ct([],xt(e))}var Tt=W.extend({initialize:function(){this._model=St(this._options),this._lastActive=[]},getTitle:function(){var e=this._options.callbacks,t=e.beforeTitle.apply(this,arguments),n=e.title.apply(this,arguments),i=e.afterTitle.apply(this,arguments),r=[];return r=Ct(r,xt(t)),r=Ct(r,xt(n)),Ct(r,xt(i))},getBeforeBody:function(){return Dt(this._options.callbacks.beforeBody.apply(this,arguments))},getBody:function(e,t){var n=this,i=n._options.callbacks,r=[];return Y.each(e,function(e){var a={before:[],lines:[],after:[]};Ct(a.before,xt(i.beforeLabel.call(n,e,t))),Ct(a.lines,i.label.call(n,e,t)),Ct(a.after,xt(i.afterLabel.call(n,e,t))),r.push(a)}),r},getAfterBody:function(){return Dt(this._options.callbacks.afterBody.apply(this,arguments))},getFooter:function(){var e=this._options.callbacks,t=e.beforeFooter.apply(this,arguments),n=e.footer.apply(this,arguments),i=e.afterFooter.apply(this,arguments),r=[];return r=Ct(r,xt(t)),r=Ct(r,xt(n)),Ct(r,xt(i))},update:function(e){var t,n,i,r,a,o,s,l,c,u,d=this,h=d._options,f=d._model,p=d._model=St(h),m=d._active,g=d._data,v={xAlign:f.xAlign,yAlign:f.yAlign},y={x:f.x,y:f.y},b={width:f.width,height:f.height},_={x:f.caretX,y:f.caretY};
vendor: 48,961 bytes, line 1
1if(m.length){p.opacity=1;var w=[],k=[];_=kt[h.position].call(d,m,d._eventPosition);var C=[];for(t=0,n=m.length;t<n;++t)C.push((i=m[t],r=void 0,a=void 0,o=void 0,s=void 0,l=void 0,c=void 0,u=void 0,r=i._xScale,a=i._yScale||i._scale,o=i._index,s=i._datasetIndex,l=i._chart.getDatasetMeta(s).controller,c=l._getIndexScale(),u=l._getValueScale(),{xLabel:r?r.getLabelForIndex(o,s):"",yLabel:a?a.getLabelForIndex(o,s):"",label:c?""+c.getLabelForIndex(o,s):"",value:u?""+u.getLabelForIndex(o,s):"",index:o,datasetIndex:s,x:i._model.x,y:i._model.y}));h.filter&&(C=C.filter(function(e){return h.filter(e,g)})),h.itemSort&&(C=C.sort(function(e,t){return h.itemSort(e,t,g)})),Y.each(C,function(e){w.push(h.callbacks.labelColor.call(d,e,d._chart)),k.push(h.callbacks.labelTextColor.call(d,e,d._chart))}),p.title=d.getTitle(C,g),p.beforeBody=d.getBeforeBody(C,g),p.body=d.getBody(C,g),p.afterBody=d.getAfterBody(C,g),p.footer=d.getFooter(C,g),p.x=_.x,p.y=_.y,p.caretPadding=h.caretPadding,p.labelColors=w,p.labelTextColors=k,p.dataPoints=C,y=function(e,t,n,i){var r=e.x,a=e.y,o=e.caretPadding,s=n.xAlign,l=n.yAlign,c=e.caretSize+o,u=e.cornerRadius+o;return"right"===s?r-=t.width:"center"===s&&((r-=t.width/2)+t.width>i.width&&(r=i.width-t.width),r<0&&(r=0)),"top"===l?a+=c:a-="bottom"===l?t.height+c:t.height/2,"center"===l?"left"===s?r+=c:"right"===s&&(r-=c):"left"===s?r-=u:"right"===s&&(r+=u),{x:r,y:a}}(p,b=function(e,t){var n=e._chart.ctx,i=2*t.yPadding,r=0,a=t.body,o=a.reduce(function(e,t){return e+t.before.length+t.lines.length+t.after.length},0),s=t.title.length,l=t.footer.length,c=t.titleFontSize,u=t.bodyFontSize,d=t.footerFontSize;i+=s*c,i+=s?(s-1)*t.titleSpacing:0,i+=s?t.titleMarginBottom:0,i+=(o+=t.beforeBody.length+t.afterBody.length)*u,i+=o?(o-1)*t.bodySpacing:0,i+=l?t.footerMarginTop:0,i+=l*d,i+=l?(l-1)*t.footerSpacing:0;var h=0,f=function(e){r=Math.max(r,n.measureText(e).width+h)};return n.font=Y.fontString(c,t._titleFontStyle,t._titleFontFamily),Y.each(t.title,f),n.font=Y.fontString(u,t._bodyFontStyle,t._bodyFontFamily),Y.each(t.beforeBody.concat(t.afterBody),f),h=t.displayColors?u+2:0,Y.each(a,function(e){Y.each(e.before,f),Y.each(e.lines,f),Y.each(e.after,f)}),h=0,n.font=Y.fontString(d,t._footerFontStyle,t._footerFontFamily),Y.each(t.footer,f),{width:r+=2*t.xPadding,height:i}}(this,p),v=function(e,t){var n,i,r,a,o,s=e._model,l=e._chart,c=e._chart.chartArea,u="center",d="center";s.y<t.height?d="top":s.y>l.height-t.height&&(d="bottom");var h=(c.left+c.right)/2,f=(c.top+c.bottom)/2;"center"===d?(n=function(e){return e<=h},i=function(e){return e>h}):(n=function(e){return e<=t.width/2},i=function(e){return e>=l.width-t.width/2}),r=function(e){return e+t.width+s.caretSize+s.caretPadding>l.width},a=function(e){return e-t.width-s.caretSize-s.caretPadding<0},o=function(e){return e<=f?"top":"bottom"},n(s.x)?(u="left",r(s.x)&&(u="center",d=o(s.y))):i(s.x)&&(u="right",a(s.x)&&(u="center",d=o(s.y)));var p=e._options;return{xAlign:p.xAlign?p.xAlign:u,yAlign:p.yAlign?p.yAlign:d}}(this,b),d._chart)}else p.opacity=0;return p.xAlign=v.xAlign,p.yAlign=v.yAlign,p.x=y.x,p.y=y.y,p.width=b.width,p.height=b.height,p.caretX=_.x,p.caretY=_.y,d._model=p,e&&h.custom&&h.custom.call(d,p),d},drawCaret:function(e,t){var n=this._chart.ctx,i=this.getCaretPosition(e,t,this._view);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)},getCaretPosition:function(e,t,n){var i,r,a,o,s,l,c=n.caretSize,u=n.cornerRadius,d=n.xAlign,h=n.yAlign,f=e.x,p=e.y,m=t.width,g=t.height;if("center"===h)s=p+g/2,"left"===d?(r=(i=f)-c,a=i,o=s+c,l=s-c):(r=(i=f+m)+c,a=i,o=s-c,l=s+c);else if("left"===d?(i=(r=f+u+c)-c,a=r+c):"right"===d?(i=(r=f+m-u-c)-c,a=r+c):(i=(r=n.caretX)-c,a=r+c),"top"===h)s=(o=p)-c,l=o;else{s=(o=p+g)+c,l=o;var v=a;a=i,i=v}return{x1:i,x2:r,x3:a,y1:o,y2:s,y3:l}},drawTitle:function(e,t,n){var i,r,a,o=t.title,s=o.length;if(s){var l=wt(t.rtl,t.x,t.width);for(e.x=Mt(t,t._titleAlign),n.textAlign=l.textAlign(t._titleAlign),n.textBaseline="middle",i=t.titleFontSize,r=t.titleSpacing,n.fillStyle=t.titleFontColor,n.font=Y.fontString(i,t._titleFontStyle,t._titleFontFamily),a=0;a<s;++a)n.fillText(o[a],l.x(e.x),e.y+i/2),e.y+=i+r,a+1===s&&(e.y+=t.titleMarginBottom-r)}},drawBody:function(e,t,n){var i,r,a,o,s,l,c,u,d=t.bodyFontSize,h=t.bodySpacing,f=t._bodyAlign,p=t.body,m=t.displayColors,g=0,v=m?Mt(t,"left"):0,y=wt(t.rtl,t.x,t.width),b=function(t){n.fillText(t,y.x(e.x+g),e.y+d/2),e.y+=d+h},_=y.textAlign(f);for(n.textAlign=f,n.textBaseline="middle",n.font=Y.fontString(d,t._bodyFontStyle,t._bodyFontFamily),e.x=Mt(t,_),n.fillStyle=t.bodyFontColor,Y.each(t.beforeBody,b),g=m&&"right"!==_?"center"===f?d/2+1:d+2:0,s=0,c=p.length;s<c;++s){for(i=p[s],a=t.labelColors[s],n.fillStyle=r=t.labelTextColors[s],Y.each(i.before,b),l=0,u=(o=i.lines).length;l<u;++l){if(m){var w=y.x(v);n.fillStyle=t.legendColorBackground,n.fillRect(y.leftForLtr(w,d),e.y,d,d),n.lineWidth=1,n.strokeStyle=a.borderColor,n.strokeRect(y.leftForLtr(w,d),e.y,d,d),n.fillStyle=a.backgroundColor,n.fillRect(y.leftForLtr(y.xPlus(w,1),d-2),e.y+1,d-2,d-2),n.fillStyle=r}b(o[l])}Y.each(i.after,b)}g=0,Y.each(t.afterBody,b),e.y-=h},drawFooter:function(e,t,n){var i,r,a=t.footer,o=a.length;if(o){var s=wt(t.rtl,t.x,t.width);for(e.x=Mt(t,t._footerAlign),e.y+=t.footerMarginTop,n.textAlign=s.textAlign(t._footerAlign),n.textBaseline="middle",i=t.footerFontSize,n.fillStyle=t.footerFontColor,n.font=Y.fontString(i,t._footerFontStyle,t._footerFontFamily),r=0;r<o;++r)n.fillText(a[r],s.x(e.x),e.y+i/2),e.y+=i+t.footerSpacing}},drawBackground:function(e,t,n,i){n.fillStyle=t.backgroundColor,n.strokeStyle=t.borderColor,n.lineWidth=t.borderWidth;var r=t.xAlign,a=t.yAlign,o=e.x,s=e.y,l=i.width,c=i.height,u=t.cornerRadius;n.beginPath(),n.moveTo(o+u,s),"top"===a&&this.drawCaret(e,i),n.lineTo(o+l-u,s),n.quadraticCurveTo(o+l,s,o+l,s+u),"center"===a&&"right"===r&&this.drawCaret(e,i),n.lineTo(o+l,s+c-u),n.quadraticCurveTo(o+l,s+c,o+l-u,s+c),"bottom"===a&&this.drawCaret(e,i),n.lineTo(o+u,s+c),n.quadraticCurveTo(o,s+c,o,s+c-u),"center"===a&&"left"===r&&this.drawCaret(e,i),n.lineTo(o,s+u),n.quadraticCurveTo(o,s,o+u,s),n.closePath(),n.fill(),t.borderWidth>0&&n.stroke()},draw:function(){var e=this._chart.ctx,t=this._view;if(0!==t.opacity){var n={width:t.width,height:t.height},i={x:t.x,y:t.y},r=Math.abs(t.opacity<.001)?0:t.opacity;this._options.enabled&&(t.title.length||t.beforeBody.length||t.body.length||t.afterBody.length||t.footer.length)&&(e.save(),e.globalAlpha=r,this.drawBackground(i,t,e,n),i.y+=t.yPadding,Y.rtl.overrideTextDirection(e,t.textDirection),this.drawTitle(i,t,e),this.drawBody(i,t,e),this.drawFooter(i,t,e),Y.rtl.restoreTextDirection(e,t.textDirection),e.restore())}},handleEvent:function(e){var t,n=this,i=n._options;return n._lastActive=n._lastActive||[],"mouseout"===e.type?n._active=[]:(n._active=n._chart.getElementsAtEventForMode(e,i.mode,i),i.reverse&&n._active.reverse()),(t=!Y.arrayEquals(n._active,n._lastActive))&&(n._lastActive=n._active,(i.enabled||i.custom)&&(n._eventPosition={x:e.x,y:e.y},n.update(!0),n.pivot())),t}});Tt.positioners=kt;var Et=Y.valueOrDefault;function At(){return Y.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){if("xAxes"===e||"yAxes"===e){var r,a,o,s=n[e].length;for(t[e]||(t[e]=[]),r=0;r<s;++r)a=Et((o=n[e][r]).type,"xAxes"===e?"category":"linear"),r>=t[e].length&&t[e].push({}),Y.merge(t[e][r],!t[e][r].type||o.type&&o.type!==t[e][r].type?[bt.getScaleDefaults(a),o]:o)}else Y._merger(e,t,n,i)}})}function Pt(){return Y.merge(Object.create(null),[].slice.call(arguments),{merger:function(e,t,n,i){var r=t[e]||Object.create(null),a=n[e];"scales"===e?t[e]=At(r,a):"scale"===e?t[e]=Y.merge(r,[bt.getScaleDefaults(a.type),a]):Y._merger(e,t,n,i)}})}function Lt(e,t,n){var i,r=function(e){return e.id===i};do{i=t+n++}while(Y.findIndex(e,r)>=0);return i}function Ot(e){return"top"===e||"bottom"===e}function It(e,t){return function(n,i){return n[e]===i[e]?n[t]-i[t]:n[e]-i[e]}}j._set("global",{elements:{},events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,maintainAspectRatio:!0,responsive:!0,responsiveAnimationDuration:0});var Ht=function(e,t){return this.construct(e,t),this};Y.extend(Ht.prototype,{construct:function(e,t){var n=this;t=function(e){var t=(e=e||Object.create(null)).data=e.data||{};return t.datasets=t.datasets||[],t.labels=t.labels||[],e.options=Pt(j.global,j[e.type],e.options||{}),e}(t);var i=vt.acquireContext(e,t),r=i&&i.canvas,a=r&&r.height,o=r&&r.width;n.id=Y.uid(),n.ctx=i,n.canvas=r,n.config=t,n.width=o,n.height=a,n.aspectRatio=a?o/a:null,n.options=t.options,n._bufferedRender=!1,n._layers=[],n.chart=n,n.controller=n,Ht.instances[n.id]=n,Object.defineProperty(n,"data",{get:function(){return n.config.data},set:function(e){n.config.data=e}}),i&&r?(n.initialize(),n.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var e=this;return yt.notify(e,"beforeInit"),Y.retinaScale(e,e.options.devicePixelRatio),e.bindEvents(),e.options.responsive&&e.resize(!0),e.initToolTip(),yt.notify(e,"afterInit"),e},clear:function(){return Y.canvas.clear(this),this},stop:function(){return X.cancelAnimation(this),this},resize:function(e){var t=this,n=t.options,i=t.canvas,r=n.maintainAspectRatio&&t.aspectRatio||null,a=Math.max(0,Math.floor(Y.getMaximumWidth(i))),o=Math.max(0,Math.floor(r?a/r:Y.getMaximumHeight(i)));if((t.width!==a||t.height!==o)&&(i.width=t.width=a,i.height=t.height=o,i.style.width=a+"px",i.style.height=o+"px",Y.retinaScale(t,n.devicePixelRatio),!e)){var s={width:a,height:o};yt.notify(t,"resize",[s]),n.onResize&&n.onResize(t,s),t.stop(),t.update({duration:n.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var e=this.options,t=e.scales||{},n=e.scale;Y.each(t.xAxes,function(e,n){e.id||(e.id=Lt(t.xAxes,"x-axis-",n))}),Y.each(t.yAxes,function(e,n){e.id||(e.id=Lt(t.yAxes,"y-axis-",n))}),n&&(n.id=n.id||"scale")},buildOrUpdateScales:function(){var e=this,t=e.options,n=e.scales||{},i=[],r=Object.keys(n).reduce(function(e,t){return e[t]=!1,e},{});t.scales&&(i=i.concat((t.scales.xAxes||[]).map(function(e){return{options:e,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(e){return{options:e,dtype:"linear",dposition:"left"}}))),t.scale&&i.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),Y.each(i,function(t){var i=t.options,a=i.id,o=Et(i.type,t.dtype);Ot(i.position)!==Ot(t.dposition)&&(i.position=t.dposition),r[a]=!0;var s=null;if(a in n&&n[a].type===o)(s=n[a]).options=i,s.ctx=e.ctx,s.chart=e;else{var l=bt.getScaleConstructor(o);if(!l)return;s=new l({id:a,type:o,options:i,ctx:e.ctx,chart:e}),n[s.id]=s}s.mergeTicksOptions(),t.isDefault&&(e.scale=s)}),Y.each(r,function(e,t){e||delete n[t]}),e.scales=n,bt.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e,t,n=this,i=[],r=n.data.datasets;for(e=0,t=r.length;e<t;e++){var a=r[e],o=n.getDatasetMeta(e),s=a.type||n.config.type;if(o.type&&o.type!==s&&(n.destroyDatasetMeta(e),o=n.getDatasetMeta(e)),o.type=s,o.order=a.order||0,o.index=e,o.controller)o.controller.updateIndex(e),o.controller.linkScales();else{var l=Ve[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(n,e),i.push(o.controller)}}return i},resetElements:function(){var e=this;Y.each(e.data.datasets,function(t,n){e.getDatasetMeta(n).controller.reset()},e)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(e){var t,n,i,r,a=this;if(e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]}),r=(i=a).options,Y.each(i.scales,function(e){ot.removeBox(i,e)}),r=Pt(j.global,j[i.config.type],r),i.options=i.config.options=r,i.ensureScalesHaveIDs(),i.buildOrUpdateScales(),i.tooltip._options=r.tooltips,i.tooltip.initialize(),yt._invalidate(a),!1!==yt.notify(a,"beforeUpdate")){a.tooltip._data=a.data;var o=a.buildOrUpdateControllers();for(t=0,n=a.data.datasets.length;t<n;t++)a.getDatasetMeta(t).controller.buildOrUpdateElements();a.updateLayout(),a.options.animation&&a.options.animation.duration&&Y.each(o,function(e){e.reset()}),a.updateDatasets(),a.tooltip.initialize(),a.lastActive=[],yt.notify(a,"afterUpdate"),a._layers.sort(It("z","_idx")),a._bufferedRender?a._bufferedRequest={duration:e.duration,easing:e.easing,lazy:e.lazy}:a.render(e)}},updateLayout:function(){var e=this;!1!==yt.notify(e,"beforeLayout")&&(ot.update(this,this.width,this.height),e._layers=[],Y.each(e.boxes,function(t){t._configure&&t._configure(),e._layers.push.apply(e._layers,t._layers())},e),e._layers.forEach(function(e,t){e._idx=t}),yt.notify(e,"afterScaleUpdate"),yt.notify(e,"afterLayout"))},updateDatasets:function(){if(!1!==yt.notify(this,"beforeDatasetsUpdate")){for(var e=0,t=this.data.datasets.length;e<t;++e)this.updateDataset(e);yt.notify(this,"afterDatasetsUpdate")}},updateDataset:function(e){var t=this.getDatasetMeta(e),n={meta:t,index:e};!1!==yt.notify(this,"beforeDatasetUpdate",[n])&&(t.controller._update(),yt.notify(this,"afterDatasetUpdate",[n]))},render:function(e){var t=this;e&&"object"==typeof e||(e={duration:e,lazy:arguments[1]});var n=t.options.animation,i=Et(e.duration,n&&n.duration),r=e.lazy;if(!1!==yt.notify(t,"beforeRender")){var a=function(e){yt.notify(t,"afterRender"),Y.callback(n&&n.onComplete,[e],t)};if(n&&i){var o=new G({numSteps:i/16.66,easing:e.easing||n.easing,render:function(e,t){var n=t.currentStep,i=n/t.numSteps;e.draw((0,Y.easing.effects[t.easing])(i),i,n)},onAnimationProgress:n.onProgress,onAnimationComplete:a});X.addAnimation(t,o,i,r)}else t.draw(),a(new G({numSteps:0,chart:t}));return t}},draw:function(e){var t,n,i=this;if(i.clear(),Y.isNullOrUndef(e)&&(e=1),i.transition(e),!(i.width<=0||i.height<=0)&&!1!==yt.notify(i,"beforeDraw",[e])){for(n=i._layers,t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(i.chartArea);for(i.drawDatasets(e);t<n.length;++t)n[t].draw(i.chartArea);i._drawTooltip(e),yt.notify(i,"afterDraw",[e])}},transition:function(e){for(var t=0,n=(this.data.datasets||[]).length;t<n;++t)this.isDatasetVisible(t)&&this.getDatasetMeta(t).controller.transition(e);this.tooltip.transition(e)},_getSortedDatasetMetas:function(e){var t,n,i=[];for(t=0,n=(this.data.datasets||[]).length;t<n;++t)e&&!this.isDatasetVisible(t)||i.push(this.getDatasetMeta(t));return i.sort(It("order","index")),i},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(e){var t,n;if(!1!==yt.notify(this,"beforeDatasetsDraw",[e])){for(n=(t=this._getSortedVisibleDatasetMetas()).length-1;n>=0;--n)this.drawDataset(t[n],e);yt.notify(this,"afterDatasetsDraw",[e])}},drawDataset:function(e,t){var n={meta:e,index:e.index,easingValue:t};!1!==yt.notify(this,"beforeDatasetDraw",[n])&&(e.controller.draw(t),yt.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(e){var t=this.tooltip,n={tooltip:t,easingValue:e};!1!==yt.notify(this,"beforeTooltipDraw",[n])&&(t.draw(),yt.notify(this,"afterTooltipDraw",[n]))},getElementAtEvent:function(e){return Qe.modes.single(this,e)},getElementsAtEvent:function(e){return Qe.modes.label(this,e,{intersect:!0})},getElementsAtXAxis:function(e){return Qe.modes["x-axis"](this,e,{intersect:!0})},getElementsAtEventForMode:function(e,t,n){var i=Qe.modes[t];return"function"==typeof i?i(this,e,n):[]},getDatasetAtEvent:function(e){return Qe.modes.dataset(this,e,{intersect:!0})},getDatasetMeta:function(e){var t=this.data.datasets[e];t._meta||(t._meta={});var n=t._meta[this.id];return n||(n=t._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t.order||0,index:e}),n},getVisibleDatasetCount:function(){for(var e=0,t=0,n=this.data.datasets.length;t<n;++t)this.isDatasetVisible(t)&&e++;return e},isDatasetVisible:function(e){var t=this.getDatasetMeta(e);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[e].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(e){var t=this.id,n=this.data.datasets[e],i=n._meta&&n._meta[t];i&&(i.controller.destroy(),delete n._meta[t])},destroy:function(){var e,t,n=this,i=n.canvas;for(n.stop(),e=0,t=n.data.datasets.length;e<t;++e)n.destroyDatasetMeta(e);i&&(n.unbindEvents(),Y.canvas.clear(n),vt.releaseContext(n.ctx),n.canvas=null,n.ctx=null),yt.notify(n,"destroy"),delete Ht.instances[n.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var e=this;e.tooltip=new Tt({_chart:e,_chartInstance:e,_data:e.data,_options:e.options.tooltips},e)},bindEvents:function(){var e=this,t=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};Y.each(e.options.events,function(i){vt.addEventListener(e,i,n),t[i]=n}),e.options.responsive&&(n=function(){e.resize()},vt.addEventListener(e,"resize",n),t.resize=n)},unbindEvents:function(){var e=this,t=e._listeners;t&&(delete e._listeners,Y.each(t,function(t,n){vt.removeEventListener(e,n,t)}))},updateHoverStyle:function(e,t,n){var i,r,a,o=n?"set":"remove";for(r=0,a=e.length;r<a;++r)(i=e[r])&&this.getDatasetMeta(i._datasetIndex).controller[o+"HoverStyle"](i);"dataset"===t&&this.getDatasetMeta(e[0]._datasetIndex).controller["_"+o+"DatasetHoverStyle"]()},eventHandler:function(e){var t=this,n=t.tooltip;if(!1!==yt.notify(t,"beforeEvent",[e])){t._bufferedRender=!0,t._bufferedRequest=null;var i=t.handleEvent(e);n&&(i=n._start?n.handleEvent(e):i|n.handleEvent(e)),yt.notify(t,"afterEvent",[e]);var r=t._bufferedRequest;return r?t.render(r):i&&!t.animating&&(t.stop(),t.render({duration:t.options.hover.animationDuration,lazy:!0})),t._bufferedRender=!1,t._bufferedRequest=null,t}},handleEvent:function(e){var t,n=this,i=n.options||{},r=i.hover;return n.lastActive=n.lastActive||[],n.active="mouseout"===e.type?[]:n.getElementsAtEventForMode(e,r.mode,r),Y.callback(i.onHover||i.hover.onHover,[e.native,n.active],n),"mouseup"!==e.type&&"click"!==e.type||i.onClick&&i.onClick.call(n,e.native,n.active),n.lastActive.length&&n.updateHoverStyle(n.lastActive,r.mode,!1),n.active.length&&r.mode&&n.updateHoverStyle(n.active,r.mode,!0),t=!Y.arrayEquals(n.active,n.lastActive),n.lastActive=n.active,t}}),Ht.instances={};var jt=Ht;function Ft(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Rt(e){this.options=e||{}}Ht.Controller=Ht,Ht.types={},Y.configMerge=Pt,Y.scaleMerge=At,Y.extend(Rt.prototype,{formats:Ft,parse:Ft,format:Ft,add:Ft,diff:Ft,startOf:Ft,endOf:Ft,_create:function(e){return e}}),Rt.override=function(e){Y.extend(Rt.prototype,e)};var Nt={_date:Rt},Bt={formatters:{values:function(e){return Y.isArray(e)?e:""+e},linear:function(e,t,n){var i=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(i)>1&&e!==Math.floor(e)&&(i=e-Math.floor(e));var r=Y.log10(Math.abs(i)),a="";if(0!==e)if(Math.max(Math.abs(n[0]),Math.abs(n[n.length-1]))<1e-4){var o=Y.log10(Math.abs(e)),s=Math.floor(o)-Math.floor(r);s=Math.max(Math.min(s,20),0),a=e.toExponential(s)}else{var l=-1*Math.floor(r);l=Math.max(Math.min(l,20),0),a=e.toFixed(l)}else a="0";return a},logarithmic:function(e,t,n){var i=e/Math.pow(10,Math.floor(Y.log10(e)));return 0===e?"0":1===i||2===i||5===i||0===t||t===n.length-1?e.toExponential():""}}},Yt=Y.isArray,zt=Y.isNullOrUndef,Vt=Y.valueOrDefault,Ut=Y.valueAtIndexOrDefault;function $t(e,t,n){var i,r=e.getTicks().length,a=Math.min(t,r-1),o=e.getPixelForTick(a),s=e._startPixel,l=e._endPixel;if(!(n&&(i=1===r?Math.max(o-s,l-o):0===t?(e.getPixelForTick(1)-o)/2:(o-e.getPixelForTick(a-1))/2,(o+=a<t?i:-i)<s-1e-6||o>l+1e-6)))return o}function Wt(e){return e.drawTicks?e.tickMarkLength:0}function qt(e){var t,n;return e.display?(t=Y.options._parseFont(e),n=Y.options.toPadding(e.padding),t.lineHeight+n.height):0}function Gt(e,t){return Y.extend(Y.options._parseFont({fontFamily:Vt(t.fontFamily,e.fontFamily),fontSize:Vt(t.fontSize,e.fontSize),fontStyle:Vt(t.fontStyle,e.fontStyle),lineHeight:Vt(t.lineHeight,e.lineHeight)}),{color:Y.options.resolve([t.fontColor,e.fontColor,j.global.defaultFontColor])})}function Xt(e){var t=Gt(e,e.minor);return{minor:t,major:e.major.enabled?Gt(e,e.major):t}}function Qt(e){var t,n,i,r=[];for(n=0,i=e.length;n<i;++n)void 0!==(t=e[n])._index&&r.push(t);return r}function Kt(e,t,n,i){var r,a,o,s,l=Vt(n,0),c=Math.min(Vt(i,e.length),e.length),u=0;for(t=Math.ceil(t),i&&(t=(r=i-n)/Math.floor(r/t)),s=l;s<0;)u++,s=Math.round(l+u*t);for(a=Math.max(l,0);a<c;a++)o=e[a],a===s?(o._index=a,u++,s=Math.round(l+u*t)):delete o.label}j._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:Bt.formatters.values,minor:{},major:{}}});var Zt=W.extend({zeroLineIndex:0,getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},_getLabels:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]},mergeTicksOptions:function(){},beforeUpdate:function(){Y.callback(this.options.beforeUpdate,[this])},update:function(e,t,n){var i,r,a,o,s,l=this,c=l.options.ticks,u=c.sampleSize;if(l.beforeUpdate(),l.maxWidth=e,l.maxHeight=t,l.margins=Y.extend({left:0,right:0,top:0,bottom:0},n),l._ticks=null,l.ticks=null,l._labelSizes=null,l._maxLabelLines=0,l.longestLabelWidth=0,l.longestTextCache=l.longestTextCache||{},l._gridLineItems=null,l._labelItems=null,l.beforeSetDimensions(),l.setDimensions(),l.afterSetDimensions(),l.beforeDataLimits(),l.determineDataLimits(),l.afterDataLimits(),l.beforeBuildTicks(),o=l.buildTicks()||[],(!(o=l.afterBuildTicks(o)||o)||!o.length)&&l.ticks)for(o=[],i=0,r=l.ticks.length;i<r;++i)o.push({value:l.ticks[i],major:!1});return l._ticks=o,a=l._convertTicksToLabels((s=u<o.length)?function(e,t){for(var n=[],i=e.length/t,r=0,a=e.length;r<a;r+=i)n.push(e[Math.floor(r)]);return n}(o,u):o),l._configure(),l.beforeCalculateTickRotation(),l.calculateTickRotation(),l.afterCalculateTickRotation(),l.beforeFit(),l.fit(),l.afterFit(),l._ticksToDraw=c.display&&(c.autoSkip||"auto"===c.source)?l._autoSkip(o):o,s&&(a=l._convertTicksToLabels(l._ticksToDraw)),l.ticks=a,l.afterUpdate(),l.minSize},_configure:function(){var e,t,n=this,i=n.options.ticks.reverse;n.isHorizontal()?(e=n.left,t=n.right):(e=n.top,t=n.bottom,i=!i),n._startPixel=e,n._endPixel=t,n._reversePixels=i,n._length=t-e},afterUpdate:function(){Y.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){Y.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0},afterSetDimensions:function(){Y.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){Y.callback(this.options.beforeDataLimits,[this])},determineDataLimits:Y.noop,afterDataLimits:function(){Y.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){Y.callback(this.options.beforeBuildTicks,[this])},buildTicks:Y.noop,afterBuildTicks:function(e){var t=this;return Yt(e)&&e.length?Y.callback(t.options.afterBuildTicks,[t,e]):(t.ticks=Y.callback(t.options.afterBuildTicks,[t,t.ticks])||t.ticks,e)},beforeTickToLabelConversion:function(){Y.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var e=this.options.ticks;this.ticks=this.ticks.map(e.userCallback||e.callback,this)},afterTickToLabelConversion:function(){Y.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){Y.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var e,t,n,i,r,a,o,s=this,l=s.options,c=l.ticks,u=s.getTicks().length,d=c.minRotation||0,h=c.maxRotation,f=d;!s._isVisible()||!c.display||d>=h||u<=1||!s.isHorizontal()?s.labelRotation=d:(t=(e=s._getLabelSizes()).widest.width,n=e.highest.height-e.highest.offset,i=Math.min(s.maxWidth,s.chart.width-t),t+6>(r=l.offset?s.maxWidth/u:i/(u-1))&&(r=i/(u-(l.offset?.5:1)),a=s.maxHeight-Wt(l.gridLines)-c.padding-qt(l.scaleLabel),o=Math.sqrt(t*t+n*n),f=Y.toDegrees(Math.min(Math.asin(Math.min((e.highest.height+6)/r,1)),Math.asin(Math.min(a/o,1))-Math.asin(n/o))),f=Math.max(d,Math.min(h,f))),s.labelRotation=f)},afterCalculateTickRotation:function(){Y.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){Y.callback(this.options.beforeFit,[this])},fit:function(){var e=this,t=e.minSize={width:0,height:0},n=e.chart,i=e.options,r=i.ticks,a=i.scaleLabel,o=i.gridLines,s=e._isVisible(),l="bottom"===i.position,c=e.isHorizontal();if(c?t.width=e.maxWidth:s&&(t.width=Wt(o)+qt(a)),c?s&&(t.height=Wt(o)+qt(a)):t.height=e.maxHeight,r.display&&s){var u=Xt(r),d=e._getLabelSizes(),h=d.first,f=d.last,p=d.widest,m=d.highest,g=.4*u.minor.lineHeight,v=r.padding;if(c){var y=0!==e.labelRotation,b=Y.toRadians(e.labelRotation),_=Math.cos(b),w=Math.sin(b);t.height=Math.min(e.maxHeight,t.height+(w*p.width+_*(m.height-(y?m.offset:0))+(y?0:g))+v);var k,C,x=e.getPixelForTick(0)-e.left,S=e.right-e.getPixelForTick(e.getTicks().length-1);y?(k=l?_*h.width+w*h.offset:w*(h.height-h.offset),C=l?w*(f.height-f.offset):_*f.width+w*f.offset):(k=h.width/2,C=f.width/2),e.paddingLeft=Math.max((k-x)*e.width/(e.width-x),0)+3,e.paddingRight=Math.max((C-S)*e.width/(e.width-S),0)+3}else t.width=Math.min(e.maxWidth,t.width+(r.mirror?0:p.width+v+g)),e.paddingTop=h.height/2,e.paddingBottom=f.height/2}e.handleMargins(),c?(e.width=e._length=n.width-e.margins.left-e.margins.right,e.height=t.height):(e.width=t.width,e.height=e._length=n.height-e.margins.top-e.margins.bottom)},handleMargins:function(){var e=this;e.margins&&(e.margins.left=Math.max(e.paddingLeft,e.margins.left),e.margins.top=Math.max(e.paddingTop,e.margins.top),e.margins.right=Math.max(e.paddingRight,e.margins.right),e.margins.bottom=Math.max(e.paddingBottom,e.margins.bottom))},afterFit:function(){Y.callback(this.options.afterFit,[this])},isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(e){if(zt(e))return NaN;if(("number"==typeof e||e instanceof Number)&&!isFinite(e))return NaN;if(e)if(this.isHorizontal()){if(void 0!==e.x)return this.getRightValue(e.x)}else if(void 0!==e.y)return this.getRightValue(e.y);return e},_convertTicksToLabels:function(e){var t,n,i,r=this;for(r.ticks=e.map(function(e){return e.value}),r.beforeTickToLabelConversion(),t=r.convertTicksToLabels(e)||r.ticks,r.afterTickToLabelConversion(),n=0,i=e.length;n<i;++n)e[n].label=t[n];return t},_getLabelSizes:function(){var e=this,t=e._labelSizes;return t||(e._labelSizes=t=function(e,t,n,i){var r,a,o,s,l,c,u,d,h,f,p,m,g,v=n.length,y=[],b=[],_=[],w=0,k=0;for(r=0;r<v;++r){if(s=n[r].label,e.font=c=(l=n[r].major?t.major:t.minor).string,u=i[c]=i[c]||{data:{},gc:[]},d=l.lineHeight,h=f=0,zt(s)||Yt(s)){if(Yt(s))for(a=0,o=s.length;a<o;++a)zt(p=s[a])||Yt(p)||(h=Y.measureText(e,u.data,u.gc,h,p),f+=d)}else h=Y.measureText(e,u.data,u.gc,h,s),f=d;y.push(h),b.push(f),_.push(d/2),w=Math.max(h,w),k=Math.max(f,k)}function C(e){return{width:y[e]||0,height:b[e]||0,offset:_[e]||0}}return function(e,t){Y.each(e,function(e){var n,i=e.gc,r=i.length/2;if(r>t){for(n=0;n<r;++n)delete e.data[i[n]];i.splice(0,r)}})}(i,v),m=y.indexOf(w),g=b.indexOf(k),{first:C(0),last:C(v-1),widest:C(m),highest:C(g)}}(e.ctx,Xt(e.options.ticks),e.getTicks(),e.longestTextCache),e.longestLabelWidth=t.widest.width),t},_parseValue:function(e){var t,n,i,r;return Yt(e)?(t=+this.getRightValue(e[0]),n=+this.getRightValue(e[1]),i=Math.min(t,n),r=Math.max(t,n)):(t=void 0,n=e=+this.getRightValue(e),i=e,r=e),{min:i,max:r,start:t,end:n}},_getScaleLabel:function(e){var t=this._parseValue(e);return void 0!==t.start?"["+t.start+", "+t.end+"]":+this.getRightValue(e)},getLabelForIndex:Y.noop,getPixelForValue:Y.noop,getValueForPixel:Y.noop,getPixelForTick:function(e){var t=this.options.offset,n=this._ticks.length,i=1/Math.max(n-(t?0:1),1);return e<0||e>n-1?null:this.getPixelForDecimal(e*i+(t?i/2:0))},getPixelForDecimal:function(e){return this._reversePixels&&(e=1-e),this._startPixel+e*this._length},getDecimalForPixel:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var e=this.min,t=this.max;return this.beginAtZero?0:e<0&&t<0?t:e>0&&t>0?e:0},_autoSkip:function(e){var t,n,i,r,a=this.options.ticks,o=a.maxTicksLimit||this._length/this._tickSize()+1,s=a.major.enabled?function(e){var t,n,i=[];for(t=0,n=e.length;t<n;t++)e[t].major&&i.push(t);return i}(e):[],l=s.length,c=s[0],u=s[l-1];if(l>o)return function(e,t,n){var i,r,a=0,o=t[0];for(n=Math.ceil(n),i=0;i<e.length;i++)r=e[i],i===o?(r._index=i,o=t[++a*n]):delete r.label}(e,s,l/o),Qt(e);if(i=function(e,t,n,i){var r,a,o,s,l=function(e){var t,n,i=e.length;if(i<2)return!1;for(n=e[0],t=1;t<i;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),c=(t.length-1)/i;if(!l)return Math.max(c,1);for(o=0,s=(r=Y.math._factorize(l)).length-1;o<s;o++)if((a=r[o])>c)return a;return Math.max(c,1)}(s,e,0,o),l>0){for(t=0,n=l-1;t<n;t++)Kt(e,i,s[t],s[t+1]);return Kt(e,i,Y.isNullOrUndef(r=l>1?(u-c)/(l-1):null)?0:c-r,c),Kt(e,i,u,Y.isNullOrUndef(r)?e.length:u+r),Qt(e)}return Kt(e,i),Qt(e)},_tickSize:function(){var e=this.options.ticks,t=Y.toRadians(this.labelRotation),n=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),r=this._getLabelSizes(),a=e.autoSkipPadding||0,o=r?r.widest.width+a:0,s=r?r.highest.height+a:0;return this.isHorizontal()?s*n>o*i?o/n:s/i:s*i<o*n?s/n:o/i},_isVisible:function(){var e,t,n,i=this.chart,r=this.options.display;if("auto"!==r)return!!r;for(e=0,t=i.data.datasets.length;e<t;++e)if(i.isDatasetVisible(e)&&((n=i.getDatasetMeta(e)).xAxisID===this.id||n.yAxisID===this.id))return!0;return!1},_computeGridLineItems:function(e){var t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v,y=this,b=y.chart,_=y.options,w=_.gridLines,k=_.position,C=w.offsetGridLines,x=y.isHorizontal(),S=y._ticksToDraw,M=S.length+(C?1:0),D=Wt(w),T=[],E=w.drawBorder?Ut(w.lineWidth,0,0):0,A=E/2,P=Y._alignPixel,L=function(e){return P(b,e,E)};for("top"===k?(t=L(y.bottom),s=y.bottom-D,c=t-A,d=L(e.top)+A,f=e.bottom):"bottom"===k?(t=L(y.top),d=e.top,f=L(e.bottom)-A,s=t+A,c=y.top+D):"left"===k?(t=L(y.right),o=y.right-D,l=t-A,u=L(e.left)+A,h=e.right):(t=L(y.left),u=e.left,h=L(e.right)-A,o=t+A,l=y.left+D),n=0;n<M;++n)zt((i=S[n]||{}).label)&&n<S.length||(n===y.zeroLineIndex&&_.offset===C?(p=w.zeroLineWidth,m=w.zeroLineColor,g=w.zeroLineBorderDash||[],v=w.zeroLineBorderDashOffset||0):(p=Ut(w.lineWidth,n,1),m=Ut(w.color,n,"rgba(0,0,0,0.1)"),g=w.borderDash||[],v=w.borderDashOffset||0),void 0!==(r=$t(y,i._index||n,C))&&(a=P(b,r,p),x?o=l=u=h=a:s=c=d=f=a,T.push({tx1:o,ty1:s,tx2:l,ty2:c,x1:u,y1:d,x2:h,y2:f,width:p,color:m,borderDash:g,borderDashOffset:v})));return T.ticksLength=M,T.borderValue=t,T},_computeLabelItems:function(){var e,t,n,i,r,a,o,s,l,c,u,d,h=this,f=h.options,p=f.ticks,m=f.position,g=p.mirror,v=h.isHorizontal(),y=h._ticksToDraw,b=Xt(p),_=p.padding,w=Wt(f.gridLines),k=-Y.toRadians(h.labelRotation),C=[];for("top"===m?(a=h.bottom-w-_,o=k?"left":"center"):"bottom"===m?(a=h.top+w+_,o=k?"right":"center"):"left"===m?(r=h.right-(g?0:w)-_,o=g?"left":"right"):(r=h.left+(g?0:w)+_,o=g?"right":"left"),e=0,t=y.length;e<t;++e)zt(i=(n=y[e]).label)||(s=h.getPixelForTick(n._index||e)+p.labelOffset,c=(l=n.major?b.major:b.minor).lineHeight,u=Yt(i)?i.length:1,v?(r=s,d="top"===m?((k?1:.5)-u)*c:(k?0:.5)*c):(a=s,d=(1-u)*c/2),C.push({x:r,y:a,rotation:k,label:i,font:l,textOffset:d,textAlign:o}));return C},_drawGrid:function(e){var t=this,n=t.options.gridLines;if(n.display){var i,r,a,o,s,l=t.ctx,c=t.chart,u=Y._alignPixel,d=n.drawBorder?Ut(n.lineWidth,0,0):0,h=t._gridLineItems||(t._gridLineItems=t._computeGridLineItems(e));for(a=0,o=h.length;a<o;++a)r=(s=h[a]).color,(i=s.width)&&r&&(l.save(),l.lineWidth=i,l.strokeStyle=r,l.setLineDash&&(l.setLineDash(s.borderDash),l.lineDashOffset=s.borderDashOffset),l.beginPath(),n.drawTicks&&(l.moveTo(s.tx1,s.ty1),l.lineTo(s.tx2,s.ty2)),n.drawOnChartArea&&(l.moveTo(s.x1,s.y1),l.lineTo(s.x2,s.y2)),l.stroke(),l.restore());if(d){var f,p,m,g,v=d,y=Ut(n.lineWidth,h.ticksLength-1,1),b=h.borderValue;t.isHorizontal()?(f=u(c,t.left,v)-v/2,p=u(c,t.right,y)+y/2,m=g=b):(m=u(c,t.top,v)-v/2,g=u(c,t.bottom,y)+y/2,f=p=b),l.lineWidth=d,l.strokeStyle=Ut(n.color,0),l.beginPath(),l.moveTo(f,m),l.lineTo(p,g),l.stroke()}}},_drawLabels:function(){var e=this;if(e.options.ticks.display){var t,n,i,r,a,o,s,l,c=e.ctx,u=e._labelItems||(e._labelItems=e._computeLabelItems());for(t=0,i=u.length;t<i;++t){if(o=(a=u[t]).font,c.save(),c.translate(a.x,a.y),c.rotate(a.rotation),c.font=o.string,c.fillStyle=o.color,c.textBaseline="middle",c.textAlign=a.textAlign,l=a.textOffset,Yt(s=a.label))for(n=0,r=s.length;n<r;++n)c.fillText(""+s[n],0,l),l+=o.lineHeight;else c.fillText(s,0,l);c.restore()}}},_drawTitle:function(){var e=this,t=e.ctx,n=e.options,i=n.scaleLabel;if(i.display){var r,a,o=Vt(i.fontColor,j.global.defaultFontColor),s=Y.options._parseFont(i),l=Y.options.toPadding(i.padding),c=s.lineHeight/2,u=n.position,d=0;if(e.isHorizontal())r=e.left+e.width/2,a="bottom"===u?e.bottom-c-l.bottom:e.top+c+l.top;else{var h="left"===u;r=h?e.left+c+l.top:e.right-c-l.top,a=e.top+e.height/2,d=h?-.5*Math.PI:.5*Math.PI}t.save(),t.translate(r,a),t.rotate(d),t.textAlign="center",t.textBaseline="middle",t.fillStyle=o,t.font=s.string,t.fillText(i.labelString,0,0),t.restore()}},draw:function(e){this._isVisible()&&(this._drawGrid(e),this._drawTitle(),this._drawLabels())},_layers:function(){var e=this,t=e.options,n=t.ticks&&t.ticks.z||0,i=t.gridLines&&t.gridLines.z||0;return e._isVisible()&&n!==i&&e.draw===e._draw?[{z:i,draw:function(){e._drawGrid.apply(e,arguments),e._drawTitle.apply(e,arguments)}},{z:n,draw:function(){e._drawLabels.apply(e,arguments)}}]:[{z:n,draw:function(){e.draw.apply(e,arguments)}}]},_getMatchingVisibleMetas:function(e){var t=this,n=t.isHorizontal();return t.chart._getSortedVisibleDatasetMetas().filter(function(i){return(!e||i.type===e)&&(n?i.xAxisID===t.id:i.yAxisID===t.id)})}});Zt.prototype._draw=Zt.prototype.draw;var Jt=Zt,en=Y.isNullOrUndef,tn=Jt.extend({determineDataLimits:function(){var e,t=this,n=t._getLabels(),i=t.options.ticks,r=i.min,a=i.max,o=0,s=n.length-1;void 0!==r&&(e=n.indexOf(r))>=0&&(o=e),void 0!==a&&(e=n.indexOf(a))>=0&&(s=e),t.minIndex=o,t.maxIndex=s,t.min=n[o],t.max=n[s]},buildTicks:function(){var e=this._getLabels(),t=this.minIndex,n=this.maxIndex;this.ticks=0===t&&n===e.length-1?e:e.slice(t,n+1)},getLabelForIndex:function(e,t){var n=this.chart;return n.getDatasetMeta(t).controller._getValueScaleId()===this.id?this.getRightValue(n.data.datasets[t].data[e]):this._getLabels()[e]},_configure:function(){var e=this,t=e.options.offset,n=e.ticks;Jt.prototype._configure.call(e),e.isHorizontal()||(e._reversePixels=!e._reversePixels),n&&(e._startValue=e.minIndex-(t?.5:0),e._valueRange=Math.max(n.length-(t?0:1),1))},getPixelForValue:function(e,t,n){var i,r,a,o=this;return en(t)||en(n)||(e=o.chart.data.datasets[n].data[t]),en(e)||(i=o.isHorizontal()?e.x:e.y),(void 0!==i||void 0!==e&&isNaN(t))&&(r=o._getLabels(),e=Y.valueOrDefault(i,e),t=-1!==(a=r.indexOf(e))?a:t,isNaN(t)&&(t=e)),o.getPixelForDecimal((t-o._startValue)/o._valueRange)},getPixelForTick:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e],e+this.minIndex)},getValueForPixel:function(e){var t=Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange);return Math.min(Math.max(t,0),this.ticks.length-1)},getBasePixel:function(){return this.bottom}});tn._defaults={position:"bottom"};var nn=Y.isNullOrUndef,rn=Jt.extend({getRightValue:function(e){return"string"==typeof e?+e:Jt.prototype.getRightValue.call(this,e)},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;if(t.beginAtZero){var n=Y.sign(e.min),i=Y.sign(e.max);n<0&&i<0?e.max=0:n>0&&i>0&&(e.min=0)}var r=void 0!==t.min||void 0!==t.suggestedMin,a=void 0!==t.max||void 0!==t.suggestedMax;void 0!==t.min?e.min=t.min:void 0!==t.suggestedMin&&(e.min=null===e.min?t.suggestedMin:Math.min(e.min,t.suggestedMin)),void 0!==t.max?e.max=t.max:void 0!==t.suggestedMax&&(e.max=null===e.max?t.suggestedMax:Math.max(e.max,t.suggestedMax)),r!==a&&e.min>=e.max&&(r?e.max=e.min+1:e.min=e.max-1),e.min===e.max&&(e.max++,t.beginAtZero||e.min--)},getTickLimit:function(){var e,t=this.options.ticks,n=t.stepSize,i=t.maxTicksLimit;return n?e=Math.ceil(this.max/n)-Math.floor(this.min/n)+1:(e=this._computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Y.noop,buildTicks:function(){var e=this,t=e.options.ticks,n=e.getTickLimit(),i={maxTicks:n=Math.max(2,n),min:t.min,max:t.max,precision:t.precision,stepSize:Y.valueOrDefault(t.fixedStepSize,t.stepSize)},r=e.ticks=function(e,t){var n,i,r,a,o=[],s=e.stepSize,l=s||1,c=e.maxTicks-1,u=e.min,d=e.max,h=e.precision,f=t.min,p=t.max,m=Y.niceNum((p-f)/c/l)*l;if(m<1e-14&&nn(u)&&nn(d))return[f,p];(a=Math.ceil(p/m)-Math.floor(f/m))>c&&(m=Y.niceNum(a*m/c/l)*l),s||nn(h)?n=Math.pow(10,Y._decimalPlaces(m)):(n=Math.pow(10,h),m=Math.ceil(m*n)/n),i=Math.floor(f/m)*m,r=Math.ceil(p/m)*m,s&&(!nn(u)&&Y.almostWhole(u/m,m/1e3)&&(i=u),!nn(d)&&Y.almostWhole(d/m,m/1e3)&&(r=d)),a=Y.almostEquals(a=(r-i)/m,Math.round(a),m/1e3)?Math.round(a):Math.ceil(a),i=Math.round(i*n)/n,r=Math.round(r*n)/n,o.push(nn(u)?i:u);for(var g=1;g<a;++g)o.push(Math.round((i+g*m)*n)/n);return o.push(nn(d)?r:d),o}(i,e);e.handleDirectionalChanges(),e.max=Y.max(r),e.min=Y.min(r),t.reverse?(r.reverse(),e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),Jt.prototype.convertTicksToLabels.call(e)},_configure:function(){var e,t=this,n=t.getTicks(),i=t.min,r=t.max;Jt.prototype._configure.call(t),t.options.offset&&n.length&&(i-=e=(r-i)/Math.max(n.length-1,1)/2,r+=e),t._startValue=i,t._endValue=r,t._valueRange=r-i}}),an={position:"left",ticks:{callback:Bt.formatters.linear}};function on(e,t,n,i){var r,a,o=e.options,s=function(e,t,n){var i=[n.type,void 0===t&&void 0===n.stack?n.index:"",n.stack].join(".");return void 0===e[i]&&(e[i]={pos:[],neg:[]}),e[i]}(t,o.stacked,n),l=s.pos,c=s.neg,u=i.length;for(r=0;r<u;++r)a=e._parseValue(i[r]),isNaN(a.min)||isNaN(a.max)||n.data[r].hidden||(l[r]=l[r]||0,c[r]=c[r]||0,o.relativePoints?l[r]=100:a.min<0||a.max<0?c[r]+=a.min:l[r]+=a.max)}function sn(e,t,n){var i,r,a=n.length;for(i=0;i<a;++i)r=e._parseValue(n[i]),isNaN(r.min)||isNaN(r.max)||t.data[i].hidden||(e.min=Math.min(e.min,r.min),e.max=Math.max(e.max,r.max))}var ln=rn.extend({determineDataLimits:function(){var e,t,n,i,r=this,a=r.options,o=r.chart.data.datasets,s=r._getMatchingVisibleMetas(),l=a.stacked,c={},u=s.length;if(r.min=Number.POSITIVE_INFINITY,r.max=Number.NEGATIVE_INFINITY,void 0===l)for(e=0;!l&&e<u;++e)l=void 0!==(t=s[e]).stack;for(e=0;e<u;++e)n=o[(t=s[e]).index].data,l?on(r,c,t,n):sn(r,t,n);Y.each(c,function(e){i=e.pos.concat(e.neg),r.min=Math.min(r.min,Y.min(i)),r.max=Math.max(r.max,Y.max(i))}),r.min=Y.isFinite(r.min)&&!isNaN(r.min)?r.min:0,r.max=Y.isFinite(r.max)&&!isNaN(r.max)?r.max:1,r.handleTickRangeOptions()},_computeTickLimit:function(){var e;return this.isHorizontal()?Math.ceil(this.width/40):(e=Y.options._parseFont(this.options.ticks),Math.ceil(this.height/e.lineHeight))},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForValue:function(e){return this.getPixelForDecimal((+this.getRightValue(e)-this._startValue)/this._valueRange)},getValueForPixel:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange},getPixelForTick:function(e){var t=this.ticksAsNumbers;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])}});ln._defaults=an;var cn=Y.valueOrDefault,un=Y.math.log10,dn={position:"left",ticks:{callback:Bt.formatters.logarithmic}};function hn(e,t){return Y.isFinite(e)&&e>=0?e:t}var fn=Jt.extend({determineDataLimits:function(){var e,t,n,i,r,a,o=this,s=o.options,l=o.chart,c=l.data.datasets,u=o.isHorizontal();function d(e){return u?e.xAxisID===o.id:e.yAxisID===o.id}o.min=Number.POSITIVE_INFINITY,o.max=Number.NEGATIVE_INFINITY,o.minNotZero=Number.POSITIVE_INFINITY;var h=s.stacked;if(void 0===h)for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t)&&void 0!==t.stack){h=!0;break}if(s.stacked||h){var f={};for(e=0;e<c.length;e++){var p=[(t=l.getDatasetMeta(e)).type,void 0===s.stacked&&void 0===t.stack?e:"",t.stack].join(".");if(l.isDatasetVisible(e)&&d(t))for(void 0===f[p]&&(f[p]=[]),r=0,a=(i=c[e].data).length;r<a;r++){var m=f[p];n=o._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(m[r]=m[r]||0,m[r]+=n.max)}}Y.each(f,function(e){if(e.length>0){var t=Y.min(e),n=Y.max(e);o.min=Math.min(o.min,t),o.max=Math.max(o.max,n)}})}else for(e=0;e<c.length;e++)if(t=l.getDatasetMeta(e),l.isDatasetVisible(e)&&d(t))for(r=0,a=(i=c[e].data).length;r<a;r++)n=o._parseValue(i[r]),isNaN(n.min)||isNaN(n.max)||t.data[r].hidden||n.min<0||n.max<0||(o.min=Math.min(n.min,o.min),o.max=Math.max(n.max,o.max),0!==n.min&&(o.minNotZero=Math.min(n.min,o.minNotZero)));o.min=Y.isFinite(o.min)?o.min:null,o.max=Y.isFinite(o.max)?o.max:null,o.minNotZero=Y.isFinite(o.minNotZero)?o.minNotZero:null,this.handleTickRangeOptions()},handleTickRangeOptions:function(){var e=this,t=e.options.ticks;e.min=hn(t.min,e.min),e.max=hn(t.max,e.max),e.min===e.max&&(0!==e.min&&null!==e.min?(e.min=Math.pow(10,Math.floor(un(e.min))-1),e.max=Math.pow(10,Math.floor(un(e.max))+1)):(e.min=1,e.max=10)),null===e.min&&(e.min=Math.pow(10,Math.floor(un(e.max))-1)),null===e.max&&(e.max=0!==e.min?Math.pow(10,Math.floor(un(e.min))+1):10),null===e.minNotZero&&(e.minNotZero=e.min>0?e.min:e.max<1?Math.pow(10,Math.floor(un(e.max))):1)},buildTicks:function(){var e=this,t=e.options.ticks,n=!e.isHorizontal(),i={min:hn(t.min),max:hn(t.max)},r=e.ticks=function(e,t){var n,i,r=[],a=cn(e.min,Math.pow(10,Math.floor(un(t.min)))),o=Math.floor(un(t.max)),s=Math.ceil(t.max/Math.pow(10,o));0===a?(n=Math.floor(un(t.minNotZero)),i=Math.floor(t.minNotZero/Math.pow(10,n)),r.push(a),a=i*Math.pow(10,n)):(n=Math.floor(un(a)),i=Math.floor(a/Math.pow(10,n)));var l=n<0?Math.pow(10,Math.abs(n)):1;do{r.push(a),10==++i&&(i=1,l=++n>=0?1:l),a=Math.round(i*Math.pow(10,n)*l)/l}while(n<o||n===o&&i<s);var c=cn(e.max,a);return r.push(c),r}(i,e);e.max=Y.max(r),e.min=Y.min(r),t.reverse?(n=!n,e.start=e.max,e.end=e.min):(e.start=e.min,e.end=e.max),n&&r.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),Jt.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(e,t){return this._getScaleLabel(this.chart.data.datasets[t].data[e])},getPixelForTick:function(e){var t=this.tickValues;return e<0||e>t.length-1?null:this.getPixelForValue(t[e])},_getFirstTickValue:function(e){var t=Math.floor(un(e));return Math.floor(e/Math.pow(10,t))*Math.pow(10,t)},_configure:function(){var e=this,t=e.min,n=0;Jt.prototype._configure.call(e),0===t&&(t=e._getFirstTickValue(e.minNotZero),n=cn(e.options.ticks.fontSize,j.global.defaultFontSize)/e._length),e._startValue=un(t),e._valueOffset=n,e._valueRange=(un(e.max)-un(t))/(1-n)},getPixelForValue:function(e){var t=this,n=0;return(e=+t.getRightValue(e))>t.min&&e>0&&(n=(un(e)-t._startValue)/t._valueRange+t._valueOffset),t.getPixelForDecimal(n)},getValueForPixel:function(e){var t=this,n=t.getDecimalForPixel(e);return 0===n&&0===t.min?0:Math.pow(10,t._startValue+(n-t._valueOffset)*t._valueRange)}});fn._defaults=dn;var pn=Y.valueOrDefault,mn=Y.valueAtIndexOrDefault,gn=Y.options.resolve,vn={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Bt.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(e){return e}}};function yn(e){var t=e.ticks;return t.display&&e.display?pn(t.fontSize,j.global.defaultFontSize)+2*t.backdropPaddingY:0}function bn(e,t,n,i,r){return e===i||e===r?{start:t-n/2,end:t+n/2}:e<i||e>r?{start:t-n,end:t}:{start:t,end:t+n}}function _n(e){return 0===e||180===e?"center":e<180?"left":"right"}function wn(e,t,n,i){var r,a,o=n.y+i/2;if(Y.isArray(t))for(r=0,a=t.length;r<a;++r)e.fillText(t[r],n.x,o),o+=i;else e.fillText(t,n.x,o)}function kn(e,t,n){90===e||270===e?n.y-=t.h/2:(e>270||e<90)&&(n.y-=t.h)}function Cn(e){return Y.isNumber(e)?e:0}var xn=rn.extend({setDimensions:function(){var e=this;e.width=e.maxWidth,e.height=e.maxHeight,e.paddingTop=yn(e.options)/2,e.xCenter=Math.floor(e.width/2),e.yCenter=Math.floor((e.height-e.paddingTop)/2),e.drawingArea=Math.min(e.height-e.paddingTop,e.width)/2},determineDataLimits:function(){var e=this,t=e.chart,n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;Y.each(t.data.datasets,function(r,a){if(t.isDatasetVisible(a)){var o=t.getDatasetMeta(a);Y.each(r.data,function(t,r){var a=+e.getRightValue(t);isNaN(a)||o.data[r].hidden||(n=Math.min(a,n),i=Math.max(a,i))})}}),e.min=n===Number.POSITIVE_INFINITY?0:n,e.max=i===Number.NEGATIVE_INFINITY?0:i,e.handleTickRangeOptions()},_computeTickLimit:function(){return Math.ceil(this.drawingArea/yn(this.options))},convertTicksToLabels:function(){var e=this;rn.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(function(){var t=Y.callback(e.options.pointLabels.callback,arguments,e);return t||0===t?t:""})},getLabelForIndex:function(e,t){return+this.getRightValue(this.chart.data.datasets[t].data[e])},fit:function(){var e=this.options;e.display&&e.pointLabels.display?function(e){var t,n,i,r=Y.options._parseFont(e.options.pointLabels),a={l:0,r:e.width,t:0,b:e.height-e.paddingTop},o={};e.ctx.font=r.string,e._pointLabelSizes=[];var s,l,c,u=e.chart.data.labels.length;for(t=0;t<u;t++){i=e.getPointPosition(t,e.drawingArea+5),s=e.ctx,l=r.lineHeight,c=e.pointLabels[t],n=Y.isArray(c)?{w:Y.longestText(s,s.font,c),h:c.length*l}:{w:s.measureText(c).width,h:l},e._pointLabelSizes[t]=n;var d=e.getIndexAngle(t),h=Y.toDegrees(d)%360,f=bn(h,i.x,n.w,0,180),p=bn(h,i.y,n.h,90,270);f.start<a.l&&(a.l=f.start,o.l=d),f.end>a.r&&(a.r=f.end,o.r=d),p.start<a.t&&(a.t=p.start,o.t=d),p.end>a.b&&(a.b=p.end,o.b=d)}e.setReductions(e.drawingArea,a,o)}(this):this.setCenterPoint(0,0,0,0)},setReductions:function(e,t,n){var i=this,r=t.l/Math.sin(n.l),a=Math.max(t.r-i.width,0)/Math.sin(n.r),o=-t.t/Math.cos(n.t),s=-Math.max(t.b-(i.height-i.paddingTop),0)/Math.cos(n.b);r=Cn(r),a=Cn(a),o=Cn(o),s=Cn(s),i.drawingArea=Math.min(Math.floor(e-(r+a)/2),Math.floor(e-(o+s)/2)),i.setCenterPoint(r,a,o,s)},setCenterPoint:function(e,t,n,i){var r=this,a=n+r.drawingArea,o=r.height-r.paddingTop-i-r.drawingArea;r.xCenter=Math.floor((e+r.drawingArea+(r.width-t-r.drawingArea))/2+r.left),r.yCenter=Math.floor((a+o)/2+r.top+r.paddingTop)},getIndexAngle:function(e){var t=this.chart,n=(e*(360/t.data.labels.length)+((t.options||{}).startAngle||0))%360;return(n<0?n+360:n)*Math.PI*2/360},getDistanceFromCenterForValue:function(e){var t=this;if(Y.isNullOrUndef(e))return NaN;var n=t.drawingArea/(t.max-t.min);return t.options.ticks.reverse?(t.max-e)*n:(e-t.min)*n},getPointPosition:function(e,t){var n=this.getIndexAngle(e)-Math.PI/2;return{x:Math.cos(n)*t+this.xCenter,y:Math.sin(n)*t+this.yCenter}},getPointPositionForValue:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))},getBasePosition:function(e){var t=this.min,n=this.max;return this.getPointPositionForValue(e||0,this.beginAtZero?0:t<0&&n<0?n:t>0&&n>0?t:0)},_drawGrid:function(){var e,t,n,i=this,r=i.ctx,a=i.options,o=a.gridLines,s=a.angleLines,l=pn(s.lineWidth,o.lineWidth),c=pn(s.color,o.color);if(a.pointLabels.display&&function(e){var t=e.ctx,n=e.options,i=n.pointLabels,r=yn(n),a=e.getDistanceFromCenterForValue(n.ticks.reverse?e.min:e.max),o=Y.options._parseFont(i);t.save(),t.font=o.string,t.textBaseline="middle";for(var s=e.chart.data.labels.length-1;s>=0;s--){var l=e.getPointPosition(s,a+(0===s?r/2:0)+5),c=mn(i.fontColor,s,j.global.defaultFontColor);t.fillStyle=c;var u=e.getIndexAngle(s),d=Y.toDegrees(u);t.textAlign=_n(d),kn(d,e._pointLabelSizes[s],l),wn(t,e.pointLabels[s],l,o.lineHeight)}
vendor: 1,643 bytes, line 1
1t.restore()}(i),o.display&&Y.each(i.ticks,function(e,n){0!==n&&(t=i.getDistanceFromCenterForValue(i.ticksAsNumbers[n]),function(e,t,n,i){var r,a=e.ctx,o=t.circular,s=e.chart.data.labels.length,l=mn(t.color,i-1),c=mn(t.lineWidth,i-1);if((o||s)&&l&&c){if(a.save(),a.strokeStyle=l,a.lineWidth=c,a.setLineDash&&(a.setLineDash(t.borderDash||[]),a.lineDashOffset=t.borderDashOffset||0),a.beginPath(),o)a.arc(e.xCenter,e.yCenter,n,0,2*Math.PI);else{r=e.getPointPosition(0,n),a.moveTo(r.x,r.y);for(var u=1;u<s;u++)r=e.getPointPosition(u,n),a.lineTo(r.x,r.y)}a.closePath(),a.stroke(),a.restore()}}(i,o,t,n))}),s.display&&l&&c){for(r.save(),r.lineWidth=l,r.strokeStyle=c,r.setLineDash&&(r.setLineDash(gn([s.borderDash,o.borderDash,[]])),r.lineDashOffset=gn([s.borderDashOffset,o.borderDashOffset,0])),e=i.chart.data.labels.length-1;e>=0;e--)t=i.getDistanceFromCenterForValue(a.ticks.reverse?i.min:i.max),n=i.getPointPosition(e,t),r.beginPath(),r.moveTo(i.xCenter,i.yCenter),r.lineTo(n.x,n.y),r.stroke();r.restore()}},_drawLabels:function(){var e=this,t=e.ctx,n=e.options.ticks;if(n.display){var i,r,a=e.getIndexAngle(0),o=Y.options._parseFont(n),s=pn(n.fontColor,j.global.defaultFontColor);t.save(),t.font=o.string,t.translate(e.xCenter,e.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",Y.each(e.ticks,function(a,l){(0!==l||n.reverse)&&(i=e.getDistanceFromCenterForValue(e.ticksAsNumbers[l]),n.showLabelBackdrop&&(r=t.measureText(a).width,t.fillStyle=n.backdropColor,t.fillRect(-r/2-n.backdropPaddingX,-i-o.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,o.size+2*n.backdropPaddingY)),t.fillStyle=s,t.fillText(a,0,-i))}),t.restore()}}
vendor: 5,574 bytes, line 1
1,_drawTitle:Y.noop});xn._defaults=vn;var Sn=Y._deprecated,Mn=Y.options.resolve,Dn=Y.valueOrDefault,Tn=Number.MIN_SAFE_INTEGER||-9007199254740991,En=Number.MAX_SAFE_INTEGER||9007199254740991,An={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Pn=Object.keys(An);function Ln(e,t){return e-t}function On(e){return Y.valueOrDefault(e.time.min,e.ticks.min)}function In(e){return Y.valueOrDefault(e.time.max,e.ticks.max)}function Hn(e,t,n,i){var r=function(e,t,n){for(var i,r,a,o=0,s=e.length-1;o>=0&&o<=s;){if(a=e[i=o+s>>1],!(r=e[i-1]||null))return{lo:null,hi:a};if(a[t]<n)o=i+1;else{if(!(r[t]>n))return{lo:r,hi:a};s=i-1}}return{lo:a,hi:null}}(e,t,n),a=r.lo?r.hi?r.lo:e[e.length-2]:e[0],o=r.lo?r.hi?r.hi:e[e.length-1]:e[1],s=o[t]-a[t];return a[i]+(o[i]-a[i])*(s?(n-a[t])/s:0)}function jn(e,t){var n=e._adapter,i=e.options.time,r=i.parser,a=r||i.format,o=t;return"function"==typeof r&&(o=r(o)),Y.isFinite(o)||(o="string"==typeof a?n.parse(o,a):n.parse(o)),null!==o?+o:(r||"function"!=typeof a||(o=a(t),Y.isFinite(o)||(o=n.parse(o))),o)}function Fn(e,t){if(Y.isNullOrUndef(t))return null;var n=e.options.time,i=jn(e,e.getRightValue(t));return null===i||n.round&&(i=+e._adapter.startOf(i,n.round)),i}function Rn(e,t,n,i){var r,a,o=Pn.length;for(r=Pn.indexOf(e);r<o-1;++r)if((a=An[Pn[r]]).common&&Math.ceil((n-t)/((a.steps?a.steps:En)*a.size))<=i)return Pn[r];return Pn[o-1]}function Nn(e,t,n){var i,r,a=[],o={},s=t.length;for(i=0;i<s;++i)o[r=t[i]]=i,a.push({value:r,major:!1});return 0!==s&&n?function(e,t,n,i){var r,a,o=e._adapter,s=+o.startOf(t[0].value,i),l=t[t.length-1].value;for(r=s;r<=l;r=+o.add(r,1,i))(a=n[r])>=0&&(t[a].major=!0);return t}(e,a,o,n):a}var Bn=Jt.extend({initialize:function(){this.mergeTicksOptions(),Jt.prototype.initialize.call(this)},update:function(){var e=this.options,t=e.time||(e.time={}),n=this._adapter=new Nt._date(e.adapters.date);return Sn("time scale",t.format,"time.format","time.parser"),Sn("time scale",t.min,"time.min","ticks.min"),Sn("time scale",t.max,"time.max","ticks.max"),Y.mergeIf(t.displayFormats,n.formats()),Jt.prototype.update.apply(this,arguments)},getRightValue:function(e){return e&&void 0!==e.t&&(e=e.t),Jt.prototype.getRightValue.call(this,e)},determineDataLimits:function(){var e,t,n,i,r,a,o,s=this,l=s.chart,c=s._adapter,u=s.options,d=u.time.unit||"day",h=En,f=Tn,p=[],m=[],g=[],v=s._getLabels();for(e=0,n=v.length;e<n;++e)g.push(Fn(s,v[e]));for(e=0,n=(l.data.datasets||[]).length;e<n;++e)if(l.isDatasetVisible(e))if(Y.isObject((r=l.data.datasets[e].data)[0]))for(m[e]=[],t=0,i=r.length;t<i;++t)a=Fn(s,r[t]),p.push(a),m[e][t]=a;else m[e]=g.slice(0),o||(p=p.concat(g),o=!0);else m[e]=[];g.length&&(h=Math.min(h,g[0]),f=Math.max(f,g[g.length-1])),p.length&&(p=n>1?function(e){var t,n,i,r={},a=[];for(t=0,n=e.length;t<n;++t)r[i=e[t]]||(r[i]=!0,a.push(i));return a}(p).sort(Ln):p.sort(Ln),h=Math.min(h,p[0]),f=Math.max(f,p[p.length-1])),h=Fn(s,On(u))||h,f=Fn(s,In(u))||f,h=h===En?+c.startOf(Date.now(),d):h,f=f===Tn?+c.endOf(Date.now(),d)+1:f,s.min=Math.min(h,f),s.max=Math.max(h+1,f),s._table=[],s._timestamps={data:p,datasets:m,labels:g}},buildTicks:function(){var e,t,n,i=this,r=i.min,a=i.max,o=i.options,s=o.ticks,l=o.time,c=i._timestamps,u=[],d=i.getLabelCapacity(r),h=s.source,f=o.distribution;for(c="data"===h||"auto"===h&&"series"===f?c.data:"labels"===h?c.labels:function(e,t,n,i){var r,a=e._adapter,o=e.options,s=o.time,l=s.unit||Rn(s.minUnit,t,n,i),c=Mn([s.stepSize,s.unitStepSize,1]),u="week"===l&&s.isoWeekday,d=t,h=[];if(u&&(d=+a.startOf(d,"isoWeek",u)),d=+a.startOf(d,u?"day":l),a.diff(n,t,l)>1e5*c)throw t+" and "+n+" are too far apart with stepSize of "+c+" "+l;for(r=d;r<n;r=+a.add(r,c,l))h.push(r);return r!==n&&"ticks"!==o.bounds||h.push(r),h}(i,r,a,d),"ticks"===o.bounds&&c.length&&(r=c[0],a=c[c.length-1]),r=Fn(i,On(o))||r,a=Fn(i,In(o))||a,e=0,t=c.length;e<t;++e)(n=c[e])>=r&&n<=a&&u.push(n);return i.min=r,i.max=a,i._unit=l.unit||(s.autoSkip?Rn(l.minUnit,i.min,i.max,d):function(e,t,n,i,r){var a,o;for(a=Pn.length-1;a>=Pn.indexOf(n);a--)if(An[o=Pn[a]].common&&e._adapter.diff(r,i,o)>=t-1)return o;return Pn[n?Pn.indexOf(n):0]}(i,u.length,l.minUnit,i.min,i.max)),i._majorUnit=s.major.enabled&&"year"!==i._unit?function(e){for(var t=Pn.indexOf(e)+1,n=Pn.length;t<n;++t)if(An[Pn[t]].common)return Pn[t]}(i._unit):void 0,i._table=function(e,t,n,i){if("linear"===i||!e.length)return[{time:t,pos:0},{time:n,pos:1}];var r,a,o,s,l,c=[],u=[t];for(r=0,a=e.length;r<a;++r)(s=e[r])>t&&s<n&&u.push(s);for(u.push(n),r=0,a=u.length;r<a;++r)l=u[r+1],s=u[r],void 0!==(o=u[r-1])&&void 0!==l&&Math.round((l+o)/2)===s||c.push({time:s,pos:r/(a-1)});return c}(i._timestamps.data,r,a,f),i._offsets=function(e,t,n,i,r){var a,o,s=0,l=0;return r.offset&&t.length&&(a=Hn(e,"time",t[0],"pos"),s=1===t.length?1-a:(Hn(e,"time",t[1],"pos")-a)/2,o=Hn(e,"time",t[t.length-1],"pos"),l=1===t.length?o:(o-Hn(e,"time",t[t.length-2],"pos"))/2),{start:s,end:l,factor:1/(s+1+l)}}(i._table,u,0,0,o),s.reverse&&u.reverse(),Nn(i,u,i._majorUnit)},getLabelForIndex:function(e,t){var n=this,i=n._adapter,r=n.chart.data,a=n.options.time,o=r.labels&&e<r.labels.length?r.labels[e]:"",s=r.datasets[t].data[e];return Y.isObject(s)&&(o=n.getRightValue(s)),a.tooltipFormat?i.format(jn(n,o),a.tooltipFormat):"string"==typeof o?o:i.format(jn(n,o),a.displayFormats.datetime)}
vendor: 4,214 bytes, line 1
1,tickFormatFunction:function(e,t,n,i){var r=this.options,a=r.time.displayFormats,o=this._majorUnit,s=a[o],l=n[t],c=r.ticks,u=o&&s&&l&&l.major,d=this._adapter.format(e,i||(u?s:a[this._unit])),h=u?c.major:c.minor,f=Mn([h.callback,h.userCallback,c.callback,c.userCallback]);return f?f(d,t,n):d},convertTicksToLabels:function(e){var t,n,i=[];for(t=0,n=e.length;t<n;++t)i.push(this.tickFormatFunction(e[t].value,t,e));return i},getPixelForOffset:function(e){var t=this._offsets,n=Hn(this._table,"time",e,"pos");return this.getPixelForDecimal((t.start+n)*t.factor)},getPixelForValue:function(e,t,n){var i=null;if(void 0!==t&&void 0!==n&&(i=this._timestamps.datasets[n][t]),null===i&&(i=Fn(this,e)),null!==i)return this.getPixelForOffset(i)},getPixelForTick:function(e){var t=this.getTicks();return e>=0&&e<t.length?this.getPixelForOffset(t[e].value):null},getValueForPixel:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end,i=Hn(this._table,"pos",n,"time");return this._adapter._create(i)},_getLabelSize:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,i=Y.toRadians(this.isHorizontal()?t.maxRotation:t.minRotation),r=Math.cos(i),a=Math.sin(i),o=Dn(t.fontSize,j.global.defaultFontSize);return{w:n*r+o*a,h:n*a+o*r}},getLabelWidth:function(e){return this._getLabelSize(e).w},getLabelCapacity:function(e){var t=this,n=t.options.time,i=n.displayFormats,r=i[n.unit]||i.millisecond,a=t.tickFormatFunction(e,0,Nn(t,[e],t._majorUnit),r),o=t._getLabelSize(a),s=Math.floor(t.isHorizontal()?t.width/o.w:t.height/o.h);return t.options.offset&&s--,s>0?s:1}});Bn._defaults={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}};var Yn={category:tn,linear:ln,logarithmic:fn,radialLinear:xn,time:Bn},zn={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Nt._date.override("function"==typeof e?{_id:"moment",formats:function(){return zn},parse:function(t,n){return"string"==typeof t&&"string"==typeof n?t=e(t,n):t instanceof e||(t=e(t)),t.isValid()?t.valueOf():null},format:function(t,n){return e(t).format(n)},add:function(t,n,i){return e(t).add(n,i).valueOf()},diff:function(t,n,i){return e(t).diff(e(n),i)},startOf:function(t,n,i){return t=e(t),"isoWeek"===n?t.isoWeekday(i).valueOf():t.startOf(n).valueOf()},endOf:function(t,n){return e(t).endOf(n).valueOf()},_create:function(t){return e(t)}}:{}),j._set("global",{plugins:{filler:{propagate:!0}}});var Vn={dataset:function(e){var t=e.fill,n=e.chart,i=n.getDatasetMeta(t),r=i&&n.isDatasetVisible(t)&&i.dataset._children||[],a=r.length||0;return a?function(e,t){return t<a&&r[t]._view||null}:null},boundary:function(e){var t=e.boundary,n=t?t.x:null,i=t?t.y:null;return Y.isArray(t)?function(e,n){return t[n]}:function(e){return{x:null===n?e.x:n,y:null===i?e.y:i}}}};function Un(e,t,n){var i,r=e._model||{},a=r.fill;if(void 0===a&&(a=!!r.backgroundColor),!1===a||null===a)return!1;if(!0===a)return"origin";if(i=parseFloat(a,10),isFinite(i)&&Math.floor(i)===i)return"-"!==a[0]&&"+"!==a[0]||(i=t+i),!(i===t||i<0||i>=n)&&i;switch(a){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return a;default:return!1}}function $n(e){return(e.el._scale||{}).getPointPositionForValue?function(e){var t,n,i,r,a,o=e.el._scale,s=o.options,l=o.chart.data.labels.length,c=e.fill,u=[];if(!l)return null;for(n=s.ticks.reverse?o.min:o.max,i=o.getPointPositionForValue(0,t=s.ticks.reverse?o.max:o.min),r=0;r<l;++r)a="start"===c||"end"===c?o.getPointPositionForValue(r,"start"===c?t:n):o.getBasePosition(r),s.gridLines.circular&&(a.cx=i.x,a.cy=i.y,a.angle=o.getIndexAngle(r)-Math.PI/2),u.push(a);return u}(e):function(e){var t,n=e.el._model||{},i=e.el._scale||{},r=e.fill,a=null;if(isFinite(r))return null;if("start"===r?a=void 0===n.scaleBottom?i.bottom:n.scaleBottom:"end"===r?a=void 0===n.scaleTop?i.top:n.scaleTop:void 0!==n.scaleZero?a=n.scaleZero:i.getBasePixel&&(a=i.getBasePixel()),null!=a){if
vendor: 15,999 bytes, line 1
1(void 0!==a.x&&void 0!==a.y)return a;if(Y.isFinite(a))return{x:(t=i.isHorizontal())?a:null,y:t?null:a}}return null}(e)}function Wn(e,t,n){var i,r=e[t].fill,a=[t];if(!n)return r;for(;!1!==r&&-1===a.indexOf(r);){if(!isFinite(r))return r;if(!(i=e[r]))return!1;if(i.visible)return r;a.push(r),r=i.fill}return!1}function qn(e){var t=e.fill,n="dataset";return!1===t?null:(isFinite(t)||(n="boundary"),Vn[n](e))}function Gn(e){return e&&!e.skip}function Xn(e,t,n,i,r){var a,o,s,l;if(i&&r){for(e.moveTo(t[0].x,t[0].y),a=1;a<i;++a)Y.canvas.lineTo(e,t[a-1],t[a]);if(void 0===n[0].angle)for(e.lineTo(n[r-1].x,n[r-1].y),a=r-1;a>0;--a)Y.canvas.lineTo(e,n[a],n[a-1],!0);else for(o=n[0].cx,s=n[0].cy,l=Math.sqrt(Math.pow(n[0].x-o,2)+Math.pow(n[0].y-s,2)),a=r-1;a>0;--a)e.arc(o,s,l,n[a].angle,n[a-1].angle,!0)}}function Qn(e,t,n,i,r,a){var o,s,l,c,u,d,h,f,p=t.length,m=i.spanGaps,g=[],v=[],y=0,b=0;for(e.beginPath(),o=0,s=p;o<s;++o)u=n(c=t[l=o%p]._view,l,i),d=Gn(c),h=Gn(u),a&&void 0===f&&d&&(s=p+(f=o+1)),d&&h?(y=g.push(c),b=v.push(u)):y&&b&&(m?(d&&g.push(c),h&&v.push(u)):(Xn(e,g,v,y,b),y=b=0,g=[],v=[]));Xn(e,g,v,y,b),e.closePath(),e.fillStyle=r,e.fill()}var Kn={id:"filler",afterDatasetsUpdate:function(e,t){var n,i,r,a,o=(e.data.datasets||[]).length,s=t.propagate,l=[];for(i=0;i<o;++i)a=null,(r=(n=e.getDatasetMeta(i)).dataset)&&r._model&&r instanceof ve.Line&&(a={visible:e.isDatasetVisible(i),fill:Un(r,i,o),chart:e,el:r}),n.$filler=a,l.push(a);for(i=0;i<o;++i)(a=l[i])&&(a.fill=Wn(l,i,s),a.boundary=$n(a),a.mapper=qn(a))},beforeDatasetsDraw:function(e){var t,n,i,r,a,o,s,l=e._getSortedVisibleDatasetMetas(),c=e.ctx;for(n=l.length-1;n>=0;--n)(t=l[n].$filler)&&t.visible&&(a=(i=t.el)._children||[],s=(r=i._view).backgroundColor||j.global.defaultColor,(o=t.mapper)&&s&&a.length&&(Y.canvas.clipArea(c,e.chartArea),Qn(c,a,o,r,s,i._loop),Y.canvas.unclipArea(c)))}},Zn=Y.rtl.getRtlAdapter,Jn=Y.noop,ei=Y.valueOrDefault;function ti(e,t){return e.usePointStyle&&e.boxWidth>t?t:e.boxWidth}j._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(e,t){var n=t.datasetIndex,i=this.chart,r=i.getDatasetMeta(n);r.hidden=null===r.hidden?!i.data.datasets[n].hidden:null,i.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.options.legend||{},i=n.labels&&n.labels.usePointStyle;return e._getSortedDatasetMetas().map(function(n){var r=n.controller.getStyle(i?0:void 0);return{text:t[n.index].label,fillStyle:r.backgroundColor,hidden:!e.isDatasetVisible(n.index),lineCap:r.borderCapStyle,lineDash:r.borderDash,lineDashOffset:r.borderDashOffset,lineJoin:r.borderJoinStyle,lineWidth:r.borderWidth,strokeStyle:r.borderColor,pointStyle:r.pointStyle,rotation:r.rotation,datasetIndex:n.index}},this)}}},legendCallback:function(e){var t,n,i,r=document.createElement("ul"),a=e.data.datasets;for(r.setAttribute("class",e.id+"-legend"),t=0,n=a.length;t<n;t++)(i=r.appendChild(document.createElement("li"))).appendChild(document.createElement("span")).style.backgroundColor=a[t].backgroundColor,a[t].label&&i.appendChild(document.createTextNode(a[t].label));return r.outerHTML}});var ni=W.extend({initialize:function(e){Y.extend(this,e),this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1},beforeUpdate:Jn,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:Jn,beforeSetDimensions:Jn,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:Jn,beforeBuildLabels:Jn,buildLabels:function(){var e=this,t=e.options.labels||{},n=Y.callback(t.generateLabels,[e.chart],e)||[];t.filter&&(n=n.filter(function(n){return t.filter(n,e.chart.data)})),e.options.reverse&&n.reverse(),e.legendItems=n},afterBuildLabels:Jn,beforeFit:Jn,fit:function(){var e=this,t=e.options,n=t.labels,i=t.display,r=e.ctx,a=Y.options._parseFont(n),o=a.size,s=e.legendHitBoxes=[],l=e.minSize,c=e.isHorizontal();if(c?(l.width=e.maxWidth,l.height=i?10:0):(l.width=i?10:0,l.height=e.maxHeight),i){if(r.font=a.string,c){var u=e.lineWidths=[0],d=0;r.textAlign="left",r.textBaseline="middle",Y.each(e.legendItems,function(e,t){var i=ti(n,o)+o/2+r.measureText(e.text).width;(0===t||u[u.length-1]+i+2*n.padding>l.width)&&(d+=o+n.padding,u[u.length-(t>0?0:1)]=0),s[t]={left:0,top:0,width:i,height:o},u[u.length-1]+=i+n.padding}),l.height+=d}else{var h=n.padding,f=e.columnWidths=[],p=e.columnHeights=[],m=n.padding,g=0,v=0;Y.each(e.legendItems,function(e,t){var i=ti(n,o)+o/2+r.measureText(e.text).width;t>0&&v+o+2*h>l.height&&(m+=g+n.padding,f.push(g),p.push(v),g=0,v=0),g=Math.max(g,i),v+=o+h,s[t]={left:0,top:0,width:i,height:o}}),m+=g,f.push(g),p.push(v),l.width+=m}e.width=l.width,e.height=l.height}else e.width=l.width=e.height=l.height=0},afterFit:Jn,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var e=this,t=e.options,n=t.labels,i=j.global,r=i.defaultColor,a=i.elements.line,o=e.height,s=e.columnHeights,l=e.width,c=e.lineWidths;if(t.display){var u,d=Zn(t.rtl,e.left,e.minSize.width),h=e.ctx,f=ei(n.fontColor,i.defaultFontColor),p=Y.options._parseFont(n),m=p.size;h.textAlign=d.textAlign("left"),h.textBaseline="middle",h.lineWidth=.5,h.strokeStyle=f,h.fillStyle=f,h.font=p.string;var g=ti(n,m),v=e.legendHitBoxes,y=function(e,i){switch(t.align){case"start":return n.padding;case"end":return e-i;default:return(e-i+n.padding)/2}},b=e.isHorizontal();u=b?{x:e.left+y(l,c[0]),y:e.top+n.padding,line:0}:{x:e.left+n.padding,y:e.top+y(o,s[0]),line:0},Y.rtl.overrideTextDirection(e.ctx,t.textDirection);var _=m+n.padding;Y.each(e.legendItems,function(t,i){var f=h.measureText(t.text).width,p=g+m/2+f,w=u.x,k=u.y;d.setWidth(e.minSize.width),b?i>0&&w+p+n.padding>e.left+e.minSize.width&&(k=u.y+=_,u.line++,w=u.x=e.left+y(l,c[u.line])):i>0&&k+_>e.top+e.minSize.height&&(w=u.x=w+e.columnWidths[u.line]+n.padding,u.line++,k=u.y=e.top+y(o,s[u.line]));var C=d.x(w);(function(e,t,i){if(!(isNaN(g)||g<=0)){h.save();var o=ei(i.lineWidth,a.borderWidth);if(h.fillStyle=ei(i.fillStyle,r),h.lineCap=ei(i.lineCap,a.borderCapStyle),h.lineDashOffset=ei(i.lineDashOffset,a.borderDashOffset),h.lineJoin=ei(i.lineJoin,a.borderJoinStyle),h.lineWidth=o,h.strokeStyle=ei(i.strokeStyle,r),h.setLineDash&&h.setLineDash(ei(i.lineDash,a.borderDash)),n&&n.usePointStyle){var s=g*Math.SQRT2/2,l=d.xPlus(e,g/2);Y.canvas.drawPoint(h,i.pointStyle,s,l,t+m/2,i.rotation)}else h.fillRect(d.leftForLtr(e,g),t,g,m),0!==o&&h.strokeRect(d.leftForLtr(e,g),t,g,m);h.restore()}})(C,k,t),v[i].left=d.leftForLtr(C,v[i].width),v[i].top=k,function(e,t,n,i){var r=m/2,a=d.xPlus(e,g+r),o=t+r;h.fillText(n.text,a,o),n.hidden&&(h.beginPath(),h.lineWidth=2,h.moveTo(a,o),h.lineTo(d.xPlus(a,i),o),h.stroke())}(C,k,t,f),b?u.x+=p+n.padding:u.y+=_}),Y.rtl.restoreTextDirection(e.ctx,t.textDirection)}},_getLegendItemAt:function(e,t){var n,i,r,a=this;if(e>=a.left&&e<=a.right&&t>=a.top&&t<=a.bottom)for(r=a.legendHitBoxes,n=0;n<r.length;++n)if(e>=(i=r[n]).left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height)return a.legendItems[n];return null},handleEvent:function(e){var t,n=this,i=n.options,r="mouseup"===e.type?"click":e.type;if("mousemove"===r){if(!i.onHover&&!i.onLeave)return}else{if("click"!==r)return;if(!i.onClick)return}t=n._getLegendItemAt(e.x,e.y),"click"===r?t&&i.onClick&&i.onClick.call(n,e.native,t):(i.onLeave&&t!==n._hoveredItem&&(n._hoveredItem&&i.onLeave.call(n,e.native,n._hoveredItem),n._hoveredItem=t),i.onHover&&t&&i.onHover.call(n,e.native,t))}});function ii(e,t){var n=new ni({ctx:e.ctx,options:t,chart:e});ot.configure(e,n,t),ot.addBox(e,n),e.legend=n}var ri={id:"legend",_element:ni,beforeInit:function(e){var t=e.options.legend;t&&ii(e,t)},beforeUpdate:function(e){var t=e.options.legend,n=e.legend;t?(Y.mergeIf(t,j.global.legend),n?(ot.configure(e,n,t),n.options=t):ii(e,t)):n&&(ot.removeBox(e,n),delete e.legend)},afterEvent:function(e,t){var n=e.legend;n&&n.handleEvent(t)}},ai=Y.noop;j._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var oi=W.extend({initialize:function(e){Y.extend(this,e),this.legendHitBoxes=[]},beforeUpdate:ai,update:function(e,t,n){var i=this;return i.beforeUpdate(),i.maxWidth=e,i.maxHeight=t,i.margins=n,i.beforeSetDimensions(),i.setDimensions(),i.afterSetDimensions(),i.beforeBuildLabels(),i.buildLabels(),i.afterBuildLabels(),i.beforeFit(),i.fit(),i.afterFit(),i.afterUpdate(),i.minSize},afterUpdate:ai,beforeSetDimensions:ai,setDimensions:function(){var e=this;e.isHorizontal()?(e.width=e.maxWidth,e.left=0,e.right=e.width):(e.height=e.maxHeight,e.top=0,e.bottom=e.height),e.paddingLeft=0,e.paddingTop=0,e.paddingRight=0,e.paddingBottom=0,e.minSize={width:0,height:0}},afterSetDimensions:ai,beforeBuildLabels:ai,buildLabels:ai,afterBuildLabels:ai,beforeFit:ai,fit:function(){var e,t=this,n=t.options,i=t.minSize={},r=t.isHorizontal();n.display?(e=(Y.isArray(n.text)?n.text.length:1)*Y.options._parseFont(n).lineHeight+2*n.padding,t.width=i.width=r?t.maxWidth:e,t.height=i.height=r?e:t.maxHeight):t.width=i.width=t.height=i.height=0},afterFit:ai,isHorizontal:function(){var e=this.options.position;return"top"===e||"bottom"===e},draw:function(){var e=this,t=e.ctx,n=e.options;if(n.display){var i,r,a,o=Y.options._parseFont(n),s=o.lineHeight,l=s/2+n.padding,c=0,u=e.top,d=e.left,h=e.bottom,f=e.right;t.fillStyle=Y.valueOrDefault(n.fontColor,j.global.defaultFontColor),t.font=o.string,e.isHorizontal()?(r=d+(f-d)/2,a=u+l,i=f-d):(r="left"===n.position?d+l:f-l,a=u+(h-u)/2,i=h-u,c=Math.PI*("left"===n.position?-.5:.5)),t.save(),t.translate(r,a),t.rotate(c),t.textAlign="center",t.textBaseline="middle";var p=n.text;if(Y.isArray(p))for(var m=0,g=0;g<p.length;++g)t.fillText(p[g],0,m,i),m+=s;else t.fillText(p,0,0,i);t.restore()}}});function si(e,t){var n=new oi({ctx:e.ctx,options:t,chart:e});ot.configure(e,n,t),ot.addBox(e,n),e.titleBlock=n}var li={},ci=Kn,ui=ri,di={id:"title",_element:oi,beforeInit:function(e){var t=e.options.title;t&&si(e,t)},beforeUpdate:function(e){var t=e.options.title,n=e.titleBlock;t?(Y.mergeIf(t,j.global.title),n?(ot.configure(e,n,t),n.options=t):si(e,t)):n&&(ot.removeBox(e,n),delete e.titleBlock)}};for(var hi in li.filler=ci,li.legend=ui,li.title=di,jt.helpers=Y,function(){function e(e,t,n){var i;return"string"==typeof e?(i=parseInt(e,10),-1!==e.indexOf("%")&&(i=i/100*t.parentNode[n])):i=e,i}function t(e){return null!=e&&"none"!==e}function n(n,i,r){var a=document.defaultView,o=Y._getParentNode(n),s=a.getComputedStyle(n)[i],l=a.getComputedStyle(o)[i],c=t(s),u=t(l),d=Number.POSITIVE_INFINITY;return c||u?Math.min(c?e(s,n,r):d,u?e(l,o,r):d):"none"}Y.where=function(e,t){if(Y.isArray(e)&&Array.prototype.filter)return e.filter(t);var n=[];return Y.each(e,function(e){t(e)&&n.push(e)}),n},Y.findIndex=Array.prototype.findIndex?function(e,t,n){return e.findIndex(t,n)}:function(e,t,n){n=void 0===n?e:n;for(var i=0,r=e.length;i<r;++i)if(t.call(n,e[i],i,e))return i;return-1},Y.findNextWhere=function(e,t,n){Y.isNullOrUndef(n)&&(n=-1);for(var i=n+1;i<e.length;i++){var r=e[i];if(t(r))return r}},Y.findPreviousWhere=function(e,t,n){Y.isNullOrUndef(n)&&(n=e.length);for(var i=n-1;i>=0;i--){var r=e[i];if(t(r))return r}},Y.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},Y.almostEquals=function(e,t,n){return Math.abs(e-t)<n},Y.almostWhole=function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e},Y.max=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.max(e,t)},Number.NEGATIVE_INFINITY)},Y.min=function(e){return e.reduce(function(e,t){return isNaN(t)?e:Math.min(e,t)},Number.POSITIVE_INFINITY)},Y.sign=Math.sign?function(e){return Math.sign(e)}:function(e){return 0==(e=+e)||isNaN(e)?e:e>0?1:-1},Y.toRadians=function(e){return e*(Math.PI/180)},Y.toDegrees=function(e){return e*(180/Math.PI)},Y._decimalPlaces=function(e){if(Y.isFinite(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}},Y.getAngleFromPoint=function(e,t){var n=t.x-e.x,i=t.y-e.y,r=Math.sqrt(n*n+i*i),a=Math.atan2(i,n);return a<-.5*Math.PI&&(a+=2*Math.PI),{angle:a,distance:r}},Y.distanceBetweenPoints=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},Y.aliasPixel=function(e){return e%2==0?0:.5},Y._alignPixel=function(e,t,n){var i=e.currentDevicePixelRatio,r=n/2;return Math.round((t-r)*i)/i+r},Y.splineCurve=function(e,t,n,i){var r=e.skip?t:e,a=t,o=n.skip?t:n,s=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),l=Math.sqrt(Math.pow(o.x-a.x,2)+Math.pow(o.y-a.y,2)),c=s/(s+l),u=l/(s+l),d=i*(c=isNaN(c)?0:c),h=i*(u=isNaN(u)?0:u);return{previous:{x:a.x-d*(o.x-r.x),y:a.y-d*(o.y-r.y)},next:{x:a.x+h*(o.x-r.x),y:a.y+h*(o.y-r.y)}}},Y.EPSILON=Number.EPSILON||1e-14,Y.splineCurveMonotone=function(e){var t,n,i,r,a,o,s,l,c,u=(e||[]).map(function(e){return{model:e._model,deltaK:0,mK:0}}),d=u.length;for(t=0;t<d;++t)if(!(i=u[t]).model.skip){if(n=t>0?u[t-1]:null,(r=t<d-1?u[t+1]:null)&&!r.model.skip){var h=r.model.x-i.model.x;i.deltaK=0!==h?(r.model.y-i.model.y)/h:0}i.mK=!n||n.model.skip?i.deltaK:!r||r.model.skip?n.deltaK:this.sign(n.deltaK)!==this.sign(i.deltaK)?0:(n.deltaK+i.deltaK)/2}for(t=0;t<d-1;++t)r=u[t+1],(i=u[t]).model.skip||r.model.skip||(Y.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=r.mK=0:(a=i.mK/i.deltaK,o=r.mK/i.deltaK,(l=Math.pow(a,2)+Math.pow(o,2))<=9||(s=3/Math.sqrt(l),i.mK=a*s*i.deltaK,r.mK=o*s*i.deltaK)));for(t=0;t<d;++t)(i=u[t]).model.skip||(r=t<d-1?u[t+1]:null,(n=t>0?u[t-1]:null)&&!n.model.skip&&(i.model.controlPointPreviousX=i.model.x-(c=(i.model.x-n.model.x)/3),i.model.controlPointPreviousY=i.model.y-c*i.mK),r&&!r.model.skip&&(i.model.controlPointNextX=i.model.x+(c=(r.model.x-i.model.x)/3),i.model.controlPointNextY=i.model.y+c*i.mK))},Y.nextItem=function(e,t,n){return n?t>=e.length-1?e[0]:e[t+1]:t>=e.length-1?e[e.length-1]:e[t+1]},Y.previousItem=function(e,t,n){return n?t<=0?e[e.length-1]:e[t-1]:t<=0?e[0]:e[t-1]},Y.niceNum=function(e,t){var n=Math.floor(Y.log10(e)),i=e/Math.pow(10,n);return(t?i<1.5?1:i<3?2:i<7?5:10:i<=1?1:i<=2?2:i<=5?5:10)*Math.pow(10,n)},Y.requestAnimFrame="undefined"==typeof window?function(e){e()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout(e,1e3/60)},Y.getRelativePosition=function(e,t){var n,i,r=e.originalEvent||e,a=e.target||e.srcElement,o=a.getBoundingClientRect(),s=r.touches;s&&s.length>0?(n=s[0].clientX,i=s[0].clientY):(n=r.clientX,i=r.clientY);var l=parseFloat(Y.getStyle(a,"padding-left")),c=parseFloat(Y.getStyle(a,"padding-top")),u=parseFloat(Y.getStyle(a,"padding-right")),d=parseFloat(Y.getStyle(a,"padding-bottom")),h=o.bottom-o.top-c-d;return{x:n=Math.round((n-o.left-l)/(o.right-o.left-l-u)*a.width/t.currentDevicePixelRatio),y:i=Math.round((i-o.top-c)/h*a.height/t.currentDevicePixelRatio)}},Y.getConstraintWidth=function(e){return n(e,"max-width","clientWidth")},Y.getConstraintHeight=function(e){return n(e,"max-height","clientHeight")},Y._calculatePadding=function(e,t,n){return(t=Y.getStyle(e,t)).indexOf("%")>-1?n*parseInt(t,10)/100:parseInt(t,10)},Y._getParentNode=function(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t},Y.getMaximumWidth=function(e){var t=Y._getParentNode(e);if(!t)return e.clientWidth;var n=t.clientWidth,i=n-Y._calculatePadding(t,"padding-left",n)-Y._calculatePadding(t,"padding-right",n),r=Y.getConstraintWidth(e);return isNaN(r)?i:Math.min(i,r)},Y.getMaximumHeight=function(e){var t=Y._getParentNode(e);if(!t)return e.clientHeight;var n=t.clientHeight,i=n-Y._calculatePadding(t,"padding-top",n)-Y._
1calculatePadding(t,"padding-bottom",n),r=Y.getConstraintHeight(e);return isNaN(r)?i:Math.min(i,r)},Y.getStyle=function(e,t){return e.currentStyle?e.currentStyle[t]:document.defaultView.getComputedStyle(e,null).getPropertyValue(t)},Y.retinaScale=function(e,t){var n=e.currentDevicePixelRatio=t||"undefined"!=typeof window&&window.devicePixelRatio||1;if(1!==n){var i=e.canvas,r=e.height,a=e.width;i.height=r*n,i.width=a*n,e.ctx.scale(n,n),i.style.height||i.style.width||(i.style.height=r+"px",i.style.width=a+"px")}},Y.fontString=function(e,t,n){return t+" "+e+"px "+n},Y.longestText=function(e,t,n,i){var r=(i=i||{}).data=i.data||{},a=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},a=i.garbageCollect=[],i.font=t),e.font=t;var o,s,l,c,u,d=0,h=n.length;for(o=0;o<h;o++)if(null!=(c=n[o])&&!0!==Y.isArray(c))d=Y.measureText(e,r,a,d,c);else if(Y.isArray(c))for(s=0,l=c.length;s<l;s++)null==(u=c[s])||Y.isArray(u)||(d=Y.measureText(e,r,a,d,u));var f=a.length/2;if(f>n.length){for(o=0;o<f;o++)delete r[a[o]];a.splice(0,f)}return d},Y.measureText=function(e,t,n,i,r){var a=t[r];return a||(a=t[r]=e.measureText(r).width,n.push(r)),a>i&&(i=a),i},Y.numberOfLabelLines=function(e){var t=1;return Y.each(e,function(e){Y.isArray(e)&&e.length>t&&(t=e.length)}),t},Y.color=_?function(e){return e instanceof CanvasGradient&&(e=j.global.defaultColor),_(e)}:function(e){return console.error("Color.js not found!"),e},Y.getHoverColor=function(e){return e instanceof CanvasPattern||e instanceof CanvasGradient?e:Y.color(e).saturate(.5).darken(.1).rgbString()}}(),jt._adapters=Nt,jt.Animation=G,jt.animationService=X,jt.controllers=Ve,jt.DatasetController=ee,jt.defaults=j,jt.Element=W,jt.elements=ve,jt.Interaction=Qe,jt.layouts=ot,jt.platform=vt,jt.plugins=yt,jt.Scale=Jt,jt.scaleService=bt,jt.Ticks=Bt,jt.Tooltip=Tt,jt.helpers.each(Yn,function(e,t){jt.scaleService.registerScaleType(t,e,e._defaults)}),li)li.hasOwnProperty(hi)&&jt.plugins.register(li[hi]);jt.platform.initialize();var fi=jt;return"undefined"!=typeof window&&(window.Chart=jt),jt.Chart=jt,jt.Legend=li.legend._element,jt.Title=li.title._element,jt.pluginService=jt.plugins,jt.PluginBase=jt.Element.extend({}),jt.canvasHelpers=jt.helpers.canvas,jt.layoutService=jt.layouts,jt.LinearScaleBase=rn,jt.helpers.each(["Bar","Bubble","Doughnut","Line","PolarArea","Radar","Scatter"],function(e){jt[e]=function(t,n){return new jt(t,jt.helpers.merge(n||{},{type:e.charAt(0).toLowerCase()+e.slice(1)}))}}),fi}(function(){try{return n("wd/R")}catch(e){}}())},NJ4a:function(e,t,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(t,"a",function(){return i})},Nv8m:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("DH7j"),r=n("yCtX"),a=n("l7GE"),o=n("ZUHj");function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){if(!Object(i.a)(t[0]))return t[0];t=t[0]}return Object(r.a)(t,void 0).lift(new l)}var l=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new c(e))}}]),e}(),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).hasFirst=!1,i.observables=[],i.subscriptions=[],i}return _createClass(n,[{key:"_next",value:function(e){this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var i=e[n],r=Object(o.a)(this,i,void 0,n);this.subscriptions&&this.subscriptions.push(r),this.add(r)}this.observables=null}}},{key:"notifyNext",value:function(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(var i=0;i<this.subscriptions.length;i++)if(i!==n){var r=this.subscriptions[i];r.unsubscribe(),this.remove(r)}this.subscriptions=null}this.destination.next(t)}}]),n}(a.a)},OIYi:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LT
vendor: 16,086 bytes, line 1
1S:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("wd/R"))},Oaa7:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},Ob0Z:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":r="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":r="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":r="%d \u0924\u093e\u0938";break;case"d":r="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":r="%d \u0926\u093f\u0935\u0938";break;case"M":r="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":r="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u0947"}else switch(n){case"s":r="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":r="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":r="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":r="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":r="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":r="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":r="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":r="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":r="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":r="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":r="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":r="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return r.replace(/%d/i,e)}e.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u092a\u0939\u093e\u091f\u0947|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940|\u0930\u093e\u0924\u094d\u0930\u0940/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u092a\u0939\u093e\u091f\u0947"===t||"\u0938\u0915\u093e\u0933\u0940"===t?e:"\u0926\u0941\u092a\u093e\u0930\u0940"===t||"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===t||"\u0930\u093e\u0924\u094d\u0930\u0940"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"\u092a\u0939\u093e\u091f\u0947":e<12?"\u0938\u0915\u093e\u0933\u0940":e<17?"\u0926\u0941\u092a\u093e\u0930\u0940":e<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(n("wd/R"))},OjkT:function(e,t,n){!function(e){"use strict";var t={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},n={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};e.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(e){return e.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u093f"===t?e<4?e:e+12:"\u092c\u093f\u0939\u093e\u0928"===t?e:"\u0926\u093f\u0909\u0901\u0938\u094b"===t?e>=10?e:e+12:"\u0938\u093e\u0901\u091d"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"\u0930\u093e\u0924\u093f":e<12?"\u092c\u093f\u0939\u093e\u0928":e<16?"\u0926\u093f\u0909\u0901\u0938\u094b":e<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(n("wd/R"))},OmwH:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"D/M/YYYY",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},Oxv6:function(e,t,n){!function(e){"use strict";var t={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};e.defineLocale("tg",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0430\u043b\u0438_\u043c\u0430\u0440\u0442\u0438_\u0430\u043f\u0440\u0435\u043b\u0438_\u043c\u0430\u0439\u0438_\u0438\u044e\u043d\u0438_\u0438\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442\u0438_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u0438_\u043e\u043a\u0442\u044f\u0431\u0440\u0438_\u043d\u043e\u044f\u0431\u0440\u0438_\u0434\u0435\u043a\u0430\u0431\u0440\u0438".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_")},monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u0424\u0430\u0440\u0434\u043e \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0448\u0430\u0431"===t?e<4?e:e+12:"\u0441\u0443\u0431\u04b3"===t?e:"\u0440\u04ef\u0437"===t?e>
vendor: 7,282 bytes, line 1
1=11?e:e+12:"\u0431\u0435\u0433\u043e\u04b3"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0448\u0430\u0431":e<11?"\u0441\u0443\u0431\u04b3":e<16?"\u0440\u04ef\u0437":e<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},PA2r:function(e,t,n){!function(e){"use strict";var t={standalone:"leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),format:"ledna_\xfanora_b\u0159ezna_dubna_kv\u011btna_\u010dervna_\u010dervence_srpna_z\xe1\u0159\xed_\u0159\xedjna_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),i=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],r=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function o(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return t||i?r+(a(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(a(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(a(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(a(e)?"dny":"dn\xed"):r+"dny";case"M":return t||i?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return t||i?r+(a(e)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):r+"m\u011bs\xedci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(a(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},PDX0:function(e,t){(function(t){e.exports=t}).call(this,{})},PeUW:function(e,t,n){!function(e){"use strict";var t={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},n={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};e.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}
vendor: 4,971 bytes, line 1
1\u0bb5\u0ba4\u0bc1/,ordinal:function(e){return e+"\u0bb5\u0ba4\u0bc1"},preparse:function(e){return e.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(e,t,n){return e<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":e<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":e<10?" \u0b95\u0bbe\u0bb2\u0bc8":e<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":e<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":e<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(e,t){return 12===e&&(e=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===t?e<2?e:e+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===t||"\u0b95\u0bbe\u0bb2\u0bc8"===t||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n("wd/R"))},PpIw:function(e,t,n){!function(e){"use strict";var t={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},n={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};e.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(e){return e.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===t?e<4?e:e+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===t?e:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===t?e>=10?e:e+12:"\u0cb8\u0c82\u0c9c\u0cc6"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":e<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":e<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":e<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}
1(\u0ca8\u0cc6\u0cd5)/,ordinal:function(e){return e+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(n("wd/R"))},Q44L:function(e,t,n){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function n(e,n){var i;if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator])return(i=e[Symbol.iterator]()).next.bind(i);if(Array.isArray(e)||(i=function(e,n){if(e){if("string"==typeof e)return t(e,n);var i=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(i="Object"===i&&e.constructor?e.constructor.name:i)||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){i&&(e=i);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(e){return u[e]}var r,a=(function(e){e.exports={defaults:{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},changeDefaults:function(t){e.exports.defaults=t}}}(r={exports:{}}),r.exports),o=/[&<>"']/,s=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,c=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function h(e){return e.replace(d,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}var f=/(^|[^\[])\^/g,p=/[^\w:]/g,m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,g={},v=/^[^:]+:\/*[^/]*$/,y=/^([^:]+:)[\s\S]*$/,b=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(e,t,n){var i=e.length;if(0===i)return"";for(var r=0;r<i;){var a=e.charAt(i-r-1);if(a!==t||n){if(a===t||!n)break;r++}else r++}return e.substr(0,i-r)}var w=function(e,t){if(t){if(o.test(e))return e.replace(s,i)}else if(l.test(e))return e.replace(c,i);return e},k=h,C=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,i){return i=(i=i.source||i).replace(f,"$1"),e=e.replace(t,i),n},getRegex:function(){return new RegExp(e,t)}};return n},x={exec:function(){}},S=function(e){for(var t,n,i=1;i<arguments.length;i++)for(n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},M=function(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var i=!1,r=t;0<=--r&&"\\"===n[r];)i=!i;return i?"|":" |"}).split(/ \|/),i=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(/\\\|/g,"|");return n},D=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,i=0,r=0;r<n;r++)if("\\"===e[r])r++;else if(e[r]===t[0])i++;else if(e[r]===t[1]&&--i<0)return r;return-1},T=a.defaults,E=_,A=M,P=w,L=D;function O(e,t,n){var i=t.href,r=t.title?P(t.title):null;return t=e[1].replace(/\\([\[\]])/g,"$1"),"!"!==e[0].charAt(0)?{type:"link",raw:n,href:i,title:r,text:t}:{type:"image",raw:n,href:i,title:r,text:P(t)}}var I=function(){function e(e){this.options=e||T}var t=e.prototype;return t.space=function(e){if(e=this.rules.block.newline.exec(e))return 1<e[0].length?{type:"space",raw:e[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t)return e=t[0].replace(/^ {1,4}/gm,""),{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:E(e,"\n")}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0];return e=function(e,t){if(null===(e=e.match(/^(\s+)(?:```)/)))return t;var n=e[1];return t.split("\n").map(function(e){var t=e.match(/^\s+/);return null!==t&&t[0].length>=n.length?e.slice(n.length):e}).join("\n")}(n,t[3]||""),{type:"code",raw:n,lang:t[2]&&t[2].trim(),text:e}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();return/#$/.test(n)&&(e=E(n,"#"),!this.options.pedantic&&e&&!/ $/.test(e)||(n=e.trim())),{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){if(e=this.rules.block.nptable.exec(e)){var t={type:"table",header:A(e[1].replace(/^ *| *\| *$/g,"")),al
1ign:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[],raw:e[0]};if(t.header.length===t.align.length){for(var n=t.align.length,i=0;i<n;i++)t.align[i]=/^ *-+: *$/.test(t.align[i])?"right":/^ *:-+: *$/.test(t.align[i])?"center":/^ *:-+ *$/.test(t.align[i])?"left":null;for(n=t.cells.length,i=0;i<n;i++)t.cells[i]=A(t.cells[i],t.header.length);return t}}},t.hr=function(e){if(e=this.rules.block.hr.exec(e))return{type:"hr",raw:e[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t)return e=t[0].replace(/^ *> ?/gm,""),{type:"blockquote",raw:t[0],text:e}},t.list=function(e){if(e=this.rules.block.list.exec(e)){for(var t,n,i,r,a,o,s=e[0],l=e[2],c=1<l.length,u={type:"list",raw:s,ordered:c,start:c?+l.slice(0,-1):"",loose:!1,items:[]},d=e[0].match(this.rules.block.item),h=!1,f=d.length,p=this.rules.block.listItemStart.exec(d[0]),m=0;m<f;m++){if(s=t=d[m],this.options.pedantic||(o=t.match(new RegExp("\\n\\s*\\n {0,"+(p[0].length-1)+"}\\S")))&&(n=t.length-o.index+d.slice(m+1).join("\n").length,u.raw=u.raw.substring(0,u.raw.length-n),s=t=t.substring(0,o.index),f=m+1),m!==f-1){if(i=this.rules.block.listItemStart.exec(d[m+1]),this.options.pedantic?i[1].length>p[1].length:i[1].length>=p[0].length||3<i[1].length){d.splice(m,2,d[m]+(!this.options.pedantic&&i[1].length<p[0].length&&!d[m].match(/\n$/)?"":"\n")+d[m+1]),m--,f--;continue}(!this.options.pedantic||this.options.smartLists?i[2][i[2].length-1]!==l[l.length-1]:c==(1===i[2].length))&&(n=d.slice(m+1).join("\n").length,u.raw=u.raw.substring(0,u.raw.length-n),m=f-1),p=i}i=t.length,~(t=t.replace(/^ *([*+-]|\d+[.)]) ?/,"")).indexOf("\n ")&&(i-=t.length,t=t.replace(this.options.pedantic?/^ {1,4}/gm:new RegExp("^ {1,"+i+"}","gm"),"")),t=E(t,"\n"),m!==f-1&&(s+="\n"),i=h||/\n\n(?!\s*$)/.test(s),m!==f-1&&(h="\n\n"===s.slice(-2),i=i||h),i&&(u.loose=!0),this.options.gfm&&(a=void 0,(r=/^\[[ xX]\] /.test(t))&&(a=" "!==t[1],t=t.replace(/^\[[ xX]\] +/,""))),u.items.push({type:"list_item",raw:s,task:r,checked:a,loose:i,text:t})}return u}},t.html=function(e){if(e=this.rules.block.html.exec(e))return{type:this.options.sanitize?"paragraph":"html",raw:e[0],pre:!this.options.sanitizer&&("pre"===e[1]||"script"===e[1]||"style"===e[1]),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):P(e[0]):e[0]}},t.def=function(e){if(e=this.rules.block.def.exec(e))return e[3]&&(e[3]=e[3].substring(1,e[3].length-1)),{tag:e[1].toLowerCase().replace(/\s+/g," "),raw:e[0],href:e[2],title:e[3]}},t.table=function(e){if(e=this.rules.block.table.exec(e)){var t={type:"table",header:A(e[1].replace(/^ *| *\| *$/g,"")),align:e[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:e[3]?e[3].replace(/\n$/,"").split("\n"):[]};if(t.header.length===t.align.length){t.raw=e[0];for(var n=t.align.length,i=0;i<n;i++)t.align[i]=/^ *-+: *$/.test(t.align[i])?"right":/^ *:-+: *$/.test(t.align[i])?"center":/^ *:-+ *$/.test(t.align[i])?"left":null;for(n=t.cells.length,i=0;i<n;i++)t.cells[i]=A(t.cells[i].replace(/^ *\| *| *\| *$/g,""),t.header.length);return t}}},t.lheading=function(e){if(e=this.rules.block.lheading.exec(e))return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1]}},t.paragraph=function(e){if(e=this.rules.block.paragraph.exec(e))return{type:"paragraph",raw:e[0],text:"\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1]}},t.text=function(e){if(e=this.rules.block.text.exec(e))return{type:"text",raw:e[0],text:e[0]}},t.escape=function(e){if(e=this.rules.inline.escape.exec(e))return{type:"escape",raw:e[0],text:P(e[1])}},t.tag=function(e,t,n){if(e=this.rules.inline.tag.exec(e))return!t&&/^<a /i.test(e[0])?t=!0:t&&/^<\/a>/i.test(e[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(e[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(e[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:e[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):P(e[0]):e[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;if(e=E(n.slice(0,-1),"\\"),(n.length-e.length)%2==0)return}else-1<(r=L(t[2],"()"))&&(a=(0===t[0].indexOf("!")?5:4)+t[1].length+r,t[2]=t[2].substring(0,r),t[0]=t[0].substring(0,a).trim(),t[3]="");var i,r=t[2],a="";return this.options.pedantic?(i=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))&&(r=i[1],a=i[3]):a=t[3]?t[3].slice(1,-1):"",r=r.trim(),O(t,{href:(r=/^</.test(r)?this.options.pedantic&&!/>$/.test(n)?r.slice(1):r.slice(1,-1):r)&&r.replace(this.rules.inline._escapes,"$1"),title:a&&a.replace(this.rules.inline._escapes,"$1")},t[0])}},t.reflink=function(e,t){if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){if((e
1=t[(e=(n[2]||n[1]).replace(/\s+/g," ")).toLowerCase()])&&e.href)return O(n,e,n[0]);var n=n[0].charAt(0);return{type:"text",raw:n,text:n}}},t.emStrong=function(e,t,n){void 0===n&&(n="");var i=this.rules.inline.emStrong.lDelim.exec(e);if(i&&(!i[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFB
1D3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var r=i[1]||i[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){var a,o=i[0].length-1,s=o,l=0,c="*"===i[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+o);null!=(i=c.exec(t));)if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6])if(a=a.length,i[3]||i[4])s+=a;else if(!((i[5]||i[6])&&o%3)||(o+a)%3){if(!(0<(s-=a))){if(s+l-a<=0&&!t.slice(c.lastIndex).match(c)&&(a=Math.min(a,a+s+l)),Math.min(o,a)%2)return{type:"em",raw:e.slice(0,o+i.index+a+1),text:e.slice(1,o+i.index+a)};
1if(Math.min(o,a)%2==0)return{type:"strong",raw:e.slice(0,o+i.index+a+1),text:e.slice(2,o+i.index+a-1)}}}else l+=a}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),i=/[^ ]/.test(n);return e=/^ /.test(n)&&/ $/.test(n),i&&e&&(n=n.substring(1,n.length-1)),n=P(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){if(e=this.rules.inline.br.exec(e))return{type:"br",raw:e[0]}},t.del=function(e){if(e=this.rules.inline.del.exec(e))return{type:"del",raw:e[0],text:e[2]}},t.autolink=function(e,t){var n;if(e=this.rules.inline.autolink.exec(e))return t="@"===e[2]?"mailto:"+(n=P(this.options.mangle?t(e[1]):e[1])):n=P(e[1]),{type:"link",raw:e[0],text:n,href:t,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n,i,r,a;if(n=this.rules.inline.url.exec(e)){if("@"===n[2])r="mailto:"+(i=P(this.options.mangle?t(n[0]):n[0]));else{for(;a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0],a!==n[0];);i=P(n[0]),r="www."===n[1]?"http://"+i:i}return{type:"link",raw:n[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}},t.inlineText=function(e,t,n){if(e=this.rules.inline.text.exec(e))return n=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):P(e[0]):e[0]:P(this.options.smartypants?n(e[0]):e[0]),{type:"text",raw:e[0],text:n}},e}();M=x,D=C,x=S,(C={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:M,table:M,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/}).def=D(C.def).replace("label",C._label).replace("title",C._title).getRegex(),C.bullet=/(?:[*+-]|\d{1,9}[.)])/,C.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,C.item=D(C.item,"gm").replace(/bull/g,C.bullet).getRegex(),C.listItemStart=D(/^( *)(bull) */).replace("bull",C.bullet).getRegex(),C.list=D(C.list).replace(/bull/g,C.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+C.def.source+")").getRegex(),C._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",C._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,C.html=D(C.html,"i").replace("comment",C._comment).replace("tag",C._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),C.paragraph=D(C._paragraph).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.blockquote=D(C.blockquote).replace("paragraph",C.paragraph).getRegex(),C.normal=x({},C),C.gfm=x({},C.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),C.gfm.nptable=D(C.gfm.nptable).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.gfm.table=D(C.gfm.table).replace("hr",C.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",C._tag).getRegex(),C.pedantic=x({},C.normal,{html:D("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",C._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:M,paragraph:D(C.normal._paragraph).replace("hr",C.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",C.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),(M={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:M,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_]*?\*[^_]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^*]*?\_[^*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:M,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"}).punctuation=D(M.punctuation).replace(/punctuation/g,M._punctuation).getRegex(),M.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>
vendor: 17,906 bytes, line 1
1/g,M.escapedEmSt=/\\\*|\\_/g,M._comment=D(C._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),M.emStrong.lDelim=D(M.emStrong.lDelim).replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimAst=D(M.emStrong.rDelimAst,"g").replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimUnd=D(M.emStrong.rDelimUnd,"g").replace(/punct/g,M._punctuation).getRegex(),M._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,M._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,M._email=/[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])?)+(?![-_])/,M.autolink=D(M.autolink).replace("scheme",M._scheme).replace("email",M._email).getRegex(),M._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,M.tag=D(M.tag).replace("comment",M._comment).replace("attribute",M._attribute).getRegex(),M._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,M._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,M._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,M.link=D(M.link).replace("label",M._label).replace("href",M._href).replace("title",M._title).getRegex(),M.reflink=D(M.reflink).replace("label",M._label).getRegex(),M.reflinkSearch=D(M.reflinkSearch,"g").replace("reflink",M.reflink).replace("nolink",M.nolink).getRegex(),M.normal=x({},M),M.pedantic=x({},M.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:D(/^!?\[(label)\]\((.*?)\)/).replace("label",M._label).getRegex(),reflink:D(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",M._label).getRegex()}),M.gfm=x({},M.normal,{escape:D(M.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),M.gfm.url=D(M.gfm.url,"i").replace("email",M.gfm._extended_email).getRegex(),M.breaks=x({},M.gfm,{br:D(M.br).replace("{2,}","*").getRegex(),text:D(M.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var H=a.defaults,j=(M={block:C,inline:M}).block,F=M.inline,R=function(e,t){if(t<1)return"";for(var n="";1<t;)1&t&&(n+=e),t>>=1,e+=e;return n+e};function N(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function B(e){for(var t,n="",i=e.length,r=0;r<i;r++)t=e.charCodeAt(r),n+="&#"+(t=.5<Math.random()?"x"+t.toString(16):t)+";";return n}var Y=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||H,this.options.tokenizer=this.options.tokenizer||new I,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,e={block:j.normal,inline:F.normal},this.options.pedantic?(e.block=j.pedantic,e.inline=F.pedantic):this.options.gfm&&(e.block=j.gfm,e.inline=this.options.breaks?F.breaks:F.gfm),this.tokenizer.rules=e}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,i,r=t.prototype;return r.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},r.blockTokens=function(e,t,n){var i,r,a,o;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(i=this.tokenizer.space(e))e=e.substring(i.raw.length),i.type&&t.push(i);else if(i=this.tokenizer.code(e))e=e.substring(i.raw.length),(o=t[t.length-1])&&"paragraph"===o.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text):t.push(i);else if(i=this.tokenizer.fences(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.heading(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.nptable(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.hr(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.blockquote(e))e=e.substring(i.raw.length),i.tokens=this.blockTokens(i.text,[],n),t.push(i);else if(i=this.tokenizer.list(e)){for(e=e.substring(i.raw.length),a=i.items.length,r=0;r<a;r++)i.items[r].tokens=this.blockTokens(i.items[r].text,[],!1);t.push(i)}else if(i=this.tokenizer.html(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.def(e)))e=e.substring(i.raw.length),this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title});else if(i=this.tokenizer.table(e))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.lheading(e))e=e.substring(i.raw.length),t.push(i);else if(n&&(i=this.tokenizer.paragraph(e)))e=e.substring(i.raw.length),t.push(i);else if(i=this.tokenizer.text(e))e=e.substring(i.raw.length),(o=t[t.length-1])&&"text"===o.type?(o.raw+="\n"+i.raw,o.text+="\n"+i.text):t.push(i);else if(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return t},r.inline=function(e){for(var t,n,i,r,a,o=e.length,s=0;s<o;s++)switch((a=e[s]).type){case"paragraph":case"text":case"heading":a.tokens=[],this.inlineTokens(a.text,a.tokens);break;case"table":for(a.tokens={header:[],cells:[]},i=a.header.length,t=0;t<i;t++)a.tokens.header[t]=[],this.inlineTokens(a.header[t],a.tokens.header[t]);for(i=a.cells.length,t=0;t<i;t++)for(r=a.cells[t],a.tokens.cells[t]=[],n=0;n<r.length;n++)a.tokens.cells[t][n]=[],this.inlineTokens(r[n],a.tokens.cells[t][n]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(i=a.items.length,t=0;t<i;t++)this.inline(a.items[t].tokens)}return e},r.inlineTokens=function(e,t,n,i){var r;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===i&&(i=!1);var a,o,s,l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(0<c.length)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+R("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,a.index)+"["+R("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,a.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(s=""),o=!1,r=this.tokenizer.escape(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.tag(e,n,i)){e=e.substring(r.raw.length),n=r.inLink,i=r.inRawBlock;var u=t[t.length-1];u&&"text"===r.type&&"text"===u.type?(u.raw+=r.raw,u.text+=r.text):t.push(r)}else if(r=this.tokenizer.link(e))e=e.substring(r.raw.length),"link"===r.type&&(r.tokens=this.inlineTokens(r.text,[],!0,i)),t.push(r);else if(r=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(r.raw.length),u=t[t.length-1],"link"===r.type?(r.tokens=this.inlineTokens(r.text,[],!0,i),t.push(r)):u&&"text"===r.type&&"text"===u.type?(u.raw+=r.raw,u.text+=r.text):t.push(r);else if(r=this.tokenizer.emStrong(e,l,s))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.codespan(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.br(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.del(e))e=e.substring(r.raw.length),r.tokens=this.inlineTokens(r.text,[],n,i),t.push(r);else if(r=this.tokenizer.autolink(e,B))e=e.substring(r.raw.length),t.push(r);else if(n||!(r=this.tokenizer.url(e,B))){if(r=this.tokenizer.inlineText(e,i,N))e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),o=!0,(d=t[t.length-1])&&"text"===d.type?(d.raw+=r.raw,d.text+=r.text):t.push(r);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(r.raw.length),t.push(r);return t},n=t,i=[{key:"rules",get:function(){return{block:j,inline:F}}}],(r=null)&&e(n.prototype,r),i&&e(n,i),t}(),z=a.defaults,V=function(e,t,n){if(e){var i;try{i=decodeURIComponent(h(n)).replace(p,"").toLowerCase()}catch(e){return null}if(0===i.indexOf("javascript:")||0===i.indexOf("vbscript:")||0===i.indexOf("data:"))return null}t&&!m.test(n)&&(n=function(e,t){g[" "+e]||(g[" "+e]=v.test(e)?e+"/":_(e,"/",!0));var n=-1===(e=g[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(y,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(b,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},U=w,$=function(){function e(e){this.options=e||z}var t=e.prototype;return t.code=function(e,t,n){var i=(t||"").match(/\S*/)[0];return!this.options.highlight||null!=(t=this.options.highlight(e,i))&&t!==e&&(n=!0,e=t),e=e.replace(/\n$/,"")+"\n",i?'<pre><code class="'+this.options.langPrefix+U(i,!0)+'">'+(n?e:U(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:U(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+i.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+i+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n"+(t=t&&"<tbody>"+t+"</tbody>")+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){return null===(e=V(this.options.sanitize,this.options.baseUrl,e))?n:(e='<a href="'+U(e)+'"',t&&(e+=' title="'+t+'"'),e+">"+n+"</a>")},t.image=function(e,t,n){return null===(e=V(this.options.sanitize,this.options.baseUrl,e))?n:(n='<img src="'+e+'" alt="'+n+'"',t&&(n+=' title="'+t+'"'),n+(this.options.xhtml?"/>":">"))},t.text=function(e){return e},e}(),W=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),q=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,i=0;if(this.seen.hasOwnProperty(n))for(i=this.seen[e];n=e+"-"+ ++i,this.seen.hasOwnProperty(n););return t||(this.seen[e]=i,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),G=a.defaults,X=k,Q=function(){function e(e){this.options=e||G,this.options.renderer=this.options.renderer||new $,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new W,this.slugger=new q}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);for(var n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v="",y=e.length,b=0;b<y;b++)switch((c=e[b]).type){case"space":continue;case"hr":v+=this.renderer.hr();continue;case"heading":v+=this.renderer.heading(this.parseInline(c.tokens),c.depth,X(this.parseInline(c.tokens,this.textRenderer)),this.slugger);continue;case"code":v+=this.renderer.code(c.text,c.lang,c.escaped);continue;case"table":for(s=u="",r=c.header.length,n=0;n<r;n++)s+=this.renderer.tablecell(this.parseInline(c.tokens.header[n]),{header:!0,align:c.align[n]});for(u+=this.renderer.tablerow(s),l="",r=c.cells.length,n=0;n<r;n++){for(s="",a=(o=c.tokens.cells[n]).length,i=0;i<a;i++)s+=this.renderer.tablecell(this.parseInline(o[i]),{header:!1,align:c.align[i]});l+=this.renderer.tablerow(s)}v+=this.renderer.table(u,l);continue;case"blockquote":l=this.parse(c.tokens),v+=this.renderer.blockquote(l);continue;case"list":for(u=c.ordered,_=c.start,d=c.loose,r=c.items.length,l="",n=0;n<r;n++)p=(f=c.items[n]).checked,m=f.task,h="",f.task&&(g=this.renderer.checkbox(p),d?0<f.tokens.length&&"text"===f.tokens[0].type?(f.tokens[0].text=g+" "+f.tokens[0].text,f.tokens[0].tokens&&0<f.tokens[0].tokens.length&&"text"===f.tokens[0].tokens[0].type&&(f.tokens[0].tokens[0].text=g+" "+f.tokens[0].tokens[0].text)):f.tokens.unshift({type:"text",text:g}):h+=g),h+=this.parse(f.tokens,d),l+=this.renderer.listitem(h,m,p);v+=this.renderer.list(l,u,_);continue;case"html":v+=this.renderer.html(c.text);continue;case"paragraph":v+=this.renderer.paragraph(this.parseInline(c.tokens));continue;case"text":for(l=c.tokens?this.parseInline(c.tokens):c.text;b+1<y&&"text"===e[b+1].type;)l+="\n"+((c=e[++b]).tokens?this.parseInline(c.tokens):c.text);v+=t?this.renderer.paragraph(l):l;continue;default:var _='Token with "'+c.type+'" type was not found.';if(this.options.silent)return void console.error(_);throw new Error(_)}return v},t.parseInline=function(e,t){t=t||this.renderer;for(var n,i="",r=e.length,a=0;a<r;a++)switch((n=e[a]).type){case"escape":case"text":i+=t.text(n.text);break;case"html":i+=t.html(n.text);break;case"link":i+=t.link(n.href,n.title,this.parseInline(n.tokens,t));break;case"image":i+=t.image(n.href,n.title,n.text);break;case"strong":i+=t.strong(this.parseInline(n.tokens,t));break;case"em":i+=t.em(this.parseInline(n.tokens,t));break;case"codespan":i+=t.codespan(n.text);break;case"br":i+=t.br();break;case"del":i+=t.del(this.parseInline(n.tokens,t));break;default:var o='Token with "'+n.type+'" type was not found.';if(this.options.silent)return void console.error(o);throw new Error(o)}return i},e}(),K=S,Z=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},J=w,ee=(w=a.getDefaults,a.changeDefaults);function te(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=K({},te.defaults,t||{}),Z(t),n){var i,r=t.highlight;try{i=Y.lex(e,t)}catch(e){return n(e)}var a=function(e){var a;if(!e)try{a=Q.parse(i,t)}catch(a){e=a}return t.highlight=r,e?n(e):n(null,a)};if(!r||r.length<3)return a();if(delete t.highlight,!i.length)return a();var o=0;return te.walkTokens(i,function(e){"code"===e.type&&(o++,setTimeout(function(){r(e.text,e.lang,function(t,n){return t?a(t):(null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),void(0==--o&&a()))})},0))}),void(0===o&&a())}try{var s=Y.lex(e,t);return t.walkTokens&&te.walkTokens(s,t.walkTokens),Q.parse(s,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+J(e.message+"",!0)+"</pre>";throw e}}return a=a.defaults,te.options=te.setOptions=function(e){return K(te.defaults,e),ee(te.defaults),te},te.getDefaults=w,te.defaults=a,te.use=function(e){var t,n=K({},e);e.renderer&&function(){var t,i=te.defaults.renderer||new $;for(t in e.renderer)!function(t){var n=i[t];i[t]=function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var s=e.renderer[t].apply(i,a);return!1===s?n.apply(i,a):s}}(t);n.renderer=i}(),e.tokenizer&&function(){var t,i=te.defaults.tokenizer||new I;for(t in e.tokenizer)!function(t){var n=i[t];i[t]=function(){for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];var s=e.tokenizer[t].apply(i,a);return!1===s?n.apply(i,a):s}}(t);n.tokenizer=i}(),e.walkTokens&&(t=te.defaults.walkTokens,n.walkTokens=function(n){e.walkTokens(n),t&&t(n)}),te.setOptions(n)},te.walkTokens=function(e,t){for(var i,r=n(e);!(i=r()).done;){var a=i.value;switch(t(a),a.type){case"table":for(var o=n(a.tokens.header);!(s=o()).done;){var s=s.value;te.walkTokens(s,t)}for(var l,c=n(a.tokens.cells);!(l=c()).done;)for(var u=n(l.value);!(d=u()).done;){var d=d.value;te.walkTokens(d,t)}break;case"list":te.walkTokens(a.items,t);break;default:a.tokens&&te.walkTokens(a.tokens,t)}}},te.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=K({},te.defaults,t||{}),Z(t);try{var n=Y.lexInline(e,t);return t.walkTokens&&te.walkTokens(n,t.walkTokens),Q.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+J(e.message+"",!0)+"</pre>";throw e}},te.Parser=Q,te.parser=Q.parse,te.Renderer=$,te.TextRenderer=W,te.
vendor: 4,145 bytes, line 1
1Lexer=Y,te.lexer=Y.lex,te.Tokenizer=I,te.Slugger=q,te.parse=te}()},Qj4J:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(n("wd/R"))},RAwQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%
1d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d M\xe9int",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},RnhZ:function(e,t,n){var i={"./af":"K/tc","./af.js":"K/tc","./ar":"jnO4","./ar-dz":"o1bE","./ar-dz.js":"o1bE","./ar-kw":"Qj4J","./ar-kw.js":"Qj4J","./ar-ly":"HP3h","./ar-ly.js":"HP3h","./ar-ma":"CoRJ","./ar-ma.js":"CoRJ","./ar-ps":"TJgH","./ar-ps.js":"TJgH","./ar-sa":"gjCT","./ar-sa.js":"gjCT","./ar-tn":"bYM6","./ar-tn.js":"bYM6","./ar.js":"jnO4","./az":"SFxW","./az.js":"SFxW","./be":"H8ED","./be.js":"H8ED","./bg":"hKrs","./bg.js":"hKrs","./bm":"p/rL","./bm.js":"p/rL","./bn":"kEOa","./bn-bd":"loYQ","./bn-bd.js":"loYQ","./bn.js":"kEOa","./bo":"0mo+","./bo.js":"0mo+","./br":"aIdf","./br.js":"aIdf","./bs":"JVSJ","./bs.js":"JVSJ","./ca":"1xZ4","./ca.js":"1xZ4","./cs":"PA2r","./cs.js":"PA2r","./cv":"A+xa","./cv.js":"A+xa","./cy":"l5ep","./cy.js":"l5ep","./da":"DxQv","./da.js":"DxQv","./de":"tGlX","./de-at":"s+uk","./de-at.js":"s+uk","./de-ch":"u3GI","./de-ch.js":"u3GI","./de.js":"tGlX","./dv":"WYrj","./dv.js":"WYrj","./el":"jUeY","./el.js":"jUeY","./en-au":"Dmvi","./en-au.js":"Dmvi","./en-ca":"OIYi","./en-ca.js":"OIYi","./en-gb":"Oaa7","./en-gb.js":"Oaa7","./en-ie":"4dOw","./en-ie.js":"4dOw","./en-il":"czMo","./en-il.js":"czMo","./en-in":"7C5Q","./en-in.js":"7C5Q","./en-nz":"b1Dy","./en-nz.js":"b1Dy","./en-sg":"t+mt","./en-sg.js":"t+mt","./eo":"Zduo","./eo.js":"Zduo","./es":"iYuL","./es-do":"CjzT","./es-do.js":"CjzT","./es-mx":"tbfe","./es-mx.js":"tbfe","./es-us":"Vclq","./es-us.js":"Vclq","./es.js":"iYuL","./et":"7BjC","./et.js":"7BjC","./eu":"D/JM","./eu.js":"D/JM","./fa":"jfSC","./fa.js":"jfSC","./fi":"gekB","./fi.js":"gekB","./fil":"1ppg","./fil.js":"1ppg","./fo":"ByF4","./fo.js":"ByF4","./fr":"nyYc","./fr-ca":"2fjn","./fr-ca.js":"2fjn","./fr-ch":"Dkky","./fr-ch.js":"Dkky","./fr.js":"nyYc","./fy":"cRix","./fy.js":"cRix","./ga":"USCx","./ga.js":"USCx","./gd":"9rRi","./gd.js":"9rRi","./gl":"iEDd","./gl.js":"iEDd","./gom-deva":"qvJo","./gom-deva.js":"qvJo","./gom-latn":"DKr+","./gom-latn.js":"DKr+","./gu":"4MV3","./gu.js":"4MV3","./he":"x6pH","./he.js":"x6pH","./hi":"3E1r","./hi.js":"3E1r","./hr":"S6ln","./hr.js":"S6ln","./hu":"WxRl","./hu.js":"WxRl","./hy-am":"1rYy","./hy-am.js":"1rYy","./id":"UDhR","./id.js":"UDhR","./is":"BVg3","./is.js":"BVg3","./it":"bpih","./it-ch":"bxKX","./it-ch.js":"bxKX","./it.js":"bpih","./ja":"B55N","./ja.js":"B55N","./jv":"tUCv","./jv.js":"tUCv","./ka":"IBtZ","./ka.js":"IBtZ","./kk":"bXm7","./kk.js":"bXm7","./km":"6B0Y","./km.js":"6B0Y","./kn":"PpIw","./kn.js":"PpIw","./ko":"Ivi+","./ko.js":"Ivi+","./ku":"JCF/","./ku-kmr":"dVgr","./ku-kmr.js":"dVgr","./ku.js":"JCF/","./ky":"lgnt","./ky.js":"lgnt","./lb":"RAwQ","./lb.js":"RAwQ","./lo":"sp3z","./lo.js":"sp3z","./lt":"JvlW","./lt.js":"JvlW","./lv":"uXwI","./lv.js":"uXwI","./me":"KTz0","./me.js":"KTz0","./mi":"aIsn","./mi.js":"aIsn","./mk":"aQkU","./mk.js":"aQkU","./ml":"AvvY","./ml.js":"AvvY","./mn":"lYtQ","./mn.js":"lYtQ","./mr":"Ob0Z","./mr.js":"Ob0Z","./ms":"6+QB","./ms-my":"ZAMP","./ms-my.js":"ZAMP","./ms.js":"6+QB","./mt":"G0Uy","./mt.js":"G0Uy","./my":"honF","./my.js":"honF","./nb":"bOMt","./nb.js":"bOMt","./ne":"OjkT","./ne.js":"OjkT","./nl":"+s0g","./nl-be":"2ykv","./nl-be.js":"2ykv","./nl.js":"+s0g","./nn":"uEye","./nn.js":"uEye","./oc-lnc":"Fnuy","./oc-lnc.js":"Fnuy","./pa-in":"8/+R","./pa-in.js":"8/+R","./pl":"jVdC","./pl.js":"jVdC","./pt":"8mBD","./pt-br":"0tRk","./pt-br.js":"0tRk","./pt.js":"8mBD","./ro":"lyxo","./ro.js":"lyxo","./ru":"lXzo","./ru.js":"lXzo","./sd":"Z4QM","./sd.js":"Z4QM","./se":"//9w","./se.js":"//9w","./si":"7aV9","./si.js":"7aV9","./sk":"e+ae","./sk.js":"e+ae","./sl":"gVVK","./sl.js":"gVVK","./sq":"yPMs","./sq.js":"yPMs","./sr":"zx6S","./sr-cyrl":"E+lV","./sr-cyrl.js":"E+lV","./sr.js":"zx6S","./ss":"Ur1D","./ss.js":"Ur1D","./sv":"X709","./sv.js":"X709","./sw":"dNwA","./sw.js":"dNwA","./ta":"PeUW","./ta.js":"PeUW","./te":"XLvN","./te.js":"XLvN","./tet":"V2x9","./tet.js":"V2x9","./tg":"Oxv6","./tg.js":"Oxv6","./th":"EOgW","./th.js":"EOgW","./tk":"Wv91","./tk.js":"Wv91","./tl-ph":"Dzi0","./tl-ph.js":"Dzi0","./tlh":"z3Vd","./tlh.js":"z3Vd","./tr":"DoHr","./tr.js":"DoHr","./tzl":"z1FC","./tzl.js":"z1FC","./tzm":"wQk9","./tzm-latn":"tT3J","./tzm-latn.js":"tT3J","./tzm.js":"wQk9","./ug-cn":"YRex","./ug-cn.js":"YRex","./uk":"raLr","./uk.js":"raLr","./ur":"UpQW","./ur.js":"UpQW","./uz":"Loxo","./uz-latn":"AQ68","./uz-latn.js":"AQ68","./uz.js":"Loxo","./vi":"KSF8","./vi.js":"KSF8","./x-pseudo":"/X5v","./x-pseudo.js":"/X5v","./yo":"fzPg","./yo.js":"fzPg","./zh-cn":"XDpg","./zh-cn.js":"XDpg","./zh-hk":"SatO","./zh-hk.js":"SatO","./zh-mo":"OmwH","./zh-mo.js":"OmwH","./zh-tw":"kOpN","./zh-tw.js":"kOpN"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="RnhZ"},S6ln:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:return"[pro\u0161lu] [nedjelju] [u] LT";case 3:return"[pro\u0161lu] [srijedu] [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},SFxW:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u
10259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"bir ne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(e){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gec\u0259":e<12?"s\u0259h\u0259r":e<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(e){if(0===e)return e+"-\u0131nc\u0131";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},SatO:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1200?"\u4e0a\u5348":1200===i?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},SeVD:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("ngJS"),r=n("NJ4a"),a=n("Lhse"),o=n("kJWO"),s=n("I55L"),l=n("c2HN"),c=n("XoHu"),u=function(e){if(e&&"function"==typeof e[o.a])return u=e,function(e){var t=u[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(s.a)(e))return Object(i.a)(e);if(Object(l.a)(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,r.a),e};if(e&&"function"==typeof e[a.a])return t=e,function(e){for(var n=t[a.a]();;){var i=void 0;try{i=n.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};
1var t,n,u,d=Object(c.a)(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(d," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}},SpAZ:function(e,t,n){"use strict";function i(e){return e}n.d(t,"a",function(){return i})},SxV6:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n("sVev"),r=n("pLZG"),a=n("IzEk"),o=n("xbPD"),s=n("XDbj"),l=n("SpAZ");function c(e,t){var n=arguments.length>=2;return function(c){return c.pipe(e?Object(r.a)(function(t,n){return e(t,n,c)}):l.a,Object(a.a)(1),n?Object(o.a)(t):Object(s.a)(function(){return new i.a}))}}},TJgH:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-ps",{months:"\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0634\u0631\u064a \u0627\u0644\u0623\u0648\u0651\u0644_\u062a\u0634\u0631\u064a\u0646 \u0627\u0644\u062b\u0627\u0646\u064a_\u0643\u0627\u0646\u0648\u0646 \u0627\u0644\u0623\u0648\u0651\u0644".split("_"),monthsShort:"\u0643\u0662_\u0634\u0628\u0627\u0637_\u0622\u0630\u0627\u0631_\u0646\u064a\u0633\u0627\u0646_\u0623\u064a\u0651\u0627\u0631_\u062d\u0632\u064a\u0631\u0627\u0646_\u062a\u0645\u0651\u0648\u0632_\u0622\u0628_\u0623\u064a\u0644\u0648\u0644_\u062a\u0661_\u062a\u0662_\u0643\u0661".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).split("").reverse().join("").replace(/[\u0661\u0662](?![\u062a\u0643])/g,function(e){return n[e]}).split("").reverse().join("").replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n("wd/R"))},UDhR:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n("wd/R"))},USCx:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","Meitheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","M\xe1rt","Aib","Beal","Meith","I\xfail","L\xfan","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Sathairn"],weekdaysShort:["Domh","Luan","M\xe1irt","C\xe9ad","D\xe9ar","Aoine","Sath"],weekdaysMin:["Do","Lu","M\xe1","C\xe9","D\xe9","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xedonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n("wd/R"))},UpQW:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],n=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u064
11\u062a\u06c1"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n("wd/R"))},Ur1D:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n("wd/R"))},V2x9:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},VRyK:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("HDdC"),r=n("z+Ro"),a=n("bHdf"),o=n("yCtX");function s(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var s=Number.POSITIVE_INFINITY,l=null,c=t[t.length-1];return Object(r.a)(c)?(l=t.pop(),t.length>
11&&"number"==typeof t[t.length-1]&&(s=t.pop())):"number"==typeof c&&(s=t.pop()),null===l&&1===t.length&&t[0]instanceof i.a?t[0]:Object(a.a)(s)(Object(o.a)(t,l))}},Vclq:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(n("wd/R"))},WMd4:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("EY2u"),r=n("LRne"),a=n("z6cu"),o=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.kind=t,this.value=n,this.error=i,this.hasValue="N"===t}return _createClass(e,[{key:"observe",value:function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}},{key:"do",value:function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}},{key:"accept",value:function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Object(r.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(i.b)()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}},{key:"createError",value:function(t){return new e("E",void 0,t)}},{key:"createComplete",value:function(){return e.completeNotification}}]),e}();return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},WOAq:function(e,t,n){"use strict";(function(e){var i=n("Ju5/"),r=n("L3Qv"),a="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===a?i.a.Buffer:void 0;t.a=(s?s.isBuffer:void 0)||r.a}).call(this,n("3UD+")(e))},WYrj:function(e,t,n){!function(e){"use strict";var t=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],n=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(e){return"\u0789\u078a"===e},meridiem:function(e,t,n){return e<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(n("wd/R"))},Wv91:function(e,t,n){!function(e){"use strict";
1var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'\xfcnji",4:"'\xfcnji",100:"'\xfcnji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"\xddanwar_Fewral_Mart_Aprel_Ma\xfd_I\xfdun_I\xfdul_Awgust_Sent\xfdabr_Okt\xfdabr_No\xfdabr_Dekabr".split("_"),monthsShort:"\xddan_Few_Mar_Apr_Ma\xfd_I\xfdn_I\xfdl_Awg_Sen_Okt_No\xfd_Dek".split("_"),weekdays:"\xddek\u015fenbe_Du\u015fenbe_Si\u015fenbe_\xc7ar\u015fenbe_Pen\u015fenbe_Anna_\u015eenbe".split("_"),weekdaysShort:"\xddek_Du\u015f_Si\u015f_\xc7ar_Pen_Ann_\u015een".split("_"),weekdaysMin:"\xddk_D\u015f_S\u015f_\xc7r_Pn_An_\u015en".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[d\xfc\xfdn] LT",lastWeek:"[ge\xe7en] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s so\u0148",past:"%s \xf6\u0148",s:"birn\xe4\xe7e sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir a\xfd",MM:"%d a\xfd",y:"bir \xfdyl",yy:"%d \xfdyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n("wd/R"))},WxRl:function(e,t,n){!function(e){"use strict";var t="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return r+(i||t)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" \xf3ra":" \xf3r\xe1ja");case"hh":return r+(i||t?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" h\xf3nap":" h\xf3napja");case"MM":return r+(i||t?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(i||t?" \xe9v":" \xe9ve");case"yy":return r+(i||t?" \xe9v":" \xe9ve")}return""}function i(e){return(e?"":"[m\xfalt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan._feb._m\xe1rc._\xe1pr._m\xe1j._j\xfan._j\xfal._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},X709:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n("wd/R"))},XDbj:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("sVev"),r=n("7o/Q");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;return function(t){return t.lift(new o(e))}}var o=function(){function e(t){_classCallCheck(this,e),this.errorFactory=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new s(e,this.errorFactory)
1)}}]),e}(),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).errorFactory=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(r.a);function l(){return new i.a}},XDpg:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:function(e){return e.week()!==this.week()?"[\u4e0b]dddLT":"[\u672c]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(e){return this.week()!==e.week()?"[\u4e0a]dddLT":"[\u672c]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u5468";default:return e}},relativeTime:{future:"%s\u540e",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(n("wd/R"))},XLvN:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}
1\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===t?e<4?e:e+12:"\u0c09\u0c26\u0c2f\u0c02"===t?e:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===t?e>=10?e:e+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":e<10?"\u0c09\u0c26\u0c2f\u0c02":e<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":e<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(n("wd/R"))},XNiG:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return u});var i=n("HDdC"),r=n("7o/Q"),a=n("quSY"),o=n("9ppp"),s=n("Ylt2"),l=n("2QA8"),c=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).destination=e,i}return n}(r.a),u=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _createClass(n,[{key:l.a,value:function(){return new c(this)}},{key:"lift",value:function(e){var t=new d(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new o.a;if(!this.isStopped)for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].next(e)}},{key:"error",value:function(e){if(this.closed)throw new o.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,i=t.slice(),r=0;r<n;r++)i[r].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new o.a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),i=0;i<t;i++)n[i].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new o.a;return _get(_getPrototypeOf(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new o.a;return this.hasError?(e.error(this.thrownError),a.a.EMPTY):this.isStopped?(e.complete(),a.a.EMPTY):(this.observers.push(e),new s.a(this,e))}},{key:"asObservable",value:function(){var e=new i.a;return e.source=this,e}}]),n}(i.a);return e.create=function(e,t){return new d(e,t)},e}(),d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).destination=e,r.source=i,r}return _createClass(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):a.a.EMPTY}}]),n}(u)},XoHu:function(e,t,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(t,"a",function(){return i})},XqMk:function(e,t,n){"use strict";var i="object"==typeof global&&global&&global.Object===Object&&global;t.a=i},YRex:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===t||"\u0633\u06d5\u06be\u06d5\u0631"===t||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===t?e:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===t||"\u0643\u06d5\u0686"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":i<900?"\u0633\u06d5\u06be\u06d5\u0631":i<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":i<1230?"\u0686\u06c8\u0634":i<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%
1d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return e+"-\u06be\u06d5\u067e\u062a\u06d5";default:return e}},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(n("wd/R"))},Ylt2:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).subject=e,r.subscriber=i,r.closed=!1,r}return _createClass(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(n("quSY").a)},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],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}}),e.webpackPolyfill=1),e}},Z4QM:function(e,t,n){!function(e){"use strict";var t=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],n=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(e){return"\u0634\u0627\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/\u060c/g,",")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(n("wd/R"))},ZAMP:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n("wd/R"))},ZUHj:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).parent=e,a.outerValue=i,a.outerIndex=r,a.index=0,a}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(n("7o/Q").a),r=n("SeVD"),a=n("HDdC");function o(e,t,n,o){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new i(e,n,o);if(!s.closed)return t instanceof a.a?t.subscribe(s):Object(r.a)(t)(s)}},Zduo:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_a\u016dg_sept_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n("wd/R"))},aIdf:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var i=[/^gen/i,/^c[\u02bc\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],r=/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,a=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_C\u02bchwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C\u02bchwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc\u02bcher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[\u02bc\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(genver|c[\u02bc\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[\u02bc\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc\u02bchoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec\u02bch da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s \u02bczo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(e){return e+(1===e?"a\xf1":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n("wd/R"))},aIsn:function(e,t,n){!function(e){"use strict";e.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%
1d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},aQkU:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u0435\u0434\u043d\u0430 \u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0435\u0434\u0435\u043d \u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0435\u0434\u0435\u043d \u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u0435\u0434\u0435\u043d \u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0435\u0434\u043d\u0430 \u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n("wd/R"))},b1Dy:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},bHdf:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("5+tZ"),r=n("SpAZ");function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(i.a)(r.a,e)}},bOMt:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"\xe9n time",hh:"%d timer",d:"\xe9n dag",dd:"%d dager",w:"\xe9n uke",ww:"%d uker",M:"\xe9n m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},bOdf:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("5+tZ");function r(e,t){return Object(i.a)(e,t,1)}},bXm7:function(e,t,n){!function(e){"use strict";var t={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};e.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},bYM6:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u064
11\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(n("wd/R"))},bpih:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},bxKX:function(e,t,n){!function(e){"use strict";e.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(e){return(/^[0-9].+$/.test(e)?"tra":"in")+" "+e},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%
1d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},c2HN:function(e,t,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,"a",function(){return i})},cRix:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n("wd/R"))},czMo:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n("wd/R"))},dNwA:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n("wd/R"))},dVgr:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["\xe7end san\xeeye","\xe7end san\xeeyeyan"],ss:[e+" san\xeeye",e+" san\xeeyeyan"],m:["deq\xeeqeyek","deq\xeeqeyek\xea"],mm:[e+" deq\xeeqe",e+" deq\xeeqeyan"],h:["saetek","saetek\xea"],hh:[e+" saet",e+" saetan"],d:["rojek","rojek\xea"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyek\xea"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehek\xea"],MM:[e+" meh",e+" mehan"],y:["salek","salek\xea"],yy:[e+" sal",e+" salan"]};return t?r[n][0]:r[n][1]}e.defineLocale("ku-kmr",{months:"R\xeabendan_Sibat_Adar_N\xeesan_Gulan_Hez\xeeran_T\xeermeh_Tebax_\xcelon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"R\xeab_Sib_Ada_N\xees_Gul_Hez_T\xeer_Teb_\xcelo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yek\u015fem_Du\u015fem_S\xea\u015fem_\xc7ar\u015fem_P\xeanc\u015fem_\xcen_\u015eem\xee".split("_"),weekdaysShort:"Yek_Du_S\xea_\xc7ar_P\xean_\xcen_\u015eem".split("_"),weekdaysMin:"Ye_Du_S\xea_\xc7a_P\xea_\xcen_\u015ee".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[\xcero di saet] LT [de]",nextDay:"[Sib\xea di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a bor\xee di saet] LT [de]",sameElse:"L"}
1,relativeTime:{future:"di %s de",past:"ber\xee %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:y\xea|\xea|\.)/,ordinal:function(e,t){var n=t.toLowerCase();return n.includes("w")||n.includes("m")?e+".":e+function(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"\xea":"y\xea"}(e)},week:{dow:1,doy:4}})}(n("wd/R"))},"e+ae":function(e,t,n){!function(e){"use strict";var t="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),n="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sek\xfand"):a+"sekundami";case"m":return t?"min\xfata":r?"min\xfatu":"min\xfatou";case"mm":return t||r?a+(i(e)?"min\xfaty":"min\xfat"):a+"min\xfatami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hod\xedn"):a+"hodinami";case"d":return t||r?"de\u0148":"d\u0148om";case"dd":return t||r?a+(i(e)?"dni":"dn\xed"):a+"d\u0148ami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?a+(i(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?a+(i(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},eIep:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("lJxs"),r=n("Cfvw"),a=n("zx2A");function o(e,t){return"function"==typeof t?function(n){return n.pipe(o(function(n,a){return Object(r.a)(e(n,a)).pipe(Object(i.a)(function(e,i){return t(n,e,a,i)}))}))}:function(t){return t.lift(new s(e))}}var s=function(){function e(t){_classCallCheck(this,e),this.project=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.project))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).project=i,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(i){return void this.destination.error(i)}this._innerSub(t)}},{key:"_innerSub",value:function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new a.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(a.c)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)}},{key:"_complete",value:function(){var e=this.innerSubscription;e&&!e.closed||_get(_getPrototypeOf(n.prototype),"_complete",this).call(this),this.unsubscribe()}},{key:"_unsubscribe",value:function(){this.innerSubscription=void 0}},{key:"notifyComplete",value:function(){this.innerSubscription=void 0,this.isStopped&&_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"notifyNext",value:function(e){this.destination.next(e)}}]),n}(a.b)},fXoL:function(e,t,n){"use strict";n.d(t,"a",function(){return xn}),n.d(t,"b",function(){return If}),n.d(t,"c",function(){return Ef}),n.d(t,"d",function(){return Df}),n.d(t,"e",function(){return Tf}),n.d(t,"f",function(){return Mp}),n.d(t,"g",function(){return gp}),n.d(t,"h",function(){return Cr}),n.d(t,"i",function(){return H}),n.d(t,"j",function(){return Dd}),n.d(t,"k",function(){return $f}),n.d(t,"l",function(){return gf}),n.d(t,"m",function(){return Ku}),n.d(t,"n",function(){return Mn}),n.d(t,"o",function(){return Ff}),n.d(t,"p",function(){return mf}),n.d(t,"q",function(){return td}),n.d(t,"r",function(){return kr}),n.d(t,"s",function(){return xh}),n.d(t,"t",function(){return _f}),n.d(t,"u",function(){return wf}),n.d(t,"v",function(){return Eo}),n.d(t,"w",function(){return ii}),n.d(t,"x",function(){return P}),n.d(t,"y",function(){return Cn}),n.d(t,"z",function(){return Vo}),n.d(t,"A",function(){return yf}),n.d(t,"B",function(){return _d}),n.d(t,"C",function(){return kd}),n.d(t,"D",function(){return jf}),n.d(t,"E",function(){return Sf}),n.d(t,"F",function(){return jd}),n.d(t,"G",function(){return yp}),n.d(t,"H",function(){return Hd}),n.d(t,"I",function(){return dp}),n.d(t,"J",function(){return Gf}),n.d(t,"K",function(){return ri}),n.d(t,"L",function(){return bf}),n.d(t,"M",function(){return Of}),n.d(t,"N",function(){return Lf}),n.d(t,"O",function(){return vf}),n.d(t,"P",function(){return Mh}),n.d(t,"Q",function(){return rd}),n.d(t,"R",function(){return id}),n.d(t,"S",function(){return Lr}),n.d(t,"T",function(){return od}),n.d(t,"U",function(){return sr}),n.d(t,"V",function(){return oi}),n.d(t,"W",function(){return wp}),n.d(t,"X",function(){return Ld}),n.d(t,"Y",function(){return tp}
vendor: 7,199 bytes, line 1
1),n.d(t,"Z",function(){return En}),n.d(t,"ab",function(){return sd}),n.d(t,"bb",function(){return Dn}),n.d(t,"cb",function(){return Rd}),n.d(t,"db",function(){return j}),n.d(t,"eb",function(){return hp}),n.d(t,"fb",function(){return cp}),n.d(t,"gb",function(){return f}),n.d(t,"hb",function(){return ei}),n.d(t,"ib",function(){return lp}),n.d(t,"jb",function(){return xp}),n.d(t,"kb",function(){return ip}),n.d(t,"lb",function(){return Hf}),n.d(t,"mb",function(){return Po}),n.d(t,"nb",function(){return Oc}),n.d(t,"ob",function(){return g}),n.d(t,"pb",function(){return ar}),n.d(t,"qb",function(){return Yi}),n.d(t,"rb",function(){return Ei}),n.d(t,"sb",function(){return Pi}),n.d(t,"tb",function(){return Hi}),n.d(t,"ub",function(){return Oi}),n.d(t,"vb",function(){return Li}),n.d(t,"wb",function(){return Ii}),n.d(t,"xb",function(){return Ec}),n.d(t,"yb",function(){return Cp}),n.d(t,"zb",function(){return Ac}),n.d(t,"Ab",function(){return Pc}),n.d(t,"Bb",function(){return Ai}),n.d(t,"Cb",function(){return Y}),n.d(t,"Db",function(){return is}),n.d(t,"Eb",function(){return $s}),n.d(t,"Fb",function(){return Vs}),n.d(t,"Gb",function(){return Us}),n.d(t,"Hb",function(){return Tc}),n.d(t,"Ib",function(){return Xd}),n.d(t,"Jb",function(){return Ae}),n.d(t,"Kb",function(){return u}),n.d(t,"Lb",function(){return Ti}),n.d(t,"Mb",function(){return Wo}),n.d(t,"Nb",function(){return ke}),n.d(t,"Ob",function(){return qu}),n.d(t,"Pb",function(){return Da}),n.d(t,"Qb",function(){return ds}),n.d(t,"Rb",function(){return ws}),n.d(t,"Sb",function(){return Ml}),n.d(t,"Tb",function(){return Ql}),n.d(t,"Ub",function(){return Jl}),n.d(t,"Vb",function(){return Cl}),n.d(t,"Wb",function(){return Rh}),n.d(t,"Xb",function(){return Z}),n.d(t,"Yb",function(){return oe}),n.d(t,"Zb",function(){return w}),n.d(t,"ac",function(){return k}),n.d(t,"bc",function(){return ie}),n.d(t,"cc",function(){return se}),n.d(t,"dc",function(){return Ls}),n.d(t,"ec",function(){return Rs}),n.d(t,"fc",function(){return Ys}),n.d(t,"gc",function(){return Bs}),n.d(t,"hc",function(){return Ns}),n.d(t,"ic",function(){return Fs}),n.d(t,"jc",function(){return js}),n.d(t,"kc",function(){return zs}),n.d(t,"lc",function(){return hn}),n.d(t,"mc",function(){return Cc}),n.d(t,"nc",function(){return Hu}),n.d(t,"oc",function(){return Ru}),n.d(t,"pc",function(){return Fu}),n.d(t,"qc",function(){return Zn}),n.d(t,"rc",function(){return pn}),n.d(t,"sc",function(){return Os}),n.d(t,"tc",function(){return Ws}),n.d(t,"uc",function(){return Nh}),n.d(t,"vc",function(){return Et}),n.d(t,"wc",function(){return Dt}),n.d(t,"xc",function(){return Ks}),n.d(t,"yc",function(){return mh}),n.d(t,"zc",function(){return gh}),n.d(t,"Ac",function(){return vh}),n.d(t,"Bc",function(){return el}),n.d(t,"Cc",function(){return Js}),n.d(t,"Dc",function(){return Is}),n.d(t,"Ec",function(){return tl}),n.d(t,"Fc",function(){return nl}),n.d(t,"Gc",function(){return Jd}),n.d(t,"Hc",function(){return eh}),n.d(t,"Ic",function(){return th}),n.d(t,"Jc",function(){return nh}),n.d(t,"Kc",function(){return ih}),n.d(t,"Lc",function(){return rh}),n.d(t,"Mc",function(){return jh}),n.d(t,"Nc",function(){return Ps}),n.d(t,"Oc",function(){return Tr}),n.d(t,"Pc",function(){return Dr}),n.d(t,"Qc",function(){return Ke}),n.d(t,"Rc",function(){return lr}),n.d(t,"Sc",function(){return dr}),n.d(t,"Tc",function(){return ur}),n.d(t,"Uc",function(){return J}),n.d(t,"Vc",function(){return re}),n.d(t,"Wc",function(){return oc}),n.d(t,"Xc",function(){return kl}),n.d(t,"Yc",function(){return As}),n.d(t,"Zc",function(){return Vh}),n.d(t,"ad",function(){return Nl}),n.d(t,"bd",function(){return Bl}),n.d(t,"cd",function(){return Yl}),n.d(t,"dd",function(){return zl}),n.d(t,"ed",function(){return Fh});var i=n("XNiG"),r=n("quSY"),a=n("HDdC"),o=n("VRyK"),s=n("w1tV");function l(e){for(var t in e)if(e[t]===l)return t;throw Error("Could not find renamed property on target object.")}function c(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function u(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(u).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function d(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var h=l({__forward_ref__:l});function f(e){return e.__forward_ref__=f,e.toString=function(){return u(this())},e}function p(e){return m(e)?e():e}function m(e){return"function"==typeof e&&e.hasOwnProperty(h)&&e.__forward_ref__===f}var g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,function(e,t){return"".concat(e?"NG0".concat(e,": "):"").concat(t)}(e,i))).code=e,r}return n}(_wrapNativeSuper(Error));function v(e){return"string"==typeof e?e:null==e?"":String(e)}function y(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():v(e)}function b(e,t){var n=t?" in ".concat(t):"";throw new g("201","No provider for ".concat(y(e)," found").concat(n))}function _(e,t,n,i){throw new Error("ASSERTION ERROR: ".concat(e)+(null==i?"":" [Expected=> ".concat(n," ").concat(i," ").concat(t," <=Actual]")))}function w(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function k(e){return{providers:e.providers||[],imports:e.imports||[]}}function C(e){return x(e,D)||x(e,E)}function x(e,t){return e.hasOwnProperty(t)?e[t]:null}function S(e){return e&&(e.hasOwnProperty(T)||e.hasOwnProperty(A))?e[T]:null}var M,D=l({"\u0275prov":l}),T=l({"\u0275inj":l}),E=l({ngInjectableDef:l}),A=l({ngInjectorDef:l}),P=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function L(e){var t=M;return M=e,t}function O(e,t,n){var i=C(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&P.Optional?null:void 0!==t?t:void b(u(e),"Injector")}function I(e){return{toString:e}.toString()}var H=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),j=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),F="undefined"!=typeof globalThis&&globalThis,R="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,B="undefined"!=typeof global&&global,Y=F||B||R||N,z={},V=[],U=l({"\u0275cmp":l}),$=l({"\u0275dir":l}),W=l({"\u0275pipe":l}),q=l({"\u0275mod":l}),G=l({"\u0275loc":l}),X=l({"\u0275fac":l}),Q=l({__NG_ELEMENT_ID__:l}),K=0;function Z(e){return I(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===H.OnPush,directiveDefs:null,pipeDefs:null,
1selectors:e.selectors||V,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||j.Emulated,id:"c",styles:e.styles||V,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,r=e.features,a=e.pipes;return n.id+=K++,n.inputs=ae(e.inputs,t),n.outputs=ae(e.outputs),r&&r.forEach(function(e){return e(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(ee)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(te)}:null,n})}function J(e,t,n){var i=e.\u0275cmp;i.directiveDefs=function(){return t.map(ee)},i.pipeDefs=function(){return n.map(te)}}function ee(e){return le(e)||ce(e)}function te(e){return ue(e)}var ne={};function ie(e){return I(function(){var t={type:e.type,bootstrap:e.bootstrap||V,declarations:e.declarations||V,imports:e.imports||V,exports:e.exports||V,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ne[e.id]=e.type),t})}function re(e,t){return I(function(){var n=de(e,!0);n.declarations=t.declarations||V,n.imports=t.imports||V,n.exports=t.exports||V})}function ae(e,t){if(null==e)return z;var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i],a=r;Array.isArray(r)&&(a=r[1],r=r[0]),n[r]=i,t&&(t[r]=a)}return n}var oe=Z;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function le(e){return e[U]||null}function ce(e){return e[$]||null}function ue(e){return e[W]||null}function de(e,t){var n=e[q]||null;if(!n&&!0===t)throw new Error("Type ".concat(u(e)," does not have '\u0275mod' property."));return n}var he=20,fe=10;function pe(e){return Array.isArray(e)&&"object"==typeof e[1]}function me(e){return Array.isArray(e)&&!0===e[1]}function ge(e){return!!(8&e.flags)}function ve(e){return!(2&~e.flags)}function ye(e){return!(1&~e.flags)}function be(e){return null!==e.template}function _e(e,t){return e.hasOwnProperty(X)?e[X]:null}var we=function(){function e(t,n,i){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=i}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function ke(){return Ce}function Ce(e){return e.type.prototype.ngOnChanges&&(e.setInput=Se),xe}function xe(){var e=De(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===z)e.previous=t;else for(var i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function Se(e,t,n,i){var r=De(e)||function(e,t){return e[Me]=t}(e,{previous:z,current:null}),a=r.current||(r.current={}),o=r.previous,s=this.declaredInputs[n],l=o[s];a[s]=new we(l&&l.currentValue,t,o===z),e[i]=t}ke.ngInherit=!0;var Me="__ngSimpleChanges__";function De(e){return e[Me]||null}var Te,Ee="http://www.w3.org/2000/svg";function Ae(e){Te=e}function Pe(){return void 0!==Te?Te:"undefined"!=typeof document?document:void 0}function Le(e){return!!e.listen}var Oe={createRenderer:function(e,t){return Pe()}};function Ie(e){for(;Array.isArray(e);)e=e[0];return e}function He(e,t){return Ie(t[e])}function je(e,t){return Ie(t[e.index])}function Fe(e,t){return e.data[t]}function Re(e,t){return e[t]}function Ne(e,t){var n=t[e];return pe(n)?n:n[0]}function Be(e){return!(4&~e[2])}function Ye(e){return!(128&~e[2])}function ze(e,t){return null==t?null:e[t]}function Ve(e){e[18]=0}function Ue(e,t){e[5]+=t;for(var n=e,i=e[3];null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}var $e={lFrame:_t(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function We(){return $e.bindingsEnabled}function qe(){$e.bindingsEnabled=!0}function Ge(){$e.bindingsEnabled=!1}function Xe(){return $e.lFrame.lView}function Qe(){return $e.lFrame.tView}function Ke(e){return $e.lFrame.contextLView=e,e[8]}function Ze(){for(var e=Je();null!==e&&64===e.type;)e=e.parent;return e}function Je(){return $e.lFrame.currentTNode}function et(){var e=$e.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function tt(e,t){var n=$e.lFrame;n.currentTNode=e,n.isParent=t}function nt(){return $e.lFrame.isParent}function it(){$e.lFrame.isParent=!1}
vendor: 4,221 bytes, line 1
1function rt(){return $e.isInCheckNoChangesMode}function at(e){$e.isInCheckNoChangesMode=e}function ot(){var e=$e.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function st(){return $e.lFrame.bindingIndex}function lt(e){return $e.lFrame.bindingIndex=e}function ct(){return $e.lFrame.bindingIndex++}function ut(e){var t=$e.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function dt(e){$e.lFrame.inI18n=e}function ht(e){$e.lFrame.currentDirectiveIndex=e}function ft(e){var t=$e.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function pt(){return $e.lFrame.currentQueryIndex}function mt(e){$e.lFrame.currentQueryIndex=e}function gt(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function vt(e,t,n){if(n&P.SkipSelf){for(var i=t,r=e;!(null!==(i=i.parent)||n&P.Host||(i=gt(r),null===i)||(r=r[15],10&i.type)););if(null===i)return!1;t=i,e=r}var a=$e.lFrame=bt();return a.currentTNode=t,a.lView=e,!0}function yt(e){var t=bt(),n=e[1];$e.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function bt(){var e=$e.lFrame,t=null===e?null:e.child;return null===t?_t(e):t}function _t(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function wt(){var e=$e.lFrame;return $e.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var kt=wt;function Ct(){var e=wt();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function xt(){return $e.lFrame.selectedIndex}function St(e){$e.lFrame.selectedIndex=e}function Mt(){var e=$e.lFrame;return Fe(e.tView,e.selectedIndex)}function Dt(){$e.lFrame.currentNamespace=Ee}function Tt(){$e.lFrame.currentNamespace="http://www.w3.org/1998/MathML/"}function Et(){$e.lFrame.currentNamespace=null}function At(e,t){for(var n=t.directiveStart,i=t.directiveEnd;n<i;n++){var r=e.data[n].type.prototype,a=r.ngAfterContentInit,o=r.ngAfterContentChecked,s=r.ngAfterViewInit,l=r.ngAfterViewChecked,c=r.ngOnDestroy;a&&(e.contentHooks||(e.contentHooks=[])).push(-n,a),o&&((e.contentHooks||(e.contentHooks=[])).push(n,o),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,o)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),l&&((e.viewHooks||(e.viewHooks=[])).push(n,l),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,l)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function Pt(e,t,n){It(e,t,3,n)}function Lt(e,t,n,i){(3&e[2])===n&&It(e,t,n,i)}function Ot(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function It(e,t,n,i){for(var r=null!=i?i:-1,a=t.length-1,o=0,s=void 0!==i?65535&e[18]:0;s<a;s++)if("number"==typeof t[s+1]){if(o=t[s],null!=i&&o>=i)break}else t[s]<0&&(e[18]+=65536),(o<r||-1==r)&&(Ht(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function Ht(e,t,n,i){var r=n[i]<0,a=n[i+1],o=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{a.call(o)}finally{}}}else try{a.call(o)}finally{}}var jt=-1,Ft=function e(t,n,i){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Rt(e,t,n){for(var i=Le(e),r=0;r<n.length;){var a=n[r];if("number"==typeof a){if(0!==a)break;r++;var o=n[r++],s=n[r++],l=n[r++];i?e.setAttribute(t,s,l,o):t.setAttributeNS(o,s,l)}else{var c=a,u=n[++r];Bt(c)?i&&e.setProperty(t,c,u):i?e.setAttribute(t,c,u):t.setAttribute(c,u),r++}}return r}function Nt(e){return 3===e||4===e||6===e}function Bt(e){return 64===e.charCodeAt(0)}function Yt(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,i=0;i<t.length;i++){var r=t[i];"number"==typeof r?n=r:0===n||zt(e,n,r,null,-1===n||2===n?t[++i]:null)}return e}function zt(e,t,n,i,r){var a=0,o=e.length;if(-1===t)o=-1;else for(;a<e.length;){var s=e[a++];if("number"==typeof s){if(s===t){o=-1;break}if(s>t){o=a-1;break}}}for(;a<e.length;){var l=e[a];if("number"==typeof l)break;
1if(l===n){if(null===i)return void(null!==r&&(e[a+1]=r));if(i===e[a+1])return void(e[a+2]=r)}a++,null!==i&&a++,null!==r&&a++}-1!==o&&(e.splice(o,0,t),a=o+1),e.splice(a++,0,n),null!==i&&e.splice(a++,0,i),null!==r&&e.splice(a++,0,r)}function Vt(e){return e!==jt}function Ut(e){return 32767&e}function $t(e,t){for(var n=e>>16,i=t;n>0;)i=i[15],n--;return i}var Wt=!0;function qt(e){var t=Wt;return Wt=e,t}var Gt=0;function Xt(e,t){var n=Kt(e,t);if(-1!==n)return n;var i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Qt(i.data,e),Qt(t,null),Qt(i.blueprint,null));var r=Zt(e,t),a=e.injectorIndex;if(Vt(r))for(var o=Ut(r),s=$t(r,t),l=s[1].data,c=0;c<8;c++)t[a+c]=s[o+c]|l[o+c];return t[a+8]=r,a}function Qt(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Kt(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Zt(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,i=null,r=t;null!==r;){var a=r[1],o=a.type;if(null===(i=2===o?a.declTNode:1===o?r[6]:null))return jt;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return jt}function Jt(e,t,n){!function(e,t,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(Q)&&(i=n[Q]),null==i&&(i=n[Q]=Gt++);var r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function en(e,t,n){if(n&P.Optional)return e;b(t,"NodeInjector")}function tn(e,t,n,i){if(n&P.Optional&&void 0===i&&(i=null),0==(n&(P.Self|P.Host))){var r=e[9],a=L(void 0);try{return r?r.get(t,i,n&P.Optional):O(t,i,n&P.Optional)}finally{L(a)}}return en(i,t,n)}function nn(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:P.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(Q)?e[Q]:void 0;return"number"==typeof t?t>=0?255&t:an:t}(n);if("function"==typeof a){if(!vt(t,e,i))return i&P.Host?en(r,n,i):tn(t,n,i,r);try{var o=a(i);if(null!=o||i&P.Optional)return o;b(n)}finally{kt()}}else if("number"==typeof a){var s=null,l=Kt(e,t),c=jt,u=i&P.Host?t[16][6]:null;for((-1===l||i&P.SkipSelf)&&((c=-1===l?Zt(e,t):t[l+8])!==jt&&un(i,!1)?(s=t[1],l=Ut(c),t=$t(c,t)):l=-1);-1!==l;){var d=t[1];if(cn(a,l,d.data)){var h=on(l,t,n,s,i,u);if(h!==rn)return h}(c=t[l+8])!==jt&&un(i,t[1].data[l+8]===u)&&cn(a,l,t)?(s=d,l=Ut(c),t=$t(c,t)):l=-1}}}return tn(t,n,i,r)}var rn={};function an(){return new dn(Ze(),Xe())}function on(e,t,n,i,r,a){var o=t[1],s=o.data[e+8],l=sn(s,o,n,null==i?ve(s)&&Wt:i!=o&&!!(3&s.type),r&P.Host&&a===s);return null!==l?ln(t,o,l,s):rn}function sn(e,t,n,i,r){for(var a=e.providerIndexes,o=t.data,s=1048575&a,l=e.directiveStart,c=a>>20,u=r?s+c:e.directiveEnd,d=i?s:s+c;d<u;d++){var h=o[d];if(d<l&&n===h||d>=l&&h.type===n)return d}if(r){var f=o[l];if(f&&be(f)&&f.type===n)return l}return null}function ln(e,t,n,i){var r=e[n],a=t.data;if(r instanceof Ft){var o=r;o.resolving&&function(e){throw new g("200","Circular dependency in DI detected for ".concat(e))}(y(a[n]));var s=qt(o.canSeeViewProviders);o.resolving=!0;var l=o.injectImpl?L(o.injectImpl):null;vt(e,i,P.Default);try{r=e[n]=o.factory(void 0,a,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){var i=t.type.prototype,r=i.ngOnChanges,a=i.ngOnInit,o=i.ngDoCheck;if(r){var s=Ce(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}a&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,a),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,a[n],t)}finally{null!==l&&L(l),qt(s),o.resolving=!1,kt()}}return r}function cn(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function un(e,t){return!(e&P.Self||e&P.Host&&t)}var dn=function(){function e(t,n){_classCallCheck(this,e),this._tNode=t,this._lView=n}return _createClass(e,[{key:"get",value:function(e,t){return nn(this._tNode,this._lView,e,void 0,t)}}]),e}();function hn(e){return I(function(){for(var t=e.prototype.constructor,n=t[X]||fn(t),i=Object.prototype,r=Object.getPrototypeOf(e.prototype).constructor;r&&r!==i;){var a=r[X]||fn(r);if(a&&a!==n)return a;r=Object.getPrototypeOf(r)}return function(e){return new e}})}function fn(e){return m(e)?function(){var t=fn(p(e));return t&&t()}:_e(e)}function pn(e){return function(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;var n=e.attrs;if(n)for(var i=n.length,r=0;r<i;){var a=n[r];if(Nt(a))break;if(0===a)r+=2;else if("number"==typeof a)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(a===t)return n[r+1];r+=2}}return null}(Ze(),e)}var mn="__annotations__",gn="__parameters__",vn="__prop__metadata__";function yn(e,t,n,i,r){return I(function(){var a=bn(t);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof o)return a.call.apply(a,[this].concat(t)),this;var s=_construct(o,t);return function(e){return r&&r.apply(void 0,[e].concat(t)),(e.hasOwnProperty(mn)?e[mn]:Object.defineProperty(e,mn,{value:[]})[mn]).push(s),i&&i(e),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function bn(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}
1function _n(e,t,n){return I(function(){var i=bn(t);function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof r)return i.apply(this,t),this;var a=_construct(r,t);return o.annotation=a,o;function o(e,t,n){for(var i=e.hasOwnProperty(gn)?e[gn]:Object.defineProperty(e,gn,{value:[]})[gn];i.length<=n;)i.push(null);return(i[n]=i[n]||[]).push(a),e}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function wn(e,t,n,i){return I(function(){var r=bn(t);function a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof a)return r.apply(this,t),this;var o=_construct(a,t);return function(e,n){var r=e.constructor,a=r.hasOwnProperty(vn)?r[vn]:Object.defineProperty(r,vn,{value:{}})[vn];a[n]=a.hasOwnProperty(n)&&a[n]||[],a[n].unshift(o),i&&i.apply(void 0,[e,n].concat(t))}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}var kn=_n("Attribute",function(e){return{attributeName:e,__NG_ELEMENT_ID__:function(){return pn(e)}}}),Cn=function(){function e(t,n){_classCallCheck(this,e),this._desc=t,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(e,[{key:"toString",value:function(){return"InjectionToken ".concat(this._desc)}}]),e}(),xn=new Cn("AnalyzeForEntryComponents"),Sn=function e(){_classCallCheck(this,e)},Mn=wn("ContentChild",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)},Sn),Dn=wn("ViewChild",function(e,t){return Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)},Sn);function Tn(){var e=Y.ng;if(!e||!e.\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 e.\u0275compilerFacade}var En=Function;function An(e){return"function"==typeof e}function Pn(e,t){void 0===t&&(t=e);for(var n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),Pn(i,t)):t!==e&&t.push(i)}return t}function Ln(e,t){e.forEach(function(e){return Array.isArray(e)?Ln(e,t):t(e)})}function On(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function In(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Hn(e,t){for(var n=[],i=0;i<e;i++)n.push(t);return n}function jn(e,t,n){var i=Rn(e,t);return i>=0?e[1|i]=n:function(e,t,n,i){var r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i=~i,t,n),i}function Fn(e,t){var n=Rn(e,t);if(n>=0)return e[1|n]}function Rn(e,t){return function(e,t){for(var n=0,i=e.length>>1;i!==n;){var r=n+(i-n>>1),a=e[r<<1];if(t===a)return r<<1;a>t?i=r:n=r+1}return~(i<<1)}(e,t)}var Nn=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\))\)/,Bn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Yn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,zn=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/,Vn=function(){function e(t){_classCallCheck(this,e),this._reflect=t||Y.Reflect}return _createClass(e,[{key:"isReflectionEnabled",value:function(){return!0}},{key:"factory",value:function(e){return function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return _construct(e,n)}}},{key:"_zipTypesAndAnnotations",value:function(e,t){var n;n=Hn(void 0===e?t.length:e.length);for(var i=0;i<n.length;i++)n[i]=void 0===e?[]:e[i]&&e[i]!=Object?[e[i]]:[],t&&null!=t[i]&&(n[i]=n[i].concat(t[i]));return n}},{key:"_ownParameters",value:function(e,t){if(n=e.toString(),Nn.test(n)||zn.test(n)||Bn.test(n)&&!Yn.test(n))return null;var n;if(e.parameters&&e.parameters!==t.parameters)return e.parameters;var i=e.ctorParameters;if(i&&i!==t.ctorParameters){var r="function"==typeof i?i():i,a=r.map(function(e){return e&&e.type}),o=r.map(function(e){return e&&Un(e.decorators)});return this._zipTypesAndAnnotations(a,o)}var s=e.hasOwnProperty(gn)&&e[gn],l=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",e);return l||s?this._zipTypesAndAnnotations(l,s):Hn(e.length)}},{key:"parameters",value:function(e){if(!An(e))return[];var t=$n(e),n=this._ownParameters(e,t);return n||t===Object||(n=this.parameters(t)),n||[]}},{key:"_ownAnnotations",value:function(e,t){if(e.annotations&&e.annotations!==t.annotations){var n=e.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return e.decorators&&e.decorators!==t.decorators?Un(e.decorators):e.hasOwnProperty(mn)?e[mn]:null}},{key:"annotations",value:function(e){if(!An(e))return[];var t=$n(e),n=this._ownAnnotations(e,t)||[];return(t!==Object?this.annotations(t):[]).concat(n)}},{key:"_ownPropMetadata",value:function(e,t){if(e.propMetadata&&e.propMetadata!==t.propMetadata){var n=e.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(e.propDecorators&&e.propDecorators!==t.propDecorators){var i=e.propDecorators,r={};
1return Object.keys(i).forEach(function(e){r[e]=Un(i[e])}),r}return e.hasOwnProperty(vn)?e[vn]:null}},{key:"propMetadata",value:function(e){if(!An(e))return{};var t=$n(e),n={};if(t!==Object){var i=this.propMetadata(t);Object.keys(i).forEach(function(e){n[e]=i[e]})}var r=this._ownPropMetadata(e,t);return r&&Object.keys(r).forEach(function(e){var t=[];n.hasOwnProperty(e)&&t.push.apply(t,_toConsumableArray(n[e])),t.push.apply(t,_toConsumableArray(r[e])),n[e]=t}),n}},{key:"ownPropMetadata",value:function(e){return An(e)&&this._ownPropMetadata(e,$n(e))||{}}},{key:"hasLifecycleHook",value:function(e,t){return e instanceof En&&t in e.prototype}},{key:"guards",value:function(e){return{}}},{key:"getter",value:function(e){return new Function("o","return o."+e+";")}},{key:"setter",value:function(e){return new Function("o","v","return o."+e+" = v;")}},{key:"method",value:function(e){return new Function("o","args","if (!o.".concat(e,") throw new Error('\"").concat(e,"\" is undefined');\n return o.").concat(e,".apply(o, args);"))}},{key:"importUri",value:function(e){return"object"==typeof e&&e.filePath?e.filePath:"./".concat(u(e))}},{key:"resourceUri",value:function(e){return"./".concat(u(e))}},{key:"resolveIdentifier",value:function(e,t,n,i){return i}},{key:"resolveEnum",value:function(e,t){return e[t]}}]),e}();function Un(e){return e?e.map(function(e){return _construct(e.type.annotationCls,_toConsumableArray(e.args?e.args:[]))}):[]}function $n(e){var t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}var Wn,qn={},Gn=/\n/gm,Xn=l({provide:String,useValue:l});function Qn(e){var t=Wn;return Wn=e,t}function Kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.Default;if(void 0===Wn)throw new Error("inject() must be called from an injection context");return null===Wn?O(e,void 0,t):Wn.get(e,t&P.Optional?null:void 0,t)}function Zn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.Default;return(M||Kn)(p(e),t)}function Jn(e){throw new Error("invalid")}var ei=Zn;function ti(e){for(var t=[],n=0;n<e.length;n++){var i=p(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");for(var r=void 0,a=P.Default,o=0;o<i.length;o++){var s=i[o],l=s.__NG_DI_FLAG__;"number"==typeof l?-1===l?r=s.token:a|=l:r=s}t.push(Zn(r,a))}else t.push(Zn(i))}return t}function ni(e,t){return e.__NG_DI_FLAG__=t,e.prototype.__NG_DI_FLAG__=t,e}var ii=ni(_n("Inject",function(e){return{token:e}}),-1),ri=ni(_n("Optional"),8),ai=ni(_n("Self"),2),oi=ni(_n("SkipSelf"),4),si=ni(_n("Host"),1),li=null;function ci(){return li=li||new Vn}function ui(e){return ci().parameters(e).map(function(e){return function(e){var t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(var n=0;n<e.length;n++){var i=e[n];if(void 0!==i){var r=Object.getPrototypeOf(i);if(i instanceof ri||"Optional"===r.ngMetadataName)t.optional=!0;else if(i instanceof oi||"SkipSelf"===r.ngMetadataName)t.skipSelf=!0;else if(i instanceof ai||"Self"===r.ngMetadataName)t.self=!0;else if(i instanceof si||"Host"===r.ngMetadataName)t.host=!0;else if(i instanceof ii)t.token=i.token;else if(i instanceof kn){if(void 0===i.attributeName)throw new Error("Attribute name must be defined.");t.attribute=i.attributeName}else t.token=i}}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(e)})}var di,hi,fi=new Map,pi=new Set;function mi(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function gi(){if(void 0===di&&(di=null,Y.trustedTypes))try{di=Y.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return di}function vi(e){var t;return(null===(t=gi())||void 0===t?void 0:t.createHTML(e))||e}function yi(){if(void 0===hi&&(hi=null,Y.trustedTypes))try{hi=Y.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(e){}return hi}function bi(e){var t;return(null===(t=yi())||void 0===t?void 0:t.createHTML(e))||e}function _i(e){var t;return(null===(t=yi())||void 0===t?void 0:t.createScript(e))||e}function wi(e){var t;return(null===(t=yi())||void 0===t?void 0:t.createScriptURL(e))||e}var ki=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity," (see https://g.co/ng/security#xss)")}}]),e}(),Ci=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(ki),xi=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Style"}}
1]),n}(ki),Si=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(ki),Mi=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(ki),Di=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(ki);function Ti(e){return e instanceof ki?e.changingThisBreaksApplicationSecurity:e}function Ei(e,t){var n=Ai(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function Ai(e){return e instanceof ki&&e.getTypeName()||null}function Pi(e){return new Ci(e)}function Li(e){return new xi(e)}function Oi(e){return new Si(e)}function Ii(e){return new Mi(e)}function Hi(e){return new Di(e)}function ji(e){var t=new Ri(e);return function(){try{return!!(new window.DOMParser).parseFromString(vi(""),"text/html")}catch(e){return!1}}()?new Fi(t):t}var Fi=function(){function e(t){_classCallCheck(this,e),this.inertDocumentHelper=t}return _createClass(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var t=(new window.DOMParser).parseFromString(vi(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),Ri=function(){function e(t){if(_classCallCheck(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return _createClass(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=vi(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=vi(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var i=t.item(n).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||e.removeAttribute(i)}for(var r=e.firstChild;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}]),e}(),Ni=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Bi=/^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 Yi(e){return(e=String(e)).match(Ni)||e.match(Bi)?e:"unsafe:"+e}function zi(e){return(e=String(e)).split(",").map(function(e){return Yi(e.trim())}).join(", ")}function Vi(e){var t,n={},i=_createForOfIteratorHelper(e.split(","));try{for(i.s();!(t=i.n()).done;){n[t.value]=!0}}catch(r){i.e(r)}finally{i.f()}return n}function Ui(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,a=n;r<a.length;r++){var o=a[r];for(var s in o)o.hasOwnProperty(s)&&(e[s]=!0)}return e}var $i,Wi=Vi("area,br,col,hr,img,wbr"),qi=Vi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Gi=Vi("rp,rt"),Xi=Ui(Gi,qi),Qi=Ui(Wi,Ui(qi,Vi("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")),Ui(Gi,Vi("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")),Xi),Ki=Vi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Zi=Vi("srcset"),Ji=Ui(Ki,Zi,Vi("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vi("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")),er=Vi("script,style,template"),tr=function(){function e(){_classCallCheck(this,e),this.sanitizedSomething=!1,this.buf=[]}return _createClass(e,[{key:"sanitizeChildren",value:function(e){for(var t=e.firstChild,n=!0;t;)if(t.nodeType===Node.ELEMENT_NODE?n=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,n&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var i=this.checkClobberedElement(t,t.nextSibling);if(i){t=i;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var t=e.nodeName.toLowerCase();if(!Qi.hasOwnProperty(t))return this.sanitizedSomething=!0,!er.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);for(var n=e.attributes,i=0;i<n.length;i++){var r=n.item(i),a=r.name,o=a.toLowerCase();if(Ji.hasOwnProperty(o)){var s=r.value;Ki[o]&&(s=Yi(s)),Zi[o]&&(s=zi(s)),this.buf.push(" ",a,'="',rr(s),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();Qi.hasOwnProperty(t)&&!Wi.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(rr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),nr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ir=/([^\#-~ |!])/g;function rr(e){return e.replace(/&/g,"&").replace(nr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(ir,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function ar(e,t){var n=null;try{$i=$i||ji(e);var i=t?String(t):"";n=$i.getInertBodyElement(i);var r=5,a=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=a,a=n.innerHTML,n=$i.getInertBodyElement(i)}while(i!==a);return vi((new tr).sanitizeChildren(or(n)||n))}finally{if(n)for(var o=or(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}
vendor: 5,739 bytes, line 1
1function or(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var sr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function lr(e){var t=gr();return t?bi(t.sanitize(sr.HTML,e)||""):Ei(e,"HTML")?bi(Ti(e)):ar(Pe(),v(e))}function cr(e){var t=gr();return t?t.sanitize(sr.STYLE,e)||"":Ei(e,"Style")?Ti(e):v(e)}function ur(e){var t=gr();return t?t.sanitize(sr.URL,e)||"":Ei(e,"URL")?Ti(e):Yi(v(e))}function dr(e){var t=gr();if(t)return wi(t.sanitize(sr.RESOURCE_URL,e)||"");if(Ei(e,"ResourceURL"))return wi(Ti(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function hr(e){var t=gr();if(t)return _i(t.sanitize(sr.SCRIPT,e)||"");if(Ei(e,"Script"))return _i(Ti(e));throw new Error("unsafe value used in a script context")}function fr(e){return vi(e[0])}function pr(e){return function(e){var t;return(null===(t=gi())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function mr(e,t,n){return function(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?dr:ur}(t,n)(e)}function gr(){var e=Xe();return e&&e[12]}function vr(e,t){e.__ngContext__=t}function yr(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function br(e){return e.ngDebugContext}function _r(e){return e.ngOriginalError}function wr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e.error.apply(e,n)}var kr=function(){function e(){_classCallCheck(this,e),this._console=console}return _createClass(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),i=function(e){return e.ngErrorLogger||wr}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t),n&&i(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?br(e)?br(e):this._findContext(_r(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=_r(e);t&&_r(t);)t=_r(t);return t}}]),e}(),Cr={name:"custom-elements"},xr=/^>|^->|<!--|-->|--!>|<!-$/g,Sr=/(<|>)/,Mr=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Y);function Dr(e){return e.ownerDocument.defaultView}function Tr(e){return e.ownerDocument}function Er(e){return e.ownerDocument.body}function Ar(e){return e instanceof Function?e():e}var Pr,Lr=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});function Or(e,t){return Pr(e,t)}function Ir(e){var t=e[3];return me(t)?t[3]:t}function Hr(e){return Fr(e[13])}function jr(e){return Fr(e[4])}function Fr(e){for(;null!==e&&!me(e);)e=e[4];return e}function Rr(e,t,n,i,r){if(null!=i){var a,o=!1;me(i)?a=i:pe(i)&&(o=!0,i=i[0]);var s=Ie(i);0===e&&null!==n?null==r?Qr(t,n,s):Xr(t,n,s,r||null,!0):1===e&&null!==n?Xr(t,n,s,r||null,!0):2===e?la(t,s,o):3===e&&t.destroyNode(s),null!=a&&function(e,t,n,i,r){var a=n[7];a!==Ie(n)&&Rr(t,e,i,a,r);for(var o=fe;o<n.length;o++){var s=n[o];ua(s[1],s,e,t,i,a)}}(t,e,a,n,r)}}function Nr(e,t){return Le(e)?e.createText(t):e.createTextNode(t)}function Br(e,t,n){Le(e)?e.setValue(t,n):t.textContent=n}function Yr(e,t){return e.createComment(function(e){return e.replace(xr,function(e){return e.replace(Sr,"\u200b$1\u200b")})}(t))}function zr(e,t,n){return Le(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Vr(e,t){var n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,Ue(r,-1)),n.splice(i,1)}function Ur(e,t){if(!(e.length<=fe)){var n,i=fe+t,r=e[i];if(r){var a=r[17];null!==a&&a!==e&&Vr(a,r),t>0&&(e[i-1][4]=r[4]);var o=In(e,fe+t);ua(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function $r(e,t){if(!(256&t[2])){var n=t[11];Le(n)&&n.destroyNode&&ua(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Wr(e[1],e);for(;t;){var n=null;if(pe(t))n=t[13];else{var i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)pe(t)&&Wr(t[1],t),t=t[3];null===t&&(t=e),pe(t)&&Wr(t[1],t),n=t&&t[4]}t=n}}(t)}}function Wr(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var i=0;i<n.length;i+=2){var r=t[n[i]];if(!(r instanceof Ft)){var a=n[i+1];if(Array.isArray(a))for(var o=0;o<a.length;o+=2){var s=r[a[o]],l=a[o+1];try{l.call(s)}finally{}}else try{a.call(r)}finally{}}}}(e,t),function(e,t){var n=e.cleanup,i=t[7],r=-1;if(null!==n)for(var a=0;a<n.length-1;a+=2)if("string"==typeof n[a]){var o=n[a+1],s="function"==typeof o?o(t):Ie(t[o]),l=i[r=n[a+2]],c=n[a+3];"boolean"==typeof c?s.removeEventListener(n[a],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),a+=2}else{var u=i[r=n[a+1]];n[a].call(u)}if(null!==i){for(var d=r+1;d<i.length;d++)(0,i[d])();t[7]=null}}(e,t),1===t[1].type&&Le(t[11])&&t[11].destroy();var n=t[17];if(null!==n&&me(t[3])){n!==t[3]&&Vr(n,t);var i=t[19];null!==i&&i.detachView(e)}}}function qr(e,t,n){return Gr(e,t.parent,n)}function Gr(e,t,n){for(var i=t;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){var r=e.data[i.directiveStart].encapsulation;if(r===j.None||r===j.Emulated)return null}return je(i,n)}function Xr(e,t,n,i,r){Le(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function Qr(e,t,n){Le(e)?e.appendChild(t,n):t.appendChild(n)}function Kr(e,t,n,i,r){null!==i?Xr(e,t,n,i,r):Qr(e,t,n)}function Zr(e,t){return Le(e)?e.parentNode(t):t.parentNode}function Jr(e,t,n){return na(e,t,n)}function ea(e,t,n){return 40&e.type?je(e,n):null}var ta,na=ea;function ia(e,t){na=e,ta=t}function ra(e,t,n,i){var r=qr(e,i,t),a=t[11],o=Jr(i.parent||t[6],i,t);
vendor: 11,180 bytes, line 1
1if(null!=r)if(Array.isArray(n))for(var s=0;s<n.length;s++)Kr(a,r,n[s],o,!1);else Kr(a,r,n,o,!1);void 0!==ta&&ta(a,i,t,n,r)}function aa(e,t){if(null!==t){var n=t.type;if(3&n)return je(t,e);if(4&n)return sa(-1,e[t.index]);if(8&n){var i=t.child;if(null!==i)return aa(e,i);var r=e[t.index];return me(r)?sa(-1,r):Ie(r)}if(32&n)return Or(t,e)()||Ie(e[t.index]);var a=oa(e,t);return null!==a?Array.isArray(a)?a[0]:aa(Ir(e[16]),a):aa(e,t.next)}return null}function oa(e,t){return null!==t?e[16][6].projection[t.projection]:null}function sa(e,t){var n=fe+e+1;if(n<t.length){var i=t[n],r=i[1].firstChild;if(null!==r)return aa(i,r)}return t[7]}function la(e,t,n){var i=Zr(e,t);i&&function(e,t,n,i){Le(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}function ca(e,t,n,i,r,a,o){for(;null!=n;){var s=i[n.index],l=n.type;if(o&&0===t&&(s&&vr(Ie(s),i),n.flags|=4),64&~n.flags)if(8&l)ca(e,t,n.child,i,r,a,!1),Rr(t,e,r,s,a);else if(32&l){for(var c=Or(n,i),u=void 0;u=c();)Rr(t,e,r,u,a);Rr(t,e,r,s,a)}else 16&l?da(e,t,i,n,r,a):Rr(t,e,r,s,a);n=o?n.projectionNext:n.next}}function ua(e,t,n,i,r,a){ca(n,i,e.firstChild,t,r,a,!1)}function da(e,t,n,i,r,a){var o=n[16],s=o[6].projection[i.projection];if(Array.isArray(s))for(var l=0;l<s.length;l++)Rr(t,e,r,s[l],a);else ca(e,t,s,o[3],r,a,!0)}function ha(e,t,n){Le(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function fa(e,t,n){Le(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function pa(e,t,n){for(var i=e.length;;){var r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){var a=t.length;if(r+a===i||e.charCodeAt(r+a)<=32)return r}n=r+1}}var ma="ng-template";function ga(e,t,n){for(var i=0;i<e.length;){var r=e[i++];if(n&&"class"===r){if(-1!==pa((r=e[i]).toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function va(e){return 4===e.type&&e.value!==ma}function ya(e,t,n){return t===(4!==e.type||n?e.value:ma)}function ba(e,t,n){for(var i=4,r=e.attrs||[],a=function(e){for(var t=0;t<e.length;t++)if(Nt(e[t]))return t;return e.length}(r),o=!1,s=0;s<t.length;s++){var l=t[s];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!ya(e,l,n)||""===l&&1===t.length){if(_a(i))return!1;o=!0}}else{var c=8&i?l:t[++s];if(8&i&&null!==e.attrs){if(!ga(e.attrs,c,n)){if(_a(i))return!1;o=!0}continue}var u=wa(8&i?"class":l,r,va(e),n);if(-1===u){if(_a(i))return!1;o=!0;continue}if(""!==c){var d;d=u>a?"":r[u+1].toLowerCase();var h=8&i?d:null;if(h&&-1!==pa(h,c,0)||2&i&&c!==d){if(_a(i))return!1;o=!0}}}}else{if(!o&&!_a(i)&&!_a(l))return!1;if(o&&_a(l))continue;o=!1,i=l|1&i}}return _a(i)||o}function _a(e){return!(1&e)}function wa(e,t,n,i){if(null===t)return-1;var r=0;if(i||!n){for(var a=!1;r<t.length;){var o=t[r];if(o===e)return r;if(3===o||6===o)a=!0;else{if(1===o||2===o){for(var s=t[++r];"string"==typeof s;)s=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=a?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function ka(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=0;i<t.length;i++)if(ba(e,t[i],n))return!0;return!1}function Ca(e,t){e:for(var n=0;n<t.length;n++){var i=t[n];if(e.length===i.length){for(var r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function xa(e,t){return e?":not("+t.trim()+")":t}function Sa(e){for(var t=e[0],n=1,i=2,r="",a=!1;n<e.length;){var o=e[n];if("string"==typeof o)if(2&i){var s=e[++n];r+="["+o+(s.length>0?'="'+s+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""===r||_a(o)||(t+=xa(a,r),r=""),i=o,a=a||!_a(i);n++}return""!==r&&(t+=xa(a,r)),t}var Ma={};function Da(e){Ta(Qe(),Xe(),xt()+e,rt())}function Ta(e,t,n,i){if(!i)if(3&~t[2]){var r=e.preOrderHooks;null!==r&&Lt(t,r,0,n)}else{var a=e.preOrderCheckHooks;null!==a&&Pt(t,a,n)}St(n)}function Ea(e,t){return e<<17|t<<2}function Aa(e){return e>>17&32767}function Pa(e){return 2|e}function La(e){return(131068&e)>>2}function Oa(e,t){return-131069&e|t<<2}function Ia(e){return 1|e}function Ha(e,t){var n=e.contentQueries;if(null!==n)for(var i=0;i<n.length;i+=2){var r=n[i+1];if(-1!==r){var a=e.data[r];mt(n[i]),a.contentQueries(2,t[r],r)}}}function ja(e,t,n,i,r,a,o,s,l,c){var u=t.blueprint.slice();return u[0]=r,u[2]=140|i,Ve(u),u[3]=u[15]=e,u[8]=n,u[10]=o||e&&e[10],u[11]=s||e&&e[11],u[12]=l||e&&e[12]||null,u[9]=c||e&&e[9]||null,u[6]=a,u[16]=2==t.type?e[16]:u,u}function Fa(e,t,n,i,r){var a=e.data[t];if(null===a)a=Ra(e,t,n,i,r),$e.lFrame.inI18n&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=i,a.attrs=r;var o=et();a.injectorIndex=null===o?-1:o.injectorIndex}return tt(a,!0),a}function Ra(e,t,n,i,r){var a=Je(),o=nt(),s=e.data[t]=function(e,t,n,i,r,a){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:a,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?a:a&&a.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=s),null!==a&&(o?null==a.child&&null!==s.parent&&(a.child=s):null===a.next&&(a.next=s)),s}function Na(e,t,n,i){if(0===n)return-1;for(var r=t.length,a=0;a<n;a++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function Ba(e,t,n){yt(t);try{var i=e.viewQuery;null!==i&&bo(1,i,n);var r=e.template;null!==r&&Va(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Ha(e,t),e.staticViewQueries&&bo(2,e.viewQuery,n);var a=e.components;null!==a&&function(e,t){for(var n=0;n<t.length;n++)po(e,t[n])}(t,a)}catch(o){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),o}finally{t[2]&=-5,Ct()}}function Ya(e,t,n,i){var r=t[2];if(256&~r){yt(t);var a=rt();try{Ve(t),lt(e.bindingStartIndex),null!==n&&Va(e,t,n,2,i);var o=!(3&~r);if(!a)if(o){var s=e.preOrderCheckHooks;null!==s&&Pt(t,s,null)}else{var l=e.preOrderHooks;null!==l&&Lt(t,l,0,null),Ot(t,0)}if(function(e){for(var t=Hr(e);null!==t;t=jr(t))if(t[2])for(var n=t[9],i=0;i<n.length;i++){var r=n[i];1024&r[2]||Ue(r[3],1),r[2]|=1024}}(t),function(e){for(var t=Hr(e);null!==t;t=jr(t))for(var n=fe;n<t.length;n++){var i=t[n],r=i[1];Ye(i)&&Ya(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&Ha(e,t),!a)if(o){var c=e.contentCheckHooks;null!==c&&Pt(t,c)}else{var u=e.contentHooks;null!==u&&Lt(t,u,1),Ot(t,1)}!function(e,t){var n,i,r,a=e.hostBindingOpCodes;if(null!==a)try{for(var o=0;o<a.length;o++){var s=a[o];if(s<0)St(~s);else{var l=s,c=a[++o],u=a[++o];n=c,i=l,r=void 0,(r=$e.lFrame).bindingIndex=r.bindingRootIndex=n,ht(i),u(2,t[l])}}}finally{St(-1)}}(e,t);var d=e.components;null!==d&&function(e,t){for(var n=0;n<t.length;n++)ho(e,t[n])}(t,d);var h=e.viewQuery;if(null!==h&&bo(2,h,i),!a)if(o){var f=e.viewCheckHooks;null!==f&&Pt(t,f)}else{var p=e.viewHooks;null!==p&&Lt(t,p,2),Ot(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ue(t[3],-1))}finally{Ct()}}}function za(e,t,n,i){var r=t[10],a=!rt(),o=Be(t);try{a&&!o&&r.begin&&r.begin(),o&&Ba(e,t,i),Ya(e,t,n,i)}finally{a&&!o&&r.end&&r.end()}}function Va(e,t,n,i,r){var a=xt(),o=2&i;try{St(-1),o&&t.length>he&&Ta(e,t,he,rt()),n(i,r)}finally{St(a)}}function Ua(e,t,n){if(ge(t))for(var i=t.directiveEnd,r=t.directiveStart;r<i;r++){var a=e.data[r];a.contentQueries&&a.contentQueries(1,n[r],r)}}function $a(e,t,n){We()&&(function(e,t,n,i){var r=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||Xt(n,t),vr(i,t);for(var o=n.initialInputs,s=r;s<a;s++){var l=e.data[s],c=be(l);c&&ao(t,n,l);var u=ln(t,e,s,n);vr(u,t),null!==o&&lo(0,s-r,u,l,0,o),c&&(Ne(n.index,t)[8]=u)}}(e,t,n,je(n,t)),128&~n.flags||function(e,t,n){var i=n.directiveStart,r=n.directiveEnd,a=n.index,o=$e.lFrame.currentDirectiveIndex;try{St(a);for(var s=i;s<r;s++){var l=e.data[s],c=t[s];ht(s),null===l.hostBindings&&0===l.hostVars&&null===l.hostAttrs||eo(l,c)}}finally{St(-1),ht(o)}}(e,t,n))}function Wa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:je,i=t.localNames;if(null!==i)for(var r=t.index+1,a=0;a<i.length;a+=2){var o=i[a+1],s=-1===o?n(t,e):e[o];e[r++]=s}}function qa(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Ga(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Ga(e,t,n,i,r,a,o,s,l,c){var u=he+i,d=u+r,h=function(e,t){for(var n=[],i=0;i<t;i++)n.push(i<e?null:Ma);return n}(u,d),f="function"==typeof c?c():c;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:s,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes: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:l,consts:f,incompleteFirstPass:!1}}function Xa(e,t,n,i){var r=wo(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&ko(e).push(i,r.length-1))}function Qa(e,t,n){for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function Ka(e,t,n,i,r,a,o,s){var l,c,u=je(t,n),d=t.inputs;!s&&null!=d&&(l=d[i])?(So(e,n,l,i,r),ve(t)&&function(e,t){var n=Ne(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i="class"===(c=i)?"className":"for"===c?"htmlFor":"formaction"===c?"formAction":"innerHtml"===c?"innerHTML":"readonly"===c?"readOnly":"tabindex"===c?"tabIndex":c,r=null!=o?o(r,t.value||"",i):r,Le(a)?a.setProperty(u,i,r):Bt(i)||(u.setProperty?u.setProperty(i,r):u[i]=r))}function Za(e,t,n,i){var r=!1;if(We()){var a=function(e,t,n){var i=e.directiveRegistry,r=null;if(i)for(var a=0;a<i.length;a++){var o=i[a];ka(n,o.selectors,!1)&&(r||(r=[]),Jt(Xt(n,t),e,o.type),be(o)?(to(e,n),r.unshift(o)):r.push(o))}return r}(e,t,n),o=null===i?null:{"":-1};if(null!==a){r=!0,io(n,e.data.length,a.length);for(var s=0;s<a.length;s++){var l=a[s];l.providersResolver&&l.providersResolver(l)}for(var c=!1,u=!1,d=Na(e,t,a.length,null),h=0;h<a.length;h++){var f=a[h];n.mergedAttrs=Yt(n.mergedAttrs,f.hostAttrs),ro(e,n,t,d,f),no(d,f,o),null!==f.contentQueries&&(n.flags|=8),null===f.hostBindings&&null===f.hostAttrs&&0===f.hostVars||(n.flags|=128);var p=f.type.prototype;!c&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),c=!0),u||!p.ngOnChanges&&!p.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),u=!0),d++}!function(e,t){for(var n=t.directiveEnd,i=e.data,r=t.attrs,a=[],o=null,s=null,l=t.directiveStart;l<n;l++){var c=i[l],u=c.inputs,d=null===r||va(t)?null:co(u,r);a.push(d),o=Qa(u,l,o),s=Qa(c.outputs,l,s)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=a,t.input
vendor: 6,032 bytes, line 1
1s=o,t.outputs=s}(e,n)}o&&function(e,t,n){if(t)for(var i=e.localNames=[],r=0;r<t.length;r+=2){var a=n[t[r+1]];if(null==a)throw new g("301","Export of name '".concat(t[r+1],"' not found!"));i.push(t[r],a)}}(n,i,o)}return n.mergedAttrs=Yt(n.mergedAttrs,n.attrs),r}function Ja(e,t,n,i,r,a){var o=a.hostBindings;if(o){var s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);var l=~t.index;(function(e){for(var t=e.length;t>0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,o)}}function eo(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function to(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function no(e,t,n){if(n){if(t.exportAs)for(var i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;be(t)&&(n[""]=e)}}function io(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ro(e,t,n,i,r){e.data[i]=r;var a=r.factory||(r.factory=_e(r.type)),o=new Ft(a,be(r),null);e.blueprint[i]=o,n[i]=o,Ja(e,t,0,i,Na(e,n,r.hostVars,Ma),r)}function ao(e,t,n){var i=je(t,e),r=qa(n),a=e[10],o=mo(e,ja(e,r,null,n.onPush?64:16,i,t,a,a.createRenderer(i,n),null,null));e[t.index]=o}function oo(e,t,n,i,r,a){var o=je(e,t);so(t[11],o,a,e.value,n,i,r)}function so(e,t,n,i,r,a,o){if(null==a)Le(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{var s=null==o?v(a):o(a,i||"",r);Le(e)?e.setAttribute(t,r,s,n):n?t.setAttributeNS(n,r,s):t.setAttribute(r,s)}}function lo(e,t,n,i,r,a){var o=a[t];if(null!==o)for(var s=i.setInput,l=0;l<o.length;){var c=o[l++],u=o[l++],d=o[l++];null!==s?i.setInput(n,d,c,u):n[u]=d}}function co(e,t){for(var n=null,i=0;i<t.length;){var r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function uo(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function ho(e,t){var n=Ne(t,e);if(Ye(n)){var i=n[1];80&n[2]?Ya(i,n,i.template,n[8]):n[5]>0&&fo(n)}}function fo(e){for(var t=Hr(e);null!==t;t=jr(t))for(var n=fe;n<t.length;n++){var i=t[n];if(1024&i[2]){var r=i[1];Ya(r,i,r.template,i[8])}else i[5]>0&&fo(i)}var a=e[1].components;if(null!==a)for(var o=0;o<a.length;o++){var s=Ne(a[o],e);Ye(s)&&s[5]>0&&fo(s)}}function po(e,t){var n=Ne(t,e),i=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(i,n),Ba(i,n,n[8])}function mo(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function go(e){for(;e;){e[2]|=64;var t=Ir(e);if(512&e[2]&&!t)return e;e=t}return null}function vo(e,t,n){var i=t[10];i.begin&&i.begin();try{Ya(e,t,e.template,n)}catch(r){throw xo(t,r),r}finally{i.end&&i.end()}}function yo(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],i=yr(n),r=i[1];za(r,i,r.template,n)}}(e[8])}function bo(e,t,n){mt(0),t(e,n)}var _o=Promise.resolve(null);function wo(e){return e[7]||(e[7]=[])}function ko(e){return e.cleanup||(e.cleanup=[])}function Co(e,t,n){return(null===e||be(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function xo(e,t){var n=e[9],i=n?n.get(kr,null):null;i&&i.handleError(t)}function So(e,t,n,i,r){for(var a=0;a<n.length;){var o=n[a++],s=n[a++],l=t[o],c=e.data[o];null!==c.setInput?c.setInput(l,r,i,s):l[s]=r}}function Mo(e,t,n){var i=He(t,e);Br(e[11],i,n)}function Do(e,t,n){var i=n?e.styles:null,r=n?e.classes:null,a=0;if(null!==t)for(var o=0;o<t.length;o++){var s=t[o];"number"==typeof s?a=s:1==a?r=d(r,s):2==a&&(i=d(i,s+": "+t[++o]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}var To,Eo=new Cn("INJECTOR",-1),Ao=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qn;if(t===qn){var n=new Error("NullInjectorError: No provider for ".concat(u(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Po=new Cn("Set Injector scope."),Lo={},Oo={};function Io(){return void 0===To&&(To=new Ao),To}function Ho(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new jo(e,n,t||Io(),i)}var jo=function(){function e(t,n,i){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&Ln(n,function(e){return r.processProvider(e,t,n)}),Ln([t],function(e){return r.processInjectorType(e,[],o)}),this.records.set(Eo,No(void 0,this));var s=this.records.get(Po);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:u(t))}return _createClass(e,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.Default;this.assertNotDestroyed();var i,r=Qn(this);try{if(!(n&P.SkipSelf)){var a=this.records.get(e);if(void 0===a){var o=("function"==typeof(i=e)||"object"==typeof i&&i instanceof Cn)&&C(e);a=o&&this.injectableDefInScope(o)?No(Fo(e),Lo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(n&P.Self?Io():this.parent).get(e,t=n&P.Optional&&t===qn?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(u(e)),r)throw s;return function(e,t,n,i){var r=e.ngTempTokenPath;throw t.__source&&r.unshift(t.__source),e.message=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var r=u(t);if(Array.isArray(t))r=t.map(u).join(" -> ");else if("object"==typeof t){var a=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];
vendor: 4,944 bytes, line 1
1a.push(o+":"+("string"==typeof s?JSON.stringify(s):u(s)))}r="{".concat(a.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(e.replace(Gn,"\n "))}("\n"+e.message,r,"R3InjectorError",i),e.ngTokenPath=r,e.ngTempTokenPath=null,e}(s,e,0,this.source)}throw s}finally{Qn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(u(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var i=this;if(!(e=p(e)))return!1;var r=S(e),a=null==r&&e.ngModule||void 0,o=void 0===a?e:a,s=-1!==n.indexOf(o);if(void 0!==a&&(r=S(a)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(o);try{Ln(r.imports,function(e){i.processInjectorType(e,t,n)&&(void 0===l&&(l=[]),l.push(e))})}finally{}if(void 0!==l)for(var c=function(e){var t=l[e],n=t.ngModule,r=t.providers;Ln(r,function(e){return i.processProvider(e,n,r||V)})},u=0;u<l.length;u++)c(u)}this.injectorDefTypes.add(o);var d=_e(o)||function(){return new o};this.records.set(o,No(d,Lo));var h=r.providers;if(null!=h&&!s){var f=e;Ln(h,function(e){return i.processProvider(e,f,h)})}return void 0!==a&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var i=Yo(e=p(e))?e:p(e&&e.provide),r=function(e){return Bo(e)?No(void 0,e.useValue):No(Ro(e),Lo)}(e);if(Yo(e)||!0!==e.multi)this.records.get(i);else{var a=this.records.get(i);a||((a=No(void 0,Lo,!0)).factory=function(){return ti(a.multi)},this.records.set(i,a)),i=e,a.multi.push(e)}this.records.set(i,r)}},{key:"hydrate",value:function(e,t){var n;return t.value===Lo&&(t.value=Oo,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){if(!e.providedIn)return!1;var t=p(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}]),e}();function Fo(e){var t=C(e),n=null!==t?t.factory:_e(e);if(null!==n)return n;if(e instanceof Cn)throw new Error("Token ".concat(u(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=Hn(t,"?");throw new Error("Can't resolve all parameters for ".concat(u(e),": (").concat(n.join(", "),")."))}var i=function(e){var t=e&&(e[D]||e[E]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(n,'" class.')),t}return null}(e);return null!==i?function(){return i.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Ro(e,t,n){var i,r;if(Yo(e)){var a=p(e);return _e(a)||Fo(a)}if(Bo(e))i=function(){return p(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(ti(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Zn(p(e.useExisting))};else{var o=p(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return _e(o)||Fo(o);i=function(){return _construct(o,_toConsumableArray(ti(e.deps)))}}return i}function No(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Bo(e){return null!==e&&"object"==typeof e&&Xn in e}function Yo(e){return"function"==typeof e}var zo=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0,r=Ho(e,t,n,i);return r._resolveInjectorDefTypes(),r}({name:n},t,e,n)},Vo=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?zo(e,t,""):zo(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=qn,e.NULL=new Ao,e.\u0275prov=w({token:e,providedIn:"any",factory:function(){return Zn(Eo)}}),e.__NG_ELEMENT_ID__=-1,e}();function Uo(e,t){At(yr(e)[1],Ze())}function $o(e){return Object.getPrototypeOf(e.prototype).constructor}function Wo(e){for(var t=$o(e.type),n=!0,i=[e];t;){var r=void 0;if(be(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);var a=e;a.inputs=qo(e.inputs),a.declaredInputs=qo(e.declaredInputs),a.outputs=qo(e.outputs);var o=r.hostBindings;o&&Qo(e,o);var s=r.viewQuery,l=r.contentQueries;
1if(s&&Go(e,s),l&&Xo(e,l),c(e.inputs,r.inputs),c(e.declaredInputs,r.declaredInputs),c(e.outputs,r.outputs),be(r)&&r.data.animation){var u=e.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var d=r.features;if(d)for(var h=0;h<d.length;h++){var f=d[h];f&&f.ngInherit&&f(e),f===Wo&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,i=e.length-1;i>=0;i--){var r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=Yt(r.hostAttrs,n=Yt(n,r.hostAttrs))}}(i)}function qo(e){return e===z?{}:e===V?[]:e}function Go(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,i){t(e,i),n(e,i)}:t}function Xo(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,i,r){t(e,i,r),n(e,i,r)}:t}function Qo(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,i){t(e,i),n(e,i)}:t}var Ko=["providersResolver"],Zo=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Jo(e){var t,n=$o(e.type);t=be(e)?n.\u0275cmp:n.\u0275dir;var i,r=e,a=_createForOfIteratorHelper(Ko);try{for(a.s();!(i=a.n()).done;){var o=i.value;r[o]=t[o]}}catch(u){a.e(u)}finally{a.f()}if(be(t)){var s,l=_createForOfIteratorHelper(Zo);try{for(l.s();!(s=l.n()).done;){var c=s.value;r[c]=t[c]}}catch(u){l.e(u)}finally{l.f()}}}var es=null;function ts(){if(!es){var e=Y.Symbol;if(e&&e.iterator)es=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(es=i)}}return es}var ns=function(){function e(t){_classCallCheck(this,e),this.wrapped=t}return _createClass(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function is(e){return!!rs(e)&&(Array.isArray(e)||!(e instanceof Map)&&ts()in e)}function rs(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function as(e,t,n){return e[t]=n}function os(e,t){return e[t]}function ss(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ls(e,t,n,i){var r=ss(e,t,n);return ss(e,t+1,i)||r}function cs(e,t,n,i,r){var a=ls(e,t,n,i);return ss(e,t+2,r)||a}function us(e,t,n,i,r,a){var o=ls(e,t,n,i);return ls(e,t+2,r,a)||o}function ds(e,t,n,i){var r=Xe();return ss(r,ct(),t)&&(Qe(),oo(Mt(),r,e,t,n,i)),ds}function hs(e,t){for(var n=!1,i=st(),r=1;r<t.length;r+=2)n=ss(e,i++,t[r])||n;if(lt(i),!n)return Ma;for(var a=t[0],o=1;o<t.length;o+=2)a+=v(t[o])+t[o+1];return a}function fs(e,t,n,i){return ss(e,ct(),n)?t+v(n)+i:Ma}function ps(e,t,n,i,r,a){var o=ls(e,st(),n,r);return ut(2),o?t+v(n)+i+v(r)+a:Ma}function ms(e,t,n,i,r,a,o,s){var l=cs(e,st(),n,r,o);return ut(3),l?t+v(n)+i+v(r)+a+v(o)+s:Ma}function gs(e,t,n,i,r,a,o,s,l,c){var u=us(e,st(),n,r,o,l);return ut(4),u?t+v(n)+i+v(r)+a+v(o)+s+v(l)+c:Ma}function vs(e,t,n,i,r,a,o,s,l,c,u,d){var h=st(),f=us(e,h,n,r,o,l);return f=ss(e,h+4,u)||f,ut(5),f?t+v(n)+i+v(r)+a+v(o)+s+v(l)+c+v(u)+d:Ma}function ys(e,t,n,i,r,a,o,s,l,c,u,d,h,f){var p=st(),m=us(e,p,n,r,o,l);return m=ls(e,p+4,u,h)||m,ut(6),m?t+v(n)+i+v(r)+a+v(o)+s+v(l)+c+v(u)+d+v(h)+f:Ma}function bs(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m){var g=st(),y=us(e,g,n,r,o,l);return y=cs(e,g+4,u,h,p)||y,ut(7),y?t+v(n)+i+v(r)+a+v(o)+s+v(l)+c+v(u)+d+v(h)+f+v(p)+m:Ma}function _s(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,y){var b=st(),_=us(e,b,n,r,o,l);return _=us(e,b+4,u,h,p,g)||_,ut(8),_?t+v(n)+i+v(r)+a+v(o)+s+v(l)+c+v(u)+d+v(h)+f+v(p)+m+v(g)+y:Ma}function ws(e,t,n,i,r,a){var o=Xe(),s=fs(o,t,n,i);return s!==Ma&&oo(Mt(),o,e,s,r,a),ws}function ks(e,t,n,i,r,a,o,s){var l=Xe(),c=ps(l,t,n,i,r,a);return c!==Ma&&oo(Mt(),l,e,c,o,s),ks}function Cs(e,t,n,i,r,a,o,s,l,c){var u=Xe(),d=ms(u,t,n,i,r,a,o,s);return d!==Ma&&oo(Mt(),u,e,d,l,c),Cs}function xs(e,t,n,i,r,a,o,s,l,c,u,d){var h=Xe(),f=gs(h,t,n,i,r,a,o,s,l,c);return f!==Ma&&oo(Mt(),h,e,f,u,d),xs}function Ss(e,t,n,i,r,a,o,s,l,c,u,d,h,f){var p=Xe(),m=vs(p,t,n,i,r,a,o,s,l,c,u,d);return m!==Ma&&oo(Mt(),p,e,m,h,f),Ss}function Ms(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m){var g=Xe(),v=ys(g,t,n,i,r,a,o,s,l,c,u,d,h,f);return v!==Ma&&oo(Mt(),g,e,v,p,m),Ms}function Ds(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v){var y=Xe(),b=bs(y,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m);return b!==Ma&&oo(Mt(),y,e,b,g,v),Ds}function Ts(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v,y,b){var _=Xe(),w=_s(_,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v);return w!==Ma&&oo(Mt(),_,e,w,y,b),Ts}function Es(e,t,n,i){var r=Xe(),a=hs(r,t);return a!==Ma&&oo(Mt(),r,e,a,n,i),Es}function As(e,t,n,i,r,a,o,s){var l=Xe(),c=Qe(),u=e+he,d=c.firstCreatePass?function(e,t,n,i,r,a,o,s,l){var c=t.consts,u=Fa(t,e,4,o||null,ze
vendor: 1,897 bytes, line 1
1(c,s));Za(t,n,u,ze(c,l)),At(t,u);var d=u.tViews=Ga(2,u,i,r,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,n,i,r,a,o):c.data[u];tt(d,!1);var h=l[11].createComment("");ra(c,l,h,d),vr(h,l),mo(l,l[u]=uo(h,l,h,d)),ye(d)&&$a(c,l,d),null!=o&&Wa(l,d,s)}function Ps(e){return Re($e.lFrame.contextLView,he+e)}function Ls(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P.Default,n=Xe();return null===n?Zn(e,t):nn(Ze(),n,p(e),t)}function Os(){throw new Error("invalid")}function Is(e,t,n){var i=Xe();return ss(i,ct(),t)&&Ka(Qe(),Mt(),i,e,t,i[11],n,!1),Is}function Hs(e,t,n,i,r){var a=r?"class":"style";So(e,n,t.inputs[a],a,i)}function js(e,t,n,i){var r=Xe(),a=Qe(),o=he+e,s=r[11],l=r[o]=zr(s,t,$e.lFrame.currentNamespace),c=a.firstCreatePass?function(e,t,n,i,r,a,o){var s=t.consts,l=Fa(t,e,2,r,ze(s,a));return Za(t,n,l,ze(s,o)),null!==l.attrs&&Do(l,l.attrs,!1),null!==l.mergedAttrs&&Do(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(o,a,r,0,t,n,i):a.data[o];tt(c,!0);var u=c.mergedAttrs;null!==u&&Rt(s,l,u);var d=c.classes;null!==d&&fa(s,l,d);var h=c.styles;null!==h&&ha(s,l,h),64&~c.flags&&ra(a,r,l,c),0===$e.lFrame.elementDepthCount&&vr(l,r),$e.lFrame.elementDepthCount++,ye(c)&&($a(a,r,c),Ua(a,c,r)),null!==i&&Wa(r,c)}function Fs(){var e=Ze();nt()?it():tt(e=e.parent,!1);var t=e;$e.lFrame.elementDepthCount--;var n=Qe();n.firstCreatePass&&(At(n,e),ge(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return!!(16&e.flags)}(t)&&Hs(n,t,Xe(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return!!(32&e.flags)}(t)&&Hs(n,t,Xe(),t.stylesWithoutHost,!1)}function Rs(e,t,n,i){js(e,t,n,i),Fs()}function Ns(e,t,n){var i=Xe(),r=Qe(),a=e+he,o=r.firstCreatePass?function(e,t,n,i,r){var a=t.consts,o=ze(a,i),s=Fa(t,e,8,"ng-container",o);
vendor: 4,350 bytes, line 1
1return null!==o&&Do(s,o,!0),Za(t,n,s,ze(a,r)),null!==t.queries&&t.queries.elementStart(t,s),s}(a,r,i,t,n):r.data[a];tt(o,!0);var s=i[a]=i[11].createComment("");ra(r,i,s,o),vr(s,i),ye(o)&&($a(r,i,o),Ua(r,o,i)),null!=n&&Wa(i,o)}function Bs(){var e=Ze(),t=Qe();nt()?it():tt(e=e.parent,!1),t.firstCreatePass&&(At(t,e),ge(e)&&t.queries.elementEnd(e))}function Ys(e,t,n){Ns(e,t,n),Bs()}function zs(){return Xe()}function Vs(e){return!!e&&"function"==typeof e.then}function Us(e){return!!e&&"function"==typeof e.subscribe}var $s=Us;function Ws(e,t,n,i){var r=Xe(),a=Qe(),o=Ze();return Gs(a,r,r[11],o,e,t,!!n,i),Ws}function qs(e,t){var n=Ze(),i=Xe(),r=Qe();return Gs(r,i,Co(ft(r.data),n,i),n,e,t,!1),qs}function Gs(e,t,n,i,r,a,o,s){var l=ye(i),c=e.firstCreatePass&&ko(e),u=t[8],d=wo(t),h=!0;if(3&i.type||s){var f=je(i,t),p=s?s(f):f,m=d.length,g=s?function(e){return s(Ie(e[i.index]))}:i.index;if(Le(n)){var v=null;if(!s&&l&&(v=function(e,t,n,i){var r=e.cleanup;if(null!=r)for(var a=0;a<r.length-1;a+=2){var o=r[a];if(o===n&&r[a+1]===i){var s=t[7],l=r[a+2];return s.length>l?s[l]:null}"string"==typeof o&&(a+=2)}return null}(e,t,r,i.index)),null!==v)(v.__ngLastListenerFn__||v).__ngNextListenerFn__=a,v.__ngLastListenerFn__=a,h=!1;else{a=Qs(i,t,u,a,!1);var y=n.listen(p,r,a);d.push(a,y),c&&c.push(r,g,m,m+1)}}else a=Qs(i,t,u,a,!0),p.addEventListener(r,a,o),d.push(a),c&&c.push(r,g,m,o)}else a=Qs(i,t,u,a,!1);var b,_=i.outputs;if(h&&null!==_&&(b=_[r])){var w=b.length;if(w)for(var k=0;k<w;k+=2){var C=t[b[k]][b[k+1]].subscribe(a),x=d.length;d.push(a,C),c&&c.push(r,i.index,x,-(x+1))}}}function Xs(e,t,n,i){try{return!1!==n(i)}catch(r){return xo(e,r),!1}}function Qs(e,t,n,i,r){return function n(a){if(a===Function)return i;var o=2&e.flags?Ne(e.index,t):t;32&t[2]||go(o);for(var s=Xs(t,0,i,a),l=n.__ngNextListenerFn__;l;)s=Xs(t,0,l,a)&&s,l=l.__ngNextListenerFn__;return r&&!1===s&&(a.preventDefault(),a.returnValue=!1),s}}function Ks(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return($e.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,$e.lFrame.contextLView))[8]}(e)}function Zs(e,t){for(var n=null,i=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e),r=0;r<t.length;r++){var a=t[r];if("*"!==a){if(null===i?ka(e,a,!0):Ca(i,a))return r}else n=r}return n}function Js(e){var t=Xe()[16][6];if(!t.projection)for(var n=t.projection=Hn(e?e.length:1,null),i=n.slice(),r=t.child;null!==r;){var a=e?Zs(r,e):0;null!==a&&(i[a]?i[a].projectionNext=r:n[a]=r,i[a]=r),r=r.next}}function el(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Xe(),r=Qe(),a=Fa(r,he+e,16,null,n||null);null===a.projection&&(a.projection=t),it(),64&~a.flags&&function(e,t,n){da(t[11],0,t,n,qr(e,n,t),Jr(n.parent||t[6],n,t))}(r,i,a)}function tl(e,t,n){return nl(e,"",t,"",n),tl}function nl(e,t,n,i,r){var a=Xe(),o=fs(a,t,n,i);return o!==Ma&&Ka(Qe(),Mt(),a,e,o,a[11],r,!1),nl}function il(e,t,n,i,r,a,o){var s=Xe(),l=ps(s,t,n,i,r,a);return l!==Ma&&Ka(Qe(),Mt(),s,e,l,s[11],o,!1),il}function rl(e,t,n,i,r,a,o,s,l){var c=Xe(),u=ms(c,t,n,i,r,a,o,s);return u!==Ma&&Ka(Qe(),Mt(),c,e,u,c[11],l,!1),rl}function al(e,t,n,i,r,a,o,s,l,c,u){var d=Xe(),h=gs(d,t,n,i,r,a,o,s,l,c);return h!==Ma&&Ka(Qe(),Mt(),d,e,h,d[11],u,!1),al}function ol(e,t,n,i,r,a,o,s,l,c,u,d,h){var f=Xe(),p=vs(f,t,n,i,r,a,o,s,l,c,u,d);return p!==Ma&&Ka(Qe(),Mt(),f,e,p,f[11],h,!1),ol}function sl(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p){var m=Xe(),g=ys(m,t,n,i,r,a,o,s,l,c,u,d,h,f);return g!==Ma&&Ka(Qe(),Mt(),m,e,g,m[11],p,!1),sl}function ll(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g){var v=Xe(),y=bs(v,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m);return y!==Ma&&Ka(Qe(),Mt(),v,e,y,v[11],g,!1),ll}function cl(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v,y){var b=Xe(),_=_s(b,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v);return _!==Ma&&Ka(Qe(),Mt(),b,e,_,b[11],y,!1),cl}function ul(e,t,n){var i=Xe(),r=hs(i,t);return r!==Ma&&Ka(Qe(),Mt(),i,e,r,i[11],n,!1),ul}function dl(e,t,n,i,r){for(var a=e[n+1],o=null===t,s=i?Aa(a):La(a),l=!1;0!==s&&(!1===l||o);){var c=e[s+1];hl(e[s],t)&&(l=!0,e[s+1]=i?Ia(c):Pa(c)),s=i?Aa(c):La(c)}l&&(e[n+1]=i?Pa(a):Ia(a))}function hl(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Rn(e,t)>=0}var fl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0}
1;function pl(e){return e.substring(fl.key,fl.keyEnd)}function ml(e){return e.substring(fl.value,fl.valueEnd)}function gl(e,t){var n=fl.textEnd;return n===t?-1:(t=fl.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,fl.key=t,n),bl(e,t,n))}function vl(e,t){var n=fl.textEnd,i=fl.key=bl(e,t,n);return n===i?-1:(i=fl.keyEnd=function(e,t,n){for(var i;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=_l(e,i,n),i=fl.value=bl(e,i,n),i=fl.valueEnd=function(e,t,n){for(var i=-1,r=-1,a=-1,o=t,s=o;o<n;){var l=e.charCodeAt(o++);if(59===l)return s;34===l||39===l?s=o=wl(e,l,o,n):t===o-4&&85===a&&82===r&&76===i&&40===l?s=o=wl(e,41,o,n):l>32&&(s=o),a=r,r=i,i=-33&l}return s}(e,i,n),_l(e,i,n))}function yl(e){fl.key=0,fl.keyEnd=0,fl.value=0,fl.valueEnd=0,fl.textEnd=e.length}function bl(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function _l(e,t,n,i){return(t=bl(e,t,n))<n&&t++,t}function wl(e,t,n,i){for(var r=-1,a=n;a<i;){var o=e.charCodeAt(a++);if(o==t&&92!==r)return a;r=92==o&&92===r?0:o}throw new Error}function kl(e,t,n){return Tl(e,t,n,!1),kl}function Cl(e,t){return Tl(e,t,null,!0),Cl}function xl(e){El(Il,Sl,e,!1)}function Sl(e,t){for(var n=function(e){return yl(e),vl(e,bl(e,0,fl.textEnd))}(t);n>=0;n=vl(t,n))Il(e,pl(t),ml(t))}function Ml(e){El(jn,Dl,e,!0)}function Dl(e,t){for(var n=function(e){return yl(e),gl(e,bl(e,0,fl.textEnd))}(t);n>=0;n=gl(t,n))jn(e,pl(t),!0)}function Tl(e,t,n,i){var r=Xe(),a=Qe(),o=ut(2);a.firstUpdatePass&&Pl(a,e,o,i),t!==Ma&&ss(r,o,t)&&Hl(a,a.data[xt()],r,r[11],e,r[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=u(Ti(e)))),e}(t,n),i,o)}function El(e,t,n,i){var r=Qe(),a=ut(2);r.firstUpdatePass&&Pl(r,null,a,i);var o=Xe();if(n!==Ma&&ss(o,a,n)){var s=r.data[xt()];if(Rl(s,i)&&!Al(r,a)){var l=i?s.classesWithoutHost:s.stylesWithoutHost;null!==l&&(n=d(l,n||"")),Hs(r,s,o,n,i)}else!function(e,t,n,i,r,a,o,s){r===Ma&&(r=V);for(var l=0,c=0,u=0<r.length?r[0]:null,d=0<a.length?a[0]:null;null!==u||null!==d;){var h=l<r.length?r[l+1]:void 0,f=c<a.length?a[c+1]:void 0,p=void 0,m=null;u===d?(l+=2,c+=2,h!==f&&(m=d,p=f)):null===d||null!==u&&u<d?(l+=2,m=u):(c+=2,m=d,p=f),null!==m&&Hl(e,t,n,i,m,p,o,s),u=l<r.length?r[l]:null,d=c<a.length?a[c]:null}}(r,s,o,o[11],o[a+1],o[a+1]=function(e,t,n){if(null==n||""===n)return V;var i=[],r=Ti(n);if(Array.isArray(r))for(var a=0;a<r.length;a++)e(i,r[a],!0);else if("object"==typeof r)for(var o in r)r.hasOwnProperty(o)&&e(i,o,r[o]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,a)}}function Al(e,t){return t>=e.expandoStartIndex}function Pl(e,t,n,i){var r=e.data;if(null===r[n+1]){var a=r[xt()],o=Al(e,n);Rl(a,i)&&null===t&&!o&&(t=!1),t=function(e,t,n,i){var r=ft(e),a=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=Ol(n=Ll(null,e,t,n,i),t.attrs,i),a=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==r)if(n=Ll(r,e,t,n,i),null===a){var s=function(e,t,n){var i=n?t.classBindings:t.styleBindings;if(0!==La(i))return e[Aa(i)]}(e,t,i);void 0!==s&&Array.isArray(s)&&function(e,t,n,i){e[Aa(n?t.classBindings:t.styleBindings)]=i}(e,t,i,s=Ol(s=Ll(null,e,t,s[1],i),t.attrs,i))}else a=function(e,t,n){for(var i,r=t.directiveEnd,a=1+t.directiveStylingLast;a<r;a++)i=Ol(i,e[a].hostAttrs,n);return Ol(i,t.attrs,n)}(e,t,i)}return void 0!==a&&(i?t.residualClasses=a:t.residualStyles=a),n}(r,a,t,i),function(e,t,n,i,r,a){var o=a?t.classBindings:t.styleBindings,s=Aa(o),l=La(o);e[i]=n;var c,u=!1;if(Array.isArray(n)?(null===(c=n[1])||Rn(n,c)>0)&&(u=!0):c=n,r)if(0!==l){var d=Aa(e[s+1]);e[i+1]=Ea(d,s),0!==d&&(e[d+1]=Oa(e[d+1],i)),e[s+1]=131071&e[s+1]|i<<17}else e[i+1]=Ea(s,0),0!==s&&(e[s+1]=Oa(e[s+1],i)),s=i;else e[i+1]=Ea(l,0),0===s?s=i:e[l+1]=Oa(e[l+1],i),l=i;u&&(e[i+1]=Pa(e[i+1])),dl(e,c,i,!0),dl(e,c,i,!1),function(e,t,n,i,r){var a=r?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&Rn(a,t)>=0&&(n[i+1]=Ia(n[i+1]))}(t,c,e,i,a),o=Ea(s,l),a?t.classBindings=o:t.styleBindings=o}(r,a,t,n,o,i)}}function Ll(e,t,n,i,r){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;
1for(-1===s?s=n.directiveStart:s++;s<o&&(i=Ol(i,(a=t[s]).hostAttrs,r),a!==e);)s++;return null!==e&&(n.directiveStylingLast=s),i}function Ol(e,t,n){var i=n?1:2,r=-1;if(null!==t)for(var a=0;a<t.length;a++){var o=t[a];"number"==typeof o?r=o:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),jn(e,o,!!n||t[++a]))}return void 0===e?null:e}function Il(e,t,n){jn(e,t,Ti(n))}function Hl(e,t,n,i,r,a,o,s){if(3&t.type){var l=e.data,c=l[s+1];Fl(1&~c?void 0:jl(l,t,n,r,La(c),o))||(Fl(a)||!(2&~c)&&(a=jl(l,null,n,r,s,o)),function(e,t,n,i,r){var a=Le(e);if(t)r?a?e.addClass(n,i):n.classList.add(i):a?e.removeClass(n,i):n.classList.remove(i);else{var o=-1===i.indexOf("-")?void 0:Lr.DashCase;if(null==r)a?e.removeStyle(n,i,o):n.style.removeProperty(i);else{var s="string"==typeof r&&r.endsWith("!important");s&&(r=r.slice(0,-10),o|=Lr.Important),a?e.setStyle(n,i,r,o):n.style.setProperty(i,r,s?"important":"")}}}(i,o,He(xt(),n),r,a))}}function jl(e,t,n,i,r,a){for(var o,s=null===t;r>0;){var l=e[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u,h=n[r+1];h===Ma&&(h=d?V:void 0);var f=d?Fn(h,i):u===i?h:void 0;if(c&&!Fl(f)&&(f=Fn(l,i)),Fl(f)&&(o=f,s))return o;var p=e[r+1];r=s?Aa(p):La(p)}if(null!==t){var m=a?t.residualClasses:t.residualStyles;null!=m&&(o=Fn(m,i))}return o}function Fl(e){return void 0!==e}function Rl(e,t){return!!(e.flags&(t?16:32))}function Nl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Xe(),i=Qe(),r=e+he,a=i.firstCreatePass?Fa(i,r,1,t,null):i.data[r],o=n[r]=Nr(n[11],t);ra(i,n,o,a),tt(a,!1)}function Bl(e){return Yl("",e,""),Bl}function Yl(e,t,n){var i=Xe(),r=fs(i,e,t,n);return r!==Ma&&Mo(i,xt(),r),Yl}function zl(e,t,n,i,r){var a=Xe(),o=ps(a,e,t,n,i,r);return o!==Ma&&Mo(a,xt(),o),zl}function Vl(e,t,n,i,r,a,o){var s=Xe(),l=ms(s,e,t,n,i,r,a,o);return l!==Ma&&Mo(s,xt(),l),Vl}function Ul(e,t,n,i,r,a,o,s,l){var c=Xe(),u=gs(c,e,t,n,i,r,a,o,s,l);return u!==Ma&&Mo(c,xt(),u),Ul}function $l(e,t,n,i,r,a,o,s,l,c,u){var d=Xe(),h=vs(d,e,t,n,i,r,a,o,s,l,c,u);return h!==Ma&&Mo(d,xt(),h),$l}function Wl(e,t,n,i,r,a,o,s,l,c,u,d,h){var f=Xe(),p=ys(f,e,t,n,i,r,a,o,s,l,c,u,d,h);return p!==Ma&&Mo(f,xt(),p),Wl}function ql(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p){var m=Xe(),g=bs(m,e,t,n,i,r,a,o,s,l,c,u,d,h,f,p);return g!==Ma&&Mo(m,xt(),g),ql}function Gl(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g){var v=Xe(),y=_s(v,e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g);return y!==Ma&&Mo(v,xt(),y),Gl}function Xl(e){var t=Xe(),n=hs(t,e);return n!==Ma&&Mo(t,xt(),n),Xl}function Ql(e,t,n){El(jn,Dl,fs(Xe(),e,t,n),!0)}function Kl(e,t,n,i,r){El(jn,Dl,ps(Xe(),e,t,n,i,r),!0)}function Zl(e,t,n,i,r,a,o){El(jn,Dl,ms(Xe(),e,t,n,i,r,a,o),!0)}function Jl(e,t,n,i,r,a,o,s,l){El(jn,Dl,gs(Xe(),e,t,n,i,r,a,o,s,l),!0)}function ec(e,t,n,i,r,a,o,s,l,c,u){El(jn,Dl,vs(Xe(),e,t,n,i,r,a,o,s,l,c,u),!0)}function tc(e,t,n,i,r,a,o,s,l,c,u,d,h){El(jn,Dl,ys(Xe(),e,t,n,i,r,a,o,s,l,c,u,d,h),!0)}function nc(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p){El(jn,Dl,bs(Xe(),e,t,n,i,r,a,o,s,l,c,u,d,h,f,p),!0)}function ic(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g){El(jn,Dl,_s(Xe(),e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g),!0)}function rc(e){El(jn,Dl,hs(Xe(),e),!0)}function ac(e,t,n){xl(fs(Xe(),e,t,n))}function oc(e,t,n,i,r){xl(ps(Xe(),e,t,n,i,r))}function sc(e,t,n,i,r,a,o){xl(ms(Xe(),e,t,n,i,r,a,o))}function lc(e,t,n,i,r,a,o,s,l){xl(gs(Xe(),e,t,n,i,r,a,o,s,l))}function cc(e,t,n,i,r,a,o,s,l,c,u){xl(vs(Xe(),e,t,n,i,r,a,o,s,l,c,u))}function uc(e,t,n,i,r,a,o,s,l,c,u,d,h){xl(ys(Xe(),e,t,n,i,r,a,o,s,l,c,u,d,h))}function dc(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p){xl(bs(Xe(),e,t,n,i,r,a,o,s,l,c,u,d,h,f,p))}function hc(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g){xl(_s(Xe(),e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g))}function fc(e){xl(hs(Xe(),e))}function pc(e,t,n,i,r){return Tl(e,fs(Xe(),t,n,i),r,!1),pc}function mc(e,t,n,i,r,a,o){return Tl(e,ps(Xe(),t,n,i,r,a),o,!1),mc}function gc(e,t,n,i,r,a,o,s,l){return Tl(e,ms(Xe(),t,n,i,r,a,o,s),l,!1),gc}function vc(e,t,n,i,r,a,o,s,l,c,u){return Tl(e,gs(Xe(),t,n,i,r,a,o,s,l,c),u,!1),vc}function yc(e,t,n,i,r,a,o,s,l,c,u,d,h){return Tl(e,vs(Xe(),t,n,i,r,a,o,s,l,c,u,d),h,!1),yc}function bc(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p){return Tl(e,ys(Xe(),t,n,i,r,a,o,s,l,c,u,d,h,f),p,!1),bc}function _c(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g){return Tl(e,bs(Xe(),t,n,i,r,a,o,s,l,c,u,d,h,f,p,m),g,!1),_c}function wc(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v,y){return Tl(e,_s(Xe(),t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v),y,!1),wc}function kc(e,t,n){return Tl(e,hs(Xe(),t),n,!1),kc}function Cc(e,t,n){var i=Xe();return ss(i,ct(),t)&&Ka(Qe(),Mt(),i,e,t,i[11],n,!0),Cc}function xc(e,t,n){var i=Xe();if(ss(i,ct(),t)){var r=Qe(),a=Mt();Ka(r,a,i,e,t,Co(ft(r.data),a,i),n,!0)}return xc}var Sc=void 0,Mc=["en",[["a","p"],["AM","PM"],Sc],[["AM","PM"],Sc,Sc],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Sc,[["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"]],Sc,[["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}",Sc,"{1} 'at' {0}",Sc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],Dc={};function Tc(e,t,n){"string"!=typeof t&&(n=t,t=e[Oc.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Dc[t]=e,n&&(Dc[t][Oc.ExtraData]=n)}function Ec(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=Lc(t);if(n)return n;var i=t.split("-")[0];if(n=Lc(i))return n;if("en"===i)return Mc;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function Ac(e){return Ec(e)[Oc.CurrencyCode]||null}function Pc(e){return Ec(e)[Oc.PluralCase]}function Lc(e){return e in Dc||(Dc[e]=Y.ng&&Y.ng.common&&Y.ng.common.locales&&Y.ng.common.locales[e]),Dc[e]}var Oc=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),Ic=["zero","one","two","few","many"],Hc={marker:"element"},jc={marker:"ICU"},Fc=function(e){return e[e.SHIFT=2]="SHIFT",e[e.APPEND_EAGERLY=1]="APPEND_EAGERLY",e[e.COMMENT=2]="COMMENT",e}({}),Rc="en-US";function Nc(e){var t;null==(t=e)&&_("Expected localeId to be defined",t,null,"!="),"string"==typeof e&&(Rc=e.toLowerCase().replace(/_/g,"-"))}function Bc(e,t,n){var i=t.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?ea(e,0,n):Ie(n[r])}function Yc(e,t,n,i,r){var a=t.insertBeforeIndex;if(Array.isArray(a)){var o=i,s=null;if(3&t.type||(s=o,o=r),null!==o&&!(2&t.flags))for(var l=1;l<a.length;l++)Xr(e,o,n[a[l]],s,!1)}}function zc(e,t){if(e.push(t),e.length>1)for(var n=e.length-2;n>=0;n--){var i=e[n];Vc(i)||Uc(i,t)&&null===(r=void 0,r=i.insertBeforeIndex,Array.isArray(r)?r[0]:r)&&$c(i,t.index)}var r}function Vc(e){return!(64&e.type)}function Uc(e,t){return Vc(t)||e.index>t.index}function $c(e,t){var n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(ia(Bc,Yc),e.insertBeforeIndex=t)}function Wc(e,t){var n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function qc(e,t,n){var i=Ra(e,n,64,null,null);return zc(t,i),i}function Gc(e,t){var n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Xc(e){return(131070&e)>>>1}var Qc=0,Kc=0;function Zc(e,t,n,i){for(var r,a=n[11],o=null,s=0;s<t.length;s++){var l=t[s];if("string"==typeof l){var c=t[++s];null===n[c]&&(n[c]=Nr(a,l))}else if("number"==typeof l)switch(1&l){case 0:var u=l>>>17,d=void 0,h=void 0;if(null===o&&(o=u,r=Zr(a,i)),u===o?(d=i,h=r):(d=null,h=Ie(n[u])),null!==h){var f=Xc(l);Xr(a,h,n[f],d,!1);var p=Wc(e,f);if(null!==p&&"object"==typeof p){var m=Gc(p,n);null!==m&&Zc(e,p.create[m],n,n[p.anchorIdx])}}break;case 1:var g=t[++s],v=t[++s];so(a,He(l>>>1,n),null,null,g,v,null);break;default:throw new Error('Unable to determine the type of mutate operation for "'.concat(l,'"'))}else switch(l){case jc:var y=t[++s],b=t[++s];null===n[b]&&vr(n[b]=Yr(a,y),n);break;case Hc:var _=t[++s],w=t[++s];null===n[w]&&vr(n[w]=zr(a,_,null),n)}}}
1function Jc(e,t,n,i,r){for(var a=0;a<n.length;a++){var o=n[a],s=n[++a];if(o&r)for(var l="",c=a+1;c<=a+s;c++){var u=n[c];if("string"==typeof u)l+=u;else if("number"==typeof u)if(u<0)l+=v(t[i-u]);else{var d=u>>>2;switch(3&u){case 1:var h=n[++c],f=n[++c],p=e.data[d];"string"==typeof p?so(t[11],t[d],null,p,h,l,f):Ka(e,p,t,h,l,t[11],f,!1);break;case 0:var m=t[d];null!==m&&Br(t[11],m,l);break;case 2:tu(e,Wc(e,d),t,l);break;case 3:eu(e,Wc(e,d),i,t)}}}else{var g=n[a+1];if(g>0&&!(3&~g)){var y=Wc(e,g>>>2);t[y.currentCaseLViewIndex]<0&&eu(e,y,i,t)}}a+=s}}function eu(e,t,n,i){var r=i[t.currentCaseLViewIndex];if(null!==r){var a=Qc;r<0&&(r=i[t.currentCaseLViewIndex]=~r,a=-1),Jc(e,i,t.update[r],n,a)}}function tu(e,t,n,i){var r=function(e,t){var n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:var i=function(e,t){var n=Pc(t)(parseInt(e,10)),i=Ic[n];return void 0!==i?i:"other"}(t,Rc);-1===(n=e.cases.indexOf(i))&&"other"!==i&&(n=e.cases.indexOf("other"));break;case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,i);if(Gc(t,n)!==r&&(nu(e,t,n),n[t.currentCaseLViewIndex]=null===r?null:~r,null!==r)){var a=n[t.anchorIdx];a&&Zc(e,t.create[r],n,a)}}function nu(e,t,n){var i=Gc(t,n);if(null!==i)for(var r=t.remove[i],a=0;a<r.length;a++){var o=r[a];if(o>0){var s=He(o,n);null!==s&&la(n[11],s)}else nu(e,Wc(e,~o),n)}}var iu=/\ufffd(\d+):?\d*\ufffd/gi,ru=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,au=/\ufffd(\d+)\ufffd/,ou=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,su="\ufffd",lu=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,cu=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,uu=/\uE500/g;function du(e,t,n,i,r,a,o){var s=Na(e,i,1,null),l=s<<Fc.SHIFT,c=et();t===c&&(c=null),null===c&&(l|=Fc.APPEND_EAGERLY),o&&(l|=Fc.COMMENT,void 0===Pr&&(Pr=function(){var e,t,n=[],i=-1;function r(e,n){i=0;var r=Gc(e,n);t=null!==r?e.remove[r]:V}function a(){if(i<t.length){var o=t[i++];return o>0?e[o]:(n.push(i,t),r(e[1].data[~o],e),a())}return 0===n.length?null:(t=n.pop(),i=n.pop(),a())}return function(t,i){for(e=i;n.length;)n.pop();return r(t.value,i),a}}())),r.push(l,null===a?"":a);var u=Ra(e,s,o?32:1,null===a?"":a,null);zc(n,u);var d=u.index;return tt(u,!1),null!==c&&t!==c&&function(e,t){var n,i=e.insertBeforeIndex;null===i?(ia(Bc,Yc),i=e.insertBeforeIndex=[null,t]):(1!=(n=Array.isArray(i))&&_("Expecting array here",n,!0,"=="),i.push(t))}(c,d),u}function hu(e,t,n,i,r,a,o){var s=o.match(iu),l=du(e,t,n,a,i,s?null:o,!1);s&&fu(r,o,l.index,null,0,null)}function fu(e,t,n,i,r,a){var o=e.length,s=o+1;e.push(null,null);for(var l=o+2,c=t.split(iu),u=0,d=0;d<c.length;d++){var h=c[d];if(1&d){var f=r+parseInt(h,10);e.push(-1-f),u|=mu(f)}else""!==h&&e.push(h)}return e.push(n<<2|(i?1:0)),i&&e.push(i,a),e[o]=u,e[s]=e.length-l,u}function pu(e){for(var t=0,n=0;n<e.length;n++){var i=e[n];"number"==typeof i&&i<0&&t++}return t}function mu(e){return 1<<Math.min(e,31)}function gu(e){for(var t,n,i="",r=0,a=!1;null!==(t=lu.exec(e));)a?t[0]==="".concat(su,"/*").concat(n).concat(su)&&(r=t.index,a=!1):(i+=e.substring(r,t.index+t[0].length),n=t[1],a=!0);return i+=e.substr(r)}function vu(e,t,n,i,r,a){var o=0,s={type:r.type,currentCaseLViewIndex:Na(e,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};!function(e,t,n){e.push(mu(t.mainBinding),2,-1-t.mainBinding,n<<2|2)}(n,r,a),function(e,t,n){var i=e.data[t];null===i?e.data[t]=n:i.value=n}(e,a,s);for(var l=r.values,c=0;c<l.length;c++){for(var u=l[c],d=[],h=0;h<u.length;h++){var f=u[h];if("string"!=typeof f){var p=d.push(f)-1;u[h]="\x3c!--\ufffd".concat(p,"\ufffd--\x3e")}}o=_u(e,s,t,n,i,r.cases[c],u.join(""),d)|o}o&&function(e,t,n){e.push(t,1,n<<2|3)}(n,o,a)}function yu(e){for(var t=[],n=[],i=1,r=0,a=bu(e=e.replace(ou,function(e,t,n){return i="select"===n?0:1,r=parseInt(t.substr(1),10),""})),o=0;o<a.length;){var s=a[o++].trim();1===i&&(s=s.replace(/\s*(?:=)?(\w+)\s*/,"$1")),s.length&&t.push(s);var l=bu(a[o++]);t.length>n.length&&n.push(l)}return{type:i,mainBinding:r,cases:t,values:n}}function bu(e){if(!e)return[];var t,n=0,i=[],r=[],a=/[{}]/g;for(a.lastIndex=0;t=a.exec(e);){var o=t.index;if("}"==t[0]){if(i.pop(),0==i.length){var s=e.substring(n,o);
1ou.test(s)?r.push(yu(s)):r.push(s),n=o+1}}else{if(0==i.length){var l=e.substring(n,o);r.push(l),n=o+1}i.push("{")}}var c=e.substring(n);return r.push(c),r}function _u(e,t,n,i,r,a,o,s){var l=[],c=[],u=[];t.cases.push(a),t.create.push(l),t.remove.push(c),t.update.push(u);var d=ji(Pe()).getInertBodyElement(o),h=or(d)||d;return h?wu(e,t,n,i,l,c,u,h,r,s,0):0}function wu(e,t,n,i,r,a,o,s,l,c,u){for(var d=0,h=s.firstChild;h;){var f=Na(e,n,1,null);switch(h.nodeType){case Node.ELEMENT_NODE:var p=h,m=p.tagName.toLowerCase();if(Qi.hasOwnProperty(m)){xu(r,Hc,m,l,f),e.data[f]=m;for(var g=p.attributes,v=0;v<g.length;v++){var y=g.item(v),b=y.name.toLowerCase();y.value.match(iu)?Ji.hasOwnProperty(b)&&fu(o,y.value,f,y.name,0,Ki[b]?Yi:Zi[b]?zi:null):Su(r,f,y)}d=wu(e,t,n,i,r,a,o,h,f,c,u+1)|d,ku(a,f,u)}break;case Node.TEXT_NODE:var _=h.textContent||"",w=_.match(iu);xu(r,null,w?"":_,l,f),ku(a,f,u),w&&(d=fu(o,_,f,null,0,null)|d);break;case Node.COMMENT_NODE:var k=au.exec(h.textContent||"");if(k){var C=c[parseInt(k[1],10)];xu(r,jc,"",l,f),vu(e,n,i,l,C,f),Cu(a,f,u)}}h=h.nextSibling}return d}function ku(e,t,n){0===n&&e.push(t)}function Cu(e,t,n){0===n&&(e.push(~t),e.push(t))}function xu(e,t,n,i,r){null!==t&&e.push(t),e.push(n,r,i<<17|r<<1)}function Su(e,t,n){e.push(t<<1|1,n.name,n.value)}var Mu=/\[(\ufffd.+?\ufffd?)\]/,Du=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,Tu=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,Eu=/{([A-Z0-9_]+)}/g,Au=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,Pu=/\/\*/,Lu=/\d+\:(\d+)/;function Ou(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=Qe(),r=Xe(),a=he+e,o=ze(i.consts,t),s=et();i.firstCreatePass&&function(e,t,n,i,r,a){for(var o,s=et(),l=[],c=[],u=[[]],d=(o=r=function(e,t){if(function(e){return-1===e}(t))return gu(e);var n=e.indexOf(":".concat(t).concat(su))+2+t.toString().length,i=e.search(new RegExp("".concat(su,"\\/\\*\\d+:").concat(t).concat(su)));return gu(e.substring(n,i))}(r,a),o.replace(uu," ")).split(cu),h=0;h<d.length;h++){var f=d[h];if(1&h){var p=47===f.charCodeAt(0),m=(f.charCodeAt(p?1:0),he+Number.parseInt(f.substring(p?2:1)));if(p)u.shift(),tt(et(),!1);else{var g=qc(e,u[0],m);u.unshift([]),tt(g,!0)}}else for(var v=bu(f),y=0;y<v.length;y++){var b=v[y];if(1&y){var _=b;if("object"!=typeof _)throw new Error('Unable to parse ICU expression in "'.concat(r,'" message.'));vu(e,n,c,t,_,du(e,s,u[0],n,l,"",!0).index)}else""!==b&&hu(e,s,u[0],l,c,n,b)}}e.data[i]={create:l,update:c}}(i,null===s?0:s.index,r,a,o,n);var l=i.data[a],c=Gr(i,s===r[6]?null:s,r);!function(e,t,n,i){for(var r=e[11],a=0;a<t.length;a++){var o=t[a++],s=t[a],l=(o&Fc.APPEND_EAGERLY)===Fc.APPEND_EAGERLY,c=o>>>Fc.SHIFT,u=e[c];null===u&&(u=e[c]=(o&Fc.COMMENT)===Fc.COMMENT?r.createComment(s):Nr(r,s)),l&&null!==n&&Xr(r,n,u,i,!1)}}(r,l.create,c,s&&8&s.type?r[s.index]:null),dt(!0)}function Iu(){dt(!1)}function Hu(e,t,n){Ou(e,t,n),Iu()}function ju(e,t){var n=Qe(),i=ze(n.consts,t);!function(e,t,n){var i=Ze().index,r=[];if(e.firstCreatePass&&null===e.data[t]){for(var a=0;a<n.length;a+=2){var o=n[a],s=n[a+1];if(""!==s){if(ru.test(s))throw new Error('ICU expressions are not supported in attributes. Message: "'.concat(s,'".'));fu(r,s,i,o,pu(r),null)}}e.data[t]=r}}(n,e+he,i)}function Fu(e){return ss(Xe(),ct(),e)&&(Qc|=1<<Math.min(Kc,31)),Kc++,Fu}function Ru(e){!function(e,t,n){if(Kc>0){var i=e.data[n];Jc(e,t,Array.isArray(i)?i:i.update,st()-Kc-1,Qc)}Qc=0,Kc=0}(Qe(),Xe(),e+he)}function Nu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if(Mu.test(e)){var i={},r=[0];n=n.replace(Du,function(e,t,n){var a=t||n,o=i[a]||[];if(o.length||(a.split("|").forEach(function(e){var t=e.match(Lu),n=t?parseInt(t[1],10):0,i=Pu.test(e);o.push([n,i,e])}),i[a]=o),!o.length)throw new Error("i18n postprocess: unmatched placeholder - ".concat(a));for(var s=r[r.length-1],l=0,c=0;c<o.length;c++)if(o[c][0]===s){l=c;break}var u=_slicedToArray(o[l],3),d=u[0],h=u[1],f=u[2];return h?r.pop():s!==d&&r.push(d),o.splice(l,1),f})}return Object.keys(t).length?n=(n=(n=n.replace(Tu,function(e,n,i,r,a,o){return t.hasOwnProperty(i)?"".concat(n).concat(t[i]).concat(o):e})).replace(Eu,function(e,n){return t.hasOwnProperty(n)?t[n]:e})).replace(Au,function(e,n){if(t.hasOwnProperty(n)){var i=t[n];if(!i.length)throw new Error("i18n postprocess: unmatched ICU - ".concat(e," with key: ").concat(n));return i.shift()}return e}):n}(e,t)}function Bu(e,t,n,i,r){if(e=p(e),Array.isArray(e))for(var a=0;a<e.length;a++)Bu(e[a],t,n,i,r);else{var o=Qe(),s=Xe(),l=Yo(e)?e:p(e.provide),c=Ro(e),u=Ze(),d=1048575&u.providerIndexes,h=u.directiveStart,f=u.providerIndexes>>20;if(Yo(e)||!e.multi){var m=new Ft(c,r,Ls),g=Vu(l,t,r?d:d+f,h);-1===g?(Jt(Xt(u,s),o,l),Yu(o,e,t.length),t.push(l),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(m),s.push(m)):(n[g]=m,s[g]=m)}else{var v=Vu(l,t,d+f,h),y=Vu(l,t,d,d+f),b=y>=0&&n[y];if(r&&!b||!r&&!(v>=0&&n[v])){Jt(Xt(u,s),o,l);var _=function(e,t,n,i,r){var a=new Ft(e,n,Ls);return a.multi=[],a.index=t,a.componentProviders=0,zu(a,r,i&&!n),a}(r?$u:Uu,n.length,r,i,c);!r&&b&&(n[y].providerFactory=_),Yu(o,e,t.length,0),t.push(l),u.directiveStart++,u.directiveEnd++,r&&(u.providerIndexes+=1048576),n.push(_),s.push(_)}else Yu(o,e,v>-1?v:y,zu(n[r?y:v],c,!r&&i));!r&&i&&b&&n[y].componentProviders++}}}function Yu(e,t,n,i){var r=Yo(t);if(r||t.useClass){var a=(t.useClass||t).prototype.ngOnDestroy;if(a){var o=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){var s=o.indexOf(n);-1===s?o.push(n,[i,a]):o[s+1].push(i,a)}else o.push(n,a)}}}function zu(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Vu(e,t,n,i){for(var r=n;r<i;r++)if(t[r]===e)return r;return-1}function Uu(e,t,n,i){return Wu(this.multi,[])}function $u(e,t,n,i){var r,a=this.multi;if(this.providerFactory){var o=this.providerFactory.componentProviders,s=ln(n,n[1],this.providerFactory.index,i);Wu(a,r=s.slice(0,o));for(var l=o;l<s.length;l++)r.push(s[l])}else Wu(a,r=[]);return r}function Wu(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function qu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return function(e,t,n){var i=Qe();if(i.firstCreatePass){var r=be(e);Bu(n,i.data,i.blueprint,r,!0),Bu(t,i.data,i.blueprint,r,!1)}}(n,i?i(e):e,t)}}}var Gu=function e(){_classCallCheck(this,e)},Xu=function e(){_classCallCheck(this,e)},Qu=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(u(e),". Did you add it to @NgModule.entryComponents?"));
vendor: 16,215 bytes, line 1
1return t.ngComponent=e,t}(e)}}]),e}(),Ku=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Qu,e}();function Zu(){}function Ju(e,t){return new td(je(e,t))}var ed=function(){return Ju(Ze(),Xe())},td=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=ed,e}();function nd(e){return e instanceof td?e.nativeElement:e}var id=function e(){_classCallCheck(this,e)},rd=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return ad()},e}(),ad=function(){var e=Xe(),t=Ne(Ze().index,e);return function(e){return e[11]}(pe(t)?t:e)},od=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=w({token:e,providedIn:"root",factory:function(){return null}}),e}(),sd=function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},ld=new sd("12.0.5"),cd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return is(e)}},{key:"create",value:function(e){return new dd(e)}}]),e}(),ud=function(e,t){return t},dd=function(){function e(t){_classCallCheck(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ud}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,i=0,r=null;t||n;){var a=!n||t&&t.currentIndex<md(n,i,r)?t:n,o=md(a,i,r),s=a.currentIndex;if(a===n)i--,n=n._nextRemoved;else if(t=t._next,null==a.previousIndex)i++;else{r||(r=[]);var l=o-i,c=s-i;if(l!=c){for(var u=0;u<l;u++){var d=u<r.length?r[u]:r[u]=0,h=d+u;c<=h&&h<l&&(r[u]=d+1)}r[a.previousIndex]=c-l}}o!==s&&e(a,o,s)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!is(e))throw new Error("Error trying to diff '".concat(u(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,i,r,a=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)i=e[s],r=this._trackByFn(s,i),null!==a&&Object.is(a.trackById,r)?(o&&(a=this._verifyReinsertion(a,i,r,s)),Object.is(a.item,i)||this._addIdentityChange(a,i)):(a=this._mismatch(a,i,r,s),o=!0),a=a._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var i,r=e[ts()]();!(i=r.next()).done;)t(i.value)}(e,function(e){r=t._trackByFn(n,e),null!==a&&Object.is(a.trackById,r)?(o&&(a=t._verifyReinsertion(a,e,r,n)),Object.is(a.item,e)||t._addIdentityChange(a,e)):(a=t._mismatch(a,e,r,n),o=!0),a=a._next,n++}),this.length=n;return this._truncate(a),this.collection=e,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 e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,i){var r;return null===e?r=this._itTail:(r=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,r,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,i))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,r,i)):e=this._addAfter(new hd(t,n),r,i),e}},{key:"_verifyReinsertion",value:function(e,t,n,i){var r=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==r?e=this._reinsertAfter(r,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var i=e._prevRemoved,r=e._nextRemoved;return null===i?this._removalsHead=r:i._nextRemoved=r,null===r?this._removalsTail=i:r._prevRemoved=i,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var i=null===t?this._itHead:t._next;return e._next=i,e._prev=t,null===i?this._itTail=e:i._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new pd),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pd),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}]),e}(),hd=function e(t,n){_classCallCheck(this,e),this.item=t,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},fd=function(){function e(){_classCallCheck(this,e),this._head=null,this._tail=null}return _createClass(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),pd=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new fd,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"isEmpty",get:function(){return 0===this.map.size}},{key:"clear",value:function(){this.map.clear()}}]),e}();function md(e,t,n){var i=e.previousIndex;if(null===i)return i;var r=0;return n&&i<n.length&&(r=n[i]),i+t+r}var gd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return e instanceof Map||rs(e)}},{key:"create",value:function(){return new vd}}]),e}(),vd=function(){function e(){_classCallCheck(this,e),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(e,[{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}},{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||rs(e)))throw new Error("Error trying to diff '".concat(u(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,i){if(n&&n.key===i)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var r=t._getOrCreateRecordForKey(i,e);n=t._insertBeforeOrAppend(n,r)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var i=n._prev,r=n._next;return i&&(i._next=r),r&&(r._prev=i),n._next=null,n._prev=null,n}var a=new yd(e);return this._records.set(e,a),a.currentValue=t,this._addToAdditions(a),a}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})}}]),e}(),yd=function e(t){_classCallCheck(this,e),this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null};function bd(){return new _d([new cd])}var _d=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||bd())},deps:[[e,new oi,new ri]]}}}]),e}();return e.\u0275prov=w({token:e,providedIn:"root",factory:bd}),e}();function wd(){return new kd([new gd])}var kd=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var i=n.factories.slice();t=t.concat(i)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){return e.create(t,n||wd())},deps:[[e,new oi,new ri]]}}}]),e}();return e.\u0275prov=w({token:e,providedIn:"root",factory:wd}),e}();function Cd(e,t,n,i){for(var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&i.push(Ie(a)),me(a))for(var o=fe;o<a.length;o++){var s=a[o],l=s[1].firstChild;null!==l&&Cd(s[1],s,l,i)}var c=n.type;if(8&c)Cd(e,t,n.child,i);else if(32&c)for(var u=Or(n,t),d=void 0;d=u();)i.push(d);else if(16&c){var h=oa(t,n);if(Array.isArray(h))i.push.apply(i,_toConsumableArray(h));else{var f=Ir(t[16]);Cd(f[1],f,h,i,!0)}}n=r?n.projectionNext:n.next}return i}var xd=function(){function e(t,n){_classCallCheck(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}return _createClass(e,[{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return Cd(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]},set:function(e){this._lView[8]=e}},{key:"destroyed",get:function(){return!(256&~this._lView[2])}},{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){var e=this._lView[3];if(me(e)){var t=e[8],n=t?t.indexOf(this):-1;n>-1&&(Ur(e,n),In(t,n))}this._attachedToViewContainer=!1}$r(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){Xa(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){go(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){vo(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){at(!0);try{vo(e,t,n)}finally{at(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,ua(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a Vie
1wContainer!");this._appRef=e}}]),e}(),Sd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e))._view=e,i}return _createClass(n,[{key:"detectChanges",value:function(){yo(this._view)}},{key:"checkNoChanges",value:function(){!function(e){at(!0);try{yo(e)}finally{at(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(xd),Md=function(e){return function(e,t,n){if(ve(e)&&!n){var i=Ne(e.index,t);return new xd(i,i)}return 47&e.type?new xd(t[16],t):null}(Ze(),Xe(),!(16&~e))},Dd=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Md,e}(),Td=[new gd],Ed=new _d([new cd]),Ad=new kd(Td),Pd=function(){return Id(Ze(),Xe())},Ld=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Pd,e}(),Od=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=i,a.elementRef=r,a}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=ja(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(t)),Ba(t,n,e),new xd(n)}}]),n}(Ld);function Id(e,t){return 4&e.type?new Od(t,e,Ju(e,t)):null}var Hd=function e(){_classCallCheck(this,e)},jd=function e(){_classCallCheck(this,e)},Fd=function(){return zd(Ze(),Xe())},Rd=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=Fd,e}(),Nd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=i,a._hostLView=r,a}return _createClass(n,[{key:"element",get:function(){return Ju(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new dn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=Zt(this._hostTNode,this._hostLView);if(Vt(e)){var t=$t(e,this._hostLView),n=Ut(e);return new dn(t[1].data[n+8],t)}return new dn(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=Bd(this._lContainer);return null!==t&&t[e]||null}},{key:"length",get:function(){return this._lContainer.length-fe}},{key:"createEmbeddedView",value:function(e,t,n){var i=e.createEmbeddedView(t||{});return this.insert(i,n),i}},{key:"createComponent",value:function(e,t,n,i,r){var a=n||this.parentInjector;if(!r&&null==e.ngModule&&a){var o=a.get(Hd,null);o&&(r=o)}var s=e.create(a,i,void 0,r);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var i=e._lView,r=i[1];if(me(i[3])){var a=this.indexOf(e);if(-1!==a)this.detach(a);else{var o=i[3],s=new n(o,o[6],o[3]);s.detach(s.indexOf(e))}}var l=this._adjustIndex(t),c=this._lContainer;!function(e,t,n,i){var r=fe+i,a=n.length;i>0&&(n[r-1][4]=t),i<a-fe?(t[4]=n[r],On(n,fe+i,t)):(n.push(t),t[4]=null),t[3]=n;var o=t[17];null!==o&&n!==o&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);var s=t[19];null!==s&&s.insertView(e),t[2]|=128}(r,i,c,l);var u=sa(l,c),d=i[11],h=Zr(d,c[7]);return null!==h&&function(e,t,n,i,r,a){i[0]=r,i[6]=t,ua(e,i,n,1,r,a)}(r,c[6],d,i,h,u),e.attachToViewContainerRef(),On(Yd(c),l,e),e}},{key:"move",value:function(e,t){return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=Bd(this._lContainer);return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){var t=this._adjustIndex(e,-1),n=Ur(this._lContainer,t);n&&(In(Yd(this._lContainer),t),$r(n[1],n))}},{key:"detach",value:function(e){var t=this._adjustIndex(e,-1),n=Ur(this._lContainer,t);return n&&null!=In(Yd(this._lContainer),t)?new xd(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}}]),n}(Rd);function Bd(e){return e[8]}function Yd(e){return e[8]||(e[8]=[])}function zd(e,t){var n,i=t[e.index];if(me(i))n=i;else{var r;if(8&e.type)r=Ie(i);else{var a=t[11];r=a.createComment("");var o=je(e,t);Xr(a,Zr(a,o),r,function(e,t){return Le(e)?e.nextSibling(t):t.nextSibling}(a,o),!1)}t[e.index]=n=uo(i,t,r,e),mo(t,n)}return new Nd(n,e,t)}var Vd={},Ud=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).ngModule=e,i}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=le(e);return new qd(t,this.ngModule)}}]),n}(Ku);function $d(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Wd=new Cn("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Mr}}),qd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).componentDef=e,r.ngModule=i,r.componentType=e.type,r.selector=e.selectors.map(Sa).join(","),r.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],r.isBoundToModule=!!i,r}return _createClass(n,[{key:"inputs",get:function(){return $d(this.componentDef.inputs)}},{key:"outputs",get:function(){return $d(this.componentDef.outputs)}},{key:"create",value:function(e,t,n,i){var r,a,o=(i=i||this.ngModule)?function(e,t){return{get:function(n,i,r){var a=e.get(n,Vd,r);return a!==Vd||i===Vd?a:t.get(n,i,r)}}}
vendor: 14,756 bytes, line 1
1(e,i.injector):e,s=o.get(id,Oe),l=o.get(od,null),c=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=n?function(e,t,n){if(Le(e))return e.selectRootElement(t,n===j.ShadowDom);var i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}(c,n,this.componentDef.encapsulation):zr(s.createRenderer(null,this.componentDef),u,function(e){var t=e.toLowerCase();return"svg"===t?Ee:"math"===t?"http://www.w3.org/1998/MathML/":null}(u)),h=this.componentDef.onPush?576:528,f={components:[],scheduler:Mr,clean:_o,playerHandler:null,flags:0},p=Ga(0,null,null,1,0,null,null,null,null,null),m=ja(null,p,f,h,null,null,s,c,l,o);yt(m);try{var g=function(e,t,n,i,r){var a=n[1];n[20]=e;var o=Fa(a,20,2,"#host",null),s=o.mergedAttrs=t.hostAttrs;null!==s&&(Do(o,s,!0),null!==e&&(Rt(r,e,s),null!==o.classes&&fa(r,e,o.classes),null!==o.styles&&ha(r,e,o.styles)));var l=i.createRenderer(e,t),c=ja(n,qa(t),null,t.onPush?64:16,n[20],o,i,l,null,null);return a.firstCreatePass&&(Jt(Xt(o,n),a,t.type),to(a,o),io(o,n.length,1)),mo(n,c),n[20]=c}(d,this.componentDef,m,s,c);if(d)if(n)Rt(c,d,["ng-version",ld.full]);else{var v=function(e){for(var t=[],n=[],i=1,r=2;i<e.length;){var a=e[i];if("string"==typeof a)2===r?""!==a&&t.push(a,e[++i]):8===r&&n.push(a);else{if(!_a(r))break;r=a}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),y=v.attrs,b=v.classes;y&&Rt(c,d,y),b&&b.length>0&&fa(c,d,b.join(" "))}if(a=Fe(p,he),void 0!==t)for(var _=a.projection=[],w=0;w<this.ngContentSelectors.length;w++){var k=t[w];_.push(null!=k?Array.from(k):null)}r=function(e,t,n,i,r){var a=n[1],o=function(e,t,n){var i=Ze();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),ro(e,i,t,Na(e,t,1,null),n));var r=ln(t,e,i.directiveStart,i);vr(r,t);var a=je(i,t);return a&&vr(a,t),r}(a,n,t);if(i.components.push(o),e[8]=o,r&&r.forEach(function(e){return e(o,t)}),t.contentQueries){var s=Ze();t.contentQueries(1,o,s.directiveStart)}var l=Ze();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(St(l.index),Ja(n[1],l,0,l.directiveStart,l.directiveEnd,t),eo(t,o)),o}(g,this.componentDef,m,f,[Uo]),Ba(p,m,null)}finally{Ct()}return new Gd(this.componentType,r,Ju(a,m),m,a)}}]),n}(Xu),Gd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this)).location=r,s._rootLView=a,s._tNode=o,s.instance=i,s.hostView=s.changeDetectorRef=new Sd(a),s.componentType=e,s}return _createClass(n,[{key:"injector",get:function(){return new dn(this._tNode,this._rootLView)}},{key:"destroy",value:function(){this.hostView.destroy()}},{key:"onDestroy",value:function(e){this.hostView.onDestroy(e)}}]),n}(Gu);function Xd(e,t,n,i){return I(function(){var r,a=e;null!==t&&(a.hasOwnProperty("decorators")&&void 0!==a.decorators?(r=a.decorators).push.apply(r,_toConsumableArray(t)):a.decorators=t),null!==n&&(a.ctorParameters=n),null!==i&&(a.propDecorators=a.hasOwnProperty("propDecorators")&&void 0!==a.propDecorators?Object.assign(Object.assign({},a.propDecorators),i):i)})}var Qd=new Map,Kd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;_classCallCheck(this,n),(r=t.call(this))._parent=i,r._bootstrapComponents=[],r.injector=_assertThisInitialized(r),r.destroyCbs=[],r.componentFactoryResolver=new Ud(_assertThisInitialized(r));var a=de(e),o=e[G]||null;return o&&Nc(o),r._bootstrapComponents=Ar(a.bootstrap),r._r3Injector=Ho(e,i,[{provide:Hd,useValue:_assertThisInitialized(r)},{provide:Ku,useValue:r.componentFactoryResolver}],u(e)),r._r3Injector._resolveInjectorDefTypes(),r.instance=r.get(e),r}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vo.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P.Default;return e===Vo||e===Hd||e===Eo?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(Hd),Zd=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i,r,a;return _classCallCheck(this,n),(i=t.call(this)).moduleType=e,null!==de(e)&&(r=e,a=new Set,function e(t){var n=de(t,!0),i=n.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(u(t)," vs ").concat(u(t.name)))}(i,Qd.get(i),t),Qd.set(i,t));var r,o=_createForOfIteratorHelper(Ar(n.imports));try{for(o.s();!(r=o.n()).done;){var s=r.value;a.has(s)||(a.add(s),e(s))}}catch(l){o.e(l)}finally{o.f()}}(r)),i}return _createClass(n,[{key:"create",value:function(e){return new Kd(this.moduleType,e)}}]),n}(jd);function Jd(e,t,n){var i=ot()+e,r=Xe();return r[i]===Ma?as(r,i,n?t.call(n):t()):os(r,i)}function eh(e,t,n,i){return uh(Xe(),ot(),e,t,n,i)}function th(e,t,n,i,r){return dh(Xe(),ot(),e,t,n,i,r)}function nh(e,t,n,i,r,a){return hh(Xe(),ot(),e,t,n,i,r,a)}function ih(e,t,n,i,r,a,o){return fh(Xe(),ot(),e,t,n,i,r,a,o)}function rh(e,t,n,i,r,a,o,s){var l=ot()+e,c=Xe(),u=us(c,l,n,i,r,a);return ss(c,l+4,o)||u?as(c,l+5,s?t.call(s,n,i,r,a,o):t(n,i,r,a,o)):os(c,l+5)}function ah(e,t,n,i,r,a,o,s,l){var c=ot()+e,u=Xe(),d=us(u,c,n,i,r,a);return ls(u,c+4,o,s)||d?as(u,c+6,l?t.call(l,n,i,r,a,o,s):t(n,i,r,a,o,s)):os(u,c+6)}function oh(e,t,n,i,r,a,o,s,l,c){var u=ot()+e,d=Xe(),h=us(d,u,n,i,r,a);return cs(d,u+4,o,s,l)||h?as(d,u+7,c?t.call(c,n,i,r,a,o,s,l):t(n,i,r,a,o,s,l)):os(d,u+7)}function sh(e,t,n,i,r,a,o,s,l,c,u){var d=ot()+e,h=Xe(),f=us(h,d,n,i,r,a);return us(h,d+4,o,s,l,c)||f?as(h,d+8,u?t.call(u,n,i,r,a,o,s,l,c):t(n,i,r,a,o,s,l,c)):os(h,d+8)}function lh(e,t,n,i){return ph(Xe(),ot(),e,t,n,i)}function ch(e,t){var n=e[t];return n===Ma?void 0:n}function uh(e,t,n,i,r,a){var o=t+n;return ss(e,o,r)?as(e,o+1,a?i.call(a,r):i(r)):ch(e,o+1)}function dh(e,t,n,i,r,a,o){var s=t+n;return ls(e,s,r,a)?as(e,s+2,o?i.call(o,r,a):i(r,a)):ch(e,s+2)}function hh(e,t,n,i,r,a,o,s){var l=t+n;return cs(e,l,r,a,o)?as(e,l+3,s?i.call(s,r,a,o):i(r,a,o)):ch(e,l+3)}function fh(e,t,n,i,r,a,o,s,l){var c=t+n;return us(e,c,r,a,o,s)?as(e,c+4,l?i.call(l,r,a,o,s):i(r,a,o,s)):ch(e,c+4)}function ph(e,t,n,i,r,a){for(var o=t+n,s=!1,l=0;l<r.length;l++)ss(e,o++,r[l])&&(s=!0);return s?as(e,o,i.apply(a,r)):ch(e,o)}function mh(e,t){var n,i=Qe(),r=e+he;i.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var i=t[n];if(e===i.name)return i}throw new g("302","The pipe '".concat(e,"' could not be found!"))}(t,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var a=n.factory||(n.factory=_e(n.type)),o=L(Ls);try{var s=qt(!1),l=a();return qt(s),function(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}(i,Xe(),r,l),l}finally{L(o)}}function gh(e,t,n){var i=e+he,r=Xe(),a=Re(r,i);return kh(r,wh(r,i)?uh(r,ot(),t,a.transform,n,a):a.transform(n))}function vh(e,t,n,i){var r=e+he,a=Xe(),o=Re(a,r);return kh(a,wh(a,r)?dh(a,ot(),t,o.transform,n,i,o):o.transform(n,i))}function yh(e,t,n,i,r){var a=e+he,o=Xe(),s=Re(o,a);return kh(o,wh(o,a)?hh(o,ot(),t,s.transform,n,i,r,s):s.transform(n,i,r))}function bh(e,t,n,i,r,a){var o=e+he,s=Xe(),l=Re(s,o);return kh(s,wh(s,o)?fh(s,ot(),t,l.transform,n,i,r,a,l):l.transform(n,i,r,a))}function _h(e,t,n){var i=e+he,r=Xe(),a=Re(r,i);return kh(r,wh(r,i)?ph(r,ot(),t,a.transform,n,a):a.transform.apply(a,n))}function wh(e,t){return e[1].data[t].pure}function kh(e,t){return ns.isWrapped(t)&&(t=ns.unwrap(t),e[st()]=Ma),t}function Ch(e){return function(t){setTimeout(e,void 0,t)}}var xh=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=i,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,i){var a,o,s,l=e,c=t||function(){return null},u=i;if(e&&"object"==typeof e){var d=e;l=null===(a=d.next)||void 0===a?void 0:a.bind(d),c=null===(o=d.error)||void 0===o?void 0:o.bind(d),u=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(c=Ch(c),l&&(l=Ch(l)),u&&(u=Ch(u)));var h=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,{next:l,error:c,complete:u});return e instanceof r.a&&e.add(h),h}}]),n}(i.a);function Sh(){return this._results[ts()]()}var Mh=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];_classCallCheck(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=ts(),i=e.prototype;i[n]||(i[n]=Sh)}return _createClass(e,[{key:"changes",get:function(){return this._changes||(this._changes=new xh)}},{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){this.dirty=!1;var n=Pn(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++){var r=e[i],a=t[i];if(n&&(r=n(r),a=n(a)),a!==r)return!1}return!0}(this._results,n,t))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}},{key:"notifyOnChanges",value:function(){!this._changes||!this._changesDetected&&this._emitDistinctChangesOnly||this._changes.emit(this)}},{key:"setDirty",value:function(){this.dirty=!0}},{key:"destroy",value:function(){this.changes.complete(),this.changes.unsubscribe()}}]),e}(),Dh=function(){function e(t){_classCallCheck(this,e),this.queryList=t,this.matches=null}return _createClass(e,[{key:"clone",value:function(){return new e(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),e}(),Th=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[],a=0;a<i;a++){var o=n.getByIndex(a);r.push(this.queries[o.indexInDeclarationView].clone())}return new e(r)}return null}},{key:"insertView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"detachView",value:function(e){this.dirtyQueriesWithMatches(e)}},{key:"dirtyQueriesWithMatches",value:function(e){for(var t=0;t<this.queries.length;t++)null!==zh(e,t).matches&&this.queries[t].setDirty()}}]),e}(),Eh=function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;_classCallCheck(this,e),this.predicate=t,this.flags=n,this.read=i},Ah=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];_classCallCheck(this,e),this.queries=t}return _createClass(e,[{key:"elementStart",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}},{key:"elementEnd",value:function(e){for(var t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}},{key:"embeddedTView",value:function(t){for(var n=null,i=0;i<this.length;i++){var r=null!==n?n.length:0,a=this.getByIndex(i).embeddedTView(t,r);a&&(a.indexInDeclarationView=i,null!==n?n.push(a):n=[a])}return null!==n?new e(n):null}},{key:"template",value:function(e,t){for(var n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}},{key:"getByIndex",value:function(e){return this.queries[e]}},{key:"length",get:function(){return this.queries.length}},{key:"track",value:function(e){this.queries.push(e)}}]),e}(),Ph=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;_classCallCheck(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return _createClass(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1&~this.metadata.flags){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i<n.length;i++){var r=n[i];this.matchTNodeWithReadOption(e,t,Lh(t,r)),this.matchTNodeWithReadOption(e,t,sn(t,e,r,!1,!1))}else n===Ld?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,sn(t,e,n,!1,!1))}},{key:"matchTNodeWithReadOption",value:function(e,t,n){if(null!==n){var i=this.metadata.read;if(null!==i)if(i===td||i===Rd||i===Ld&&4&t.type)this.addMatch(t.index,-2);else{var r=sn(t,e,i,!1,!1);null!==r&&this.addMatch(t.index,r)}else this.addMatch(t.index,n)}}},{key:"addMatch",value:function(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}]),e}();function Lh(e,t){var n=e.localNames;if(null!==n)for(var i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Oh(e,t,n,i){return-1===n?function(e,t){return 11&e.type?Ju(e,t):4&e.type?Id(e,t):null}(t,e):-2===n?function(e,t,n){return n===td?Ju(t,e):n===Ld?Id(t,e):n===Rd?zd(t,e):void 0}(e,t,i):ln(e,e[1],n,t)}function Ih(e,t,n,i){var r=t[19].queries[i];if(null===r.matches){for(var a=e.data,o=n.matches,s=[],l=0;l<o.length;l+=2){var c=o[l];s.push(c<0?null:Oh(t,a[c],o[l+1],n.metadata.read))}r.matches=s}return r.matches}function Hh(e,t,n,i){var r=e.queries.getByIndex(n),a=r.matches;if(null!==a)for(var o=Ih(e,t,r,n),s=0;s<a.length;s+=2){var l=a[s];if(l>0)i.push(o[s/2]);else{for(var c=a[s+1],u=t[-l],d=fe;d<u.length;d++){var h=u[d];h[17]===h[3]&&Hh(h[1],h,c,i)}if(null!==u[9])for(var f=u[9],p=0;p<f.length;p++){var m=f[p];Hh(m[1],m,c,i)}}}return i}function jh(e){var t=Xe(),n=Qe(),i=pt();mt(i+1);var r=zh(n,i);if(e.dirty&&Be(t)===!(2&~r.metadata.flags)){if(null===r.matches)e.reset([]);else{var a=r.crossesNgTemplate?Hh(n,t,i,[]):Ih(n,t,r,i);e.reset(a,nd),e.notifyOnChanges()}return!0}return!1}function Fh(e,t,n){var i=Qe();
1i.firstCreatePass&&(Yh(i,new Eh(e,t,n),-1),2&~t||(i.staticViewQueries=!0)),Bh(i,Xe(),t)}function Rh(e,t,n,i){var r=Qe();if(r.firstCreatePass){var a=Ze();Yh(r,new Eh(t,n,i),a.index),function(e,t){var n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2&~n||(r.staticContentQueries=!0)}Bh(r,Xe(),n)}function Nh(){return e=Xe(),t=pt(),e[19].queries[t].queryList;var e,t}function Bh(e,t,n){var i=new Mh(!(4&~n));Xa(e,t,i,i.destroy),null===t[19]&&(t[19]=new Th),t[19].queries.push(new Dh(i))}function Yh(e,t,n){null===e.queries&&(e.queries=new Ah),e.queries.track(new Ph(t,n))}function zh(e,t){return e.queries.getByIndex(t)}function Vh(e,t){return Id(e,t)}var Uh={"\u0275\u0275attribute":ds,"\u0275\u0275attributeInterpolate1":ws,"\u0275\u0275attributeInterpolate2":ks,"\u0275\u0275attributeInterpolate3":Cs,"\u0275\u0275attributeInterpolate4":xs,"\u0275\u0275attributeInterpolate5":Ss,"\u0275\u0275attributeInterpolate6":Ms,"\u0275\u0275attributeInterpolate7":Ds,"\u0275\u0275attributeInterpolate8":Ts,"\u0275\u0275attributeInterpolateV":Es,"\u0275\u0275defineComponent":Z,"\u0275\u0275defineDirective":oe,"\u0275\u0275defineInjectable":w,"\u0275\u0275defineInjector":k,"\u0275\u0275defineNgModule":ie,"\u0275\u0275definePipe":se,"\u0275\u0275directiveInject":Ls,"\u0275\u0275getInheritedFactory":hn,"\u0275\u0275inject":Zn,"\u0275\u0275injectAttribute":pn,"\u0275\u0275invalidFactory":Os,"\u0275\u0275invalidFactoryDep":Jn,"\u0275\u0275templateRefExtractor":Vh,"\u0275\u0275NgOnChangesFeature":ke,"\u0275\u0275ProvidersFeature":qu,"\u0275\u0275CopyDefinitionFeature":Jo,"\u0275\u0275InheritDefinitionFeature":Wo,"\u0275\u0275nextContext":Ks,"\u0275\u0275namespaceHTML":Et,"\u0275\u0275namespaceMathML":Tt,"\u0275\u0275namespaceSVG":Dt,"\u0275\u0275enableBindings":qe,"\u0275\u0275disableBindings":Ge,"\u0275\u0275elementStart":js,"\u0275\u0275elementEnd":Fs,"\u0275\u0275element":Rs,"\u0275\u0275elementContainerStart":Ns,"\u0275\u0275elementContainerEnd":Bs,"\u0275\u0275elementContainer":Ys,"\u0275\u0275pureFunction0":Jd,"\u0275\u0275pureFunction1":eh,"\u0275\u0275pureFunction2":th,"\u0275\u0275pureFunction3":nh,"\u0275\u0275pureFunction4":ih,"\u0275\u0275pureFunction5":rh,"\u0275\u0275pureFunction6":ah,"\u0275\u0275pureFunction7":oh,"\u0275\u0275pureFunction8":sh,"\u0275\u0275pureFunctionV":lh,"\u0275\u0275getCurrentView":zs,"\u0275\u0275restoreView":Ke,"\u0275\u0275listener":Ws,"\u0275\u0275projection":el,"\u0275\u0275syntheticHostProperty":xc,"\u0275\u0275syntheticHostListener":qs,"\u0275\u0275pipeBind1":gh,"\u0275\u0275pipeBind2":vh,"\u0275\u0275pipeBind3":yh,"\u0275\u0275pipeBind4":bh,"\u0275\u0275pipeBindV":_h,"\u0275\u0275projectionDef":Js,"\u0275\u0275hostProperty":Cc,"\u0275\u0275property":Is,"\u0275\u0275propertyInterpolate":tl,"\u0275\u0275propertyInterpolate1":nl,"\u0275\u0275propertyInterpolate2":il,"\u0275\u0275propertyInterpolate3":rl,"\u0275\u0275propertyInterpolate4":al,"\u0275\u0275propertyInterpolate5":ol,"\u0275\u0275propertyInterpolate6":sl,"\u0275\u0275propertyInterpolate7":ll,"\u0275\u0275propertyInterpolate8":cl,"\u0275\u0275propertyInterpolateV":ul,"\u0275\u0275pipe":mh,"\u0275\u0275queryRefresh":jh,"\u0275\u0275viewQuery":Fh,"\u0275\u0275loadQuery":Nh,"\u0275\u0275contentQuery":Rh,"\u0275\u0275reference":Ps,"\u0275\u0275classMap":Ml,"\u0275\u0275classMapInterpolate1":Ql,"\u0275\u0275classMapInterpolate2":Kl,"\u0275\u0275classMapInterpolate3":Zl,"\u0275\u0275classMapInterpolate4":Jl,"\u0275\u0275classMapInterpolate5":ec,"\u0275\u0275classMapInterpolate6":tc,"\u0275\u0275classMapInterpolate7":nc,"\u0275\u0275classMapInterpolate8":ic,"\u0275\u0275classMapInterpolateV":rc,"\u0275\u0275styleMap":xl,"\u0275\u0275styleMapInterpolate1":ac,"\u0275\u0275styleMapInterpolate2":oc,"\u0275\u0275styleMapInterpolate3":sc,"\u0275\u0275styleMapInterpolate4":lc,"\u0275\u0275styleMapInterpolate5":cc,"\u0275\u0275styleMapInterpolate6":uc,"\u0275\u0275styleMapInterpolate7":dc,"\u0275\u0275styleMapInterpolate8":hc,"\u0275\u0275styleMapInterpolateV":fc,"\u0275\u0275styleProp":kl,"\u0275\u0275stylePropInterpolate1":pc,"\u0275\u0275stylePropInterpolate2":mc,"\u0275\u0275stylePropInterpolate3":gc,"\u0275\u0275stylePropInterpolate4":vc,"\u0275\u0275stylePropInterpolate5":yc,"\u0275\u0275stylePropInterpolate6":bc,"\u0275\u0275stylePropInterpolate7":_c,"\u0275\u0275stylePropInterpolate8":wc,"\u0275\u0275stylePropInterpolateV":kc,"\u0275\u0275classProp":Cl,"\u0275\u0275advance":Da,"\u0275\u0275template":As,"\u0275\u0275text":Nl,"\u0275\u0275textInterpolate":Bl,"\u0275\u0275textInterpolate1":Yl,"\u0275\u0275textInterpolate2":zl,"\u0275\u0275textInterpolate3":Vl,"\u0275\u0275textInterpolate4":Ul,"\u0275\u0275textInterpolate5":$l,"\u0275\u0275textInterpolate6":Wl,"\u0275\u0275textInterpolate7":ql,"\u0275\u0275textInterpolate8":Gl,"\u0275\u0275textInterpolateV":Xl,"\u0275\u0275i18
1n":Hu,"\u0275\u0275i18nAttributes":ju,"\u0275\u0275i18nExp":Fu,"\u0275\u0275i18nStart":Ou,"\u0275\u0275i18nEnd":Iu,"\u0275\u0275i18nApply":Ru,"\u0275\u0275i18nPostprocess":Nu,"\u0275\u0275resolveWindow":Dr,"\u0275\u0275resolveDocument":Tr,"\u0275\u0275resolveBody":Er,"\u0275\u0275setComponentScope":J,"\u0275\u0275setNgModuleScope":re,"\u0275\u0275sanitizeHtml":lr,"\u0275\u0275sanitizeStyle":cr,"\u0275\u0275sanitizeResourceUrl":dr,"\u0275\u0275sanitizeScript":hr,"\u0275\u0275sanitizeUrl":ur,"\u0275\u0275sanitizeUrlOrResourceUrl":mr,"\u0275\u0275trustConstantHtml":fr,"\u0275\u0275trustConstantResourceUrl":pr,forwardRef:f,resolveForwardRef:p},$h=[],Wh=!1;function qh(e){return Array.isArray(e)?e.every(qh):!!p(e)}function Gh(e,t){var n=Pn(t.declarations||V),i=Qh(e);n.forEach(function(t){t.hasOwnProperty(U)?Xh(le(t),i):t.hasOwnProperty($)||t.hasOwnProperty(W)||(t.ngSelectorScope=e)})}function Xh(e,t){e.directiveDefs=function(){return Array.from(t.compilation.directives).map(function(e){return e.hasOwnProperty(U)?le(e):ce(e)}).filter(function(e){return!!e})},e.pipeDefs=function(){return Array.from(t.compilation.pipes).map(function(e){return ue(e)})},e.schemas=t.schemas,e.tView=null}function Qh(e){if(!Zh(e))throw new Error("".concat(e.name," does not have a module def (\u0275mod property)"));var t=de(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;var n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Ar(t.imports).forEach(function(e){var t=e;if(!Zh(t))throw new Error("Importing ".concat(t.name," which does not have a \u0275mod property"));var i=Qh(t);i.exported.directives.forEach(function(e){return n.compilation.directives.add(e)}),i.exported.pipes.forEach(function(e){return n.compilation.pipes.add(e)})}),Ar(t.declarations).forEach(function(e){ue(e)?n.compilation.pipes.add(e):n.compilation.directives.add(e)}),Ar(t.exports).forEach(function(e){var t=e;if(Zh(t)){var i=Qh(t);i.exported.directives.forEach(function(e){n.compilation.directives.add(e),n.exported.directives.add(e)}),i.exported.pipes.forEach(function(e){n.compilation.pipes.add(e),n.exported.pipes.add(e)})}else ue(t)?n.exported.pipes.add(t):n.exported.directives.add(t)}),t.transitiveCompileScopes=n,n}function Kh(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function Zh(e){return!!de(e)}var Jh=0;function ef(e,t){var n=null;nf(e,t||{}),Object.defineProperty(e,$,{get:function(){if(null===n){var i=tf(e,t||{});n=Tn().compileDirective(Uh,i.sourceMapUrl,i.metadata)}return n},configurable:!1})}function tf(e,t){var n=e&&e.name,i="ng:///".concat(n,"/\u0275dir.js"),r=Tn(),a=af(e,t);return a.typeSourceSpan=r.createParseSourceSpan("Directive",n,i),a.usesInheritance&&of(e),{metadata:a,sourceMapUrl:i}}function nf(e,t){var n=null;Object.defineProperty(e,X,{get:function(){if(null===n){var i=tf(e,t),r=Tn();n=r.compileFactory(Uh,"ng:///".concat(e.name,"/\u0275fac.js"),{name:i.metadata.name,type:i.metadata.type,typeArgumentCount:0,deps:ui(e),target:r.FactoryTarget.Directive})}return n},configurable:!1})}function rf(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function af(e,t){var n,i=ci(),r=i.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||z,propMetadata:r,inputs:t.inputs||V,outputs:t.outputs||V,queries:sf(e,r,lf),lifecycle:{usesOnChanges:i.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!rf(e),exportAs:(n=t.exportAs,void 0===n?null:df(n)),providers:t.providers||null,viewQueries:sf(e,r,cf)}}function of(e){for(var t=Object.prototype,n=Object.getPrototypeOf(e.prototype).constructor;n&&n!==t;)ce(n)||le(n)||!ff(n)||ef(n,null),n=Object.getPrototypeOf(n)}function sf(e,t,n){var i=[],r=function(r){if(t.hasOwnProperty(r)){var a=t[r];a.forEach(function(t){if(n(t)){if(!t.selector)throw new Error("Can't construct a query for the property \"".concat(r,'" of "').concat(y(e),"\" since the query selector wasn't defined."));if(a.some(uf))throw new Error("Cannot combine @Input decorators with query decorators");i.push(function(e,t){return{propertyName:e,predicate:(n=t.selector,"string"==typeof n?df(n):p(n)),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly};var n}(r,t))}})}};for(var a in t)r(a);return i}function lf(e){var t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function cf(e){var t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function uf(e){return"Input"===e.ngMetadataName}function df(e){return e.split(",").map(function(e){return e.trim()})}var hf=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function ff(e){var t=ci();if(hf.some(function(n){return t.hasLifecycleHook(e,n)}))return!0;var n=t.propMetadata(e);for(var i in n)for(var r=n[i],a=0;a<r.length;a++){var o=r[a],s=o.ngMetadataName;if(uf(o)||lf(o)||cf(o)||"Output"===s||"HostBinding"===s||"HostListener"===s)return!0}return!1}function pf(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}var mf=yn("Directive",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},void 0,void 0,function(e,t){return Cf(e,t)}),gf=yn("Component",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};
1return Object.assign({changeDetection:H.Default},e)},mf,void 0,function(e,t){return kf(e,t)}),vf=yn("Pipe",function(e){return Object.assign({pure:!0},e)},void 0,void 0,function(e,t){return xf(e,t)}),yf=wn("Input",function(e){return{bindingPropertyName:e}}),bf=wn("Output",function(e){return{bindingPropertyName:e}}),_f=wn("HostBinding",function(e){return{hostPropertyName:e}}),wf=wn("HostListener",function(e,t){return{eventName:e,args:t}}),kf=function(e,t){var n=null;!function(e,t){mi(t)&&(fi.set(e,t),pi.add(e))}(e,t),nf(e,t),Object.defineProperty(e,U,{get:function(){if(null===n){var i=Tn();if(mi(t)){var r=["Component '".concat(e.name,"' is not resolved:")];throw t.templateUrl&&r.push(" - templateUrl: ".concat(t.templateUrl)),t.styleUrls&&t.styleUrls.length&&r.push(" - styleUrls: ".concat(JSON.stringify(t.styleUrls))),r.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(r.join("\n"))}var a=t.preserveWhitespaces;void 0===a&&(a=!1);var o=t.encapsulation;void 0===o&&(o=j.Emulated);var s=t.templateUrl||"ng:///".concat(e.name,"/template.html"),l=Object.assign(Object.assign({},af(e,t)),{typeSourceSpan:i.createParseSourceSpan("Component",e.name,s),template:t.template||"",preserveWhitespaces:a,styles:t.styles||V,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:o,interpolation:t.interpolation,viewProviders:t.viewProviders||null});Jh++;try{l.usesInheritance&&of(e),n=i.compileComponent(Uh,s,l)}finally{Jh--}if(0===Jh&&function(){if(!Wh){Wh=!0;try{for(var e=$h.length-1;e>=0;e--){var t=$h[e],n=t.moduleType,i=t.ngModule;i.declarations&&i.declarations.every(qh)&&($h.splice(e,1),Gh(n,i))}}finally{Wh=!1}}}(),void 0!==e.ngSelectorScope){var c=Qh(e.ngSelectorScope);Xh(n,c)}}return n},configurable:!1})},Cf=ef,xf=function(e,t){var n=null,i=null;Object.defineProperty(e,X,{get:function(){if(null===i){var n=pf(e,t),r=Tn();i=r.compileFactory(Uh,"ng:///".concat(n.name,"/\u0275fac.js"),{name:n.name,type:n.type,typeArgumentCount:0,deps:ui(e),target:r.FactoryTarget.Pipe})}return i},configurable:!1}),Object.defineProperty(e,W,{get:function(){if(null===n){var i=pf(e,t);n=Tn().compilePipe(Uh,"ng:///".concat(i.name,"/\u0275pipe.js"),i)}return n},configurable:!1})},Sf=yn("NgModule",function(e){return e},void 0,void 0,function(e,t){return Mf(e,t)}),Mf=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){var n=Pn(t.declarations||V),i=null;Object.defineProperty(e,q,{configurable:!0,get:function(){return null===i&&((i=Tn().compileNgModule(Uh,"ng:///".concat(e.name,"/\u0275mod.js"),{type:e,bootstrap:Pn(t.bootstrap||V).map(p),declarations:n.map(p),imports:Pn(t.imports||V).map(p).map(Kh),exports:Pn(t.exports||V).map(p).map(Kh),schemas:t.schemas?Pn(t.schemas):null,id:t.id||null})).schemas||(i.schemas=[])),i}});var r=null;Object.defineProperty(e,X,{get:function(){if(null===r){var t=Tn();r=t.compileFactory(Uh,"ng:///".concat(e.name,"/\u0275fac.js"),{name:e.name,type:e,deps:ui(e),target:t.FactoryTarget.NgModule,typeArgumentCount:0})}return r},configurable:!1});var a=null;Object.defineProperty(e,T,{get:function(){if(null===a){var n={name:e.name,type:e,providers:t.providers||V,imports:[(t.imports||V).map(p),(t.exports||V).map(p)]};a=Tn().compileInjector(Uh,"ng:///".concat(e.name,"/\u0275inj.js"),n)}return a},configurable:!1})}(e,t),function(e,t){$h.push({moduleType:e,ngModule:t})}(e,t)},Df=new Cn("Application Initializer"),Tf=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.resolve=Zu,this.reject=Zu,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var i=function(n){var i=e.appInits[n]();if(Vs(i))t.push(i);else if($s(i)){var r=new Promise(function(e,t){i.subscribe({complete:e,error:t})});t.push(r)}},r=0;r<this.appInits.length;r++)i(r);Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Zn(Df,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e}(),Ef=new Cn("AppId"),Af={provide:Ef,useFactory:function(){return"".concat(Pf()).concat(Pf()).concat(Pf())},deps:[]};function Pf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Lf=new Cn("Platform Initializer"),Of=new Cn("Platform ID"),If=new Cn("appBootstrapListener"),Hf=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e}(),jf=new Cn("LocaleId"),Ff=new Cn("DefaultCurrencyCode"),Rf=function e(t,n){_classCallCheck(this,e),this.ngModuleFactory=t,this.componentFactories=n},Nf=function(e){return new Zd(e)},Bf=Nf,Yf=function(e){return Promise.resolve(Nf(e))},zf=function(e){var t=Nf(e),n=Ar(de(e).declarations).reduce(function(e,t){var n=le(t);return n&&e.push(new qd(n)),e},[]);return new Rf(t,n)},Vf=zf,Uf=function(e){return Promise.resolve(zf(e))},$f=function(){var e=function(){function e(){_classCallCheck(this,e),this.compileModuleSync=Bf,this.compileModuleAsync=Yf,this.compileModuleAndAllComponentsSync=Vf,this.compileModuleAndAllComponentsAsync=Uf}return _createClass(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e}(),Wf=Promise.resolve(0);function qf(e){"undefined"==typeof Zone?Wf.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Gf=function(){function e(t){var n,i,r=t.enableLongStackTrace,a=void 0!==r&&r,o=t.shouldCoalesceEventChangeDetection,s=void 0!==o&&o,l=t.shouldCoalesceRunChangeDetection,c=void 0!==l&&l;if(_classCallCheck(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xh(!1),this.onMicrotaskEmpty=new xh(!1),this.onStable=new xh(!1),this.onError=ne
1w xh(!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.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),a&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=!c&&s,this.shouldCoalesceRunChangeDetection=c,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=Y.requestAnimationFrame,t=Y.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,i=function(){!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Y,function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",function(){e.lastRequestAnimationFrameId=-1,Kf(e),e.isCheckStableRunning=!0,Qf(e),e.isCheckStableRunning=!1},void 0,function(){},function(){})),e.fakeTopEventTask.invoke()}),Kf(e))}(n)},(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,t,r,a,o,s){try{return Zf(n),e.invokeTask(r,a,o,s)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||n.shouldCoalesceRunChangeDetection)&&i(),Jf(n)}},onInvoke:function(e,t,r,a,o,s,l){try{return Zf(n),e.invoke(r,a,o,s,l)}finally{n.shouldCoalesceRunChangeDetection&&i(),Jf(n)}},onHasTask:function(e,t,i,r){e.hasTask(i,r),t===i&&("microTask"==r.change?(n._hasPendingMicrotasks=r.microTask,Kf(n),Qf(n)):"macroTask"==r.change&&(n.hasPendingMacrotasks=r.macroTask))},onHandleError:function(e,t,i,r){return e.handleError(i,r),n.runOutsideAngular(function(){return n.onError.emit(r)}),!1}})}return _createClass(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,i){var r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+i,e,Xf,Zu,Zu);try{return r.runTask(a,t,n)}finally{r.cancelTask(a)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}(),Xf={};function Qf(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function Kf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Zf(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jf(e){e._nesting--,Qf(e)}var ep=function(){function e(){_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xh,this.onMicrotaskEmpty=new xh,this.onStable=new xh,this.onError=new xh}return _createClass(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,i){return e.apply(t,n)}}]),e}(),tp=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}return _createClass(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Gf.assertNotInAngularZone(),qf(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pe
1ndingCount-=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 e=this;if(this.isStable())qf(function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1});else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)}),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]}},{key:"addCallback",value:function(e,t,n){var i=this,r=-1;t&&t>0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(e){return e.timeoutId!==r}),e(i._didWork,i.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Zn(Gf))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e}(),np=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,ap.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||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(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ap.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e}();function ip(e){ap=e}var rp,ap=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),op=!0,sp=!1;function lp(){return sp=!0,op}function cp(){if(sp)throw new Error("Cannot enable prod mode after platform setup.");op=!1}var up=new Cn("AllowMultipleToken"),dp=function e(t,n){_classCallCheck(this,e),this.name=t,this.token=n};function hp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(t),r=new Cn(i);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=fp();if(!a||a.injector.get(up,!1))if(e)e(n.concat(t).concat({provide:r,useValue:!0}));else{var o=n.concat(t).concat({provide:r,useValue:!0},{provide:Po,useValue:"platform"});!function(e){if(rp&&!rp.destroyed&&!rp.injector.get(up,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");rp=e.get(pp);var t=e.get(Lf,null);t&&t.forEach(function(e){return e()})}(Vo.create({providers:o,name:i}))}return function(e){var t=fp();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(r)}}function fp(){return rp&&!rp.destroyed?rp:null}var pp=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,i,r=this,a=(n=t?t.ngZone:void 0,i={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===n?new ep:("zone.js"===n?void 0:n)||new Gf({enableLongStackTrace:lp(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),o=[{provide:Gf,useValue:a}];return a.run(function(){var t=Vo.create({providers:o,parent:r.injector,name:e.moduleType.name}),n=e.create(t),i=n.injector.get(kr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var e=a.onError.subscribe({next:function(e){i.handleError(e)}});n.onDestroy(function(){vp(r._modules,n),e.unsubscribe()})}),function(e,t,i){try{var a=((o=n.injector.get(Tf)).runInitializer
1s(),o.donePromise.then(function(){return Nc(n.injector.get(jf,"en-US")||"en-US"),r._moduleDoBootstrap(n),n}));return Vs(a)?a.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):a}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var o}(i,a)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=mp({},n);return function(e,t,n){var i=new Zd(n);return Promise.resolve(i)}(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,i)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(gp);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(u(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{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(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Zn(Vo))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e}();function mp(e,t){return Array.isArray(t)?t.reduce(mp,e):Object.assign(Object.assign({},e),t)}var gp=function(){var e=function(){function e(t,n,i,r,l){var c=this;_classCallCheck(this,e),this._zone=t,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var u=new a.a(function(e){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){e.next(c._stable),e.complete()})}),d=new a.a(function(e){var t;c._zone.runOutsideAngular(function(){t=c._zone.onStable.subscribe(function(){Gf.assertNotInAngularZone(),qf(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,e.next(!0))})})});var n=c._zone.onUnstable.subscribe(function(){Gf.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(u,d.pipe(Object(s.a)()))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,i=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=e instanceof Xu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(Hd),a=n.create(Vo.NULL,[],t||n.selector,r),o=a.location.nativeElement,s=a.injector.get(tp,null),l=s&&a.injector.get(np);return s&&l&&l.registerApplication(o,s),a.onDestroy(function(){i.detachView(a.hostView),vp(i.components,a),l&&l.unregisterApplication(o)}),this._loadComponent(a),a}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;){t.value.detectChanges()}}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;vp(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(If,[]).concat(this._bootstrapListeners).forEac
1h(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Zn(Gf),Zn(Vo),Zn(kr),Zn(Ku),Zn(Tf))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e}();function vp(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var yp=function e(){_classCallCheck(this,e)},bp=function e(){_classCallCheck(this,e)},_p={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},wp=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._compiler=t,this._config=n||_p}return _createClass(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,i=_slicedToArray(e.split("#"),2),r=i[0],a=i[1];return void 0===a&&(a="default"),n("zn8P")(r).then(function(e){return e[a]}).then(function(e){return kp(e,r,a)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=_slicedToArray(e.split("#"),2),i=t[0],r=t[1],a="NgFactory";return void 0===r&&(r="default",a=""),n("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[r+a]}).then(function(e){return kp(e,i,r)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Zn($f),Zn(bp,8))},e.\u0275prov=w({token:e,factory:e.\u0275fac}),e}();function kp(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var Cp=function(e){return null},xp=hp(null,"core",[{provide:Of,useValue:"unknown"},{provide:pp,deps:[Vo]},{provide:np,deps:[]},{provide:Hf,deps:[]}]),Sp=[{provide:gp,useClass:gp,deps:[Gf,Vo,kr,Ku,Tf]},{provide:Wd,deps:[Gf],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:Tf,useClass:Tf,deps:[[new ri,Df]]},{provide:$f,useClass:$f,deps:[]},Af,{provide:_d,useFactory:function(){return Ed},deps:[]},{provide:kd,useFactory:function(){return Ad},deps:[]},{provide:jf,useFactory:function(e){return Nc(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ii(jf),new ri,new oi]]},{provide:Ff,useValue:"USD"}],Mp=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)(Zn(gp))},e.\u0275mod=ie({type:e}),e.\u0275inj=k({providers:Sp}),e}()},fzPg:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}
1/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(n("wd/R"))},gRHU:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("2fFW"),r=n("NJ4a"),a={closed:!0,next:function(e){},error:function(e){if(i.a.useDeprecatedSynchronousErrorHandling)throw e;Object(r.a)(e)},complete:function(){}}},gVVK:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))},gekB:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),n=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,a){var o="";switch(r){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":o=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":o=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":o=a?"tunnin":"tuntia";break;case"d":return a?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":o=a?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return a?"kuukauden":"kuukausi";case"MM":o=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":o=a?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,a)+" "+o}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},gjCT:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};e.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(n("wd/R"))},hKrs:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0443_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u041c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u041c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",w:"\u0441\u0435\u0434\u043c\u0438\u0446\u0430",ww:"%d \u0441\u0435\u0434\u043c\u0438\u0446\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-\u0435\u0432":0===n?e+"-\u0435\u043d":n>10&&n<20?e+"-\u0442\u0438":1===t?e+"-\u0432\u0438":2===t?e+"-\u0440\u0438":7===t||8===t?e+"-\u043c\u0438":e+"-\u0442\u0438"},week:{dow:1,doy:7}})}(n("wd/R"))},hdsI:function(e){e.exports=JSON.parse('{"app":{"Welcome":"Willkommen","Notifications":"Benachrichtigungen","New":"Neu"},"mainMenu":{"Appointments":"Termine","Customers":"Kunden","Products":"Produkte","Orders":"Bestellungen","About":"\xdcber","Logout":"Abmelden"},"pageHeader":{"Dashboard":"\xdcbersicht","Customers":"Kunden","Products":"Produkte","Orders":"Bestellungen","NotFound":"Nicht gefunden","About":"\xdcber","Settings":"Einstellungen"},"home":{"NoWidgets1":"Keine Elemente zur Anzeige vorhanden. Gehe zu","NoWidgets2":"um die Anzeige zu konfigurieren","StatisticsTitle":"Irgendwas ganz Wichtiges"},"notFound":{"404":"404","pageNotFound":"Die angeforderte Seite wurde nicht gefunden","backToHome":"Zur\xfcck zur Startseite"},"settings":{"tab":{"Profile":"Profil","Preferences":"Einstellungen","Users":"Benutzer","Roles":"Rollen"},"header":{"UserProfile":"Benutzerprofil","UserPreferences":"Benutzereinstellungen","UserDepartments":"Benutzerabteilungen","UsersManagements":"Benutzerverwaltung","RolesManagement":"Rollenverwaltung"}},"preferences":{"ReloadPreferences":"Einstellungen aktualisieren:","ReloadPreferencesHint":"Vorgabeeinstellungen laden (lokale Einstellungen \xfcberschreiben)","Language":"Sprache:","Default":"Standard","English":"English","French":"Franz\xf6sisch","German":"Deutsch","Portuguese":"Portugiesisch","Arabic":"Arabisch","Korean":"Koreanisch","LanguageHint":"Die bevorzugte Anzeigesprache ausw\xe4hlen","HomePage":"Startseite:","Dashboard":"Dashboard","Customers":"Kunden","Products":"Produkte","Orders":"Bestellungen","About":"\xdcber","Settings":"Einstellungen","HomePageHint":"Die Standardseite zur Anzeige nach der Anmeldung w\xe4hlen","Theme":"Farbschema:","DefaultTheme":"Standard","CosmoTheme":"Cosmo","SolarTheme":"Solar","CeruleanTheme":"Cerulean","FlatlyTheme":"Rundweg","SketchyTheme":"Skizzenhaft","SlateTheme":"Schiefer","SpacelabTheme":"Weltraumlabor","SuperheroTheme":"Superheld","UnitedTheme":"Vereinigt","JournalTheme":"Tagebuch","LumenTheme":"Lumen","MintyTheme":"Minz","PulseTheme":"Impuls","ThemeHint":"Das bevorzugte Farbschema w\xe4hlen","DashboardStatistics":"Dashboard Statistiken:","DashboardStatisticsHint":"Zeigt das Demo-Statistik Element auf dem Dashboard","DashboardNotifications":"Dashboard Benachrichtigungen:","DashboardNotifications
1Hint":"Zeige Anwendungsbenachrichtigungen auf dem Dashboard","DashboardTodo":"Dashboard Beispielaufgaben:","DashboardTodoHint":"Zeigt das Beispielaufgaben Element auf dem Dashboard","DashboardBanner":"Dashboard Banner:","DashboardBannerHint":"Zeigt das Info-Banner Element auf dem Dashboard","ResetDefault":"Vorgabeeinstellungen","SetDefault":"Als Standard setzen"},"users":{"management":{"Search":"Benutzer suchen...","NewUser":"Neuer Benutzer","Edit":"Bearb.","Delete":"Entf.","EditUser":"Benutzer \\"{{name}}\\" bearbeiten","Title":"Titel","UserName":"Benutzername","FullName":"Vor- und Nachname","Email":"Email","Roles":"Rollen","PhoneNumber":"Telefon"},"editor":{"JobTitle":"Beruf: ","UserName":"Benutzername:","UserNameRequired":"Ein Benutzername ist erforderlich (mindestens 2, maximal 200 Zeichen)","Password":"Passwort:","PasswordHint":"Passworteingabe ist erforderlich, wenn der Benutzername ge\xe4ndert werden soll","CurrentPasswordRequired":"Aktuelles Passwort ist erforderlich","Email":"Email:","EmailRequired":"Email Adresse ist erforderlich (maximal 200 Zeichen)","InvalidEmail":"Angegebene Email-Adresse ist ung\xfcltig","ChangePassword":"Passwort \xe4ndern","CurrentPassword":"Aktuelles Passwort:","NewPassword":"Neues Passwort:","NewPasswordRequired":"Neues Passwort ist erforderlich (mindestens 6 Zeichen)","ConfirmPassword":"Passwort best\xe4tigen:","ConfirmationPasswordRequired":"Passwort Best\xe4tigung ist erforderlich","PasswordMismatch":"Die angegebenen Passw\xf6rter stimmen nicht \xfcberein","Roles":"Rollen:","FullName":"Vollst\xe4ndiger Name:","RoleRequired":" Rolle ist erforderlich","PhoneNumber":"Telefon #:","Enabled":"Aktiviert","Unblock":"Entsperren","Close":"Schliessen","Edit":"Bearbeiten","Cancel":"Abbrechen","Save":"Speichern","Saving":"Speichere..."}},"roles":{"management":{"Search":"Suche nach Rollen...","NewRole":"Neue Rolle","Edit":"Bearb.","Details":"Details","Delete":"Entf.","RoleDetails":"Rollen Details \\"{{name}}\\"","EditRole":"Rolle \\"{{name}}\\" bearbeiten","Name":"Name","Description":"Beschreibung","Users":"Benutzer"},"editor":{"Name":"Name:","Description":"Beschreibung:","RoleNameRequired":"Ein Rollenname ist erforderlich (mindestens 2, maximal 200 Zeichen)","SelectAll":"Alle ausw\xe4hlen","SelectNone":"Auswahl aufheben","Close":"Schliessen","Cancel":"Abbrechen","Save":"Speichern","Saving":"Speichere..."}},"notifications":{"Delete":"Benachrichtigung l\xf6schen","Pin":"Benachrichtigung anheften","Date":"Datum","Notification":"Benachrichtigung"},"todoDemo":{"management":{"Search":"Suche nach Aufgaben...","HideCompleted":"Abgeschlossene ausblenden","AddTask":"Aufgabe hinzuf\xfcgen","Delete":"Aufgabe l\xf6schen","Important":"Als wichtig markieren","Task":"Aufgabe","Description":"Beschreibung"},"editor":{"NewTask":"Neue Aufgabe","Name":"Name","TaskNameRequired":"Aufgabenname ist erforderlich","Description":"Beschreibung","Important":"Als wichtig markieren","AddTask":"Aufgabe hinzuf\xfcgen"}}}')},honF:function(e,t,n){!function(e){"use strict";var t={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},n={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};e.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u
11014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(e){return e.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},week:{dow:1,doy:4}})}(n("wd/R"))},iEDd:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(n("wd/R"))},iYuL:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%
1d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n("wd/R"))},ihId:function(e){e.exports=JSON.parse('{"signal":{"Connect":"Connect Signal","PublicSignal":"Public Signal","PrivateSignal":"Private Signal"},"app":{"Welcome":"Welcome","Notifications":"Notifications","New":"New"},"titles":{"Details":"Current open trades","DetailsHistory":"Trades history","Collapse":"Balans/Gain","Balance":"Balance","Equity":"Equity","Gain":"Gain","Deposits":"Deposits","Withdrawals":"Withdrawals","Statistic":"Profit for the entire trading time ","StatisticNow":"Equity for all open current deals","StatisticSignal":"Profit for the entire time of copying signals","StatisticNowSignal":"Equity for all open current trades of signals","Delete":"Delete account","Trades":"Price Charts","Sort":"Sort","Description":"Description","Edit":"Edit","Save":"Save","Cancel":"Cancel","MainHeader":"The client for copying and placing signals can be downloaded","MainAndroid":"Android version here","MainHere":"here","MainUrlMT5":"https://www.mql5.com/en/market/product/78953","MainUrlMT4":"https://www.mql5.com/en/market/product/106509","Subscribers":"Subscribers","Loading":"Loading","NoProducts":"No products available","NoProductsMessage":"There are currently no products to display. Please check back later.","ChartDensity":"Chart Density","ChartSettings":"Chart Settings","High":"High","Medium":"Medium","Low":"Low","VeryLow":"Very Low","AdaptiveSampling":"Adaptive Sampling"},"instruction":{"subtitle":"Complete guide for using our trading platform","text":"<p><b>1.</b> The button to hide all graphs, for a more compact display</p><p><b>2.</b> Updating all graphs, by default, graphs are updated automatically every 5 minutes</p><p><b>3.</b> The name of EA\'s signal, as well as a link to the signal at https://www.mql5.com. These values \u200b\u200bare optional and are specified in the ForexVisible client parameters: Name, Url in the MetaTrader 5 terminal</p><p><b>4.</b> Total number of trading days</p><p><b> 5.</b> Changes the order of the account on the site up, chart position is saved automatically</p><p><b>6.</b> Changes the order of the account on the site down, chart position is saved automatically </p><p><b>7.</b> Opens a profit chart for each symbol for entire trading time</p><p><b>8.</b> Opens a table of all current open trades</p><p><b>9.</b> Delete your account, but if you have not disconnected the ForexVisible client in the MetaTrader 5 terminal, account will not be deleted</p><p><b>10. </b> The button to hide the chart</p><p><b>11.</b> Chart of the current balance and funds in the account</p><p><b>12.</b> The main table for displaying balance, funds, etc., is updated every second by default</p><p><b>13.</b> Table of profit or loss for each month separately</p>"},"products":{"subtitle":"Discover our premium trading products and tools","phythonML":"<p><b> This multi-currency Expert Advisor uses 28 currency pairs. For forecasts, the adviser uses models trained by the machine learning algorithm in the Python language environment. </b></p><p>All signals: <a href=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' title=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' target=\'_blank\' rel=\'noopener\'> https://www.mql5.com/en/signals/author/11breath11?orderby=gain </a></p><p>The EA can work with two time intervals H1 and H2 together or separately parameters in the Use Time Intervals group</p><p>A big plus of this EA is that it can use several packages of models trained according to different criteria for each pair separately, now it is possible to select 5 different packages of models together or separately, in the future these models will be improved and added with the next update of the EA.</p><p>The default settings are for the EURUSD H1 currency pair, and use Models2</p><ul><li>Before testing in the Strategy Tester or installing the Expert Advisor on a chart, if you want to speed up the testing process, set the ShowTradePanel Expert Advisor setting to false</li></ul><ul><li>In the strategy tester, set the trading mode to \'Only open prices\', this will not greatly affect the testing results, but will noticeably speed up the process.</li></ul><ul><li>Also, for quick testing, you can disable the visualization of the strategy tester</li></ul><ul><li>At the end of testing, in the log tab, you can view information on the profitability and maximum drawdown of each pair separately</li></ul><div><div><div></div></div></div><div><p>Description of some EA settings</p></div><ul><li>UseSameLotSizeForAllPairs - the ability to select the lot size for each pair separately, true by default, one lot size for all specified by the parameter above</li><li>UseMaxAllTakeProfitProcent - includes the global take profit as a percentage of the current profit specified in the MaxAllTakeProfitProcent parameter, after its execution all current orders are closed. Test only on all ticks or 1 minute OHLC</li><li>UseMaxStopLossProcent - turns on the global stop loss as a percentage of the current profit specified in the MaxAllStopLossProcent parameter, after it is executed, all current orders are closed. Test only on all ticks or 1 minute OHLC</li><li>IsDynamicLot - enable automatic generation of the lot size depending on the balance or free margin</li><li>is_koef_for_each <span> </span> - if true, then <span> </span> <span> lot size is formed from the balance for each currency pair separately, if false, then from the total balance <span> </span> <span> or free margin </span> </span></li><li>koef <span> </span> - coefficient for <span> </span> <span> formation of the lot size, the larger, the greater the risks </span></li><li>from <span> </span> - <span> </span> <span> formation of the lot size depending on the balance or free margin </span></li><li><span>
1 CountOfGrid - number of pending orders in the grid </span></li><li><span> GridDistanseBegin - the beginning of the first pending order in the grid from the current price </span></li><li><span> GridDistanseEnd - end of the last pending order in the grid from the current price </span></li><li>GridKoefBegin, GridKoefEnd - distribution of coefficients for multiplying the price of a pending order in the grid</li></ul>","titlePhythonML":"This multi-currency Expert Advisor uses 28 currency pairs. For forecasts, the adviser uses models trained according to the algorithm machine learning in the python environment.","buyPhythonML":"Download","urlPhythonML":"https://www.mql5.com/en/market/product/63791","titleMultiBolbands":"This multi-currency Expert Advisor uses 28 currency pairs. Forecasts are based on two indicators: Bollinger Bands and DEMA.","MultiBolbands":"<p>This multi-currency Expert Advisor uses 28 currency pairs. Forecasts are based on two indicators: Bollinger Bands and DEMA.</p><p><span>All signals: </span><a href=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' title=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' target=\'_blank\' rel=\'noopener\'>https://www.mql5.com/en/signals/author/11breath11?orderby=gain</a></p><p><a href=\'https://drive.google.com/drive/folders/1cn-ECd4fOu9stERNUjTEvhBVCif7SPBm\' rel=\'nofollow noopener\' title=\'https://drive.google.com/drive/folders/1cn-ECd4fOu9stERNUjTEvhBVCif7SPBm\' target=\'_blank\'>Settings for MultiBolbands</a></p><p>The EA works with the MultiBolbandsTrainer program, which I wrote for speedy optimization of the EA, which can be downloaded <a href=\'/go?link=https://drive.google.com/drive/folders/1cn-ECd4fOu9stERNUjTEvhBVCif7SPBm\' title=\'https://drive.google.com/drive/folders/1cn-ECd4fOu9stERNUjTEvhBVCif7SPBm\' target=\'_blank\' rel=\'noopener\'>here</a></p><p>The default settings are for the EURUSD H1 Algorithm1 currency pair.</p><ul><li>Optimization since 2016</li></ul><ul><li>Before testing in the Strategy Tester or installing the Expert Advisor on a chart, if you want to speed up the testing process, set the ShowTradePanel Expert Advisor setting to false</li></ul><ul><li>In the strategy tester, set the trading mode to \'Only open prices\', this will not affect the testing results, but will noticeably speed up the process.</li></ul><ul><li>Preferred Broker Roboforex</li></ul><div><p>set files will be updated by me, if possible, always download the latest version, stay tuned</p><p>These files are optimized for the Roboforex broker, it is advisable for other brokers to do the optimization themselves, as there are differences in the trading histories for different brokers.</p><p>Optimization can be carried out only at opening prices, to speed up the process.</p><p>For greater profitability, you can enable the parameter auto lot increase depending on profit isDynamicLot = true, koef = 0.5, but watch out for risks, be sure to check the EA in the strategy tester with such parameters before using it.</p></div><ul><li>LotSize - lot size</li><li>UseSameLotSizeForAllPairs - the ability to select the lot size for each pair separately, true by default, one lot size for all specified by the parameter above</li><li>TakeProfit - if the value is 0, then the deal will be closed according to the algorithm</li><li>StopLoss <span>- if the value is 0, then the deal will be closed according to the algorithm</span></li><li>UseMaxAllTakeProfitProcent - includes the global take profit as a percentage of the current profit specified in the MaxAllTakeProfitProcent parameter, after its execution all current orders are closed. Test only on all ticks or 1 minute OHLC</li><li>UseMaxStopLossProcent - turns on the global stop loss as a percentage of the current profit specified in the MaxAllStopLossProcent parameter, after it is executed, all current orders are closed. <span>Test only on all ticks or 1 minute OHLC</span></li><li>MaxProcentDropDown - automatic sequential closing of positions if the drawdown exceeds the percentage specified in this parameter, if 0 is specified, this function is disabled by default (for example, MaxProcentDropDown = 30 means if the drawdown exceeds 30%, positions will be gradually closed until the drawdown becomes less than 30%)</li><li>CountOrders - maximum number of open trades for one currency pair</li><li>IsDynamicLot - enable automatic generation of the lot size depending on the balance or free margin</li><li>is_koef_for_each - if true, then <span>the lot size is formed from the balance for each currency pair separately, if false, then from the total balance <span>or free margin</span></span></li><li>koef - coefficient for <span>forming the lot size, the more, the greater the risks</span></li><li>from - <span>formation of the lot size depending on the balance or free margin</span></li><li>CurrencyName - the name of the currency pair of the current broker</li><li>Active - whether to use this currency pair, or disable</li><li>bands_period - Bollinger Bands period</li><li>dema_period - DEMA period</li><li>bands_shift - shift relative to the Bollinger Bands chart</li></ul>","buyMultiBolbands":"Download","urlMultiBolbands":"https://www.mql5.com/en/market/product/56214","buyForexVisibleDemo":"Download","buyForexVisible":"Download","titleForexVisible":"This client utility is designed for the convenience of monitoring your account on the site https://forexvisible.com","ForexVisible":"<p><b>This client utility is intended for sharing and copying signals, as well as for monitoring your Expert Advisor on the site <a href=\'/go?link=https://forexvisible.com/\' rel=\'nofollow\' title=\'https://forexvisible.com/\' target=\'_blank\'>https://forexvisible.com</a> .</b></p><p> With this utility, you can also easily copy trading between terminals by placing one terminal as a signal and subscribe to this signal in another terminal.</p><p> <span>All signals: <span> </span></span> <a href=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' title=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' target=\'_blank\'>https://www.mql5.com/en/signals/author/11breath11?orderby=gain</a></p><p></p><p> <b>The main and most powerful feature of this utility turned out to be the following function, the ability to automatically take profit from selected signals for copying on the best currency pairs, step by step, as this process automatically occurs:</b></p><p></p><ul><li> if we have a profit as a result of copying signals for all transactions, for example, 5% of the deposit, we take it away by closing all transactions</li></ul><ul><li> we select the best N pairs in trading for all selected signals, this is done by sorting, for example, by the profit of each pair in the signal and selecting the first N pairs then for copying</li></ul><ul><li> we copy again all transactions from signals from a certain date set in advance in the tab of the Chek Signals utility. That is, we simulate that we missed all transactions from this date and we need to copy them all over again</li></ul><p></p><p> <b>Thus, we can install several robots on a demo account, for example, we make signals from them using my utility, and already on a real account, again using my utility, we copy only the best signals for the most profitable currency pairs from these signals, and take peri
1odically in automatic mode profit from all our signals.</b></p><p> <b>In this way, we minimize risks and trade the best signals and currency pairs on one real account, without thinking about the risks on demo accounts, which are only needed as donors to copy trades to a real account.</b></p><p> The site allows you to manage subscriptions to other signals of other users and post your signals to the public, as well as view graphs of balance, drawdown, and profit for each pair.</p><p> <b>Also with this utility you can copy my best signals to real accounts:</b></p><p> You can also check and correct missed transactions when copying. Missed transactions may occur when the connection with the site is lost, the Internet is lost or when the terminal is closed, as well as transactions prohibited for copying for these currency pairs.</p><p> For client use:</p><p></p><ul><li> register on the site <span> </span> and remember your username and password</li></ul><ul><li> add the link in the MetaTrader 5 terminal to allowed - Settings -> Expert Advisors -> Allow WebRequest for the following URLs: -> <a href=\'/go?link=https://forexvisible.com/\' rel=\'nofollow\' title=\'https://forexvisible.com/\' target=\'_blank\'>https://forexvisible.com</a></li></ul><ul><li> put the client as a regular adviser on any available or new open chart where there is no other adviser, specifying your username and password for registering on the site in the User and Password parameters</li></ul><div><p> Description of parameters:</p><p></p><ul><li> name- <span> </span> optional parameter, the name of the account or adviser, displayed on the site</li></ul><ul><li> URL- <span> </span><span> </span> optional parameter, link to the EA\'s signal, if any</li></ul><ul><li> user- <span> </span> required parameter, registration login on the site</li></ul><ul><li> password- <span> </span> required parameter, password for registration on the site</li></ul><ul><li> TimeUpdateProfitSec - <span> </span> time to update balance, funds, etc., by default every second</li></ul><ul><li> TimeUpdateBalanceSec - time to update charts on the site, by default every 300 seconds. The value must be at least 300 seconds to limit the load on the site, with a large number of users</li></ul></div>","urlForexVisible":"https://www.mql5.com/en/market/product/78953","pythonLSTM":"<p><b>This multi-currency Expert Advisor uses 28 currency pairs. For forecasts, the EA <b>uses</b> recurrent neural networks of the LSTM type, models trained in the python language environment, and imported into the EA using a new function in mql5 to load ONNX models <a href=\'https://www.mql5.com/ru/docs/onnx\' title=\'https://www.mql5.com/ru/docs/onnx\' target=\'_blank\' rel=\'noopener\'>https://www.mql5.com/en/docs/onnx</a></b></p><p>All signals: <a href=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' title=\'https://www.mql5.com/en/signals/author/11breath11?orderby=gain\' target=\'_blank\' rel=\'noopener\'>https://www.mql5.com/ru/signals/author/11breath11?orderby=gain</a></p><p>Finally it happened, mql5 developers have recently introduced the ability to load <b><a href=\'https://www.mql5.com/ru/docs/onnx\' title=\'https://www.mql5.com/ru/docs/onnx\' target=\'_blank\' rel=\'noopener\'>ONNX</a></b> models in the mql5 language. And this format supports most modern libraries for training neural networks, and this now opens up an unlimited number of possibilities for using artificial intelligence in trading.</p><p>Hurry up to be the first to use this powerful tool in trading, because soon neural network advisors will be out of competition, now neural networks and artificial intelligence are developing by leaps and bounds.</p><p>Why is this Expert Advisor better than the rest on neural networks in the mql5 market? - Previously, it was generally not possible to use neural networks directly in the mql5 language, and all other Expert Advisors are mainly made on self-made neural networks, which cannot compete with neural networks trained using modern machine learning libraries that have been developed and improved over the course of time. many years and developed by a huge number of developers.</p><p>By default, the EA uses 2 models simultaneously from the available ones, trained in different ways, and together they give a more accurate price movement prediction result than
1individually.</p><p>In the future, these models will be improved and added with the next update of the adviser.</p><p><b>By default, the Expert Advisor does not use all available currency pairs out of 28, but only profitable ones in testing starting from 2022. The profitability of currency pairs can be viewed in the strategy tester after the test in the \'Journal\' tab, and unprofitable pairs can be disabled as needed in the Expert Advisor settings,</b><span><b>Active option. Before the test, set</b><span><b>Active = True for all pairs and after the test, turn off the unprofitable pairs <span>Active = False, and you can start trading.</span></b></span></span></p><ul><li>Before testing in the Strategy Tester or installing the Expert Advisor on a chart, if you want to speed up the testing process, set the ShowTradePanel Expert Advisor setting to false</li></ul><ul><li>In the strategy tester, set the trading mode to \'Only open prices\', this will not greatly affect the testing results, but will noticeably speed up the process.</li></ul><ul><li>Also, for quick testing, you can disable the visualization of the strategy tester</li></ul><ul><li>At the end of testing, in the log tab, you can view information on the profitability and maximum drawdown of each pair separately</li></ul><div><div><div></div></div></div><div><p>Description of some EA settings</p></div><ul><li>UseSameLotSizeForAllPairs - the ability to select the lot size for each pair separately, true by default, one lot size for all specified by the parameter above</li><li>UseMaxAllTakeProfitProcent - includes the global take profit as a percentage of the current profit specified in the MaxAllTakeProfitProcent parameter, after its execution all current orders are closed. Test only on all ticks or 1 minute OHLC</li><li>UseMaxStopLossProcent - turns on the global stop loss as a percentage of the current profit specified in the MaxAllStopLossProcent parameter, after it is executed, all current orders are closed. Test only on all ticks or 1 minute OHLC</li><li>IsDynamicLot - enable automatic generation of the lot size depending on the balance or free margin</li><li>is_koef_for_each - if true, then <span>lot size is formed from the balance for each currency pair separately, if false, then from the total balance <span>or free margin</span></span></li><li>koef - coefficient for <span>formation of the lot size, the larger, the greater the risks</span></li><li>from - <span>formation of the lot size depending on the balance or free margin</span></li><li><span>CountOfGrid - number of pending orders in the grid</span></li><li><span>GridDistanseBegin - the beginning of the first pending order in the grid from the current price</span></li><li><span>GridDistanseEnd - end of the last pending order in the grid from the current price</span></li><li>GridKoefBegin, GridKoefEnd - distribution of coefficients for multiplying the price of a pending order in the grid</li></ul>","titlePythonLSTM":"This multi-currency Expert Advisor uses 28 currency pairs. For forecasts, the EA uses recurrent neural networks of the LSTM type, models trained in the python language environment, and imported into the EA using a new function in mql5 to load ONNX models","buyPythonLSTM":"Download","urlPythonLSTM":"https://www.mql5.com/en/market/product/97276","QBotAI":"<p><span><span> </span></span><span><span>Q-learning allows the robot to learn from experience through trial and error.</span></span><span> </span><span><span>The robot constantly interacts with the trading environment, makes trade transactions and receives a reward or penalty depending on the result of the transaction.</span></span><span> </span><span><span>Over time, QBotAI learns to choose the optimal actions to maximize the reward received.</span></span><span><span> </span></span></p> <p><span><span> </span></span><span><span>For example, the classic Atari game Breakout was used to train AI to play the game using Q-learning.</span></span><span> </span><span><span>At first, the agent acted randomly, but with practice, he learned to optimally move the racket to hit the ball and prevent it from falling.</span></span><span> </span><span><span>Thus, AI was able to reach and even surpass human levels in this game thanks to reinforcement learning.</span></span><span><span> </span></span></p> <p><span><span> </span></span><span><span>This multi-currency expert uses 28 currency pairs.</span></span><span> </span><span><span>For forecasts, the advisor uses recurrent neural networks of the LSTM type, models trained in the Python language environment, and imported into the advisor using a new function in mql5 for loading ONNX models</span></span><span><span> </span></span></p> <p><span><span> </span></span><span><span>
1In addition to the main model UseModel1_QLearning, the advisor has an auxiliary model UseModel2 which is trained in the usual standard way, and if you use two models simultaneously (these are the default settings), then the result of a decision to sell or buy will be made as the sum of these two models at once, which is much more accurate</span></span><span> </span><span><span>makes advisor predictions than using models separately.</span></span><span><span> </span></span></p> <p><span><span> </span></span><span><span>Deposit acceleration signal: <a href=\'https://www.mql5.com/en/signals/2178571\' title=\'https://www.mql5.com/en/signals/2178571\' target=\'_blank\'>https://www.mql5.com/en/signals/2178571</a></span></span><span><span> </span></span></p> <p><span><span> </span></span><span><span>The profitability of currency pairs can be viewed in the strategy tester after the test in the \'Journal\' tab, and unprofitable pairs can be disabled as needed in the advisor settings, or you can select the most profitable ones using the Active option.</span></span><span> </span><span><span>Before the test, set Active = True for all pairs and after the test, disable unprofitable pairs Active = False, and you can start trading.</span></span><span><span> </span></span></p> <p><span><span> </span></span><span><span>By default, the most profitable 9 pairs out of 28 are selected, but you can choose many more currency pairs, just select only the profitable ones based on the test results</span></span></p><b><span><span>Also an important point: by default, the advisor closes all currency pairs when trading and opens again if it has reached a profit of 1% of the balance, setting UseMaxAllTakeProfitProcent and MaxAllTakeProfitProcent, you need to experiment with this setting in real trading if you want quick profits and active actions of the advisor when trading it</span></span><span> </span><span><span>can be turned on, and judging by back tests, the profit will be greater if it is turned off over long trading distances.</span></span></b> <p><span><span></span></span><span><span> </span></span></p> <p><b><span><span> </span></span><span><span> <span>The advisor was trained for only 4 months in 2022</span></span></span></b></p> <div> <ul> <li><span>Before testing, it is advisable to select the EURUSD currency pair and the H1 hour period</span><br></li> </ul> <ul> <li>Also, for quick testing, you can turn off the visualization of the strategy tester.</li> </ul> <ul> <li>At the end of testing, in the log tab, you can view information on the profitability and maximum drawdown of each pair separately</li> </ul> </div> <div> <ol></ol> </div> <div> Description of some of the EA settings </div> <div> <ul> <li>UseSameLotSizeForAllPairs - the ability to select the lot size for each pair separately, true by default, one lot size for all specified by the parameter above</li> <li><span><span>UseMaxAllTakeProfitProcent - enables the global take profit as a percentage of the current profit specified in the MaxAllTakeProfitProcent parameter, after its execution all current orders are closed.</span></span><span><span> </span></span><span><span>Test only on all ticks or 1 minute OHLC</span></span><br></li> <li><span><span><span>UseMaxStopLossProcent - turns on the global stop loss as a percentage of the current profit specified in the MaxAllStopLossProcent parameter, after its execution, all current orders are closed.</span></span><span> </span><span><span>Test only on all ticks or 1 minute OHLC</span></span></span><span></span><br></li> <li>IsDynamicLot - enable automatic formation of the lot size depending on the balance or free margin</li> <li>is_koef_for_each - if true, then the lot size is formed from the balance for each currency pair separately, if false, then from the total balance or free margin</li> <li>koef - coefficient for forming the lot size, the larger, the greater the risks</li> <li>from - formation of the lot size depending on the balance or free margin</li> <li>CountOfGrid - the number of pending orders in the grid</li> <li>GridDistanseBegin - the beginning of the first pending order in the grid from the current price</li> <li>GridDistanseEnd - end of the last pending order in the grid from the current price</li> <li>GridKoefBegin, GridKoefEnd - distribution of coefficients for multiplying the price of a pending order in the grid</li></ul> </div>","titleQBotAI":"QBotAI is a trading robot designed to automate trading in financial markets. It uses a reinforcement learning technique called Q-learning to optimize its trading strategies","buyQBotAI":"Download","urlQBotAI":"https://www.mql5.com/en/market/product/113435","IntervalAI":"<p>This multi-currency expert advisor uses 28 currency pairs. For predictions, the advisor uses recurrent neural networks of the LSTM type, models trained in the Python language environment, and imported into the advisor using a new function in MQL5 for loading ONNX models.</p> <div class=\'code\'> <p>Live signal: <a href=\'https://www.mql5.com/en/signals/2258349\' title=\'https://www.mql5.com/ru/signals/2258349\' target=\'_blank\'>https://www.mql5.com/en/signals/2258349</a></p> <p><span>Settings file for testing the advisor: <a href=\'https://c.mql5.com/31/1189/QIntervalAIPairs21Proc5.set\' title=\'https://c.mql5.com/31/1189/QIntervalAIPairs21Proc5.set\' target=\'_blank\'>IntervalAIPairs21Proc5.set</a> </span><br/></p> <p><a href=\'https://www.mql5.com/en/signals/2258349\' title=\'https://www.mql5.com/ru/signals/2258349\' target=\'_blank\'> </a> </p> </div> <p>The algorithm of the advisor works simultaneously with two timeframes H15 and H1. Separate neural network models have been trained for each of the 28 pairs for both timeframes. The idea is that the advisor places orders only when the signals from the neural network models for the H15 timeframe c
1oincide with the neural network model signals for the H1 timeframe. But this is the default main mode, you can also trade separately on the H15 or H1 timeframe and simultaneously without matching signals, as in the main mode.</p> <p>Here\u2019s how to configure these 4 modes in the advisor in the <span>Use Time Intervals</span> settings group:</p> <p>1) By default, H1 = true, M15 = true, UseM15IfEqualH1 = true - mode when trading is done only on the M15 interval if there are matching signals from the neural network models with signals on the H1 interval.</p> <p><span>2) H1 = true, M15 = true, UseM15IfEqualH1 = false - mode when trading is done on the M15 and H1 intervals without considering matching signals from the neural network models with signals on the H1 interval.</span></p> <p><span>3) H1 = true, M15 = <span>false</span>, UseM15IfEqualH1 = false - mode when trading is done only on the H1 interval.</span></p><span>4) H1 = false, M15 =<span> true</span></span><span><span> </span></span><span>, UseM15IfEqualH1 = false - mode when trading is done only on the M15 interval.</span> <p></p> <p></p> <p></p> <p><span><span></span></span></p> <p>The profitability of currency pairs can be viewed in the strategy tester after the test in the \'Journal\' tab, and unprofitable pairs can be disabled as needed in the advisor settings, or the most profitable ones can be selected using the <span>Active</span> option. Before testing, set <span>Active = True</span> for all pairs, and after the test, disable unprofitable pairs by setting <span>Active = False</span>, and you can start trading.</p> <p>By default, the 9 most profitable pairs out of 28 are selected, but the best results will be shown by the advisor if you load the settings file <span><a href=\'https://c.mql5.com/31/1189/QIntervalAIPairs21Proc5.set\' title=\'https://c.mql5.com/31/1189/QIntervalAIPairs21Proc5.set\' target=\'_blank\'>IntervalAIPairs21Proc5.set</a></span></p> <p>The advisor was trained from 2016 to 2023, and testing in the strategy tester should be done starting from 2023, as the advisor knew nothing about the historical data during training.</p> <ul> <li>Before testing, it is advisable to choose the EURUSD currency pair and the M15 timeframe.</li> </ul> <ul> <li>In the strategy tester, set the trading mode to \'Open prices only\', which will not significantly affect the testing results but will noticeably speed up the process.</li> </ul> <ul> <li>Also, to speed up testing, you can disable the strategy tester\u2019s visualization.</li> </ul> <ul> <li>At the end of the test, you can view the profitability and maximum drawdown of each pair separately in the \'Journal\' tab.</li> </ul> <div> <div> <div> <ol></ol> </div> </div> </div> <div> <p>Description of some advisor settings</p> </div> <ul> <li>UseSameLotSizeForAllPairs - option to choose the lot size for each pair separately, by default true, one lot size for all, specified by the above parameter.</li> <li>UseMaxAllTakeProfitProcent - enables global take profit in percentage of current profit specified in the MaxAllTakeProfitProcent parameter, after which all current orders are closed. Test only on all ticks or 1 minute OHLC.</li> <li>UseMaxStopLossProcent - enables global stop loss in percentage of current profit specified in the MaxAllStopLossProcent parameter, after which all current orders are closed. Test only on all ticks or 1 minute OHLC.</li> <li>IsDynamicLot - enable automatic lot size formation depending on the balance or free margin.</li> <li>is_koef_for_each - if true, the lot size is formed based on the balance for each currency pair separately, if false, then based on the total balance or free margin.</li> <li>koef - coefficient for forming the lot size, the higher it is, the greater the risks.</li> <li>from - forming the lot size depending on the balance or free margin.</li> <li>CountOfGrid - number of pending orders in the grid.</li> <li>CountGridBars - number of recent bars in history, from which the lowest and highest price is found for calculating the interval between grid orders: MaxPrice and MinPrice.</li> <li>GridKoef - the distance between pending orders in the grid is calculated using the formula (MaxPrice - MinPrice)/ GridKoef.</li> <li>GridKoefBegin, GridKoefEnd - distribution of coefficients for multiplying the price of a pending order in the grid.</li> </ul> <p><br/></p>","titleIntervalAI":"This multi-currency expert advisor uses 28 currency pairs. For predictions, the advisor uses recurrent neural networks of the LSTM type, models trained in the Python language environment, and imported into the advisor using a new function in MQL5 for loading ONNX models.","buyIntervalAI":"Download","urlIntervalAI":"https://www.mql5.com/en/market/product/123612","omegaAI":"<p><b><span><span>This multicurrency expert uses 29 currency pairs, including gold.</span></span><span><span>For forecasts, the advisor uses recurrent neural networks of the LSTM type, models trained in the Python language environment using the reinfor
1cement learning algorithm.</span></span></b></p><div><p><a href=\'https://www.mql5.com/en/signals/2297251\'>Live Signal Aggressive</a></p><p><span><span>The advisors have many settings, in fact, it is a whole strategy designer, so that you do not get lost in the settings and results of their application, I have my own website forexvisible.com (just paste the name into the browser to find my site), on this site you can see real trading with different settings of this advisor, there is an update every 10 seconds of trading results.</span></span><span><span>In the \'description\' tab on this site, you can download the settings for the signal you like from this advisor</span></span></p></div><p><span><span> The advisor uses 4 different packages of neural network models trained for 29 pairs, the first two models work on the H1 interval and the other two work with the M15 interval.</span></span></p><p><span>These models can be used either individually or together, it is recommended to select a pair of models, i.e. any 2 together or 4 at once, since the selected signals to buy or sell will be summed up and if, for example, one model gives a signal to buy, and the other to sell, the adviser then ignores such a signal and as a result, greater accuracy of forecasts is achieved.</span></p><p><span><span> You can see the profitability of currency pairs in the strategy tester after the test in the \'Journal\' tab, and disable unprofitable pairs as needed in the advisor settings, or select the most profitable, the Active option.</span></span></p><p><span>By default, the most profitable 8 pairs out of 29 are selected for the UseModel1_QLearning + UseModel3_QLearning_M15 models, you can safely add gold trading to these 8 pairs, it is disabled by default</span></p><p><span>The advisor was trained from 2023 to 2024, testing in the strategy tester should be done from 2023</span></p><ul><li>Before testing, it is advisable to choose the EURUSD currency pair and the H1 timeframe.</li></ul><ul><li>In the strategy tester, set the trading mode to \'<span>1 minute OHLC</span>\'.</li></ul><ul><li>Also, to speed up testing, you can disable the strategy tester’s visualization.</li></ul><ul><li>At the end of the test, you can view the profitability and maximum drawdown of each pair separately in the \'Journal\' tab.</li></ul><div><p>Description of some advisor settings</p></div><ul><li>UseSameLotSizeForAllPairs - option to choose the lot size for each pair separately, by default true, one lot size for all, specified by the above parameter.</li><li>UseMaxAllTakeProfitProcent - enables global take profit in percentage of current profit specified in the MaxAllTakeProfitProcent parameter, after which all current orders are closed. Test only on all ticks or 1 minute OHLC.</li><li>UseMaxStopLossProcent - enables global stop loss in percentage of current profit specified in the MaxAllStopLossProcent parameter, after which all current orders are closed. Test only on all ticks or 1 minute OHLC.</li><li>IsDynamicLot - enable automatic lot size formation depending on the balance or free margin.</li><li>is_koef_for_each - if true, the lot size is formed based on the balance for each currency pair separately, if false, then based on the total balance or free margin.</li><li>koef - coefficient for forming the lot size, the higher it is, the greater the risks.</li><li>from - forming the lot size depending on the balance or free margin.</li><li>CountOfGrid - number of pending orders in the grid.</li><li>CountGridBars - number of recent bars in history, from which the lowest and highest price is found for calculating the interval between grid orders: MaxPrice and MinPrice.</li><li>GridKoef - the distance between pending orders in the grid is calculated using the formula (MaxPrice - MinPrice)/ GridKoef.</li><li>GridKoefBegin, GridKoefEnd - distribution of coefficients for multiplying the price of a pending order in the grid.</li></ul>","titleOmegaAI":"This multicurrency expert uses 29 currency pairs, including gold. For forecasts, the advisor uses recurrent neural networks of the LSTM type, models trained in the Python language environment using the reinfor
1cement learning algorithm","buyOmegaAI":"Download","urlOmegaAI":"https://www.mql5.com/en/market/product/134265","alphaAI":"<p>This multicurrency expert uses 29 currency pairs.<span> </span>For forecasts, the advisor uses recurrent neural networks of the LSTM type, models trained in the Python language environment using the reinforcement learning algorithm.</p><p><span><span></span></span></p><p><b><span><span></span></span><span><span></span></span></b></p><p><span><span>The advisor uses 4 different packages of neural network models trained for 29 pairs, the first two models work on the H1 interval and the other two work with the M15 interval.</span></span><span><span></span></span></p><p><span><span></span></span></p><p>These models can be used in different combinations for each of the 29 currency pairs separately. By default, they are already configured for the period from 2025 to the present. However, you can use my AlphaAITrainer software to quickly configure the most optimal combination of models for each currency pair. The video will provide instructions on how to do this.</p><p>Default settings are selected that are better not to use, at the moment the best settings <a title=\'\u0421\u043a\u0430\u0447\u0430\u0442\u044c AlphaAIGridPairs10.set\' href=\'https://c.mql5.com/31/1535/AlphaAIGridPairs10.set\' target=\'_blank\'>AlphaAIGridPairs10.set</a> <a title=\'\u0421\u043a\u0430\u0447\u0430\u0442\u044c AlphaAIGridPairs10_NoGold.set\' href=\'https://c.mql5.com/31/1535/AlphaAIGridPairs10_NoGold.set\' target=\'_blank\'>AlphaAIGridPairs10_NoGold.set</a></p><p>To reduce the risk, decrease the value of the \'koef\' parameter in the settings.</p><p><span>The deposit should be from 1000<span><span>$</span></span>, or use a cent account, then 10$ will be enough.</span><span> </span>You can also use a smaller deposit, but be sure to do a back test and evaluate the drawdown</p><p>The advisor was trained from 2023 to 2025, testing in the strategy tester should be done from 2025</p><ul><li>Before testing, it is advisable to choose the EURUSD currency pair and the H1 timeframe.</li></ul><ul><li>In the strategy tester, set the trading mode to \'<span> </span><span>1 minute OHLC</span>\'.</li></ul><ul><li>Also, to speed up testing, you can disable the strategy tester\u2019s visualization.</li></ul><ul><li>At the end of the test, you can view the profitability and maximum drawdown of each pair separately in the \'Journal\' tab.</li></ul><div><div><div><ol></ol></div></div></div><div><p>Description of some advisor settings</p></div><ul><li>UseSameLotSizeForAllPairs - option to choose the lot size for each pair separately, by default true, one lot size for all, specified by the above parameter.</li><li>UseMaxAllTakeProfitProcent - enables global take profit in percentage of current profit specified in the MaxAllTakeProfitProcent parameter, after which all current orders are closed. Test only on all ticks or 1 minute OHLC.</li><li>UseMaxStopLossProcent - enables global stop loss in percentage of current profit specified in the MaxAllStopLossProcent parameter, after which all current orders are closed. Test only on all ticks or 1 minute OHLC.</li><li>IsDynamicLot - enable automatic lot size formation depending on the balance or free margin.</li><li>is_koef_for_each - if true, the lot size is formed based on the balance for each currency pair separately, if false, then based on the total balance or free margin.</li><li>koef - coefficient for forming the lot size, the higher it is, the greater the risks.</li><li>from - forming the lot size depending on the balance or free margin.</li><li>CountOfGrid - number of pending orders in the grid.</li><li>CountGridBars - number of recent bars in history, from which the lowest and highest price is found for calculating the interval between grid orders: MaxPrice and MinPrice.</li><li>GridKoef - the distance between pending orders in the grid is calculated using the formula (MaxPrice - MinPrice)/ GridKoef.</li><li>GridKoefBegin, GridKoefEnd - distribution of coefficients for multiplying the price of a pending order in the grid.</li></ul>","titleAlphaAI":"This multicurrency expert uses 29 currency pairs. For forecasts, the advisor uses recurrent neural networks of the LSTM type, models trained in the Python language environment using the reinfor
1cement learning algorithm","buyAlphaAIDemo":"Download Demo","buyAlphaAITrainer":"Download Optimizer","buyAlphaAIShop":"Buy 240$","buyAlphaAIMQL5":"Buy 240$","urlAlphaAIMQL5":"https://www.mql5.com/ru/market/product/150596","urlAlphaAIDemo":"https://payhip.com/b/DHkze","urlAlphaAITrainer":"https://payhip.com/b/mRFBJ","urlAlphaAIShop":"https://payhip.com/b/lqiJr"},"binancebot":{"subtitle":"Automated Trading Assistant"},"privacy":{"text":"<div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h4 style=color:#212529;font-size:24px><strong style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>Policy regarding the processing of personal data</span></span></strong></h4></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>1. General Provisions</span></span></h5><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>This personal data processing policy has been drawn up in accordance with the requirements of the Federal Law of July 27, 2006. </span><span style=vertical-align:inherit>No. 152-FZ \u201cOn Personal Data\u201d (hereinafter referred to as the Law on Personal Data) and determines the procedure for processing personal data and measures to ensure the security of personal data taken by Evgeniy Aleksandrovich Chistyukhin </span></span><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>(</span></span></span><span style=vertical-align:inherit><span style=vertical-align:inherit> hereinafter referred to as the Operator).</span></span></div><div style=color:#212529><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>1.1. </span><span style=vertical-align:inherit>The operator sets as its most important goal and condition for carrying out its activities the observance of the rights and freedoms of man and citizen when processing his personal data, including the protection of the rights to privacy, personal and family secrets.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>1.2. </span><span style=vertical-align:inherit>This Operator\u2019s policy regarding the processing of personal data (hereinafter referred to as the Policy) applies to all information that the Operator can obtain about visitors to the website </span></span><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>https://forexvisible.com</span></span></span><span style=vertical-align:inherit><span style=vertical-align:inherit> .</span></span></div></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>2. Basic concepts used in the Policy</span></span></h5><div style=color:#212529><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.1. </span><span style=vertical-align:inherit>Automated processing of personal data - processing of personal data using computer technology.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.2. </span><span style=vertical-align:inherit>Blocking of personal data is a temporary cessation of processing of personal data (except for cases where processing is necessary to clarify personal data).</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.3. </span><span style=vertical-align:inherit>Website is a collection of graphic and information materials, as well as computer programs and databases that ensure their availability on the Internet at the network address </span></span><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>https://forexvisible.com</span></span></span><span style=vertical-align:inherit><span style=vertical-align:inherit> .</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>
12.4. </span><span style=vertical-align:inherit>Personal data information system is a set of personal data contained in databases and information technologies and technical means that ensure their processing.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.5. </span><span style=vertical-align:inherit>Depersonalization of personal data - actions as a result of which it is impossible to determine without the use of additional information the ownership of personal data to a specific User or other subject of personal data.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.6. </span><span style=vertical-align:inherit>Processing of personal data - any action (operation) or set of actions (operations) performed using automation tools or without the use of such tools with personal data, including collection, recording, systematization, accumulation, storage, clarification (updating, changing), extraction, use, transfer (distribution, provision, access), depersonalization, blocking, deletion, destruction of personal data.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.7. </span><span style=vertical-align:inherit>Operator - a state body, municipal body, legal or natural person, independently or jointly with other persons organizing and/or carrying out the processing of personal data, as well as determining the purposes of processing personal data, the composition of personal data to be processed, actions (operations) performed with personal data.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.8. </span><span style=vertical-align:inherit>Personal data - any information relating directly or indirectly to a specific or identified User of the website </span></span><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>https://forexvisible.com</span></span></span><span style=vertical-align:inherit><span style=vertical-align:inherit> .</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.9. </span><span style=vertical-align:inherit>Personal data authorized by the subject of personal data for distribution - personal data, access to an unlimited number of persons to which is provided by the subject of personal data by giving consent to the processing of personal data authorized by the subject of personal data for distribution in the manner prescribed by the Law on Personal Data (hereinafter referred to as personal data). data authorized for distribution).</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.10. </span><span style=vertical-align:inherit>User - any visitor to the website </span></span><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>https://forexvisible.com</span></span></span><span style=vertical-align:inherit><span style=vertical-align:inherit> .</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.11. </span><span style=vertical-align:inherit>Providing personal data - actions aimed at disclosing personal data to a certain person or a certain circle of persons.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.12. </span><span style=vertical-align:inherit>Distribution of personal data - any actions aimed at disclosing personal data to an indefinite number of persons (transfer of personal data) or to familiarize with personal data to an unlimited number of persons, including the publication of personal data in the media, posting in information and telecommunication networks or providing access to personal data in any other way.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>
12.13. </span><span style=vertical-align:inherit>Cross-border transfer of personal data is the transfer of personal data to the territory of a foreign state to an authority of a foreign state, a foreign individual or a foreign legal entity.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>2.14. </span><span style=vertical-align:inherit>Destruction of personal data - any actions as a result of which personal data is irretrievably destroyed with the impossibility of further restoration of the content of personal data in the personal data information system and/or material media of personal data are destroyed.</span></span></div></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>3. Basic rights and obligations of the Operator</span></span></h5><div style=color:#212529><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>3.1. </span><span style=vertical-align:inherit>The operator has the right:</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 receive from the subject of personal data reliable information and/or documents containing personal data;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 in the event that the subject of personal data withdraws consent to the processing of personal data, as well as sends a request to stop processing personal data, the Operator has the right to continue processing personal data without the consent of the subject of personal data if there are grounds specified in the Law on Personal Data;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 independently determine the composition and list of measures necessary and sufficient to ensure the fulfillment of the obligations provided for by the Law on Personal Data and regulations adopted in accordance with it, unless otherwise provided by the Law on Personal Data or other federal laws.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>3.2. </span><span style=vertical-align:inherit>The operator is obliged:</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 provide the subject of personal data, at his request, with information regarding the processing of his personal data;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 organize the processing of personal data in the manner established by the current legislation of the Russian Federation;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 respond to requests and inquiries from personal data subjects and their legal representatives in accordance with the requirements of the Personal Data Law;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 report to the authorized body for the protection of the rights of personal data subjects, at the request of this body, the necessary information within 10 days from the date of receipt of such a request;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 publish or otherwise provide unrestricted access to this Policy regarding the processing of personal data;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 take legal, organizational and technical measures to protect personal data from unauthorized or accidental access, destruction, modification, blocking, copying, provision, distribution of personal data, as well as from other unlawful actions in relation to personal data;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 stop the transfer (distribution, provision, access) of personal data, stop processing and destroy personal data in the manner and cases provided for by the Law on Personal Data;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 fulfill other duties provided for by the Personal Data Law.</span></span></div></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>4. Basic rights and obligations of personal data subjects</span></span></h5><div style=color:#212529><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>4.1. </span><span style=vertical-align:inherit>Subjects of personal data have the right:</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 receive information regarding the processing of his personal data, except for cases provided for by federal laws. </span><span style=vertical-align:inherit>The information is provided to the subject of personal data by the Operator in an accessible form, and it should not contain personal data relating to other subjects of personal data, except in cases where there are legal grounds for the disclosure of such personal data. </span><span style=vertical-align:inherit>The list of information and the procedure for obtaining it is established by the Law on Personal Data;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 require the operator to clarify his personal data, block it or destroy it if the personal data is incomplete, outdated, inaccurate, illegally obtained or is not necessary for the stated purpose of processing, as well as take measures provided by law to protect their rights;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 put forward the condition of prior consent when processing personal data in order to promote goods, works and services on the market;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 to withdraw consent to the processing of personal data, as well as to send a request to stop processing personal data;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 appeal to the authorized body for the protection of the rights of personal data subjects or in court the unlawful actions or inaction of the Operator when processing his personal data;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 to exercise other rights provided for by the legislation of the Russian Federation.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>4.2. </span><span style=vertical-align:inherit>Subjects of personal data are obliged to:</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 provide the Operator with reliable information about yourself;</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>\u2014 inform the Operator about clarification (updating, changing) of your personal data.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>4.3. </span><span style=vertical-align:inherit>
1Persons who provided the Operator with false information about themselves or information about another subject of personal data without the latter\u2019s consent are liable in accordance with the legislation of the Russian Federation.</span></span></div></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>5. Principles for processing personal data</span></span></h5><div style=color:#212529><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>5.1. </span><span style=vertical-align:inherit>The processing of personal data is carried out on a legal and fair basis.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>5.2. </span><span style=vertical-align:inherit>The processing of personal data is limited to the achievement of specific, pre-defined and legitimate purposes. </span><span style=vertical-align:inherit>Processing of personal data that is incompatible with the purposes of collecting personal data is not permitted.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>5.3. </span><span style=vertical-align:inherit>It is not allowed to combine databases containing personal data, the processing of which is carried out for purposes that are incompatible with each other.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>5.4. </span><span style=vertical-align:inherit>Only personal data that meets the purposes of their processing are subject to processing.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>5.5. </span><span style=vertical-align:inherit>The content and volume of personal data processed correspond to the stated purposes of processing. </span><span style=vertical-align:inherit>Redundancy of the processed personal data in relation to the stated purposes of their processing is not allowed.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>5.6. </span><span style=vertical-align:inherit>When processing personal data, the accuracy of personal data, their sufficiency, and, where necessary, relevance in relation to the purposes of processing personal data are ensured. </span><span style=vertical-align:inherit>The operator takes the necessary measures and/or ensures that they are taken to delete or clarify incomplete or inaccurate data.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>5.7. </span><span style=vertical-align:inherit>The storage of personal data is carried out in a form that makes it possible to identify the subject of personal data, no longer than required by the purposes of processing personal data, unless the period for storing personal data is established by federal law, an agreement to which the subject of personal data is a party, beneficiary or guarantor. </span><span style=vertical-align:inherit>The processed personal data is destroyed or anonymized upon achievement of the processing goals or in the event of the loss of the need to achieve these goals, unless otherwise provided by federal law.</span></span></div></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>6. Purposes of processing personal data</span></span></h5><div style=color:#212529><div style=color:#212529><table style=\'color:#212529;font-size:inherit;border:1px solid #d8d8d8;border-collapse:collapse\'><tbody style=color:#212529><tr style=color:#212529><th style=\'text-align:left;color:#212529;font-size:inherit;border:1px solid #d8d8d8\'><span style=vertical-align:inherit><span style=vertical-align:inherit>Purpose of processing</span></span><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>informing the User by sending emails</span></span></span><th style=\'text-align:left;color:#212529;font-size:inherit;border:1px solid #d8d8d8\'><span style=vertical-align:inherit><span style=vertical-align:inherit>Personal Information</span></span><ul style=list-style-type:none;color:#212529><li style=color:#212529><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>email address</span></span></span></ul><th style=\'text-align:left;color:#212529;font-size:inherit;border:1px solid #d8d8d8\'><span style=vertical-align:inherit><span style=vertical-align:inherit>Legal grounds</span></span><ul style=list-style-type:none;color:#212529><li style=color:#212529><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>Federal Law \u201cOn Information, Information Technologies and Information Protection\u201d dated July 27, 2006 N 149-FZ</span></span></span></ul><th style=\'text-align:left;color:#212529;font-size:inherit;border:1px solid #d8d8d8\'><span style=vertical-align:inherit><span style=vertical-align:inherit>Types of personal data processing</span></span><ul style=list-style-type:none;color:#212529><li style=color:#212529><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>Sending information letters to an email address</span></span></span></ul></table></div></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>7. Conditions for processing personal data</span></span></h5><div style=color:#212529><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>7.1. </span><span style=vertical-align:inherit>The processing of personal data is carried out with the consent of the subject of personal data to the processing of his personal data.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>7.2. </span><span style=vertical-align:inherit>The processing of personal data is necessary to achieve the goals provided for by an international treaty of the Russian Federation or law, to implement the functions, powers and responsibilities assigned by the legislation of the Russian Federation to the operator.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>7.3. </span><span style=vertical-align:inherit>The processing of personal data is necessary for the administration of justice, the execution of a judicial act, an act of another body or official, subject to execution in accordance with the legislation of the Russian Federation on enforcement proceedings.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>7.4. </span><span style=vertical-align:inherit>The processing of personal data is necessary for the execution of an agreement to which the subject of personal data is a party or benef
1iciary or guarantor, as well as for concluding an agreement on the initiative of the subject of personal data or an agreement under which the subject of personal data will be a beneficiary or guarantor.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>7.5. </span><span style=vertical-align:inherit>The processing of personal data is necessary to exercise the rights and legitimate interests of the operator or third parties or to achieve socially significant goals, provided that the rights and freedoms of the subject of personal data are not violated.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>7.6. </span><span style=vertical-align:inherit>The processing of personal data is carried out, access to an unlimited number of persons is provided by the subject of personal data or at his request (hereinafter referred to as publicly available personal data).</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>7.7. </span><span style=vertical-align:inherit>We process personal data that is subject to publication or mandatory disclosure in accordance with federal law.</span></span></div></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>8. The procedure for collecting, storing, transferring and other types of processing of personal data</span></span></h5><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>The security of personal data processed by the Operator is ensured by implementing legal, organizational and technical measures necessary to fully comply with the requirements of current legislation in the field of personal data protection.</span></span></div><div style=color:#212529><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>8.1. </span><span style=vertical-align:inherit>The operator ensures the safety of personal data and takes all possible measures to prevent access to personal data by unauthorized persons.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>8.2. </span><span style=vertical-align:inherit>The User\u2019s personal data will never, under any circumstances, be transferred to third parties, except in cases related to the implementation of current legislation or in the event that the subject of personal data gives consent to the Operator to transfer data to a third party to fulfill obligations under a civil law contract.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>8.3. </span><span style=vertical-align:inherit>If inaccuracies in personal data are identified, the User can update them independently by sending a notification to the Operator to the Operator\'s email address </span></span><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>[email protected]</span></span></span><span style=vertical-align:inherit><span style=vertical-align:inherit> with the note \u201cUpdating personal data.\u201d</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>8.4. </span><span style=vertical-align:inherit>The period for processing personal data is determined by the achievement of the purposes for which the personal data were collected, unless a different period is provided for by the contract or current legislation.</span></span><br style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>The User may at any time withdraw his consent to the processing of personal data by sending a notification to the Operator via email to the Operator\'s email address </span></span><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>[email protected]</span></span></span><span style=vertical-align:inherit><span style=vertical-align:inherit> with the note \u201cWithdrawal of consent to the processing of personal data.\u201d</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>8.5. </span><span style=vertical-align:inherit>All information that is collected by third-party services, including payment systems, communications and other service providers, is stored and processed by these persons (Operators) in accordance with their User Agreement and Privacy Policy. </span><span style=vertical-align:inherit>Subject of personal data and/or with specified documents. </span><span style=vertical-align:inherit>The operator is not responsible for the actions of third parties, including the service providers specified in this paragraph.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>8.6. </span><span style=vertical-align:inherit>Prohibitions established by the subject of personal data on the transfer (except for providing access), as well as on processing or conditions for processing (except for gaining access) of personal data permitted for distribution, do not apply in cases of processing personal data in state, public and other public interests determined by law RF.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>8.7. </span><span style=vertical-align:inherit>When processing personal data, the operator ensures the confidentiality of personal data.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>8.8. </span><span style=vertical-align:inherit>The operator stores personal data in a form that makes it possible to identify the subject of personal data for no longer than required by the purposes of processing personal data, unless the peri
1od for storing personal data is established by federal law, an agreement to which the subject of personal data is a party, beneficiary or guarantor.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>8.9. </span><span style=vertical-align:inherit>The condition for terminating the processing of personal data may be the achievement of the purposes of processing personal data, the expiration of the consent of the subject of personal data, the withdrawal of consent by the subject of personal data or a requirement to cease the processing of personal data, as well as the identification of unlawful processing of personal data.</span></span></div></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>9. List of actions performed by the Operator with received personal data</span></span></h5><div style=color:#212529><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>9.1. </span><span style=vertical-align:inherit>The operator collects, records, systematizes, accumulates, stores, refines (updates, changes), extracts, uses, transfers (distribute, provide, access), depersonalizes, blocks, deletes and destroys personal data.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>9.2. </span><span style=vertical-align:inherit>The operator carries out automated processing of personal data with or without receiving and/or transmitting the received information via information and telecommunication networks.</span></span></div></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>10. Cross-border transfer of personal data</span></span></h5><div style=color:#212529><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>10.1. </span><span style=vertical-align:inherit>Before starting activities for the cross-border transfer of personal data, the operator is obliged to notify the authorized body for the protection of the rights of personal data subjects of its intention to carry out cross-border transfer of personal data (such notification is sent separately from the notification of the intention to process personal data).</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>10.2. </span><span style=vertical-align:inherit>Before submitting the above notification, the operator is obliged to obtain relevant information from the authorities of a foreign state, foreign individuals, foreign legal entities to whom the cross-border transfer of personal data is planned.</span></span></div></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>11. Confidentiality of personal data</span></span></h5><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>The operator and other persons who have access to personal data are obliged not to disclose to third parties or distribute personal data without the consent of the subject of personal data, unless otherwise provided by federal law.</span></span></div></div></div></div><div><div style=text-align:start;color:#212529;background-color:#fefefe;font-size:16px><div style=color:#212529><h5 style=color:#212529;font-size:20px><span style=vertical-align:inherit><span style=vertical-align:inherit>12. Final provisions</span></span></h5><div style=color:#212529><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>12.1. </span><span style=vertical-align:inherit>The user can receive any clarification on issues of interest regarding the processing of his personal data by contacting the Operator via email </span></span><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>[email protected]</span></span></span><span style=vertical-align:inherit><span style=vertical-align:inherit> .</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>12.2. </span><span style=vertical-align:inherit>This document will reflect any changes to the Operator\u2019s personal data processing policy. </span><span style=vertical-align:inherit>The policy is valid indefinitely until it is replaced by a new version.</span></span></div><div style=color:#212529><span style=vertical-align:inherit><span style=vertical-align:inherit>12.3. </span><span style=vertical-align:inherit>The current version of the Policy is freely available on the Internet at </span></span><span style=\'color:#212529;background-color:#fcf8e3;border-bottom:1.5px dotted #fa8669\'><span style=vertical-align:inherit><span style=vertical-align:inherit>https://forexvisible.com/privacy</span></span></span><span style=vertical-align:inherit><span style=vertical-align:inherit> .</span></span></div></div></div></div></div>","name":"Privacy Policy"},"mainMenu":{"Appointments":"Appointments","Customers":"Customers","Monitoring":"Monitoring","Signals":"Signals","SignalsMQL5":"MQL5","Products":"Products","Orders":"Orders","About":"Contacts","Logout":"Logout","Login":"Login","Register":"Register","Instru
1ction":"Instruction","Licenses":"Purchases","Language":"Language","English":"English","Russian":"Russian"},"pageHeader":{"Dashboard":"Dashboard","Customers":"Customers","Products":"Products","Monitoring":"Monitoring","Orders":"Orders","NotFound":"Not-Found","About":"Contacts","Settings":"Settings","Instruction":"Instruction","BinanceBot":"BinanceBot"},"home":{"NoWidgets1":"You have no widgets displayed. Goto","NoWidgets2":"to configure available widgets","StatisticsTitle":"Balance"},"notFound":{"404":"404","pageNotFound":"The page you are looking for does not exist","backToHome":"Back to home"},"settings":{"tab":{"Profile":"Profile","Preferences":"Preferences","Users":"Users","Roles":"Roles"},"header":{"UserProfile":"User Profile","UserPreferences":"User Preferences","UserDepartments":"User Departments","UsersManagements":"Users Managements","RolesManagement":"Roles Management"}},"preferences":{"ReloadPreferences":"Reload Preferences:","ReloadPreferencesHint":"Load default preferences (local changes are discarded)","Language":"Language:","Default":"Default","English":"English","Russian":"Russian","French":"French","German":"German","Portuguese":"Portuguese","Arabic":"Arabic","Korean":"Korean","LanguageHint":"Select the preferred language for your account","HomePage":"Home Page:","Dashboard":"Dashboard","Customers":"Customers","Products":"Products","Orders":"Orders","About":"About","Settings":"Settings","HomePageHint":"Select the default page to navigate to on login","Theme":"Theme:","DefaultTheme":"Default","CosmoTheme":"Cosmo","SolarTheme":"Solar","CeruleanTheme":"Cerulean","FlatlyTheme":"Flatly","SketchyTheme":"Sketchy","SlateTheme":"Slate","SpacelabTheme":"Spacelab","SuperheroTheme":"Superhero","UnitedTheme":"United","JournalTheme":"Journal","LumenTheme":"Lumen","MintyTheme":"Minty","PulseTheme":"Pulse","ThemeHint":"Select the default color theme for your account","DashboardStatistics":"Dashboard Statistics:","DashboardStatisticsHint":"Show demo graph widget on the dashboard","DashboardNotifications":"Dashboard Notifications:","DashboardNotificationsHint":"Show application notifications on the dashboard","DashboardTodo":"Dashboard Todo:","DashboardTodoHint":"Shows demo todo widget on the dashboard","DashboardBanner":"Dashboard Banner:","DashboardBannerHint":"Show demo information banner widget on the dashboard","ChartDensity":"Chart Density:","ChartDensityHint":"Select the density of data points displayed on charts","High":"High","Medium":"Medium","Low":"Low","VeryLow":"Very Low","AdaptiveSampling":"Adaptive Sampling:","AdaptiveSamplingHint":"Automatically adjust chart density based on data volume","ResetDefault":"Reset default","SetDefault":"Set as default"},"users":{"management":{"ResetPassword":"Reset Password","Search":"Search for user...","NewUser":"New User","Edit":"Edit","Delete":"Delete","EditUser":"Edit User \\"{{name}}\\"","Title":"Title","UserName":"User Name","FullName":"Full Name","Email":"Email","Roles":"Roles","PhoneNumber":"Phone Number"},"editor":{"JobTitle":"Job Title: ","UserName":"User Name:","UserNameRequired":"User name is required (minimum of 2 and maximum of 200 characters)","Password":"Password:","PasswordHint":"Your password is required when changing user name","CurrentPasswordRequired":"Current password is required","Email":"Email:","EmailRequired":"Email address is required (maximum of 200 characters)","InvalidEmail":"Specified email is not valid","ChangePassword":"Change Password","CurrentPassword":"Current Password:","NewPassword":"New Password:","NewPasswordRequired":"New password is required (minimum of 6 characters)","ConfirmPassword":"Confirm Password:","ConfirmationPasswordRequired":"Confirmation password is required","PasswordMismatch":"New password and confirmation password do not match","Roles":"Roles:","FullName":" Full Name:","RoleRequired":" Role is required","PhoneNumber":"Phone #:","Enabled":"Enabled","Unblock":"Unblock","Close":"Close","Edit":"Edit","Cancel":"Cancel","Save":"Save","Saving":"Saving...","Google":"Login with Google"}},"roles":{"management":{"Search":"Search for role...","NewRole":"New Role","Edit":"Edit","Details":"Details","Delete":"Delete","RoleDetails":"Role Details \\"{{name}}\\"","EditRole":"Edit Role \\"{{name}}\\"","Name":"Name","Description":"Description","Users":"Users"},"editor":{"Name":"Name:","Description":"Description:","RoleNameRequired":"Role name is required (minimum of 2 and maximum of 200 characters)","SelectAll":"Select all","SelectNone":"Select none","Close":"Close","Cancel":"Cancel","Save":"Save","Saving":"Saving..."}},"messages":{"DeleteAccount":"Are you sure you want to remove this account?","ConnectSignal":"The signal has subscribers, are you sure you want to disconnect the signal?","ChangeTypeSignal":"The signal has subscribers, are you sure you want to change the signal?"},"notifications":{"Delete":"Delete notification","Pin":"Pin notification","Date":"Date","Notification":"Notification"},"todoDemo":{"management":{"Search":"Search for task...","HideCompleted":"Hide Completed","AddTask":"Add Task","Delete":"Delete task","Important":"Mark as important","Task":"Task","Description":"Description"},"editor":{"NewTask":"New Task","Name":"Name","TaskNameRequired":"Task name is required","Description":"Description","Important":"Mark as important","AddTask":"Add Task"}},"licenseManagement":{"subtitle":"Manage and control user licenses efficie
1ntly","Title":"User Licenses","UsernameLabel":"Username:","OrSpecifyEmail":"Or specify Email","EmailLabel":"Email:","OrSpecifyUsername":"Or specify Username","ProductLabel":"Product:","ProductVersionLabel":"Product version (format: 1.0):","ExampleVersion":"Example: 1.0","MaxAccountsLabel":"Max. accounts:","CreateLicenseButton":"Create License","BulkProductLabel":"Product (for bulk update):","ExactProductName":"Product name (exact)","NewVersionLabel":"New version:","ApplyToAllButton":"Apply to all","KeyColumn":"Key","UserColumn":"User","ProductColumn":"Product","VersionColumn":"Version","ExpirationColumn":"Expiration","Unlimited":"Unlimited","MaxAccountsColumn":"Max. accounts","UsedColumn":"Used","ActionsColumn":"Actions","EditTitle":"Edit","DeactivateTitle":"Terminate","EditLicenseModalTitle":"Edit License","ProductModalLabel":"Product:","VersionModalLabel":"Product version:","ExpirationModalLabel":"Expiration:","MaxAccountsModalLabel":"Max. accounts:","SaveButton":"Save","CancelButton":"Cancel"},"aboutPage":{"title":"About","subtitle":"Get in touch with us through various channels","email":{"title":"Email","address":"[email protected]","button":"Go"},"telegram":{"title":"Telegram","username":"@musbreath","button":"Go"},"telegramChannel":{"title":"Telegram Channel","username":"@forexvisible1","button":"Go"},"youtube":{"title":"YouTube","channel":"ForexVisible Channel","button":"Go"},"footer":{"title":"About ForexVisible","description":"Your trusted partner in forex trading and analysis, as well as in the cryptocurrency market. We provide cutting-edge tools and insights to help you succeed in the financial markets."}},"parsing":{"title":"Signals MQL5","subtitle":"Professional trading signals and analysis","backToSignals":"Back to Signals","filters":{"platformAndSignal":"Platform Type & Signal Type","demo":"Demo","real":"Real","product":"Product","signal":"Signal","seller":"Seller"},"source":"Source","stats":{"balance":"Balance","equity":"Equity","profit":"Profit","latestTrade":"Latest Trade","profitFactor":"Profit Factor","tradingActivity":"Trading Activity","tradesPerWeek":"Trades Per Week","subscribers":"Subscribers"}}}')},itXk:function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return u});var i=n("z+Ro"),r=n("DH7j"),a=n("l7GE"),o=n("ZUHj"),s=n("yCtX"),l={};function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var a,o;return Object(i.a)(t[t.length-1])&&(o=t.pop()),"function"==typeof t[t.length-1]&&(a=t.pop()),1===t.length&&Object(r.a)(t[0])&&(t=t[0]),Object(s.a)(t,o).lift(new u(a))}var u=function(){function e(t){_classCallCheck(this,e),this.resultSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new d(e,this.resultSelector))}}]),e}(),d=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).resultSelector=i,r.active=0,r.values=[],r.observables=[],r}return _createClass(n,[{key:"_next",value:function(e){this.values.push(l),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var i=e[n];this.add(Object(o.a)(this,i,void 0,n))}}}},{key:"notifyComplete",value:function(e){0==(this.active-=1)&&this.destination.complete()}},{key:"notifyNext",value:function(e,t,n){var i=this.values,r=this.toRespond?i[n]===l?--this.toRespond:this.toRespond:0;i[n]=t,0===r&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))}},{key:"_tryResultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(a.a)},jUeY:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u
10399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(e,t,n){return e>11?n?"\u03bc\u03bc":"\u039c\u039c":n?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(e){return"\u03bc"===(e+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],r=t&&t.hours();return n=i,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.replace("{}",r%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(n("wd/R"))},jVdC:function(e,t,n){!function(e){"use strict";var t="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_"),i=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^pa\u017a/i,/^lis/i,/^gru/i];function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minut\u0119";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzin\u0119";case"hh":return i+(r(e)?"godziny":"godzin");case"ww":return i+(r(e)?"tygodnie":"tygodni");case"MM":return i+(r(e)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzie\u0144",dd:"%d dni",w:"tydzie\u0144",ww:a,M:"miesi\u0105c",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},jZKg:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n("HDdC"),r=n("quSY");function a(e,t){return new i.a(function(n){var i=new r.a,a=0;return i.add(t.schedule(function(){a!==e.length?(n.next(e[a++]),n.closed||i.add(this.schedule())):n.complete()}
vendor: 2,601 bytes, line 1
1)),i})}},jfSC:function(e,t,n){!function(e){"use strict";var t={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},n={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};e.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(e){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(e)},meridiem:function(e,t,n){return e<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"}
vendor: 5,833 bytes, line 1
1,relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"%d \u062b\u0627\u0646\u06cc\u0647",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(e){return e.replace(/[\u06f0-\u06f9]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(n("wd/R"))},jnO4:function(e,t,n){!function(e){"use strict";var t={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},n={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},a=function(e){return function(t,n,a,o){var s=i(t),l=r[e][i(t)];return 2===s&&(l=l[n?0:1]),l.replace(/%d/i,t)}},o=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar",{months:o,monthsShort:o,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(e){return n[e]}).replace(/\u060c/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(n("wd/R"))},kEOa:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u
109ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t&&e>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===t&&e<5||"\u09ac\u09bf\u0995\u09be\u09b2"===t?e+12:e},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<10?"\u09b8\u0995\u09be\u09b2":e<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n("wd/R"))},kJWO:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},kOpN:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u51cc\u6668"===t||"\u65e9\u4e0a"===t||"\u4e0a\u5348"===t?e:"\u4e2d\u5348"===t?e>=11?e:e+12:"\u4e0b\u5348"===t||"\u665a\u4e0a"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"\u51cc\u6668":i<900?"\u65e9\u4e0a":i<1130?"\u4e0a\u5348":i<1230?"\u4e2d\u5348":i<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"\u65e5";case"M":return e+"\u6708";case"w":case"W":return e+"\u9031";default:return e}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(n("wd/R"))},l5ep:function(e,t,n){!function(e){"use strict";
1e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n("wd/R"))},l7GE:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,i,r){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(n("7o/Q").a)},lJxs:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.project,this.thisArg))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).project=i,a.count=0,a.thisArg=r||_assertThisInitialized(a),a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(i.a)},lXzo:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":e+" "+(i=+e,r={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",ww:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043d\u0435\u0434\u0435\u043b\u0438_\u043d\u0435\u0434\u0435\u043b\u044c",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}var n=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];e.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u
1043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0447\u0430\u0441",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,w:"\u043d\u0435\u0434\u0435\u043b\u044f",ww:t,M:"\u043c\u0435\u0441\u044f\u0446",MM:t,y:"\u0433\u043e\u0434",yy:t},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0438":e<12?"\u0443\u0442\u0440\u0430":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-\u0439";case"D":return e+"-\u0433\u043e";case"w":case"W":return e+"-\u044f";default:return e}},week:{dow:1,doy:4}})}(n("wd/R"))},lYtQ:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){switch(n){case"s":return t?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return e+(t?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return e+(t?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return e+(t?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return e+(t?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return e+(t?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return e+(t?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return e}}e.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u
10445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(e){return"\u04ae\u0425"===e},meridiem:function(e,t,n){return e<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+" \u04e9\u0434\u04e9\u0440";default:return e}}})}(n("wd/R"))},lgnt:function(e,t,n){!function(e){"use strict";var t={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};e.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n("wd/R"))},loYQ:function(e,t,n){!function(e){"use strict";var t={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},n={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};e.defineLocale("bn-bd",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09bf_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u
109ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(e){return e.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(e){return n[e]})},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]})},meridiemParse:/\u09b0\u09be\u09a4|\u09ad\u09cb\u09b0|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be|\u09b0\u09be\u09a4/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u09b0\u09be\u09a4"===t?e<4?e:e+12:"\u09ad\u09cb\u09b0"===t||"\u09b8\u0995\u09be\u09b2"===t?e:"\u09a6\u09c1\u09aa\u09c1\u09b0"===t?e>=3?e:e+12:"\u09ac\u09bf\u0995\u09be\u09b2"===t||"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u09b0\u09be\u09a4":e<6?"\u09ad\u09cb\u09b0":e<12?"\u09b8\u0995\u09be\u09b2":e<15?"\u09a6\u09c1\u09aa\u09c1\u09b0":e<18?"\u09ac\u09bf\u0995\u09be\u09b2":e<20?"\u09b8\u09a8\u09cd\u09a7\u09cd\u09af\u09be":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(n("wd/R"))},lyxo:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"s\u0103pt\u0103m\xe2ni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:t,m:"un minut",mm:t,h:"o or\u
10103",hh:t,d:"o zi",dd:t,w:"o s\u0103pt\u0103m\xe2n\u0103",ww:t,M:"o lun\u0103",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n("wd/R"))},mCNh:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a});var i=n("SpAZ");function r(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return a(t)}function a(e){return 0===e.length?i.a:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},mlxB:function(e,t,n){"use strict";function i(e){return e instanceof Date&&!isNaN(+e)}n.d(t,"a",function(){return i})},mrSG:function(e,t,n){"use strict";function i(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function r(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function a(e,t,n,i){return new(n||(n=Promise))(function(r,a){function o(e){try{l(i.next(e))}catch(t){a(t)}}function s(e){try{l(i.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(o,s)}l((i=i.apply(e,t||[])).next())})}n.d(t,"b",function(){return i}),n.d(t,"c",function(){return r}),n.d(t,"a",function(){return a}),"function"==typeof SuppressedError&&SuppressedError},n6bG:function(e,t,n){"use strict";function i(e){return"function"==typeof e}n.d(t,"a",function(){return i})},ngJS:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return function(t){for(var n=0,i=e.length;n<i&&!t.closed;n++)t.next(e[n]);t.complete()}}},ntVh:function(e){e.exports=JSON.parse('{"app":{"Welcome":"\u0623\u0647\u0644\u0627 \u0628\u0643","Notifications":"\u0625\u0639\u0644\u0627\u0645","New":"\u062c\u062f\u064a\u062f"},"mainMenu":{"Appointments":"\u0627\u0644\u0645\u0648\u0627\u0639\u064a\u062f","Customers":"\u0627\u0644\u0632\u0628\u0627\u0626\u0646","Products":"\u0627\u0644\u0645\u0646\u062a\u062c\u0627\u062a","Orders":"\u0627\u0644\u0623\u0648\u0627\u0645\u0631","About":"\u062d\u0648\u0644 \u0645\u0646\u062c\u0632 \u0627\u0644\u062a\u0637\u0628\u064a\u0642","Logout":"\u0627\u0644\u062e\u0631\u0648\u062c"},"pageHeader":{"Dashboard":"\u0644\u0648\u062d\u0629 \u0627\u0644\u0642\u064a\u0627\u062f\u0629","Customers":"\u0627\u0644\u0632\u0628\u0627\u0626\u0646","Products":"\u0627\u0644\u0645\u0646\u062a\u062c\u0627\u062a","Orders":"\u0627\u0644\u0623\u0648\u0627\u0645\u0631","NotFound":"\u0644\u0627 \u064a\u0648\u062c\u062f","About":"\u062d\u0648\u0644 \u0645\u0646\u062c\u0632 \u0627\u0644\u062a\u0637\u0628\u064a\u0642","Settings":"\u0625\u0639\u062f\u0627\u062f\u0627\u062a"},"home":{"NoWidgets1":"\u0644\u0645 \u064a\u062a\u0645 \u0639\u0631\u0636 \u0623\u064a\u0629 \u0623\u062f\u0648\u0627\u062a. \u0627\u0630\u0647\u0628 \u0625\u0644\u0649","NoWidgets2":"\u0644\u062a\u0643\u0648\u064a\u0646 \u0627\u0644\u0623\u062f\u0648\u0627\u062a \u0627\u0644\u0645\u062a\u0627\u062d\u0629","StatisticsTitle":"\u0628\u0639\u0636 \u0627\u0644\u0627\u0634\u064a\u0627\u0621 \u0627\u0644\u0647\u0627\u0645\u0629"},"notFound":{"404":"404","pageNotFound":"\u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u062a\u064a \u062a\u0628\u062d\u062b \u0639\u0646\u0647\u0627 \u063a\u064a\u0631 \u0645\u0648\u062c\u0648\u062f\u0629","backToHome":"\u0627\u0644\u0639\u0648\u062f\u0629 \u0625\u0644\u0649 \u0644\u0648\u062d\u0629 \u0627\u0644\u0625\u0633\u062a\u0642\u0628\u0627\u0644"},"settings":{"tab":{"Profile":"\u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a","Preferences":"\u0627\u0644\u062a\u0641\u0636\u064a\u0644\u0627\u062a","Users":"\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646","Roles":"\u0627\u0644\u0623\u062f\u0648\u0627\u0631"},"header":{"UserProfile":"\u0645\u0644\u0641 \u062a\u0639\u0631\u064a\u0641\u064a \u0644\u0644\u0645\u0633\u062a\u062e\u062f\u0645","UserPreferences":"\u062e\u064a\u0627\u0631\u0627\u062a \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645","UserDepartments":"\u0623\u0642\u0633\u0627\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645","UsersManagements":"\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646","RolesManagement":"\u0625\u062f\u0627\u0631\u0629 \u0627\u0644\u0623\u062f\u0648\u0627\u0631"}},"preferences":{"ReloadPreferences":"\u0625\u0639\u0627\u062f\u0629 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u062a\u0641\u0636\u064a\u0644\u0627\u062a:","ReloadPreferencesHint":"(\u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u062a\u0641\u0636\u064a\u0644\u0627\u062a \u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a\u0629 (\u064a\u062a\u0645 \u062a\u062c\u0627\u0647\u0644 \u0627\u0644\u062a\u063a\u064a\u064a\u0631\u0627\u062a \u0627\u0644\u0645\u062d\u0644\u064a\u0629","Language":"\u0644\u063a\u0629:","Default":"\u0625\u0641\u062a\u0631\u0627\u0636\u064a","English":"\u0627\u0644\u0625\u0646\u062c\u0644\u064a\u0632\u064a\u0629","French":"\u0627\u0644\u0641\u0631\u0646\u0633\u064a\u0629","German":"\u0627\u0644\u0623\u0644\u0645\u0627\u0646\u064a\u0629","Portuguese":"\u0627\u0644\u0628\u0631\u062a\u063a\u0627\u0644\u064a\u0629","Arabic":"\u0627\u0644\u0639\u0631\u0628\u064a\u0629","Korean":"\u0627\u0644\u0643\u0648\u0631\u064a\u0629","LanguageHint":"\u
10627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0644\u063a\u0629 \u0627\u0644\u0645\u0641\u0636\u0644\u0629 \u0644\u062d\u0633\u0627\u0628\u0643","HomePage":"\u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629:","Dashboard":"\u0644\u0648\u062d\u0629 \u0627\u0644\u0642\u064a\u0627\u062f\u0629","Customers":"\u0627\u0644\u0632\u0628\u0627\u0626\u0646","Products":"\u0645\u0646\u062a\u062c\u0627\u062a","Orders":"\u0623\u0648\u0627\u0645\u0631","About":"\u062d\u0648\u0644","Settings":"\u0625\u0639\u062f\u0627\u062f\u0627\u062a","HomePageHint":"\u062d\u062f\u062f \u0627\u0644\u0635\u0641\u062d\u0629 \u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a\u0629 \u0644\u0644\u0627\u0646\u062a\u0642\u0627\u0644 \u0625\u0644\u0649 \u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644","Theme":"\u0641\u0643\u0631\u0629 \u0631\u0626\u064a\u0633\u064a\u0629:","DefaultTheme":"\u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a","CosmoTheme":"\u0643\u0648\u0632\u0645\u0648","SolarTheme":"\u0634\u0645\u0633\u064a","CeruleanTheme":"\u0641\u0646\u062f\u0642","FlatlyTheme":"\u0628\u0634\u0643\u0644 \u0642\u0627\u0637\u0639","SketchyTheme":"\u0633\u0637\u062d\u064a","SlateTheme":"\u0633\u0644\u064a\u062a","SpacelabTheme":"\u0627\u0644\u0645\u062e\u062a\u0628\u0631 \u0627\u0644\u0641\u0636\u0627\u0626\u064a","SuperheroTheme":"\u062e\u0627\u0631\u0642\u0629","UnitedTheme":"\u0645\u062a\u062d\u062f","JournalTheme":"\u0645\u062c\u0644\u0629","LumenTheme":"\u0627\u0644\u062a\u062c\u0648\u064a\u0641","MintyTheme":"\u0645\u0646\u062a\u064a","PulseTheme":"\u0646\u0628\u0636","ThemeHint":"\u062d\u062f\u062f \u0627\u0644\u0644\u0648\u0646 \u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a \u0644\u062d\u0633\u0627\u0628\u0643","DashboardStatistics":"\u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a \u0644\u0648\u062d\u0629 \u0627\u0644\u062a\u062d\u0643\u0645:","DashboardStatisticsHint":"\u0639\u0631\u0636 \u0627\u0644\u0631\u0633\u0645 \u0627\u0644\u0628\u064a\u0627\u0646\u064a \u0627\u0644\u062a\u062c\u0631\u064a\u0628\u064a \u0639\u0644\u0649 \u0644\u0648\u062d\u0629 \u0627\u0644\u0642\u064a\u0627\u062f\u0629","DashboardNotifications":"\u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0644\u0648\u062d\u0629 \u0627\u0644\u062a\u062d\u0643\u0645:","DashboardNotificationsHint":"\u0639\u0631\u0636 \u0625\u0634\u0639\u0627\u0631\u0627\u062a \u0627\u0644\u062a\u0637\u0628\u064a\u0642 \u0639\u0644\u0649 \u0644\u0648\u062d\u0629 \u0627\u0644\u062a\u062d\u0643\u0645","DashboardTodo":"\u0644\u0648\u062d\u0629 \u0627\u0644\u062a\u062d\u0643\u0645 \u0644\u0644\u0648\u0627\u062c\u0628\u0627\u062a:","DashboardTodoHint":"\u064a\u0638\u0647\u0631 \u0627\u0644\u0648\u062d\u0629 \u0627\u0644\u062a\u062c\u0631\u064a\u0628\u064a\u0629 \u0644\u0644\u0648\u0627\u062c\u0628\u0627\u062a \u0639\u0644\u0649 \u0644\u0648\u062d\u0629 \u0627\u0644\u0642\u064a\u0627\u062f\u0629","DashboardBanner":"\u0634\u0639\u0627\u0631 \u0644\u0648\u062d\u0629 \u0627\u0644\u062a\u062d\u0643\u0645:","DashboardBannerHint":"\u0639\u0631\u0636 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0631\u0627\u064a\u0629 \u0627\u0644\u062a\u062c\u0631\u064a\u0628\u064a\u0629 \u0639\u0644\u0649 \u0644\u0648\u062d\u0629 \u0627\u0644\u0642\u064a\u0627\u062f\u0629","ResetDefault":"\u0627\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0623\u0635\u0644","SetDefault":"\u062a\u0639\u064a\u064a\u0646 \u0627\u0644\u0623\u0635\u0644"},"users":{"management":{"Search":"\u0627\u0644\u0628\u062d\u062b \u0639\u0646 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645...","NewUser":"\u0645\u0633\u062a\u062e\u062f\u0645 \u062c\u062f\u064a\u062f","Edit":"\u062a\u0635\u062d\u064a\u062d","Delete":"\u062d\u0630\u0641","EditUser":"\u062a\u062d\u0631\u064a\u0631 \u0627\u0644\u0639\u0636\u0648 \\"{{name}}\\"","Title":"\u0639\u0646\u0648\u0627\u0646","UserName":"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645","FullName":"\u0627\u0644\u0625\u0633\u0645 \u0627\u0644\u0643\u0627\u0645\u0644","Email":"\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a","Roles":"\u0627\u0644\u0623\u062f\u0648\u0627\u0631","PhoneNumber":"\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062a\u0641"},"editor":{"JobTitle":"\u0627\u0644\u0645\u0633\u0645\u0649 \u0627\u0644\u0648\u0638\u064a\u064
11\u064a: ","UserName":"\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645:","UserNameRequired":"(\u0645\u0637\u0644\u0648\u0628 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645 (\u0627\u0644\u062d\u062f \u0627\u0644\u0623\u062f\u0646\u0649 \u0645\u0646 2 \u0648\u0627\u0644\u062d\u062f \u0627\u0644\u0623\u0642\u0635\u0649 200 \u062d\u0631\u0641\u0627","Password":"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631:","PasswordHint":"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0645\u0637\u0644\u0648\u0628\u0629 \u0639\u0646\u062f \u062a\u063a\u064a\u064a\u0631 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645","CurrentPasswordRequired":"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u062d\u0627\u0644\u064a\u0629 \u0645\u0637\u0644\u0648\u0628\u0629","Email":"\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a:","EmailRequired":"(\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0645\u0637\u0644\u0648\u0628 (\u0628\u062d\u062f \u0623\u0642\u0635\u0649 200 \u062d\u0631\u0641","InvalidEmail":"\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a \u0627\u0644\u0645\u062d\u062f\u062f \u063a\u064a\u0631 \u0635\u0627\u0644\u062d","ChangePassword":"\u063a\u064a\u0631 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631","CurrentPassword":"\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u062d\u0627\u0644\u064a\u0629:","NewPassword":"\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u062c\u062f\u064a\u062f\u0629:","NewPasswordRequired":"\u0627\u0644\u062d\u062f \u0627\u0644\u0623\u062f\u0646\u0649 \u0645\u0646 6 \u0623\u062d\u0631\u0641) \u0645\u0637\u0644\u0648\u0628 \u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631)","ConfirmPassword":"\u062a\u0623\u0643\u064a\u062f \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631:","ConfirmationPasswordRequired":"\u0645\u0637\u0644\u0648\u0628 \u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0627\u0644\u062a\u0623\u0643\u064a\u062f","PasswordMismatch":"\u0644\u0627 \u062a\u062a\u0637\u0627\u0628\u0642 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u0627\u0644\u062c\u062f\u064a\u062f\u0629 \u0648\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0627\u0644\u062a\u0623\u0643\u064a\u062f","Roles":"\u0627\u0644\u0623\u062f\u0648\u0627\u0631:","FullName":" \u0627\u0644\u0625\u0633\u0645 \u0627\u0644\u0643\u0627\u0645\u0644:","RoleRequired":" \u0645\u0637\u0644\u0648\u0628 \u062f\u0648\u0631","PhoneNumber":"\u0627\u0644\u0647\u0627\u062a\u0641 #:","Enabled":"\u062a\u0645\u0643\u064a\u0646","Unblock":"\u0631\u0641\u0639 \u0627\u0644\u062d\u0638\u0631","Close":"\u0625\u063a\u0644\u0627\u0642","Edit":"\u062a\u0635\u062d\u064a\u062d","Cancel":"\u0625\u0644\u063a\u0627\u0621","Save":"\u062d\u0641\u0638","Saving":"\u062c\u0627\u0631 \u0627\u0644\u062d\u0641\u0638..."}},"roles":{"management":{"Search":"\u0627\u0644\u0628\u062d\u062b \u0639\u0646 \u062f\u0648\u0631...","NewRole":"\u062f\u0648\u0631 \u062c\u062f\u064a\u062f","Edit":"\u062a\u0635\u062d\u064a\u062d","Details":"\u062a\u0641\u0627\u0635\u064a\u0644","Delete":"\u062d\u0630\u0641","RoleDetails":"\u062a\u0641\u0627\u0635\u064a\u0644 \u0627\u0644\u062f\u0648\u0631 \\"{{name}}\\"","EditRole":" \u062a\u062d\u0631\u064a\u0631 \u0627\u0644\u062f\u0648\u0631\\"{{name}}\\"","Name":"\u0627\u0633\u0645","Description":"\u0648\u0635\u0641","Users":"\u0627\u0644\u0645\u0633\u062a\u062e\u062f\u0645\u064a\u0646"},"editor":{"Name":"\u0627\u0633\u0645:","Description":"\u0648\u0635\u0641:","RoleNameRequired":"(\u0627\u0633\u0645 \u0627\u0644\u062f\u0648\u0631 \u0645\u0637\u0644\u0648\u0628 (\u0628\u062d\u062f \u0623\u062f\u0646\u0649 2 \u0648 200 \u062d\u0631\u0641 \u0643\u062d\u062f \u0623\u0642\u0635\u0649","SelectAll":"\u0627\u062e\u062a\u0631 \u0627\u0644\u0643\u0644","SelectNone":"\u0644\u0627 \u062a\u062e\u062a\u0631 \u0634\u064a\u0621","Close":"\u0625\u063a\u0644\u0627\u0642","Cancel":"\u0625\u0644\u063a\u0627\u0621","Save":"\u062d\u0641\u0638","Saving":"\u
1062c\u0627\u0631 \u0627\u0644\u062d\u0641\u0638..."}},"notifications":{"Delete":"\u062d\u0630\u0641 \u0627\u0644\u0625\u0634\u0639\u0627\u0631","Pin":"\u0631\u0641\u0639 \u0627\u0644\u0623\u0648\u0644\u0648\u064a\u0629","Date":"\u062a\u0627\u0631\u064a\u062e","Notification":"\u0625\u0639\u0644\u0627\u0645"},"todoDemo":{"management":{"Search":"\u0627\u0644\u0628\u062d\u062b \u0639\u0646 \u0645\u0647\u0645\u0629...","HideCompleted":"\u0625\u0643\u062a\u0645\u0627\u0644 \u0627\u0644\u0625\u062e\u0641\u0627\u0621","AddTask":"\u0625\u0636\u0627\u0641\u0629 \u0645\u0647\u0645\u0629","Delete":"\u062d\u0630\u0641 \u0627\u0644\u0645\u0647\u0645\u0629","Important":"\u0648\u0636\u0639 \u0639\u0644\u0627\u0645\u0629 \u0643\u0645\u0647\u0645\u0629","Task":"\u0645\u0647\u0645\u0629","Description":"\u0648\u0635\u0641"},"editor":{"NewTask":"\u0645\u0647\u0645\u0629 \u062c\u062f\u064a\u062f\u0629","Name":"\u0627\u0633\u0645","TaskNameRequired":"\u0645\u0637\u0644\u0648\u0628 \u0627\u0633\u0645 \u0627\u0644\u0645\u0647\u0645\u0629","Description":"\u0648\u0635\u0641","Important":"\u0648\u0636\u0639 \u0639\u0644\u0627\u0645\u0629 \u0644\u0625\u0638\u0647\u0627\u0631 \u0627\u0644\u0623\u0647\u0645\u064a\u0629","AddTask":"\u0625\u0636\u0627\u0641\u0629 \u0645\u0647\u0645\u0629"}}}')},nyYc:function(e,t,n){!function(e){"use strict";var t=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,n=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];e.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n("wd/R"))},o1bE:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},i=function(e){return function(i,r,a,o){var s=t(i),l=n[e][t(i)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,i)}}
1,r=["\u062c\u0627\u0646\u0641\u064a","\u0641\u064a\u0641\u0631\u064a","\u0645\u0627\u0631\u0633","\u0623\u0641\u0631\u064a\u0644","\u0645\u0627\u064a","\u062c\u0648\u0627\u0646","\u062c\u0648\u064a\u0644\u064a\u0629","\u0623\u0648\u062a","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];e.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(e){return"\u0645"===e},meridiem:function(e,t,n){return e<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(e){return e.replace(/,/g,"\u060c")},week:{dow:0,doy:4}})}(n("wd/R"))},oB13:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("EQ5u");function r(e,t){return function(n){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new a(r,t));var o=Object.create(n,i.b);return o.source=n,o.subjectFactory=r,o}}var a=function(){function e(t,n){_classCallCheck(this,e),this.subjectFactory=t,this.selector=n}return _createClass(e,[{key:"call",value:function(e,t){var n=this.selector,i=this.subjectFactory(),r=n(i).subscribe(e);return r.add(t.subscribe(i)),r}}]),e}()},ofXK:function(e,t,n){"use strict";n.d(t,"a",function(){return _}),n.d(t,"b",function(){return Ae}),n.d(t,"c",function(){return He}),n.d(t,"d",function(){return l}),n.d(t,"e",function(){return Pe}),n.d(t,"f",function(){return T}),n.d(t,"g",function(){return k}),n.d(t,"h",function(){return d}),n.d(t,"i",function(){return C}),n.d(t,"j",function(){return y}),n.d(t,"k",function(){return ve}),n.d(t,"l",function(){return be}),n.d(t,"m",function(){return we}),n.d(t,"n",function(){return xe}),n.d(t,"o",function(){return Se}),n.d(t,"p",function(){return w}),n.d(t,"q",function(){return Le}),n.d(t,"r",function(){return c}),n.d(t,"s",function(){return E}),n.d(t,"t",function(){return Re}),n.d(t,"u",function(){return Ye}),n.d(t,"v",function(){return Q}),n.d(t,"w",function(){return O}),n.d(t,"x",function(){return L}),n.d(t,"y",function(){return I}),n.d(t,"z",function(){return Fe}),n.d(t,"A",function(){return s}),n.d(t,"B",function(){return je}),n.d(t,"C",function(){return a}),n.d(t,"D",function(){return ge}),n.d(t,"E",function(){return o});var i=n("fXoL"),r=null;function a(){return r}function o(e){r||(r=e)}var s=function e(){_classCallCheck(this,e)},l=new i.y("DocumentToken"),c=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Zb)({factory:u,token:e,providedIn:"platform"}),e}();function u(){return Object(i.qc)(h)}var d=new i.y("Location Initialized"),h=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._init(),i}return _createClass(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return a().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){var t=a().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),function(){return t.removeEventListener("popstate",e)}}},{key:"onHashChange",value:function(e){var t=a().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),function(){return t.removeEventListener("hashchange",e)}}},{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(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(e,t,n){f()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){f()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(e)}},{key:"getState",value:function(){return this._history.state}}]),n}(c);return e.\u0275fac=function(t){return new(t||e)(i.qc(l))},e.\u0275prov=Object(i.Zb)({factory:p,token:e,providedIn:"platform"}),e}();function f(){return!!window.history.pushState}function p(){return new h(Object(i.qc)(l))}function m(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function g(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function v(e){return e&&"?"!==e[0]?"?"+e:e}var y=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"historyGo",value:function(e){throw new Error("Not implemented")}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(i.Zb)({factory:b,token:e,providedIn:"root"}),e}();function b(e){var t=Object(i.qc)(l).location;return new w(Object(i.qc)(c),t&&t.origin||"")}var _=new i.y("appBaseHref"),w=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;if(_classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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 r._baseHref=i,_possibleConstructorReturn(r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.on
1HashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return m(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+v(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.qc(c),i.qc(_,8))},e.\u0275prov=i.Zb({token:e,factory:e.\u0275fac}),e}(),k=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._platformLocation=e,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return _createClass(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=m(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(e,t,r)}},{key:"replaceState",value:function(e,t,n,i){var r=this.prepareExternalUrl(n+v(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformLocation).historyGo)||void 0===t||t.call(e,n)}}]),n}(y);return e.\u0275fac=function(t){return new(t||e)(i.qc(c),i.qc(_,8))},e.\u0275prov=i.Zb({token:e,factory:e.\u0275fac}),e}(),C=function(){var e=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._subject=new i.s,this._urlChangeListeners=[],this._platformStrategy=t;var a=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=g(S(a)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return _createClass(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+v(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,S(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+v(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(t=(e=this._platformStrategy).historyGo)||void 0===t||t.call(e,n)}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;
1this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.qc(y),i.qc(c))},e.normalizeQueryParams=v,e.joinWithSlash=m,e.stripTrailingSlash=g,e.\u0275prov=Object(i.Zb)({factory:x,token:e,providedIn:"root"}),e}();function x(){return new C(Object(i.qc)(y),Object(i.qc)(c))}function S(e){return e.replace(/\/index.html$/,"")}var M=function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e}({}),D=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),T=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}({}),E=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}({}),A=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}({}),P=function(e){return e[e.Decimal=0]="Decimal",e[e.Group=1]="Group",e[e.List=2]="List",e[e.PercentSign=3]="PercentSign",e[e.PlusSign=4]="PlusSign",e[e.MinusSign=5]="MinusSign",e[e.Exponential=6]="Exponential",e[e.SuperscriptingExponent=7]="SuperscriptingExponent",e[e.PerMille=8]="PerMille",e[e[1/0]=9]="Infinity",e[e.NaN=10]="NaN",e[e.TimeSeparator=11]="TimeSeparator",e[e.CurrencyDecimal=12]="CurrencyDecimal",e[e.CurrencyGroup=13]="CurrencyGroup",e}({});function L(e,t,n){var r=Object(i.xb)(e),a=z([r[i.nb.DayPeriodsFormat],r[i.nb.DayPeriodsStandalone]],t);return z(a,n)}function O(e,t,n){var r=Object(i.xb)(e),a=z([r[i.nb.DaysFormat],r[i.nb.DaysStandalone]],t);return z(a,n)}function I(e,t,n){var r=Object(i.xb)(e),a=z([r[i.nb.MonthsFormat],r[i.nb.MonthsStandalone]],t);return z(a,n)}function H(e,t){return z(Object(i.xb)(e)[i.nb.DateFormat],t)}function j(e,t){return z(Object(i.xb)(e)[i.nb.TimeFormat],t)}function F(e,t){return z(Object(i.xb)(e)[i.nb.DateTimeFormat],t)}function R(e,t){var n=Object(i.xb)(e),r=n[i.nb.NumberSymbols][t];if(void 0===r){if(t===P.CurrencyDecimal)return n[i.nb.NumberSymbols][P.Decimal];if(t===P.CurrencyGroup)return n[i.nb.NumberSymbols][P.Group]}return r}function N(e,t){return Object(i.xb)(e)[i.nb.NumberFormats][t]}var B=i.Ab;function Y(e){if(!e[i.nb.ExtraData])throw new Error('Missing extra locale data for the locale "'.concat(e[i.nb.LocaleId],'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.'))}function z(e,t){for(var n=t;n>-1;n--)if(void 0!==e[n])return e[n];throw new Error("Locale data API: locale data undefined")}function V(e){var t=_slicedToArray(e.split(":"),2);return{hours:+t[0],minutes:+t[1]}}var U=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,$={},W=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{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]*)/,q=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}({}),G=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}({}),X=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}({});function Q(e,t,n,i){var r=function(e){if(ce(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){var t=_slicedToArray(e.split("-").map(function(e){return+e}),3),n=t[0],i=t[1],r=void 0===i?1:i,a=t[2];return K(n,r-1,void 0===a?1:a)}var o,s=parseFloat(e);if(!isNaN(e-s))return new Date(s);if(o=e.match(U))return function(e){var t=new Date(0),n=0,i=0,r=e[8]?t.setUTCFullYear:t.setFullYear,a=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),i=Number(e[9]+e[11])),r.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));var o=Number(e[4]||0)-n,s=Number(e[5]||0)-i,l=Number(e[6]||0),c=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return a.call(t,o,s,l,c),t}(o)}var l=new Date(e);if(!ce(l))throw new Error('Unable to convert "'.concat(e,'" into a date'));return l}(e);t=Z(n,t)||t;for(var a,o=[];t;){if(!(a=W.exec(t))){o.push(t);break}var s=(o=o.concat(a.slice(1))).pop();if(!s)break;t=s}var l=r.getTimezoneOffset();i&&(l=le(i,l),r=function(e,t){var n=e.getTimezoneOffset();return function(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,-1*(le(t,n)-n))}(r,i));var c="";return o.forEach(function(e){var t=function(e){if(se[e])return se[e];var t;switch(e){case"G":case"GG":case"GGG":t=ne(X.Eras,E.Abbreviated);break;case"GGGG":t=ne(X.Eras,E.Wide);break;case"GGGGG":t=ne(X.Eras,E.Narrow);break;case"y":t=te(G.FullYear,1,0,!1,!0);break;case"yy":t=te(G.FullYear,2,0,!0,!0);break;case"yyy":t=te(G.FullYear,3,0,!1,!0);break;case"yyyy":t=te(G.FullYear,4,0,!1,!0);break;case"Y":t=oe(1);break;case"YY":t=oe(2,!0);break;case"YYY":t=oe(3);break;case"YYYY":t=oe(4);break;case"M":case"L":t=te(G.Month,1,1);break;case"MM":case"LL":t=te(G.Month,2,1);break;case"MMM":t=ne(X.Months,E.Abbreviated);break;case"MMMM":t=ne(X.Months,E.Wide);break;case"MMMMM":t=ne(X.Months,E.Narrow);break;case"LLL":t=ne(X.Months,E.Abbreviated,T.Standalone);break;case"LLLL":t=ne(X.Months,E.Wide,T.Standalone);break;case"LLLLL":t=ne(X.Months,E.Narrow,T.Standalone);break;case"w":t=ae(1);break;case"ww":t=ae(2);break;case"W":t=ae(1,!0);break;case"d":t=te(G.Date,1);break;case"dd":t=te(G.Date,2);break;case"c":case"cc":t=te(G.Day,1);break;case"ccc":t=ne(X.Days,E.Abbreviated,T.Standalone);break;case"cccc":t=ne(X.Days,E.Wide,T.Standalone);break;case"ccccc":t=ne(X.Days,E.Narrow,T.Standalone);break;case"cccccc":t=ne(X.Days,E.Short,T.Standalone);break;case"E":case"EE":case"EEE":t=ne(X.Days,E.Abbreviated);break;case"EEEE":t=ne(X.Days,E.Wide);break;case"EEEEE":t=ne(X.Days,E.Narrow);break;case"EEEEEE":t=ne(X.Days,E.Short);break;case"a":case"aa":case"aaa":t=ne(X.DayPeriods,E.Abbreviated);break;case"aaaa":t=ne(X.DayPeriods,E.Wide);break;case"aaaaa":t=ne(X.DayPeriods,E.Narrow);break;
vendor: 13,905 bytes, line 1
1case"b":case"bb":case"bbb":t=ne(X.DayPeriods,E.Abbreviated,T.Standalone,!0);break;case"bbbb":t=ne(X.DayPeriods,E.Wide,T.Standalone,!0);break;case"bbbbb":t=ne(X.DayPeriods,E.Narrow,T.Standalone,!0);break;case"B":case"BB":case"BBB":t=ne(X.DayPeriods,E.Abbreviated,T.Format,!0);break;case"BBBB":t=ne(X.DayPeriods,E.Wide,T.Format,!0);break;case"BBBBB":t=ne(X.DayPeriods,E.Narrow,T.Format,!0);break;case"h":t=te(G.Hours,1,-12);break;case"hh":t=te(G.Hours,2,-12);break;case"H":t=te(G.Hours,1);break;case"HH":t=te(G.Hours,2);break;case"m":t=te(G.Minutes,1);break;case"mm":t=te(G.Minutes,2);break;case"s":t=te(G.Seconds,1);break;case"ss":t=te(G.Seconds,2);break;case"S":t=te(G.FractionalSeconds,1);break;case"SS":t=te(G.FractionalSeconds,2);break;case"SSS":t=te(G.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ie(q.Short);break;case"ZZZZZ":t=ie(q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ie(q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ie(q.Long);break;default:return null}return se[e]=t,t}(e);c+=t?t(r,n,l):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function K(e,t,n){var i=new Date(0);return i.setFullYear(e,t,n),i.setHours(0,0,0),i}function Z(e,t){var n=function(e){return Object(i.xb)(e)[i.nb.LocaleId]}(e);if($[n]=$[n]||{},$[n][t])return $[n][t];var r="";switch(t){case"shortDate":r=H(e,A.Short);break;case"mediumDate":r=H(e,A.Medium);break;case"longDate":r=H(e,A.Long);break;case"fullDate":r=H(e,A.Full);break;case"shortTime":r=j(e,A.Short);break;case"mediumTime":r=j(e,A.Medium);break;case"longTime":r=j(e,A.Long);break;case"fullTime":r=j(e,A.Full);break;case"short":var a=Z(e,"shortTime"),o=Z(e,"shortDate");r=J(F(e,A.Short),[a,o]);break;case"medium":var s=Z(e,"mediumTime"),l=Z(e,"mediumDate");r=J(F(e,A.Medium),[s,l]);break;case"long":var c=Z(e,"longTime"),u=Z(e,"longDate");r=J(F(e,A.Long),[c,u]);break;case"full":var d=Z(e,"fullTime"),h=Z(e,"fullDate");r=J(F(e,A.Full),[d,h])}return r&&($[n][t]=r),r}function J(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(e,n){return null!=t&&n in t?t[n]:e})),e}function ee(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,a="";(e<0||r&&e<=0)&&(r?e=1-e:(e=-e,a=n));for(var o=String(e);o.length<t;)o="0"+o;return i&&(o=o.substr(o.length-t)),a+o}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return function(a,o){var s,l=function(e,t){switch(e){case G.FullYear:return t.getFullYear();case G.Month:return t.getMonth();case G.Date:return t.getDate();case G.Hours:return t.getHours();case G.Minutes:return t.getMinutes();case G.Seconds:return t.getSeconds();case G.FractionalSeconds:return t.getMilliseconds();case G.Day:return t.getDay();default:throw new Error('Unknown DateType value "'.concat(e,'".'))}}(e,a);if((n>0||l>-n)&&(l+=n),e===G.Hours)0===l&&-12===n&&(l=12);else if(e===G.FractionalSeconds)return s=t,ee(l,3).substr(0,s);var c=R(o,P.MinusSign);return ee(l,t,c,i,r)}}function ne(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T.Format,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(a,o){return function(e,t,n,r,a,o){switch(n){case X.Months:return I(t,a,r)[e.getMonth()];case X.Days:return O(t,a,r)[e.getDay()];case X.DayPeriods:var s=e.getHours(),l=e.getMinutes();if(o){var c=function(e){var t=Object(i.xb)(e);return Y(t),(t[i.nb.ExtraData][2]||[]).map(function(e){return"string"==typeof e?V(e):[V(e[0]),V(e[1])]})}(t),u=function(e,t,n){var r=Object(i.xb)(e);Y(r);var a=z([r[i.nb.ExtraData][0],r[i.nb.ExtraData][1]],t)||[];return z(a,n)||[]}(t,a,r),d=c.findIndex(function(e){if(Array.isArray(e)){var t=_slicedToArray(e,2),n=t[0],i=t[1],r=s>=n.hours&&l>=n.minutes,a=s<i.hours||s===i.hours&&l<i.minutes;if(n.hours<i.hours){if(r&&a)return!0}else if(r||a)return!0}else if(e.hours===s&&e.minutes===l)return!0;return!1});if(-1!==d)return u[d]}return L(t,a,r)[s<12?0:1];case X.Eras:return function(e,t){return z(Object(i.xb)(e)[i.nb.Eras],t)}(t,r)[e.getFullYear()<=0?0:1];default:throw new Error("unexpected translation type ".concat(n))}}(a,o,e,t,n,r)}}function ie(e){return function(t,n,i){var r=-1*i,a=R(n,P.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(e){case q.Short:return(r>=0?"+":"")+ee(o,2,a)+ee(Math.abs(r%60),2,a);case q.ShortGMT:return"GMT"+(r>=0?"+":"")+ee(o,1,a);case q.Long:return"GMT"+(r>=0?"+":"")+ee(o,2,a)+":"+ee(Math.abs(r%60),2,a);case q.Extended:return 0===i?"Z":(r>=0?"+":"")+ee(o,2,a)+":"+ee(Math.abs(r%60),2,a);default:throw new Error('Unknown zone width "'.concat(e,'"'))}}}function re(e){return K(e.getFullYear(),e.getMonth(),e.getDate()+(4-e.getDay()))}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){var r,a,o;if(t){var s=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();r=1+Math.floor((l+s)/7)}else{var c=re(n),u=(a=c.getFullYear(),o=K(a,0,1).getDay(),K(a,0,1+(o<=4?4:11)-o)),d=c.getTime()-u.getTime();r=1+Math.round(d/6048e5)}return ee(r,e,R(i,P.MinusSign))}}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,i){return ee(re(n).getFullYear(),e,R(i,P.MinusSign),t)}}var se={};function le(e,t){e=e.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function ce(e){return e instanceof Date&&!isNaN(e.valueOf())}var ue=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function de(e,t,n,i,r,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s="",l=!1;if(isFinite(e)){var c=function(e){var t,n,i,r,a,o=Math.abs(e)+"",s=0;for((n=o.indexOf("."))>-1&&(o=o.replace(".","")),(i=o.search(/e/i))>0?(n<0&&(n=i),n+=+o.slice(i+1),o=o.substring(0,i)):n<0&&(n=o.length),i=0;"0"===o.charAt(i);i++);if(i===(a=o.length))t=[0],n=1;else{for(a--;"0"===o.charAt(a);)a--;for(n-=i,t=[],r=0;i<=a;i++,r++)t[r]=Number(o.charAt(i))}return n>22&&(t=t.splice(0,21),s=n-1,n=1),{digits:t,exponent:s,integerLen:n}}(e);o&&(c=function(e){if(0===e.digits[0])return e;var t=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(0===t?e.digits.push(0,0):1===t&&e.digits.push(0),e.integerLen+=2),e}(c));var u=t.minInt,d=t.minFrac,h=t.maxFrac;if(a){var f=a.match(ue);if(null===f)throw new Error("".concat(a," is not a valid digit info"));var p=f[1],m=f[3],g=f[5];null!=p&&(u=fe(p)),null!=m&&(d=fe(m)),null!=g?h=fe(g):null!=m&&d>h&&(h=d)}!function(e,t,n){if(t>n)throw new Error("The minimum number of digits after fraction (".concat(t,") is higher than the maximum (").concat(n,")."));var i=e.digits,r=i.length-e.integerLen,a=Math.min(Math.max(t,r),n),o=a+e.integerLen,s=i[o];if(o>0){i.splice(Math.max(e.integerLen,o));for(var l=o;l<i.length;l++)i[l]=0}else{r=Math.max(0,r),e.integerLen=1,i.length=Math.max(1,o=a+1),i[0]=0;for(var c=1;c<o;c++)i[c]=0}if(s>=5)if(o-1<0){for(var u=0;u>o;u--)i.unshift(0),e.integerLen++;i.unshift(1),e.integerLen++}else i[o-1]++;for(;r<Math.max(0,a);r++)i.push(0);var d=0!==a,h=t+e.integerLen,f=i.reduceRight(function(e,t,n,i){return i[n]=(t+=e)<10?t:t-10,d&&(0===i[n]&&n>=h?i.pop():d=!1),t>=10?1:0},0);f&&(i.unshift(f),e.integerLen++)}(c,d,h);var v=c.digits,y=c.integerLen,b=c.exponent,_=[];for(l=v.every(function(e){return!e});y<u;y++)v.unshift(0);for(;y<0;y++)v.unshift(0);y>0?_=v.splice(y,v.length):(_=v,v=[0]);var w=[];for(v.length>=t.lgSize&&w.unshift(v.splice(-t.lgSize,v.length).join(""));v.length>t.gSize;)w.unshift(v.splice(-t.gSize,v.length).join(""));v.length&&w.unshift(v.join("")),s=w.join(R(n,i)),_.length&&(s+=R(n,r)+_.join("")),b&&(s+=R(n,P.Exponential)+"+"+b)}else s=R(n,P.Infinity);return s=e<0&&!l?t.negPre+s+t.negSuf:t.posPre+s+t.posSuf}function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=e.split(";"),r=i[0],a=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=o[0],l=o[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var c=0;c<l.length;c++){var u=l.charAt(c);"0"===u?n.minFrac=n.maxFrac=c+1:"#"===u?n.maxFrac=c+1:n.posSuf+=u}var d=s.split(",");if(n.gSize=d[1]?d[1].length:0,n.lgSize=d[2]||d[1]?(d[2]||d[1]).length:0,a){var h=r.length-n.posPre.length-n.posSuf.length,f=a.indexOf("#");n.negPre=a.substr(0,f).replace(/'/g,""),n.negSuf=a.substr(f+h).replace(/'/g,"")}else n.negPre=t+n.posPre,n.negSuf=n.posSuf;return n}function fe(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}var pe=function e(){_classCallCheck(this,e)},me=function(){var e=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).locale=e,i}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(B(t||this.locale)(e)){case D.Zero:return"zero";case D.One:return"one";case D.Two:return"two";case D.Few:return"few";case D.Many:return"many";default:return"other"}}}]),n}(pe);return e.\u0275fac=function(t){return new(t||e)(i.qc(i.D))},e.\u0275prov=i.Zb({token:e,factory:e.\u0275fac}),e}();function ge(e,t){t=encodeURIComponent(t);var n,i=_createForOfIteratorHelper(e.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.indexOf("="),o=_slicedToArray(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),s=o[0],l=o[1];if(s.trim()===t)return decodeURIComponent(l)}}catch(c){i.e(c)}finally{i.f()}return null}var ve=function(){var e=function(){function e(t,n,i,r){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(i.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 e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Object(i.Kb)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.dc(i.B),i.dc(i.C),i.dc(i.q),i.dc(i.Q))},e.\u0275dir=i.Yb({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),ye=function(){function e(t,n,i,r){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=i,this.count=r}return _createClass(e,[{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}}]),e}(),be=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(e){this._trackByFn=e}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,i,r){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new ye(null,t._ngForOf,-1,-1),null===r?void 0:r),o=new _e(e,a);n.push(o)}else if(null==r)t._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=t._viewContainer.get(i);t._viewContainer.move(s,r);var l=new _e(e,s);n.push(l)}});for(var i=0;i<n.length;i++)this._perViewChange(n[i].view,n[i].record);for(var r=0,a=this._viewContainer.length;r<a;r++){var o=this._viewContainer.get(r);
1o.context.index=r,o.context.count=a,o.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.dc(i.cb),i.dc(i.X),i.dc(i.B))},e.\u0275dir=i.Yb({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e}(),_e=function e(t,n){_classCallCheck(this,e),this.record=t,this.view=n},we=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this._viewContainer=t,this._context=new ke,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return _createClass(e,[{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Ce("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Ce("ngIfElse",e),this._elseTemplateRef=e,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(e,t){return!0}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.dc(i.cb),i.dc(i.X))},e.\u0275dir=i.Yb({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e}(),ke=function e(){_classCallCheck(this,e),this.$implicit=null,this.ngIf=null};function Ce(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(Object(i.Kb)(t),"'."))}var xe=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._ngEl=t,this._differs=n,this._renderer=i,this._ngStyle=null,this._differ=null}return _createClass(e,[{key:"ngStyle",set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}},{key:"ngDoCheck",value:function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}},{key:"_setStyle",value:function(e,t){var n=_slicedToArray(e.split("."),2),i=n[0],r=n[1];null!=(t=null!=t&&r?"".concat(t).concat(r):t)?this._renderer.setStyle(this._ngEl.nativeElement,i,t):this._renderer.removeStyle(this._ngEl.nativeElement,i)}},{key:"_applyChanges",value:function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.dc(i.q),i.dc(i.C),i.dc(i.Q))},e.\u0275dir=i.Yb({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),e}(),Se=function(){var e=function(){function e(t){_classCallCheck(this,e),this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}return _createClass(e,[{key:"ngOnChanges",value:function(e){if(e.ngTemplateOutlet){var t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.dc(i.cb))},e.\u0275dir=i.Yb({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.Nb]}),e}();function Me(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(Object(i.Kb)(e),"'"))}var De=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"createSubscription",value:function(e,t){return e.subscribe({next:t,error:function(e){throw e}})}},{key:"dispose",value:function(e){e.unsubscribe()}},{key:"onDestroy",value:function(e){e.unsubscribe()}}]),e}(),Te=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"createSubscription",value:function(e,t){return e.then(t,function(e){throw e})}},{key:"dispose",value:function(e){}},{key:"onDestroy",value:function(e){}}]),e}()),Ee=new De,Ae=function(){var e=function(){function e(t){_classCallCheck(this,e),this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}return _createClass(e,[{key:"ngOnDestroy",value:function(){this._subscription&&this._dispose()}},{key:"transform",value:function(e){return this._obj?e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue:(e&&this._subscribe(e),this._latestValue)}},{key:"_subscribe",value:function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(n){return t._updateLatestValue(e,n)})}},{key:"_selectStrategy",value:function(t){if(Object(i.Fb)(t))return Te;if(Object(i.Gb)(t))return Ee;throw Me(e,t)}},{key:"_dispose",value:function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}},{key:"_updateLatestValue",value:function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.dc(i.j,16))},e.\u0275pipe=i.cc({name:"async",type:e,pure:!1}),e}(),Pe=function(){var e=function(){function e(t){_classCallCheck(this,e),this._locale=t}return _createClass(e,[{key:"transform",value:function(t,n,i){if(!Oe(t))return null;i=i||this._locale;try{return function(e,t,n){return de(e,he(N(t,M.Decimal),R(t,P.MinusSign)),t,P.Group,P.Decimal,n)}(Ie(t),i,n)}catch(r){throw Me(e,r.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.dc(i.D,16))},e.\u0275pipe=i.cc({name:"number",type:e,pure:!0}),e}(),Le=function(){var e=function(){function e(t){_classCallCheck(this,e),this._locale=t}return _createClass(e,[{key:"transform",value:function(t,n,i){if(!Oe(t))return null;i=i||this._locale;try{return function(e,t,n){return de(e,he(N(t,M.Percent),R(t,P.MinusSign)),t,P.Group,P.Decimal,n,!0).replace(new RegExp("%","g"),R(t,P.PercentSign))}(Ie(t),i,n)}catch(r){throw Me(e,r.message)}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(i.dc(i.D,16))},e.\u0275pipe=i.cc({name:"percent",type:e,pure:!0}),e}();function Oe(e){return!(null==e||""===e||e!=e)}function Ie(e){if("string"==typeof e&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if("number"!=typeof e)throw new Error("".concat(e," is not a number"));return e}var He=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=i.bc({type:e}),e.\u0275inj=i.ac({providers:[{provide:pe,useClass:me}]}),e}(),je="browser";function Fe(e){return e===je}var Re=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=Object(i.Zb)({token:e,providedIn:"root",factory:function(){return new Ne(Object(i.qc)(l),window)}}),e}(),Ne=function(){function e(t,n){_classCallCheck(this,e),this.document=t,this.window=n,this.offset=function(){return[0,0]}}return _createClass(e,[{key:"setOffset",value:function(e){this.offset=Array.isArray(e)?function(){return e}:e}},{key:"getScrollPosition",value:function(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}},{key:"scrollToPosition",value:function(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}},{key:"scrollToAnchor",value:function(e){if(this.supportsScrolling()){var t=function(e,t){var n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&(e.body.createShadowRoot||e.body.attachShadow))for(var i=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),r=i.currentNode;r;){var a=r.shadowRoot;if(a){var o=a.getElementById(t)||a.querySelector('[name="'.concat(t,'"]'));if(o)return o}r=i.nextNode()}return null}(this.document,e);t&&(this.scrollToElement(t),this.attemptFocus(t))}}},{key:"setHistoryScrollRestoration",value:function(e){if(this.supportScrollRestoration()){var t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=e)}}},{key:"scrollToElement",value:function(e){var t=e.getBoundingClientRect(),n=t.left+this.window.pageXOffset,i=t.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(n-r[0],i-r[1])}},{key:"attemptFocus",value:function(e){return e.focus(),this.document.activeElement===e}},{key:"supportScrollRestoration",value:function(){try{if(!this.supportsScrolling())return!1;var e=Be(this.window.history)||Be(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(t){return!1}}},{key:"supportsScrolling",value:function(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}]),e}();function Be(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}var Ye=function e(){_classCallCheck(this,e)}},"p/rL":function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n("wd/R"))},pLZG:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(e,t){return function(n){return n.lift(new a(e,t))}}var a=function(){function e(t,n){_classCallCheck(this,e),this.predicate=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.predicate,this.thisArg))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).predicate=i,a.thisArg=r,a.count=0,a}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)}}]),n}(i.a)},quSY:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i,r,a=n("DH7j"),o=n("XoHu"),s=n("n6bG"),l=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map(function(e,t){return"".concat(t+1,") ").concat(e.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),c=((r=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,c=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var d=0;d<n.length;++d)n[d].remove(this);if(Object(s.a)(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(m){t=m instanceof l?u(m.errors):[m]}}if(Object(a.a)(c))for(var h=-1,f=c.length;++h<f;){var p=c[h];if(Object(o.a)(p))try{p.unsubscribe()}catch(m){t=t||[],m instanceof l?t=t.concat(u(m.errors)):t.push(m)}}if(t)throw new l(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var i=n;(n=new e)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var r=n._parentOrParents;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}var a=this._subscriptions;return null===a?this._subscriptions=[n]:a.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=((i=new r).closed=!0,i),r);function u(e){return e.reduce(function(e,t){return e.concat(t instanceof l?t.errors:t)},[])}},qvJo:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["\u0925\u094b\u0921\u092f\u093e \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940","\u0925\u094b\u0921\u0947 \u0938\u0945\u0915\u0902\u0921"],ss:[e+" \u0938\u0945\u0915\u0902\u0921\u093e\u0902\u0928\u0940",e+" \u0938\u0945\u0915\u0902\u0921"],m:["\u090f\u0915\u093e \u092e\u093f\u0923\u091f\u093e\u0928","\u090f\u0915 \u092e\u093f\u0928\u0942\u091f"],mm:[e+" \u092e\u093f\u0923\u091f\u093e\u0902\u0928\u0940",e+" \u092e\u093f\u0923\u091f\u093e\u0902"],h:["\u090f\u0915\u093e \u0935\u0930\u093e\u0928","\u090f\u0915 \u0935\u0930"],hh:[e+" \u0935\u0930\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u093e\u0902"],d:["\u090f\u0915\u093e \u0926\u093f\u0938\u093e\u0928","\u090f\u0915 \u0926\u0940\u0938"],dd:[e+" \u0926\u093f\u0938\u093e\u0902\u0928\u0940",e+" \u0926\u0940\u0938"],M:["\u090f\u0915\u093e \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928","\u090f\u0915 \u092e\u094d\u0939\u092f\u0928\u094b"],MM:[e+" \u092e\u094d\u0939\u092f\u0928\u094d\u092f\u093e\u0928\u0940",e+" \u092e\u094d\u0939\u092f\u0928\u0947"],y:["\u090f\u0915\u093e \u0935\u0930\u094d\u0938\u093e\u0928","\u090f\u0915 \u0935\u0930\u094d\u0938"],yy:[e+" \u0935\u0930\u094d\u0938\u093e\u0902\u0928\u0940",e+" \u0935\u0930\u094d\u0938\u093e\u0902"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-deva",{months:{standalone:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u092f_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),format:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940\u091a\u094d\u092f\u093e_\u092e\u093e\u0930\u094d\u091a\u093e\u091a\u094d\u092f\u093e_\u090f\u092a\u094d\u0930\u0940\u0932\u093e\u091a\u094d\u092f\u093e_\u092e\u0947\u092f\u093e\u091a\u094d\u092f\u093e_\u091c\u0942\u0928\u093e\u091a\u094d\u092f\u093e_\u091c\u0941\u0932\u092f\u093e\u091a\u094d\u092f\u093e_\u0911\u0917\u0938\u094d\u091f\u093e\u091a\u094d\u092f\u093e_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0911\u0915\u094d\u091f\u094b\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e_\u0921\u093f\u0938\u0947\u0902\u092c\u0930\u093e\u091a\u094d\u092f\u093e".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u0940._\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0911\u091
17._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u092f\u0924\u093e\u0930_\u0938\u094b\u092e\u093e\u0930_\u092e\u0902\u0917\u0933\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u092c\u093f\u0930\u0947\u0938\u094d\u0924\u093e\u0930_\u0938\u0941\u0915\u094d\u0930\u093e\u0930_\u0936\u0947\u0928\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0906\u092f\u0924._\u0938\u094b\u092e._\u092e\u0902\u0917\u0933._\u092c\u0941\u0927._\u092c\u094d\u0930\u0947\u0938\u094d\u0924._\u0938\u0941\u0915\u094d\u0930._\u0936\u0947\u0928.".split("_"),weekdaysMin:"\u0906_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u092c\u094d\u0930\u0947_\u0938\u0941_\u0936\u0947".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LTS:"A h:mm:ss [\u0935\u093e\u091c\u0924\u093e\u0902]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]",llll:"ddd, D MMM YYYY, A h:mm [\u0935\u093e\u091c\u0924\u093e\u0902]"},calendar:{sameDay:"[\u0906\u092f\u091c] LT",nextDay:"[\u092b\u093e\u0932\u094d\u092f\u093e\u0902] LT",nextWeek:"[\u092b\u0941\u0921\u0932\u094b] dddd[,] LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092b\u093e\u091f\u0932\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s \u0906\u0926\u0940\u0902",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(\u0935\u0947\u0930)/,ordinal:function(e,t){return"D"===t?e+"\u0935\u0947\u0930":e},week:{dow:0,doy:3},meridiemParse:/\u0930\u093e\u0924\u0940|\u0938\u0915\u093e\u0933\u0940\u0902|\u0926\u0928\u092a\u093e\u0930\u093e\u0902|\u0938\u093e\u0902\u091c\u0947/,meridiemHour:function(e,t){return 12===e&&(e=0),"\u0930\u093e\u0924\u0940"===t?e<4?e:e+12:"\u0938\u0915\u093e\u0933\u0940\u0902"===t?e:"\u0926\u0928\u092a\u093e\u0930\u093e\u0902"===t?e>12?e:e+12:"\u0938\u093e\u0902\u091c\u0947"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"\u0930\u093e\u0924\u0940":e<12?"\u0938\u0915\u093e\u0933\u0940\u0902":e<16?"\u0926\u0928\u092a\u093e\u0930\u093e\u0902":e<20?"\u0938\u093e\u0902\u091c\u0947":"\u0930\u093e\u0924\u0940"}})}(n("wd/R"))},raLr:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===n?t?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":e+" "+(i=+e,r={ss:t?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:t?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:t?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}function n(e){return function(){return e+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}e.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function(e,t){var n={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(t)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:n("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:n("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:n("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:n("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case
16:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return n("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:t,m:t,mm:t,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:t,d:"\u0434\u0435\u043d\u044c",dd:t,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:t,y:"\u0440\u0456\u043a",yy:t},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(e){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(e)},meridiem:function(e,t,n){return e<4?"\u043d\u043e\u0447\u0456":e<12?"\u0440\u0430\u043d\u043a\u0443":e<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-\u0439";case"D":return e+"-\u0433\u043e";default:return e}},week:{dow:1,doy:7}})}(n("wd/R"))},"s+uk":function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},sVev:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},sp3z:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(e){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===e},meridiem:function(e,t,n){return e<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%
1d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(e){return"\u0e97\u0eb5\u0ec8"+e}})}(n("wd/R"))},"t+mt":function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n("wd/R"))},t5iq:function(e){e.exports=JSON.parse('{"app":{"Welcome":"\ud658\uc601","Notifications":"\uc54c\ub9bc","New":"\uc0c8\ub85c\uc6b4"},"mainMenu":{"Appointments":"\uc124\ube44","Customers":"\uace0\uac1d","Products":"\uc81c\uc791\ud488","Orders":"\uba85\ub839","About":"\uc57d","Logout":"\ub85c\uadf8 \uc544\uc6c3"},"pageHeader":{"Dashboard":"\uacc4\uae30\ubc18","Customers":"\uace0\uac1d","Products":"\uc81c\uc791\ud488","Orders":"\uba85\ub839","NotFound":"\ubc1c\uacac\ub418\uc9c0 \uc54a\uc74c","About":"\uc57d","Settings":"\uc124\uc815"},"home":{"NoWidgets1":"\uc704\uc82f\uc774 \ud45c\uc2dc\ub418\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4. \uace0\ud1a0","NoWidgets2":"\uc0ac\uc6a9 \uac00\ub2a5\ud55c \uc704\uc82f\uc744 \uad6c\uc131\ud558\ub294 \ubc29\ubc95","StatisticsTitle":"\uc911\uc694\ud55c \uac83\ub4e4"},"notFound":{"404":"404","pageNotFound":"\ucc3e\uace0\uc788\ub294 \ud398\uc774\uc9c0\uac00 \uc874\uc7ac\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","backToHome":"\ud648\uc73c\ub85c"},"settings":{"tab":{"Profile":"\uc724\uacfd","Preferences":"\ud658\uacbd \uc124\uc815","Users":"\uc0ac\uc6a9\uc790","Roles":"\uc5ed\ud560"},"header":{"UserProfile":"\uc720\uc800 \ud504\ub85c\ud544","UserPreferences":"\uc0ac\uc6a9\uc790 \ud658\uacbd \uc124\uc815","UserDepartments":"\uc0ac\uc6a9\uc790 \ubd80\uc11c","UsersManagements":"\uc0ac\uc6a9\uc790 \uad00\ub9ac","RolesManagement":"\uc5ed\ud560 \uad00\ub9ac"}},"preferences":{"ReloadPreferences":"\ud658\uacbd \uc124\uc815 \uc0c8\ub85c \uace0\uce68 :","ReloadPreferencesHint":"\uae30\ubcf8 \ud658\uacbd \uc124\uc815\ub85c\ub4dc (\ub85c\uceec \ubcc0\uacbd \uc0ac\ud56d\uc740 \ubb34\uc2dc\ub429\ub2c8\ub2e4)","Language":"\uc5b8\uc5b4:","Default":"\uae30\ubcf8","English":"\uc601\uc5b4","French":"\ud504\ub791\uc2a4 \uad6d\ubbfc","German":"\ub3c5\uc77c\uc5b4","Portuguese":"\ud3ec\ub974\ud22c\uac08 \uc778","Arabic":"\uc544\ub77c\ube44\uc544 \ub9d0","Korean":"\ud55c\uad6d\uc5b4","LanguageHint":"\uacc4\uc815\uc758 \uae30\ubcf8 \uc5b8\uc5b4 \uc120\ud0dd","HomePage":"\ud648\ud398\uc774\uc9c0 :","Dashboard":"\uacc4\uae30\ubc18","Customers":"\uace0\uac1d","Products":"\uc81c\uc791\ud488","Orders":"\uba85\ub839","About":"\uc57d","Settings":"\uc124\uc815","HomePageHint":"\ub85c\uadf8\uc778\uc2dc \uc774\ub3d9\ud560 \uae30\ubcf8 \ud398\uc774\uc9c0\ub97c \uc120\ud0dd\ud558\uc2ed\uc2dc\uc624.","Theme":"\ud14c\ub9c8:","DefaultTheme":"\ud0dc\ub9cc","CosmoTheme":"\ucf54\uc2a4\ubaa8","SolarTheme":"\uc194\ub77c","CeruleanTheme":"\uc138\ub974 \ub9ac\uc548","FlatlyTheme":"\ub2e8\uc870\ub86d\uac8c","SketchyTheme":"\uc2a4\ucf00\uce58","SlateTheme":"\uc2ac\ub808\uc774\ud2b8","SpacelabTheme":"\uc6b0\uc8fc \uc2e4\ud5d8\uc2e4","SuperheroTheme":"\uc218\ud37c \ud788\uc5b4\ub85c","UnitedTheme":"\uc720\ub098\uc774\ud2f0\ub4dc","JournalTheme":"\uc77c\uc9c0","LumenTheme":"\ub8e8\uba58","MintyTheme":"\ubbfc\ud2f0","PulseTheme":"\ud384\uc2a4","ThemeHint":"\uacc4\uc815\uc758 \uae30\ubcf8 \uc0c9\uc0c1 \ud14c\ub9c8 \uc120\ud0dd","DashboardStatistics":"\ub300\uc2dc \ubcf4\ub4dc \ud1b5\uacc4:","DashboardStatisticsHint":"\ub370\ubaa8 \uadf8\ub798\ud504 \uc704\uc82f\uc744 \ub300\uc2dc \ubcf4\ub4dc\uc5d0 \ud45c\uc2dc\ud558\uc2ed\uc2dc\uc624.","DashboardNotifications":"\ub300\uc2dc \ubcf4\ub4dc \uc54c\ub9bc :","DashboardNotifications
1Hint":"\ub300\uc2dc \ubcf4\ub4dc\uc5d0 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc54c\ub9bc \ud45c\uc2dc","DashboardTodo":"\ub300\uc2dc \ubcf4\ub4dc \ud560\uc77c:","DashboardTodoHint":"\ub300\uc2dc \ubcf4\ub4dc\uc5d0\uc11c \ub370\ubaa8 \ud560 \uc77c \uc704\uc82f \ud45c\uc2dc","DashboardBanner":"\ub300\uc2dc \ubcf4\ub4dc \ubc30\ub108 :","DashboardBannerHint":"\ub370\ubaa8 \uc815\ubcf4 \ubc30\ub108 \uc704\uc82f\uc744 \ub300\uc2dc \ubcf4\ub4dc\uc5d0 \ud45c\uc2dc\ud558\uc2ed\uc2dc\uc624.","ResetDefault":"\uae30\ubcf8\uac12 \uc7ac\uc124\uc815","SetDefault":"\uae30\ubcf8\uac12\uc73c\ub85c \uc124\uc815"},"users":{"management":{"Search":"\uc0ac\uc6a9\uc790 \uac80\uc0c9...","NewUser":"\uc0c8\ub85c\uc6b4 \uc0ac\uc6a9\uc790","Edit":"\ud3b8\uc9d1\ud558\ub2e4","Delete":"\uc9c0\uc6b0\ub2e4","EditUser":"\uc0ac\uc6a9\uc790 \ud3b8\uc9d1 \\"{{name}}\\"","Title":"\ud45c\uc81c","UserName":"\uc0ac\uc6a9\uc790 \uc774\ub984","FullName":"\uc131\uba85","Email":"\uc774\uba54\uc77c","Roles":"\uc5ed\ud560","PhoneNumber":"\uc804\ud654 \ubc88\ud638"},"editor":{"JobTitle":"\uc9c1\uc704: ","UserName":"\uc0ac\uc6a9\uc790 \uc774\ub984: ","UserNameRequired":"\uc0ac\uc6a9\uc790 \uc774\ub984\uc774 \ud544\uc694\ud569\ub2c8\ub2e4 (\ucd5c\uc18c 2 \uc790, \ucd5c\ub300 200 \uc790).","Password":"\uc554\ud638:","PasswordHint":"\uc0ac\uc6a9\uc790 \uc774\ub984\uc744 \ubcc0\uacbd\ud560 \ub54c \uc554\ud638\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.","CurrentPasswordRequired":"\ud604\uc7ac \ube44\ubc00\ubc88\ud638\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.","Email":"\uc774\uba54\uc77c:","EmailRequired":"\uc774\uba54\uc77c \uc8fc\uc18c\ub294 \ud544\uc218 \uc0ac\ud56d\uc785\ub2c8\ub2e4 (\ucd5c\ub300 200 \uc790).","InvalidEmail":"\uc9c0\uc815\ub41c \uc774\uba54\uc77c\uc774 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","ChangePassword":"\ube44\ubc00\ubc88\ud638 \ubcc0\uacbd","CurrentPassword":"\ud604\uc7ac \ube44\ubc00\ubc88\ud638:","NewPassword":"\uc0c8 \ube44\ubc00\ubc88\ud638:","NewPasswordRequired":"\uc0c8 \uc554\ud638\uac00 \ud544\uc694\ud569\ub2c8\ub2e4 (\ucd5c\uc18c 6 \uc790).","ConfirmPassword":"\ube44\ubc00\ubc88\ud638 \ud655\uc778:","ConfirmationPasswordRequired":"\ud655\uc778 \uc554\ud638\uac00 \ud544\uc694\ud569\ub2c8\ub2e4.","PasswordMismatch":"\uc0c8 \ube44\ubc00\ubc88\ud638\uc640 \ud655\uc778 \ube44\ubc00\ubc88\ud638\uac00 \uc77c\uce58\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.","Roles":"\uc5ed\ud560 :","FullName":"\uc131\uba85 :","RoleRequired":"\uc5ed\ud560\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.","PhoneNumber":"\uc804\ud654 #:","Enabled":"\uc0ac\uc6a9","Unblock":"\ucc28\ub2e8 \ud574\uc81c","Close":"\ub2eb\uae30","Edit":"\ud3b8\uc9d1\ud558\ub2e4","Cancel":"\ucde8\uc18c","Save":"\uad6c\ud558\ub2e4","Saving":"\uc808\uc57d..."}},"roles":{"management":{"Search":"\uc5ed\ud560 \uac80\uc0c9...","NewRole":"\uc0c8\ub85c\uc6b4 \uc5ed\ud560","Edit":"\ud3b8\uc9d1\ud558\ub2e4","Details":"\uc138\ubd80","Delete":"\uc9c0\uc6b0\ub2e4","RoleDetails":"\uc5ed\ud560 \uc138\ubd80 \uc815\ubcf4 \\"{{name}}\\"","EditRole":"\uc5ed\ud560 \ud3b8\uc9d1 \\"{{name}}\\"","Name":"\uc774\ub984","Description":"\uae30\uc220","Users":"\uc0ac\uc6a9\uc790"},"editor":{"Name":"\uc774\ub984:","Description":"\uae30\uc220:","RoleNameRequired":"\uc5ed\ud560 \uc774\ub984\uc740 \ud544\uc218 \ud56d\ubaa9\uc785\ub2c8\ub2e4 (\ucd5c\uc18c 2 \uc790, \ucd5c\ub300 200 \uc790).","SelectAll":"\ubaa8\ub450 \uc120\ud0dd","SelectNone":"\uc5c6\uc74c \uc120\ud0dd","Close":"\ub2eb\uae30","Cancel":"\ucde8\uc18c","Save":"\uad6c\ud558\ub2e4","Saving":"\uc808\uc57d..."}},"notifications":{"Delete":"\uc54c\ub9bc \uc0ad\uc81c","Pin":"\ud540 \uc54c\ub9bc","Date":"\ub0a0\uc9dc","Notification":"\uacf5\uace0"},"todoDemo":{"management":{"Search":"\ud560 \uc77c \uac80\uc0c9...","HideCompleted":"\uc644\ub8cc \uc548\ud568","AddTask":"\ud560 \uc77c \ucd94\uac00","Delete":"\uc791\uc5c5 \uc0ad\uc81c","Important":"\uc911\uc694\ud55c \uac83\uc73c\ub85c \ud45c\uc2dc","Task":"\ud0dc\uc2a4\ud06c","Description":"\uae30\uc220"},"editor":{"NewTask":"\uc0c8 \uc791\uc5c5","Name":"\uc774\ub984","TaskNameRequired":"\uc791\uc5c5 \uc774\ub984\uc774 \ud544\uc694\ud569\ub2c8\ub2e4.","Description":"\uae30\uc220","Important":"\uc911\uc694\ud55c \uac83\uc73c\ub85c \ud45c\uc2dc","AddTask":"\ud560 \uc77c \ucd94\uac00"}}}')},tGlX:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%
1d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},tS1D:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n("D0XW"),r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),a=n("mlxB"),o=n("zx2A"),s=function(){function e(t,n,i,r){_classCallCheck(this,e),this.waitFor=t,this.absoluteTimeout=n,this.withObservable=i,this.scheduler=r}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e)).absoluteTimeout=i,s.waitFor=r,s.withObservable=a,s.scheduler=o,s.scheduleTimeout(),s}return _createClass(n,[{key:"scheduleTimeout",value:function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))}},{key:"_next",value:function(e){this.absoluteTimeout||this.scheduleTimeout(),_get(_getPrototypeOf(n.prototype),"_next",this).call(this,e)}},{key:"_unsubscribe",value:function(){this.action=void 0,this.scheduler=null,this.withObservable=null}}],[{key:"dispatchTimeout",value:function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(o.c)(t,new o.a(e)))}}]),n}(o.b),c=n("z6cu");function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a;return function(i){var r=Object(a.a)(e),o=r?+e-n.now():Math.abs(e);return i.lift(new s(o,r,t,n))}}(e,Object(c.a)(new r),t)}},tT3J:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4
1wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n("wd/R"))},tUCv:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n("wd/R"))},tbfe:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%
1d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:4},invalidDate:"Fecha inv\xe1lida"})}(n("wd/R"))},"tk/3":function(e,t,n){"use strict";n.d(t,"a",function(){return A}),n.d(t,"b",function(){return T}),n.d(t,"c",function(){return Y}),n.d(t,"d",function(){return M}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return g}),n.d(t,"g",function(){return S}),n.d(t,"h",function(){return C});var i=n("ofXK"),r=n("fXoL"),a=n("LRne"),o=n("HDdC"),s=n("bOdf"),l=n("pLZG"),c=n("lJxs"),u=function e(){_classCallCheck(this,e)},d=function e(){_classCallCheck(this,e)},h=function(){function e(t){var n=this;_classCallCheck(this,e),this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(e){var t=e.indexOf(":");if(t>0){var i=e.slice(0,t),r=i.toLowerCase(),a=e.slice(t+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(a):n.headers.set(r,[a])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(e,r))})}:this.headers=new Map}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.headers.has(e.toLowerCase())}},{key:"get",value:function(e){this.init();var t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(e){return this.init(),this.headers.get(e.toLowerCase())||null}},{key:"append",value:function(e,t){return this.clone({name:e,value:t,op:"a"})}},{key:"set",value:function(e,t){return this.clone({name:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({name:e,value:t,op:"d"})}},{key:"maybeSetNormalizedName",value:function(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}},{key:"init",value:function(){var t=this;this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(e){return t.applyUpdate(e)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(e){var t=this;e.init(),Array.from(e.headers.keys()).forEach(function(n){t.headers.set(n,e.headers.get(n)),t.normalizedNames.set(n,e.normalizedNames.get(n))})}},{key:"clone",value:function(t){var n=new e;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}},{key:"applyUpdate",value:function(e){var t=e.name.toLowerCase();switch(e.op){case"a":case"s":var n=e.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(e.name,t);var i=("a"===e.op?this.headers.get(t):void 0)||[];i.push.apply(i,_toConsumableArray(n)),this.headers.set(t,i);break;case"d":var r=e.value;if(r){var a=this.headers.get(t);if(!a)return;0===(a=a.filter(function(e){return-1===r.indexOf(e)})).length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,a)}else this.headers.delete(t),this.normalizedNames.delete(t)}}},{key:"forEach",value:function(e){var t=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return e(t.normalizedNames.get(n),t.headers.get(n))})}}]),e}(),f=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"encodeKey",value:function(e){return p(e)}},{key:"encodeValue",value:function(e){return p(e)}},{key:"decodeKey",value:function(e){return decodeURIComponent(e)}},{key:"decodeValue",value:function(e){return decodeURIComponent(e)}}]),e}();function p(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function m(e){return"".concat(e)}var g=function(){function e(){var t,n,i,r=this,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(_classCallCheck(this,e),this.updates=null,this.cloneFrom=null,this.encoder=a.encoder||new f,a.fromString){if(a.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(t=a.fromString,n=this.encoder,i=new Map,t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(e){var t=e.indexOf("="),r=_slicedToArray(-1==t?[n.decodeKey(e),""]:[n.decodeKey(e.slice(0,t)),n.decodeValue(e.slice(t+1))],2),a=r[0],o=r[1],s=i.get(a)||[];s.push(o),i.set(a,s)}),i)}else a.fromObject?(this.map=new Map,Object.keys(a.fromObject).forEach(function(e){var t=a.fromObject[e];r.map.set(e,Array.isArray(t)?t:[t])})):this.map=null}return _createClass(e,[{key:"has",value:function(e){return this.init(),this.map.has(e)}},{key:"get",value:function(e){this.init();var t=this.map.get(e);return t?t[0]:null}},{key:"getAll",value:function(e){return this.init(),this.map.get(e)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.
1keys())}},{key:"append",value:function(e,t){return this.clone({param:e,value:t,op:"a"})}},{key:"appendAll",value:function(e){var t=[];return Object.keys(e).forEach(function(n){var i=e[n];Array.isArray(i)?i.forEach(function(e){t.push({param:n,value:e,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}},{key:"set",value:function(e,t){return this.clone({param:e,value:t,op:"s"})}},{key:"delete",value:function(e,t){return this.clone({param:e,value:t,op:"d"})}},{key:"toString",value:function(){var e=this;return this.init(),this.keys().map(function(t){var n=e.encoder.encodeKey(t);return e.map.get(t).map(function(t){return n+"="+e.encoder.encodeValue(t)}).join("&")}).filter(function(e){return""!==e}).join("&")}},{key:"clone",value:function(t){var n=new e({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}},{key:"init",value:function(){var e=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(t){return e.map.set(t,e.cloneFrom.map.get(t))}),this.updates.forEach(function(t){switch(t.op){case"a":case"s":var n=("a"===t.op?e.map.get(t.param):void 0)||[];n.push(m(t.value)),e.map.set(t.param,n);break;case"d":if(void 0===t.value){e.map.delete(t.param);break}var i=e.map.get(t.param)||[],r=i.indexOf(m(t.value));-1!==r&&i.splice(r,1),i.length>0?e.map.set(t.param,i):e.map.delete(t.param)}}),this.cloneFrom=this.updates=null)}}]),e}(),v=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"set",value:function(e,t){return this.map.set(e,t),this}},{key:"get",value:function(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}},{key:"delete",value:function(e){return this.map.delete(e),this}},{key:"keys",value:function(){return this.map.keys()}}]),e}();function y(e){return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer}function b(e){return"undefined"!=typeof Blob&&e instanceof Blob}function _(e){return"undefined"!=typeof FormData&&e instanceof FormData}var w=function(){function e(t,n,i,r){var a;if(_classCallCheck(this,e),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,a=r):a=i,a&&(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params)),this.headers||(this.headers=new h),this.context||(this.context=new v),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(e,[{key:"serializeBody",value:function(){return null===this.body?null:y(this.body)||b(this.body)||_(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||_(this.body)?null:b(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||"boolean"==typeof this.body?"application/json":null}},{key:"clone",value:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,a=n.responseType||this.responseType,o=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,c=n.headers||this.headers,u=n.params||this.params,d=null!==(t=n.context)&&void 0!==t?t:this.context;return void 0!==n.setHeaders&&(c=Object.keys(n.setHeaders).reduce(function(e,t){return e.set(t,n.setHeaders[t])},c)),n.setParams&&(u=Object.keys(n.setParams).reduce(function(e,t){return e.set(t,n.setParams[t])},u)),new e(i,r,o,{params:u,headers:c,context:d,reportProgress:l,responseType:a,withCredentials:s})}}]),e}
1(),k=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}({}),C=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";_classCallCheck(this,e),this.headers=t.headers||new h,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300},x=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=k.ResponseHeader,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(C),S=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _classCallCheck(this,n),(e=t.call(this,i)).type=k.Response,e.body=void 0!==i.body?i.body:null,e}return _createClass(n,[{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}]),n}(C),M=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(e.url||"(unknown url)"):"Http failure response for ".concat(e.url||"(unknown url)",": ").concat(e.status," ").concat(e.statusText),i.error=e.error||null,i}return n}(C);function D(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}var T=function(){var e=function(){function e(t){_classCallCheck(this,e),this.handler=t}return _createClass(e,[{key:"request",value:function(e,t){var n,i,r,o=this,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e instanceof w?n=e:(i=u.headers instanceof h?u.headers:new h(u.headers),u.params&&(r=u.params instanceof g?u.params:new g({fromObject:u.params})),n=new w(e,t,void 0!==u.body?u.body:null,{headers:i,context:u.context,params:r,reportProgress:u.reportProgress,responseType:u.responseType||"json",withCredentials:u.withCredentials}));var d=Object(a.a)(n).pipe(Object(s.a)(function(e){return o.handler.handle(e)}));if(e instanceof w||"events"===u.observe)return d;var f=d.pipe(Object(l.a)(function(e){return e instanceof S}));switch(u.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return f.pipe(Object(c.a)(function(e){if(null!==e.body&&!(e.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return e.body}));case"blob":return f.pipe(Object(c.a)(function(e){if(null!==e.body&&!(e.body instanceof Blob))throw new Error("Response is not a Blob.");return e.body}));case"text":return f.pipe(Object(c.a)(function(e){if(null!==e.body&&"string"!=typeof e.body)throw new Error("Response is not a string.");return e.body}));default:return f.pipe(Object(c.a)(function(e){return e.body}))}case"response":return f;default:throw new Error("Unreachable: unhandled observe type ".concat(u.observe,"}"))}}},{key:"delete",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",e,t)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",e,t)}},{key:"head",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",e,t)}},{key:"jsonp",value:function(e,t){return this.request("JSONP",e,{params:(new g).append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",e,t)}},{key:"patch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",e,D(n,t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",e,D(n,t))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",e,D(n,t))}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.qc(u))},e.\u0275prov=r.Zb({token:e,factory:e.\u0275fac}),e}(),E=function(){function e(t,n){_classCallCheck(this,e),this.next=t,this.interceptor=n}return _createClass(e,[{key:"handle",value:function(e){return this.interceptor.intercept(e,this.next)}}]),e}(),A=new r.y("HTTP_INTERCEPTORS"),P=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"intercept",value:function(e,t){return t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=r.Zb({token:e,factory:e.\u0275fac}),e}(),L=/^\)\]\}',?\n/,O=function(){var e=function(){function e(t){_classCallCheck(this,e),this.xhrFactory=t}return _createClass(e,[{key:"handle",value:function(e){var t=this;if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new o.a(function(n){var i=t.xhrFactory.build();if(i.open(e.method,e.urlWithParams),e.withCredentials&&(i.withCredentials=!0),e.headers.forEac
vendor: 4,743 bytes, line 1
1h(function(e,t){return i.setRequestHeader(e,t.join(","))}),e.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){var r=e.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(e.responseType){var a=e.responseType.toLowerCase();i.responseType="json"!==a?a:"text"}var o=e.serializeBody(),s=null,l=function(){if(null!==s)return s;var t=1223===i.status?204:i.status,n=i.statusText||"OK",r=new h(i.getAllResponseHeaders()),a=function(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(i)||e.url;return s=new x({headers:r,status:t,statusText:n,url:a})},c=function(){var t=l(),r=t.headers,a=t.status,o=t.statusText,s=t.url,c=null;204!==a&&(c=void 0===i.response?i.responseText:i.response),0===a&&(a=c?200:0);var u=a>=200&&a<300;if("json"===e.responseType&&"string"==typeof c){var d=c;c=c.replace(L,"");try{c=""!==c?JSON.parse(c):null}catch(h){c=d,u&&(u=!1,c={error:h,text:c})}}u?(n.next(new S({body:c,headers:r,status:a,statusText:o,url:s||void 0})),n.complete()):n.error(new M({error:c,headers:r,status:a,statusText:o,url:s||void 0}))},u=function(e){var t=l().url,r=new M({error:e,status:i.status||0,statusText:i.statusText||"Unknown Error",url:t||void 0});n.error(r)},d=!1,f=function(t){d||(n.next(l()),d=!0);var r={type:k.DownloadProgress,loaded:t.loaded};t.lengthComputable&&(r.total=t.total),"text"===e.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},p=function(e){var t={type:k.UploadProgress,loaded:e.loaded};e.lengthComputable&&(t.total=e.total),n.next(t)};return i.addEventListener("load",c),i.addEventListener("error",u),i.addEventListener("timeout",u),i.addEventListener("abort",u),e.reportProgress&&(i.addEventListener("progress",f),null!==o&&i.upload&&i.upload.addEventListener("progress",p)),i.send(o),n.next({type:k.Sent}),function(){i.removeEventListener("error",u),i.removeEventListener("abort",u),i.removeEventListener("load",c),i.removeEventListener("timeout",u),e.reportProgress&&(i.removeEventListener("progress",f),null!==o&&i.upload&&i.upload.removeEventListener("progress",p)),i.readyState!==i.DONE&&i.abort()}})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.qc(i.u))},e.\u0275prov=r.Zb({token:e,factory:e.\u0275fac}),e}(),I=new r.y("XSRF_COOKIE_NAME"),H=new r.y("XSRF_HEADER_NAME"),j=function e(){_classCallCheck(this,e)},F=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this.doc=t,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return _createClass(e,[{key:"getToken",value:function(){if("server"===this.platform)return null;var e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(i.D)(e,this.cookieName),this.lastCookieString=e),this.lastToken}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.qc(i.d),r.qc(r.M),r.qc(I))},e.\u0275prov=r.Zb({token:e,factory:e.\u0275fac}),e}(),R=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.tokenService=t,this.headerName=n}return _createClass(e,[{key:"intercept",value:function(e,t){var n=e.url.toLowerCase();if("GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t.handle(e);var i=this.tokenService.getToken();return null===i||e.headers.has(this.headerName)||(e=e.clone({headers:e.headers.set(this.headerName,i)})),t.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.qc(j),r.qc(H))},e.\u0275prov=r.Zb({token:e,factory:e.\u0275fac}),e}(),N=function(){var e=function(){function e(t,n){_classCallCheck(this,e),this.backend=t,this.injector=n,this.chain=null}return _createClass(e,[{key:"handle",value:function(e){if(null===this.chain){var t=this.injector.get(A,[]);this.chain=t.reduceRight(function(e,t){return new E(e,t)},this.backend)}return this.chain.handle(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(r.qc(d),r.qc(r.z))},e.\u0275prov=r.Zb({token:e,factory:e.\u0275fac}),e}(),B=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"disable",value:function(){return{ngModule:e,providers:[{provide:R,useClass:P}]}}},{key:"withOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.cookieName?{provide:I,useValue:t.cookieName}:[],t.headerName?{provide:H,useValue:t.headerName}:[]]}}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.bc({type:e}),e.\u0275inj=r.ac({providers:[R,{provide:A,useExisting:R,multi:!0},{provide:j,useClass:F},{provide:I,useValue:"XSRF-TOKEN"},{provide:H,useValue:"X-XSRF-TOKEN"}
1]}),e}(),Y=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=r.bc({type:e}),e.\u0275inj=r.ac({providers:[T,{provide:u,useClass:N},O,{provide:d,useExisting:O}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),e}()},u3GI:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uEye:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._m\xe5._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},uXwI:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function(e,t){return t?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},vkgz:function(e,t,n){"use strict";n.d(t,"a",function(){return o}
1);var i=n("7o/Q"),r=n("KqfI"),a=n("n6bG");function o(e,t,n){return function(i){return i.lift(new s(e,t,n))}}var s=function(){function e(t,n,i){_classCallCheck(this,e),this.nextOrObserver=t,this.error=n,this.complete=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new l(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),l=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o,s){var l;return _classCallCheck(this,n),(l=t.call(this,e))._tapNext=r.a,l._tapError=r.a,l._tapComplete=r.a,l._tapError=o||r.a,l._tapComplete=s||r.a,Object(a.a)(i)?(l._context=_assertThisInitialized(l),l._tapNext=i):i&&(l._context=i,l._tapNext=i.next||r.a,l._tapError=i.error||r.a,l._tapComplete=i.complete||r.a),l}return _createClass(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(i.a)},w1tV:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n("oB13"),r=n("x+ZX"),a=n("XNiG");function o(){return new a.a}function s(){return function(e){return Object(r.a)()(Object(i.a)(o)(e))}}},wQk9:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(n("wd/R"))},"wd/R":function(e,t,n){(function(e){e.exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function c(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(t(e[n],n));return i}function f(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,i){return xt(e,t,n,i,!0).utc()}function m(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invali
vendor: 5,807 bytes, line 1
1dMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function g(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=m(e),n=i.call(t.parsedDateParts,function(e){return null!=e}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function v(e){var t=p(NaN);return null!=e?f(m(t),e):m(t).userInvalidated=!0,t}i=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=r.momentProperties=[],b=!1;function _(e,t){var n,i,r,a=y.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=m(t)),c(t._locale)||(e._locale=t._locale),a>0)for(n=0;n<a;n++)c(r=t[i=y[n]])||(e[i]=r);return e}function w(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,r.updateOffset(this),b=!1)}function k(e){return e instanceof w||null!=e&&null!=e._isAMomentObject}function C(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,t){var n=!0;return f(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,a,o,l=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])s(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];l.push(i)}C(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var S,M={};function D(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),M[e]||(C(t),M[e]=!0)}function T(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e,t){var n,i=f({},e);for(n in t)s(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},f(i[n],e[n]),f(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)s(e,n)&&!s(t,n)&&o(e[n])&&(i[n]=f({},i[n]));return i}function A(e){null!=e&&this.set(e)}function P(e,t,n){var i=""+Math.abs(e);return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-i.length)).toString().substr(1)+i}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,S=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var L=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},H={};function j(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(H[e]=r),t&&(H[t[0]]=function(){return P(r.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=R(t,e.localeData()),I[t]=I[t]||function(e){var t,n,i,r=e.match(L);for(t=0,n=r.length;t<n;t++)r[t]=H[r[t]]?H[r[t]]:(i=r[t]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(t){var i,a="";for(i=0;i<n;i++)a+=T(r[i])?r[i].call(t,e):r[i];return a}}(t),I[t](e)):e.localeData().invalidDate()}function R(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(O.lastIndex=0;n>=0&&O.test(e);)e=e.replace(O,i),O.lastIndex=0,n-=1;return e}var N={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function B(e){return"string"==typeof e?N[e]||N[e.toLowerCase()]:void 0}function Y(e){var t,n,i={};for(n in e)s(e,n)&&(t=B(n))&&(i[t]=e[n]);return i}var z,V={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},U=/\d/,$=/\d\d/,W=/\d{3}/,q=/\d{4}/,G=/[+-]?\d{6}/,X=/\d\d?/,Q=/\d\d\d\d?/,K=/\d\d\d\d\d\d?/,Z=/\d{1,3}/,J=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,oe=/^[1-9]\d?/,se=/^([1-9]\d|\d)/;function le(e,t,n){z[e]=T(t)?t:function(e,i){return e&&n?n:t}}function ce(e,t){return s(z,e)?z[e](t._strict,t._locale):new RegExp(ue(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r})))}function ue(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function de(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=de(t)),n}z={};var fe={};function pe(e,t){var n,i,r=t;
vendor: 8,365 bytes, line 1
1for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=he(e)}),i=e.length,n=0;n<i;n++)fe[e[n]]=r}function me(e,t){pe(e,function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)})}function ge(e,t,n){null!=t&&s(fe,e)&&fe[e](t,n._a,n,e)}function ve(e){return e%4==0&&e%100!=0||e%400==0}function ye(e){return ve(e)?366:365}j("Y",0,0,function(){var e=this.year();return e<=9999?P(e,4):"+"+e}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),le("Y",ne),le("YY",X,$),le("YYYY",J,q),le("YYYYY",ee,G),le("YYYYYY",ee,G),pe(["YYYYY","YYYYYY"],0),pe("YYYY",function(e,t){t[0]=2===e.length?r.parseTwoDigitYear(e):he(e)}),pe("YY",function(e,t){t[0]=r.parseTwoDigitYear(e)}),pe("Y",function(e,t){t[0]=parseInt(e,10)}),r.parseTwoDigitYear=function(e){return he(e)+(he(e)>68?1900:2e3)};var be,_e=we("FullYear",!0);function we(e,t){return function(n){return null!=n?(Ce(this,e,n),r.updateOffset(this,t),this):ke(this,e)}}function ke(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ce(e,t,n){var i,r,a,o,s;if(e.isValid()&&!isNaN(n)){switch(i=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=29!==(s=e.date())||1!==o||ve(a)?s:28,r?i.setUTCFullYear(a,o,s):i.setFullYear(a,o,s)}}function xe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?ve(e)?29:28:31-n%7%2}be=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),j("MMMM",0,0,function(e){return this.localeData().months(this,e)}),le("M",X,oe),le("MM",X,$),le("MMM",function(e,t){return t.monthsShortRegex(e)}),le("MMMM",function(e,t){return t.monthsRegex(e)}),pe(["M","MM"],function(e,t){t[1]=he(e)-1}),pe(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[1]=r:m(n).invalidMonth=e});var Se="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Me="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),De=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Te=ae,Ee=ae;function Ae(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)a=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=be.call(this._shortMonthsParse,o))?r:null:-1!==(r=be.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=be.call(this._shortMonthsParse,o))||-1!==(r=be.call(this._longMonthsParse,o))?r:null:-1!==(r=be.call(this._longMonthsParse,o))||-1!==(r=be.call(this._shortMonthsParse,o))?r:null}function Pe(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=he(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,i=e.date();return i=i<29?i:Math.min(i,xe(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function Le(e){return null!=e?(Pe(this,e),r.updateOffset(this,!0),this):ke(this,"Month")}function Oe(){function e(e,t){return t.length-e.length}var t,n,i,r,a=[],o=[],s=[];for(t=0;t<12;t++)n=p([2e3,t]),i=ue(this.monthsShort(n,"")),r=ue(this.months(n,"")),a.push(i),o.push(r),s.push(r),s.push(i);a.sort(e),o.sort(e),s.sort(e),this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ie(e,t,n,i,r,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,i,r,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,i,r,a,o),s}function He(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function je(e,t,n){var i=7+t-n;return-(7+He(e,0,i).getUTCDay()-t)%7+i-1}function Fe(e,t,n,i,r){var a,o,s=1+7*(t-1)+(7+n-i)%7+je(e,i,r);return s<=0?o=ye(a=e-1)+s:s>ye(e)?(a=e+1,o=s-ye(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Re(e,t,n){var i,r,a=je(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?i=o+Ne(r=e.year()-1,t,n):o>Ne(e.year(),t,n)?(i=o-Ne(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function Ne(e,t,n){var i=je(e,t,n),r=je(e+1,t,n);return(ye(e)-i+r)/7}function Be(e,t){return e.slice(t,7).concat(e.slice(0,t))}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),le("w",X,oe),le("ww",X,$),le("W",X,oe),le("WW",X,$),me(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=he(e)}),j("d",0,"do","day"),j("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),j("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),j("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),le("d",X),le("e",X),le("E",X),le("dd",function(e,t){return t.weekdaysMinRegex(e)}),le("ddd",function(e,t){return t.weekdaysShortRegex(e)}),le("dddd",function(e,t){return t.weekdaysRegex(e)}),me(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e}),me(["d","e","E"],function(e,t,n,i){t[i]=he(e)});var Ye="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ze="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ue=ae,$e=ae,We=ae;function qe(e,t,n){var i,r,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=be.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=be.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=be.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=be.call(this._weekdaysParse,o))||-1!==(r=be.call(this._shortWeekdaysParse,o))||-1!==(r=be.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=be.call(this._shortWeekdaysParse,o))||-1!==(r=be.call(this._weekdaysParse,o))||-1!==(r=be.call(this._minWeekdaysParse,o))?r:null:-1!==(r=be.call(this._minWeekdaysParse,o))||-1!==(r=be.call(this._weekdaysParse,o))||-1!==(r=be.call(this._shortWeekdaysParse,o))?r:null}function Ge(){function e(e,t){return t.length-e.length}var t,n,i,r,a,o=[],s=[],l=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=ue(this.weekdaysMin(n,"")),r=ue(this.weekdaysShort(n,"")),a=ue(this.weekdays(n,"")),o.push(i),s.push(r),l.push(a),c.push(i),c.push(r),c.push(a);o.sort(e),s.sort(e),l.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Qe(e,t){j(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ke(e,t){return t._meridiemParse}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Xe),j("k",["kk",2],0,function(){return this.hours()||24}),j("hmm",0,0,function(){return""+Xe.apply(this)+P(this.minutes(),2)}
vendor: 15,146 bytes, line 1
1),j("hmmss",0,0,function(){return""+Xe.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),Qe("a",!0),Qe("A",!1),le("a",Ke),le("A",Ke),le("H",X,se),le("h",X,oe),le("k",X,oe),le("HH",X,$),le("hh",X,$),le("kk",X,$),le("hmm",Q),le("hmmss",K),le("Hmm",Q),le("Hmmss",K),pe(["H","HH"],3),pe(["k","kk"],function(e,t,n){var i=he(e);t[3]=24===i?0:i}),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[3]=he(e),m(n).bigHour=!0}),pe("hmm",function(e,t,n){var i=e.length-2;t[3]=he(e.substr(0,i)),t[4]=he(e.substr(i)),m(n).bigHour=!0}),pe("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=he(e.substr(0,i)),t[4]=he(e.substr(i,2)),t[5]=he(e.substr(r)),m(n).bigHour=!0}),pe("Hmm",function(e,t,n){var i=e.length-2;t[3]=he(e.substr(0,i)),t[4]=he(e.substr(i))}),pe("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[3]=he(e.substr(0,i)),t[4]=he(e.substr(i,2)),t[5]=he(e.substr(r))});var Ze,Je=we("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:Me,week:{dow:0,doy:6},weekdays:Ye,weekdaysMin:Ve,weekdaysShort:ze,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function it(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function rt(e){return e?e.toLowerCase().replace("_","-"):e}function at(t){var i=null;if(void 0===tt[t]&&void 0!==e&&e&&e.exports&&function(e){return!(!e||!e.match("^[^/\\\\]*$"))}(t))try{i=Ze._abbr,n("RnhZ")("./"+t),ot(i)}catch(r){tt[t]=null}return tt[t]}function ot(e,t){var n;return e&&((n=c(t)?lt(e):st(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function st(e,t){if(null!==t){var n,i=et;if(t.abbr=e,null!=tt[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])i=tt[t.parentLocale]._config;else{if(null==(n=at(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;i=n._config}return tt[e]=new A(E(i,t)),nt[e]&&nt[e].forEach(function(e){st(e.name,e.config)}),ot(e),tt[e]}return delete tt[e],null}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,i,r,a=0;a<e.length;){for(t=(r=rt(e[a]).split("-")).length,n=(n=rt(e[a+1]))?n.split("-"):null;t>0;){if(i=at(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&it(r,n)>=t-1)break;t--}a++}return Ze}(e)}function ct(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>xe(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),m(e)._overflowWeeks&&-1===t&&(t=7),m(e)._overflowWeekday&&-1===t&&(t=8),m(e).overflow=t),e}var ut=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,dt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,ft=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],pt=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],mt=/^\/?Date\((-?\d+)/i,gt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,vt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function yt(e){var t,n,i,r,a,o,s=e._i,l=ut.exec(s)||dt.exec(s),c=ft.length,u=pt.length;if(l){for(m(e).iso=!0,t=0,n=c;t<n;t++)if(ft[t][1].exec(l[1])){r=ft[t][0],i=!1!==ft[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=u;t<n;t++)if(pt[t][1].exec(l[3])){a=(l[2]||" ")+pt[t][0];break}if(null==a)return void(e._isValid=!1)}if(!i&&null!=a)return void(e._isValid=!1);if(l[4]){if(!ht.exec(l[4]))return void(e._isValid=!1);o="Z"}e._f=r+(a||"")+(o||""),kt(e)}else e._isValid=!1}function bt(e){var t,n,i,r,a,o,s,l,c,u=gt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[3],i=u[2],r=u[5],a=u[6],o=u[7],s=[(l=u[4],c=parseInt(l,10),c<=49?2e3+c:c<=999?1900+c:c),Me.indexOf(n),parseInt(i,10),parseInt(r,10),parseInt(a,10)],o&&s.push(parseInt(o,10)),!function(e,t,n){return!e||ze.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(m(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],t=s,e))return;e._a=t,e._tzm=function(e,t,n){if(e)return vt[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(u[8],u[9],u[10]),e._d=He.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),m(e).rfc2822=!0}else e._isValid=!1}function _t(e,t,n){return null!=e?e:null!=t?t:n}function wt(e){var t,n,i,a,o,s=[];if(!e._d){for(i=function(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,i,r,a,o,s,l,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(a=1,o=4,n=_t(t.GG,e._a[0],Re(St(),1,4).year),i=_t(t.W,1),((r=_t(t.E,1))<1||r>7)&&(l=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=Re(St(),a,o),n=_t(t.gg,e._a[0],c.year),i=_t(t.w,c.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):r=a),i<1||i>Ne(n,a,o)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(s=Fe(n,i,r,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=_t(e._a[0],i[0]),(e._dayOfYear>ye(o)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=He(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?He:Ie).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function kt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,a,o,s,l,c=""+e._i,u=c.length,d=0;for(l=(i=R(e._f,e._locale).match(L)||[]).length,t=0;t<l;t++)(n=(c.match(ce(a=i[t],e))||[])[0])&&((o=c.substr(0,c.indexOf(n))).length>0&&m(e).unusedInput.push(o),c=c.slice(c.indexOf(n)+n.length),d+=n.length),H[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),ge(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=u-d,c.length>0&&m(e).unusedInput.push(c),e._a[3]<=12&&!0===m(e).bigHour&&e._a[3]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),null!==(s=m(e).era)&&(e._a[0]=e._locale.erasConvertYear(s,e._a[0])),wt(e),ct(e)}else bt(e);else yt(e)}function Ct(e){var t=e._i,n=e._f;return e._locale=e._locale||lt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new w(ct(t)):(d(t)?e._d=t:a(n)?function(e){var t,n,i,r,a,o,s=!1,l=e._f.length;if(0===l)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<l;r++)a=0,o=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],kt(t),g(t)&&(o=!0),a+=m(t).charsLeftOver,a+=10*m(t).unusedTokens.length,m(t).score=a,s?a<i&&(i=a,n=t):(null==i||a<i||o)&&(i=a,n=t,o&&(s=!0));f(e,n||t)}(e):n?kt(e):function(e){var t=e._i;c(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?function(e){var t=mt.exec(e._i);null===t?(yt(e),!1===e._isValid&&(delete e._isValid,bt(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}(e):a(t)?(e._a=h(t.slice(0),function(e){return parseInt(e,10)}),wt(e)):o(t)?function(e){if(!e._d){var t=Y(e._i);e._a=h([t.year,t.month,void 0===t.day?t.date:t.day,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),wt(e)}}(e):u(t)?e._d=new Date(t):r.createFromInputFallback(e)}(e),g(e)||(e._d=null),e))}function xt(e,t,n,i,r){var s,c={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&l(e)||a(e)&&0===e.length)&&(e=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=r,c._l=n,c._i=e,c._f=t,c._strict=i,(s=new w(ct(Ct(c))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function St(e,t,n,i){return xt(e,t,n,i,!1)}r.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var Mt=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()}),Dt=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=St.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()});function Tt(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return St();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}var Et=["year","quarter","month","week","day","hour","minute","second","millisecond"];function At(e){var t=Y(e),n=t.year||0,i=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,l=t.hour||0,c=t.minute||0,u=t.second||0,d=t.millisecond||0;this._isValid=function(e){var t,n,i=!1,r=Et.length;for(t in e)if(s(e,t)&&(-1===be.call(Et,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[Et[n]]){if(i)return!1;parseFloat(e[Et[n]])!==he(e[Et[n]])&&(i=!0)}return!0}(t),this._milliseconds=+d+1e3*u+6e4*c+1e3*l*60*60,this._days=+o+7*a,this._months=+r+3*i+12*n,this._data={},this._locale=lt(),this._bubble()}function Pt(e){return e instanceof At}function Lt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ot(e,t){j(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)})}Ot("Z",":"),Ot("ZZ",""),le("Z",re),le("ZZ",re),pe(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ht(re,e)});var It=/([\+\-]|\d\d)/gi;function Ht(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(It)||["-",0,0])[1]+he(n[2]))?0:"+"===n[0]?i:-i}function jt(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(k(e)||d(e)?e.valueOf():St(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):St(e).local()}function Ft(e){return-Math.round(e._d.getTimezoneOffset())}function Rt(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Nt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Bt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Yt(e,t){var n,i,r,a,o,l,c=e,d=null;return Pt(e)?c={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(c={},t?c[t]=+e:c.milliseconds=+e):(d=Nt.exec(e))?(n="-"===d[1]?-1:1,c={y:0,d:he(d[2])*n,h:he(d[3])*n,m:he(d[4])*n,s:he(d[5])*n,ms:he(Lt(1e3*d[6]))*n}):(d=Bt.exec(e))?c={y:zt(d[2],n="-"===d[1]?-1:1),M:zt(d[3],n),w:zt(d[4],n),d:zt(d[5],n),h:zt(d[6],n),m:zt(d[7],n),s:zt(d[8],n)}:null==c?c={}:"object"==typeof c&&("from"in c||"to"in c)&&(a=St(c.from),o=St(c.to),r=a.isValid()&&o.isValid()?(o=jt(o,a),a.isBefore(o)?l=Vt(a,o):((l=Vt(o,a)).milliseconds=-l.milliseconds,l.months=-l.months),l):{milliseconds:0,months:0},(c={}).ms=r.milliseconds,c.M=r.months),i=new At(c),Pt(e)&&s(e,"_locale")&&(i._locale=e._locale),Pt(e)&&s(e,"_isValid")&&(i._isValid=e._isValid),i}function zt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Vt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ut(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(D(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),$t(this,Yt(n,i),e),this}}function $t(e,t,n,i){var a=t._milliseconds,o=Lt(t._days),s=Lt(t._months);e.isValid()&&(i=null==i||i,s&&Pe(e,ke(e,"Month")+s*n),o&&Ce(e,"Date",ke(e,"Date")+o*n),a&&e._d.setTime(e._d.valueOf()+a*n),i&&r.updateOffset(e,o||s))}Yt.fn=At.prototype,Yt.invalid=function(){return Yt(NaN)};var Wt=Ut(1,"add"),qt=Ut(-1,"subtract");function Gt(e){return"string"==typeof e||e instanceof String}function Xt(e,t){if(e.date()<t.date())return-Xt(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Qt(e){var t;return void 0===e?this._locale._abbr:(null!=(t=lt(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Kt=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Zt(){return this._locale}function Jt(e,t){return(e%t+t)%t}
vendor: 5,380 bytes, line 1
1function en(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function tn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function nn(e,t){return t.erasAbbrRegex(e)}function rn(){var e,t,n,i,r,a=[],o=[],s=[],l=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=ue(c[e].name),i=ue(c[e].abbr),r=ue(c[e].narrow),o.push(n),a.push(i),s.push(r),l.push(n),l.push(i),l.push(r);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i")}function an(e,t){j(0,[e,e.length],0,t)}function on(e,t,n,i,r){var a;return null==e?Re(this,i,r).year:(t>(a=Ne(e,i,r))&&(t=a),sn.call(this,e,t,n,i,r))}function sn(e,t,n,i,r){var a=Fe(e,t,n,i,r),o=He(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),le("N",nn),le("NN",nn),le("NNN",nn),le("NNNN",function(e,t){return t.erasNameRegex(e)}),le("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),pe(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?m(n).era=r:m(n).invalidEra=e}),le("y",te),le("yy",te),le("yyy",te),le("yyyy",te),le("yo",function(e,t){return t._eraYearOrdinalRegex||te}),pe(["y","yy","yyy","yyyy"],0),pe(["yo"],function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),t[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(e,r):parseInt(e,10)}),j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),le("G",ne),le("g",ne),le("GG",X,$),le("gg",X,$),le("GGGG",J,q),le("gggg",J,q),le("GGGGG",ee,G),le("ggggg",ee,G),me(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=he(e)}),me(["gg","GG"],function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)}),j("Q",0,"Qo","quarter"),le("Q",U),pe("Q",function(e,t){t[1]=3*(he(e)-1)}),j("D",["DD",2],"Do","date"),le("D",X,oe),le("DD",X,$),le("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),pe(["D","DD"],2),pe("Do",function(e,t){t[2]=he(e.match(X)[0])});var ln=we("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",Z),le("DDDD",W),pe(["DDD","DDDD"],function(e,t,n){n._dayOfYear=he(e)}),j("m",["mm",2],0,"minute"),le("m",X,se),le("mm",X,$),pe(["m","mm"],4);var cn=we("Minutes",!1);j("s",["ss",2],0,"second"),le("s",X,se),le("ss",X,$),pe(["s","ss"],5);var un,dn,hn=we("Seconds",!1);for(j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return 10*this.millisecond()}),j(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),j(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),j(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),j(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),j(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),le("S",Z,U),le("SS",Z,$),le("SSS",Z,W),un="SSSS";un.length<=9;un+="S")le(un,te);function fn(e,t){t[6]=he(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")pe(un,fn);dn=we("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var pn=w.prototype;function mn(e){return e}pn.add=Wt,pn.calendar=function(e,t){var n;1===arguments.length&&(arguments[0]?k(n=arguments[0])||d(n)||Gt(n)||u(n)||function(e){var t=a(e),n=!1;return t&&(n=0===e.filter(function(t){return!u(t)&&Gt(e)}).length),t&&n}(n)||function(e){var t,n=o(e)&&!l(e),i=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a=r.length;for(t=0;t<a;t+=1)i=i||s(e,r[t]);return n&&i}(n)||null==n?(e=arguments[0],t=void 0):function(e){var t,n=o(e)&&!l(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<r.length;t+=1)i=i||s(e,r[t]);return n&&i}(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i=e||St(),c=jt(i,this).startOf("day"),h=r.calendarFormat(this,c)||"sameElse",f=t&&(T(t[h])?t[h].call(this,i):t[h]);return this.format(f||this.localeData().calendar(h,this,St(i)))},pn.clone=function(){return new w(this)},pn.diff=function(e,t,n){var i,r,a;if(!this.isValid())return NaN;if(!(i=jt(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=B(t)){case"year":a=Xt(this,i)/12;break;case"month":a=Xt(this,i);break;case"quarter":a=Xt(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-r)/864e5;break;case"week":a=(this-i-r)/6048e5;break;default:a=this-i}return n?a:de(a)},pn.endOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tn:en,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;
vendor: 4,241 bytes, line 1
1case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Jt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Jt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Jt(t,1e3)-1}return this._d.setTime(t),r.updateOffset(this,!0),this},pn.format=function(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)},pn.from=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||St(e).isValid())?Yt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},pn.fromNow=function(e){return this.from(St(),e)},pn.to=function(e,t){return this.isValid()&&(k(e)&&e.isValid()||St(e).isValid())?Yt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},pn.toNow=function(e){return this.to(St(),e)},pn.get=function(e){return T(this[e=B(e)])?this[e]():this},pn.invalidAt=function(){return m(this).overflow},pn.isAfter=function(e,t){var n=k(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())},pn.isBefore=function(e,t){var n=k(e)?e:St(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())},pn.isBetween=function(e,t,n,i){var r=k(e)?e:St(e),a=k(t)?t:St(t);return!!(this.isValid()&&r.isValid()&&a.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(a,n):!this.isAfter(a,n))},pn.isSame=function(e,t){var n,i=k(e)?e:St(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=B(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))},pn.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},pn.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},pn.isValid=function(){return g(this)},pn.lang=Kt,pn.locale=Qt,pn.localeData=Zt,pn.max=Dt,pn.min=Mt,pn.parsingFlags=function(){return f({},m(this))},pn.set=function(e,t){if("object"==typeof e){var n,i=function(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:V[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=Y(e)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](e[i[n].unit])}else if(T(this[e=B(e)]))return this[e](t);return this},pn.startOf=function(e){var t,n;if(void 0===(e=B(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?tn:en,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Jt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=Jt(t,6e4);break;case"second":t=this._d.valueOf(),t-=Jt(t,1e3)}return this._d.setTime(t),r.updateOffset(this,!0),this},pn.subtract=qt,pn.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},pn.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},pn.toDate=function(){return new Date(this.valueOf())},pn.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
vendor: 5,942 bytes, line 1
1,pn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+n+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(pn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),pn.toJSON=function(){return this.isValid()?this.toISOString():null},pn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pn.unix=function(){return Math.floor(this.valueOf()/1e3)},pn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pn.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""},pn.eraNarrow=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""},pn.eraAbbr=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""},pn.eraYear=function(){var e,t,n,i,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,i=this.clone().startOf("day").valueOf(),a[e].since<=i&&i<=a[e].until||a[e].until<=i&&i<=a[e].since)return(this.year()-r(a[e].since).year())*n+a[e].offset;return this.year()},pn.year=_e,pn.isLeapYear=function(){return ve(this.year())},pn.weekYear=function(e){return on.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},pn.isoWeekYear=function(e){return on.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},pn.quarter=pn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},pn.month=Le,pn.daysInMonth=function(){return xe(this.year(),this.month())},pn.week=pn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},pn.isoWeek=pn.isoWeeks=function(e){var t=Re(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},pn.weeksInYear=function(){var e=this.localeData()._week;return Ne(this.year(),e.dow,e.doy)},pn.weeksInWeekYear=function(){var e=this.localeData()._week;return Ne(this.weekYear(),e.dow,e.doy)},pn.isoWeeksInYear=function(){return Ne(this.year(),1,4)},pn.isoWeeksInISOWeekYear=function(){return Ne(this.isoWeekYear(),1,4)},pn.date=ln,pn.day=pn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=ke(this,"Day");return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},pn.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},pn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},pn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},pn.hour=pn.hours=Je,pn.minute=pn.minutes=cn,pn.second=pn.seconds=hn,pn.millisecond=pn.milliseconds=dn,pn.utcOffset=function(e,t,n){var i,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Ht(re,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=Ft(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==e&&(!t||this._changeInProgress?$t(this,Yt(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:Ft(this)},pn.utc=function(e){return this.utcOffset(0,e)},pn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ft(this),"m")),this},pn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Ht(ie,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},pn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?St(e).utcOffset():0,(this.utcOffset()-e)%60==0)},pn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pn.isLocal=function(){return!!this.isValid()&&!this._isUTC},pn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pn.isUtc=Rt,pn.isUTC=Rt,pn.zoneAbbr=function(){return this._isUTC?"UTC":""},pn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pn.dates=x("dates accessor is deprecated. Use date instead.",ln),pn.months=x("months accessor is deprecated. Use month instead",Le),pn.years=x("years accessor is deprecated. Use year instead",_e),pn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),pn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=Ct(t))._a?(e=t._isUTC?p(t._a):St(t._a),this._isDSTShifted=this.isValid()&&function(e,t){var n,i=Math.min(e.length,t.length),r=M
vendor: 14,271 bytes, line 1
1ath.abs(e.length-t.length),a=0;for(n=0;n<i;n++)he(e[n])!==he(t[n])&&a++;return a+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var gn=A.prototype;function vn(e,t,n,i){var r=lt(),a=p().set(i,t);return r[n](a,e)}function yn(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return vn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=vn(e,i,n,"month");return r}function bn(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var r,a=lt(),o=e?a._week.dow:0,s=[];if(null!=n)return vn(t,(n+o)%7,i,"day");for(r=0;r<7;r++)s[r]=vn(t,(r+o)%7,i,"day");return s}gn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,n):i},gn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(L).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},gn.invalidDate=function(){return this._invalidDate},gn.ordinal=function(e){return this._ordinal.replace("%d",e)},gn.preparse=mn,gn.postformat=mn,gn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return T(r)?r(e,t,n,i):r.replace(/%d/i,e)},gn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},gn.set=function(e){var t,n;for(n in e)s(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gn.eras=function(e,t){var n,i,a,o=this._eras||lt("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=r(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o},gn.erasParse=function(e,t,n){var i,r,a,o,s,l=this.eras();for(e=e.toUpperCase(),i=0,r=l.length;i<r;++i)if(a=l[i].name.toUpperCase(),o=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[i];break;case"NNNN":if(a===e)return l[i];break;case"NNNNN":if(s===e)return l[i]}else if([a,o,s].indexOf(e)>=0)return l[i]},gn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},gn.erasAbbrRegex=function(e){return s(this,"_erasAbbrRegex")||rn.call(this),e?this._erasAbbrRegex:this._erasRegex},gn.erasNameRegex=function(e){return s(this,"_erasNameRegex")||rn.call(this),e?this._erasNameRegex:this._erasRegex},gn.erasNarrowRegex=function(e){return s(this,"_erasNarrowRegex")||rn.call(this),e?this._erasNarrowRegex:this._erasRegex},gn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||De).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},gn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[De.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gn.monthsParse=function(e,t,n){var i,r,a;if(this._monthsParseExact)return Ae.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},gn.monthsRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Oe.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Ee),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},gn.monthsShortRegex=function(e){return this._monthsParseExact?(s(this,"_monthsRegex")||Oe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Te),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},gn.week=function(e){return Re(e,this._week.dow,this._week.doy).week},gn.firstDayOfYear=function(){return this._week.doy},gn.firstDayOfWeek=function(){return this._week.dow},gn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Be(n,this._week.dow):e?n[e.day()]:n},gn.weekdaysMin=function(e){return!0===e?Be(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},gn.weekdaysShort=function(e){return!0===e?Be(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},gn.weekdaysParse=function(e,t,n){var i,r,a;if(this._weekdaysParseExact)return qe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},gn.weekdaysRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=Ue),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},gn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ge.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=We),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},gn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},ot("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=x("moment.lang is deprecated. Use moment.locale instead.",ot),r.langData=x("moment.langData is deprecated. Use moment.localeData instead.",lt);var _n=Math.abs;function wn(e,t,n,i){var r=Yt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function kn(e){return e<0?Math.floor(e):Math.ceil(e)}function Cn(e){return 4800*e/146097}function xn(e){return 146097*e/4800}function Sn(e){return function(){return this.as(e)}}var Mn=Sn("ms"),Dn=Sn("s"),Tn=Sn("m"),En=Sn("h"),An=Sn("d"),Pn=Sn("w"),Ln=Sn("M"),On=Sn("Q"),In=Sn("y"),Hn=Mn;function jn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Fn=jn("milliseconds"),Rn=jn("seconds"),Nn=jn("minutes"),Bn=jn("hours"),Yn=jn("days"),zn=jn("months"),Vn=jn("years"),Un=Math.round,$n={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Wn(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var qn=Math.abs;function Gn(e){return(e>0)-(e<0)||+e}function Xn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,a,o,s,l=qn(this._milliseconds)/1e3,c=qn(this._days),u=qn(this._months),d=this.asSeconds();return d?(e=de(l/60),t=de(e/60),l%=60,e%=60,n=de(u/12),u%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",a=Gn(this._months)!==Gn(d)?"-":"",o=Gn(this._days)!==Gn(d)?"-":"",s=Gn(this._milliseconds)!==Gn(d)?"-":"",r+"P"+(n?a+n+"Y":"")+(u?a+u+"M":"")+(c?o+c+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+i+"S":"")):"P0D"}var Qn=At.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var e=this._data;return this._milliseconds=_n(this._milliseconds),this._days=_n(this._days),this._months=_n(this._months),e.milliseconds=_n(e.milliseconds),e.seconds=_n(e.seconds),e.minutes=_n(e.minutes),e.hours=_n(e.hours),e.months=_n(e.months),e.years=_n(e.years),this},Qn.add=function(e,t){return wn(this,e,t,1)},Qn.subtract=function(e,t){return wn(this,e,t,-1)},Qn.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=B(e))||"quarter"===e||"year"===e)switch(n=this._months+Cn(t=this._days+i/864e5),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(xn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},Qn.asMilliseconds=Mn,Qn.asSeconds=Dn,Qn.asMinutes=Tn,Qn.asHours=En,Qn.asDays=An,Qn.asWeeks=Pn,Qn.asMonths=Ln,Qn.asQuarters=On,Qn.asYears=In,Qn.valueOf=Hn,Qn._bubble=function(){var e,t,n,i,r,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*kn(xn(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=de(a/1e3),l.seconds=e%60,t=de(e/60),l.minutes=t%60,n=de(t/60),l.hours=n%24,o+=de(n/24),s+=r=de(Cn(o)),o-=kn(xn(r)),i=de(s/12),s%=12,l.days=o,l.months=s,l.years=i,this},Qn.clone=function(){return Yt(this)},Qn.get=function(e){return e=B(e),this.isValid()?this[e+"s"]():NaN},Qn.milliseconds=Fn,Qn.seconds=Rn,Qn.minutes=Nn,Qn.hours=Bn,Qn.days=Yn,Qn.weeks=function(){return de(this.days()/7)},Qn.months=zn,Qn.years=Vn,Qn.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,a=$n;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(a=Object.assign({},$n,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),i=function(e,t,n,i){var r=Yt(e).abs(),a=Un(r.as("s")),o=Un(r.as("m")),s=Un(r.as("h")),l=Un(r.as("d")),c=Un(r.as("M")),u=Un(r.as("w")),d=Un(r.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||u<=1&&["w"]||u<n.w&&["ww",u]),(h=h||c<=1&&["M"]||c<n.M&&["MM",c]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=i,Wn.apply(null,h)}(this,!r,a,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},Qn.toISOString=Xn,Qn.toString=Xn,Qn.toJSON=Xn,Qn.locale=Qt,Qn.localeData=Zt,Qn.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Xn),Qn.lang=Kt,j("X",0,0,"unix"),j("x",0,0,"valueOf"),le("x",ne),le("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),pe("x",function(e,t,n){n._d=new Date(he(e))}),r.version="2.30.1",t=St,r.fn=pn,r.min=function(){return Tt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Tt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=p,r.unix=function(e){return St(1e3*e)},r.months=function(e,t){return yn(e,t,"months")},r.isDate=d,r.locale=ot,r.invalid=v,r.duration=Yt,r.isMoment=k,r.weekdays=function(e,t,n){return bn(e,t,n,"weekdays")},r.parseZone=function(){return St.apply(null,arguments).parseZone()},r.localeData=lt,r.isDuration=Pt,r.monthsShort=function(e,t){return yn(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return bn(e,t,n,"weekdaysMin")},r.defineLocale=st,r.updateLocale=function(e,t){if(null!=t){var n,i,r=et;null!=tt[e]&&null!=tt[e].parentLocale?tt[e].set(E(tt[e]._config,t)):(null!=(i=at(e))&&(r=i._config),t=E(r,t),null==i&&(t.abbr=e),(n=new A(t)).parentLocale=tt[e],tt[e]=n),ot(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?(tt[e]=tt[e].parentLocale,e===ot()&&ot(e)):null!=tt[e]&&delete tt[e]);return tt[e]},r.locales=function(){return S(tt)},r.weekdaysShort=function(e,t,n){return bn(e,t,n,"weekdaysShort")},r.normalizeUnits=B,r.relativeTimeRounding=function(e){return void 0===e?Un:"function"==typeof e&&(Un=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==$n[e]&&(void 0===t?$n[e]:($n[e]=t,"s"===e&&($n.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=pn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n("YuTi")(e))},"x+ZX":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(){return function(e){return e.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var i=new o(e,n),r=t.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).connectable=i,r}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;
1if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(i.a)},x6pH:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(e){return 2===e?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":e+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(e){return 2===e?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":e+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(e){return 2===e?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":e+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(e){return 2===e?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":e%10==0&&10!==e?e+" \u05e9\u05e0\u05d4":e+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(e){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(e)},meridiem:function(e,t,n){return e<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":e<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":e<12?n?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":e<18?n?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(n("wd/R"))},xbPD:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("7o/Q");function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new a(e))}}var a=function(){function e(t){_classCallCheck(this,e),this.defaultValue=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new o(e,this.defaultValue))}}]),e}(),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).defaultValue=i,r.isEmpty=!0,r}return _createClass(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(i.a)},xutz:function(e,t,n){"use strict";(function(e){var i=n("XqMk"),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=r&&"object"==typeof e&&e&&!e.nodeType&&e,o=a&&a.exports===r&&i.a.process,s=function(){try{return a&&a.require&&a.require("util").t
1ypes||o&&o.binding&&o.binding("util")}catch(e){}}();t.a=s}).call(this,n("3UD+")(e))},yCtX:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n("HDdC"),r=n("ngJS"),a=n("jZKg");function o(e,t){return t?Object(a.a)(e,t):new i.a(Object(r.a)(e))}},yPMs:function(e,t,n){!function(e){"use strict";e.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(e){return"M"===e.charAt(0)},meridiem:function(e,t,n){return e<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},"z+Ro":function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(t,"a",function(){return i})},z1FC:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["viensas secunds","'iensas secunds"],ss:[e+" secunds",e+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[e+" m\xeduts",e+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[e+" \xfeoras",e+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[e+" ziuas",e+" ziuas"],M:["'n mes","'iens mes"],MM:[e+" mesen",e+" mesen"],y:["'n ar","'iens ar"],yy:[e+" ars",e+" ars"]};return i||t?r[n][0]:r[n][1]}e.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(e){return"d'o"===e.toLowerCase()},meridiem:function(e,t,n){return e>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},z3Vd:function(e,t,n){!function(e){"use strict";var t="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var a=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),i>0&&(a+=(""!==a?" ":"")+t[i]+"maH"),r>0&&(a+=(""!==a?" ":"")+t[r]),""===a?"pagh":a}(e);switch(i){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_j
1ar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu\u2019":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa\u2019 tup",mm:n,h:"wa\u2019 rep",hh:n,d:"wa\u2019 jaj",dd:n,M:"wa\u2019 jar",MM:n,y:"wa\u2019 DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n("wd/R"))},z6cu:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n("HDdC");function r(e,t){return new i.a(t?function(n){return t.schedule(a,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function a(e){var t=e.error;e.subscriber.error(t)}},zUnb:function(e,t,n){"use strict";n.r(t);var i,r,a,o,s,l=n("ofXK"),c=n("fXoL"),u=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){e.parentNode&&e.parentNode.removeChild(e)}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getBaseHref",value:function(e){var t=(d=d||document.querySelector("base"))?d.getAttribute("href"):null;return null==t?null:function(e){(i=i||document.createElement("a")).setAttribute("href",e);var t=i.pathname;return"/"===t.charAt(0)?t:"/".concat(t)}(t)}},{key:"resetBaseElement",value:function(){d=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"getCookie",value:function(e){return Object(l.D)(document.cookie,e)}}],[{key:"makeCurrent",value:function(){Object(l.E)(new n)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).supportsDOMEvents=!0,e}return n}(l.A)),d=null,h=new c.y("TRANSITION_ID"),f=[{provide:c.d,useFactory:function(e,t,n){return function(){n.get(c.e).donePromise.then(function(){var n=Object(l.C)();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(function(t){return t.getAttribute("ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[h,l.d,c.z],multi:!0}],p=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){c.Cb.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=e.findTestabilityInTree(t,n);if(null==i)throw new Error("Could not find testability for element.");return i},c.Cb.getAllAngularTestabilities=function(){return e.getAllTestabilities()},c.Cb.getAllAngularRootElements=function(){return e.getAllRootElements()},c.Cb.frameworkStabilizers||(c.Cb.frameworkStabilizers=[]),c.Cb.frameworkStabilizers.push(function(e){var t=c.Cb.getAllAngularTestabilities(),n=t.length,i=!1,r=function(t){i=i||t,0==--n&&e(i)};t.forEach(function(e){e.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var i=e.getTestability(t);return null!=i?i:n?Object(l.C)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(c.kb)(new e)}}]),e}(),m=((r=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"build",value:function(){return new XMLHttpRequest}}]),e}()).\u0275fac=function(e){return new(e||r)},r.\u0275prov=c.Zb({token:r,factory:r.\u0275fac}),r),g=new c.y("EventManagerPlugins"),v=((a=function(){function e(t,n){var i=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=i}),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,i=0;i<n.length;i++){var r=n[i];if(r.supports(e))return this._eventNameToPlugin.set(e,r),r}throw new Error("No event manager plugin found for event ".concat(e))}}]),e}()).\u0275fac=function(e){return new(e||a)(c.qc(g),c.qc(c.J))},a.\u0275prov=c.Zb({token:a,factory:a.\u0275fac}),a),y=function(){function e(t){_classCallCheck(this,e),this._doc=t}return _createClass(e,[{key:"addGlobalEventListener",value:function(e,t,n){var i=Object(l.C)().getGlobalEventTarget(this._doc,e);if(!i)throw new Error("Unsupported event target ".concat(i," for event ").concat(t));return this.addEventListener(i,t,n)}}]),e}(),b=((s=function(){function e(){_classCallCheck(this,e),this._stylesSet=new Set}return _createClass(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||s)},s.\u0275prov=c.Zb({token:s,factory:s.\u0275fac}),s),_=((o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i._hostNodes=new Map,i._hostNodes.set(e.head,[]),i}return _createClass(n,[{key:"_addStylesToHost",value:function(e,t,n){var i=this;e.forEach(function(e){var r=i._doc.createElement("style");r.textContent=e,n.push(t.appendChild(r))})}},{key:"addHost",value:function(e){var t=[];this._addStylesToHost(this._stylesSet,e,t),this._hostNodes.set(e,t)}},{key:"removeHost",value:function(e){var t=this._hostNodes.get(e);t&&t.forEach(w),this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;
1this._hostNodes.forEach(function(n,i){t._addStylesToHost(e,i,n)})}},{key:"ngOnDestroy",value:function(){this._hostNodes.forEach(function(e){return e.forEach(w)})}}]),n}(b)).\u0275fac=function(e){return new(e||o)(c.qc(l.d))},o.\u0275prov=c.Zb({token:o,factory:o.\u0275fac}),o);function w(e){Object(l.C)().remove(e)}var k={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},C=/%COMP%/g;function x(e,t,n){for(var i=0;i<t.length;i++){var r=t[i];Array.isArray(r)?x(e,r,n):(r=r.replace(C,e),n.push(r))}return n}function S(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var M,D,T,E,A,P,L=((M=function(){function e(t,n,i){_classCallCheck(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new O(t)}return _createClass(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case c.db.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new I(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case 1:case c.db.ShadowDom:return new H(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var i=x(t.id,t.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||M)(c.qc(v),c.qc(_),c.qc(c.c))},M.\u0275prov=c.Zb({token:M,factory:M.\u0275fac}),M),O=function(){function e(t){_classCallCheck(this,e),this.eventManager=t,this.data=Object.create(null)}return _createClass(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(k[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,i){if(i){t=i+":"+t;var r=k[i];r?e.setAttributeNS(r,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var i=k[n];i?e.removeAttributeNS(i,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,i){i&(c.S.DashCase|c.S.Important)?e.style.setProperty(t,n,i&c.S.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&c.S.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,S(n)):this.eventManager.addEventListener(e,t,S(n))}}]),e}(),I=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;_classCallCheck(this,n),(o=t.call(this,e)).component=r;var s=x(a+"-"+r.id,r.styles,[]);return i.addStyles(s),o.contentAttr="_ngcontent-%COMP%".replace(C,a+"-"+r.id),o.hostAttr="_nghost-%COMP%".replace(C,a+"-"+r.id),o}return _createClass(n,[{key:"applyToHost",value:function(e){_get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var i=_get(_getPrototypeOf(n.prototype),"createElement",this).call(this,e,t);return _get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,i,this.contentAttr,""),i}}]),n}(O),H=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;_classCallCheck(this,n),(o=t.call(this,e)).sharedStylesHost=i,o.hostEl=r,o.shadowRoot=r.attachShadow({mode:"open"}),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=x(a.id,a.styles,[]),l=0;l<s.length;l++){var c=document.createElement("style");c.textContent=s[l],o.shadowRoot.appendChild(c)}return o}return _createClass(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,i){return _get(_getPrototypeOf(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,i)}},{key:"removeChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(_get(_getPrototypeOf(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(O),j=((D=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var i=this;return e.addEventListener(t,n,!1),function(){return i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(y)).\u0275fac=function(e){return new(e||D)(c.qc(l.d))},D.\u0275prov=c.Zb({token:D,factory:D.\u0275fac}),D),F=["alt","control","meta","shift"],R={"\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"},N={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"},B={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Y=((A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,i){var r=n.parseEventName(t),a=n.eventCallback(r.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Object(l.C)().onAndCancel(e,r.domEventName,a)})}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),i=t.shift();if(0===t.length||"keydown"!==i&&"keyup"!==i)return null;var r=n._normalizeKey(t.pop()),a="";
1if(F.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),a+=e+".")}),a+=r,0!=t.length||0===r.length)return null;var o={};return o.domEventName=i,o.fullKey=a,o}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&N.hasOwnProperty(t)&&(t=N[t]))}return R[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),F.forEach(function(i){i!=n&&(0,B[i])(e)&&(t+=i+".")}),t+=n}},{key:"eventCallback",value:function(e,t,i){return function(r){n.getEventFullKey(r)===e&&i.runGuarded(function(){return t(r)})}}},{key:"_normalizeKey",value:function(e){return"esc"===e?"escape":e}}]),n}(y)).\u0275fac=function(e){return new(e||A)(c.qc(l.d))},A.\u0275prov=c.Zb({token:A,factory:A.\u0275fac}),A),z=((E=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||E)},E.\u0275prov=Object(c.Zb)({factory:function(){return Object(c.qc)(V)},token:E,providedIn:"root"}),E),V=((T=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._doc=e,i}return _createClass(n,[{key:"sanitize",value:function(e,t){if(null==t)return null;switch(e){case c.U.NONE:return t;case c.U.HTML:return Object(c.rb)(t,"HTML")?Object(c.Lb)(t):Object(c.pb)(this._doc,String(t)).toString();case c.U.STYLE:return Object(c.rb)(t,"Style")?Object(c.Lb)(t):t;case c.U.SCRIPT:if(Object(c.rb)(t,"Script"))return Object(c.Lb)(t);throw new Error("unsafe value used in a script context");case c.U.URL:return Object(c.Bb)(t),Object(c.rb)(t,"URL")?Object(c.Lb)(t):Object(c.qb)(String(t));case c.U.RESOURCE_URL:if(Object(c.rb)(t,"ResourceURL"))return Object(c.Lb)(t);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(e," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(e){return Object(c.sb)(e)}},{key:"bypassSecurityTrustStyle",value:function(e){return Object(c.vb)(e)}},{key:"bypassSecurityTrustScript",value:function(e){return Object(c.ub)(e)}},{key:"bypassSecurityTrustUrl",value:function(e){return Object(c.wb)(e)}},{key:"bypassSecurityTrustResourceUrl",value:function(e){return Object(c.tb)(e)}}]),n}(z)).\u0275fac=function(e){return new(e||T)(c.qc(l.d))},T.\u0275prov=Object(c.Zb)({factory:function(){return e=Object(c.qc)(c.v),new V(e.get(l.d));var e},token:T,providedIn:"root"}),T),U=[{provide:c.M,useValue:l.B},{provide:c.N,useValue:function(){u.makeCurrent(),p.init()},multi:!0},{provide:l.d,useFactory:function(){return Object(c.Jb)(document),document},deps:[]}],W=Object(c.eb)(c.jb,"browser",U),q=[[],{provide:c.mb,useValue:"root"},{provide:c.r,useFactory:function(){return new c.r},deps:[]},{provide:g,useClass:j,multi:!0,deps:[l.d,c.J,c.M]},{provide:g,useClass:Y,multi:!0,deps:[l.d]},[],{provide:L,useClass:L,deps:[v,_,c.c]},{provide:c.R,useExisting:L},{provide:b,useExisting:_},{provide:_,useClass:_,deps:[l.d]},{provide:c.Y,useClass:c.Y,deps:[c.J]},{provide:v,useClass:v,deps:[g,c.J]},{provide:l.u,useClass:m,deps:[]},[]],G=((P=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:c.c,useValue:t.appId},{provide:h,useExisting:c.c},f]}}}]),e}()).\u0275fac=function(e){return new(e||P)(c.qc(P,12))},P.\u0275mod=c.bc({type:P}),P.\u0275inj=c.ac({providers:q,imports:[l.c,c.f]}),P);function X(){return new K(Object(c.qc)(l.d))}var Q,K=((Q=function(){function e(t){_classCallCheck(this,e),this._doc=t}return _createClass(e,[{key:"getTitle",value:function(){return this._doc.title}},{key:"setTitle",value:function(e){this._doc.title=e||""}}]),e}()).\u0275fac=function(e){return new(e||Q)(c.qc(l.d))},Q.\u0275prov=Object(c.Zb)({factory:X,token:Q,providedIn:"root"}),Q);function Z(e){return null!=e&&"false"!="".concat(e)}function J(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){return!isNaN(parseFloat(e))&&!isNaN(Number(e))}(e)?Number(e):t}function ee(e){return e instanceof c.q?e.nativeElement:e}"undefined"!=typeof window&&window;var te,ne,ie,re,ae=n("HDdC"),oe=n("XNiG"),se=n("Kj3r"),le=((re=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"create",value:function(e){return"undefined"==typeof MutationObserver?null:new MutationObserver(e)}}]),e}()).\u0275fac=function(e){return new(e||re)},re.\u0275prov=c.Zb({factory:function(){return new re},token:re,providedIn:"root"}),re),ce=((ie=function(){function e(t){_classCallCheck(this,e),this._mutationObserverFactory=t,this._observedElements=new Map}return _createClass(e,[{key:"ngOnDestroy",value:function(){var e=this;
1this._observedElements.forEach(function(t,n){return e._cleanupObserver(n)})}},{key:"observe",value:function(e){var t=this,n=ee(e);return new ae.a(function(e){var i=t._observeElement(n).subscribe(e);return function(){i.unsubscribe(),t._unobserveElement(n)}})}},{key:"_observeElement",value:function(e){if(this._observedElements.has(e))this._observedElements.get(e).count++;else{var t=new oe.a,n=this._mutationObserverFactory.create(function(e){return t.next(e)});n&&n.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:n,stream:t,count:1})}return this._observedElements.get(e).stream}},{key:"_unobserveElement",value:function(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}},{key:"_cleanupObserver",value:function(e){if(this._observedElements.has(e)){var t=this._observedElements.get(e),n=t.observer,i=t.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(e)}}}]),e}()).\u0275fac=function(e){return new(e||ie)(c.qc(le))},ie.\u0275prov=c.Zb({factory:function(){return new ie(c.qc(le))},token:ie,providedIn:"root"}),ie),ue=((ne=function(){function e(t,n,i){_classCallCheck(this,e),this._contentObserver=t,this._elementRef=n,this._ngZone=i,this.event=new c.s,this._disabled=!1,this._currentSubscription=null}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Z(e),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(e){this._debounce=J(e),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var e=this;this._unsubscribe();var t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){e._currentSubscription=(e.debounce?t.pipe(Object(se.a)(e.debounce)):t).subscribe(e.event)})}},{key:"_unsubscribe",value:function(){var e;null===(e=this._currentSubscription)||void 0===e||e.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||ne)(c.dc(ce),c.dc(c.q),c.dc(c.J))},ne.\u0275dir=c.Yb({type:ne,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),ne),de=((te=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||te)},te.\u0275mod=c.bc({type:te}),te.\u0275inj=c.ac({providers:[le]}),te),he=n("quSY"),fe=n("9ppp"),pe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._value=e,i}return _createClass(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(e){var t=_get(_getPrototypeOf(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new fe.a;return this._value}},{key:"next",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,this._value=e)}}]),n}(oe.a),me=n("LRne"),ge=n("vkgz"),ve=n("pLZG"),ye=n("lJxs"),be=n("IzEk"),_e=n("7o/Q"),we=function(){function e(t){_classCallCheck(this,e),this.total=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ke(e,this.total))}}]),e}(),ke=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){++this.count>this.total&&this.destination.next(e)}}]),n}(_e.a);function Ce(e,t){return function(n){return n.lift(new xe(e,t))}}var xe=function(){function e(t,n){_classCallCheck(this,e),this.compare=t,this.keySelector=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Se(e,this.compare,this.keySelector))}}]),e}(),Se=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).keySelector=r,a.hasKey=!1,"function"==typeof i&&(a.compare=i),a}
1return _createClass(n,[{key:"compare",value:function(e,t){return e===t}},{key:"_next",value:function(e){var t;try{var n=this.keySelector;t=n?n(e):e}catch(r){return this.destination.error(r)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,t)}catch(r){return this.destination.error(r)}else this.hasKey=!0;i||(this.key=t,this.destination.next(e))}}]),n}(_e.a),Me=n("zx2A");function De(e){return function(t){return t.lift(new Ee(e))}}var Te,Ee=function(){function e(t){_classCallCheck(this,e),this.notifier=t}return _createClass(e,[{key:"call",value:function(e,t){var n=new Ae(e),i=Object(Me.c)(this.notifier,new Me.a(n));return i&&!n.seenValue?(n.add(i),t.subscribe(n)):n}}]),e}(),Ae=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).seenValue=!1,i}return _createClass(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(Me.b);try{Te="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(QV){Te=!1}var Pe,Le,Oe,Ie,He=((Ie=function e(t){_classCallCheck(this,e),this._platformId=t,this.isBrowser=this._platformId?Object(l.z)(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&&!Te)&&"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(e){return new(e||Ie)(c.qc(c.M))},Ie.\u0275prov=c.Zb({factory:function(){return new Ie(c.qc(c.M))},token:Ie,providedIn:"root"}),Ie),je=((Oe=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Oe)},Oe.\u0275mod=c.bc({type:Oe}),Oe.\u0275inj=c.ac({}),Oe);function Fe(e){return function(){if(null==Pe&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Pe=!0}}))}finally{Pe=Pe||!1}return Pe}()?e:!!e.capture}function Re(e){return e.composedPath?e.composedPath()[0]:e.target}function Ne(e,t){return(e.getAttribute(t)||"").match(/\S+/g)||[]}var Be,Ye=0,ze=new Map,Ve=null,Ue=((Be=function(){function e(t){_classCallCheck(this,e),this._document=t}return _createClass(e,[{key:"describe",value:function(e,t,n){if(this._canBeDescribed(e,t)){var i=$e(t,n);"string"!=typeof t?(We(t),ze.set(i,{messageElement:t,referenceCount:0})):ze.has(i)||this._createMessageElement(t,n),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}}},{key:"removeDescription",value:function(e,t,n){if(t&&this._isElementNode(e)){var i=$e(t,n);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),"string"==typeof t){var r=ze.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}Ve&&0===Ve.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var e=this._document.querySelectorAll("[cdk-describedby-host]"),t=0;t<e.length;t++)this._removeCdkDescribedByReferenceIds(e[t]),e[t].removeAttribute("cdk-describedby-host");Ve&&this._deleteMessagesContainer(),ze.clear()}},{key:"_createMessageElement",value:function(e,t){var n=this._document.createElement("div");We(n),n.textContent=e,t&&n.setAttribute("role",t),this._createMessagesContainer(),Ve.appendChild(n),ze.set($e(e,t),{messageElement:n,referenceCount:0})}},{key:"_deleteMessageElement",value:function(e){var t=ze.get(e),n=t&&t.messageElement;Ve&&n&&Ve.removeChild(n),ze.delete(e)}},{key:"_createMessagesContainer",value:function(){if(!Ve){var e=this._document.getElementById("cdk-describedby-message-container");
1e&&e.parentNode&&e.parentNode.removeChild(e),(Ve=this._document.createElement("div")).id="cdk-describedby-message-container",Ve.style.visibility="hidden",Ve.classList.add("cdk-visually-hidden"),this._document.body.appendChild(Ve)}}},{key:"_deleteMessagesContainer",value:function(){Ve&&Ve.parentNode&&(Ve.parentNode.removeChild(Ve),Ve=null)}},{key:"_removeCdkDescribedByReferenceIds",value:function(e){var t=Ne(e,"aria-describedby").filter(function(e){return 0!=e.indexOf("cdk-describedby-message")});e.setAttribute("aria-describedby",t.join(" "))}},{key:"_addMessageReference",value:function(e,t){var n,i,r,a,o=ze.get(t);n=e,i="aria-describedby",r=o.messageElement.id,(a=Ne(n,i)).some(function(e){return e.trim()==r.trim()})||(a.push(r.trim()),n.setAttribute(i,a.join(" "))),e.setAttribute("cdk-describedby-host",""),o.referenceCount++}},{key:"_removeMessageReference",value:function(e,t){var n,i,r,a,o=ze.get(t);o.referenceCount--,n=e,i="aria-describedby",r=o.messageElement.id,(a=Ne(n,i).filter(function(e){return e!=r.trim()})).length?n.setAttribute(i,a.join(" ")):n.removeAttribute(i),e.removeAttribute("cdk-describedby-host")}},{key:"_isElementDescribedByMessage",value:function(e,t){var n=Ne(e,"aria-describedby"),i=ze.get(t),r=i&&i.messageElement.id;return!!r&&-1!=n.indexOf(r)}},{key:"_canBeDescribed",value:function(e,t){if(!this._isElementNode(e))return!1;if(t&&"object"==typeof t)return!0;var n=null==t?"":"".concat(t).trim(),i=e.getAttribute("aria-label");return!(!n||i&&i.trim()===n)}},{key:"_isElementNode",value:function(e){return e.nodeType===this._document.ELEMENT_NODE}}]),e}()).\u0275fac=function(e){return new(e||Be)(c.qc(l.d))},Be.\u0275prov=c.Zb({factory:function(){return new Be(c.qc(l.d))},token:Be,providedIn:"root"}),Be);function $e(e,t){return"string"==typeof e?"".concat(t||"","/").concat(e):e}function We(e){e.id||(e.id="cdk-describedby-message-"+Ye++)}function qe(e){return 0===e.offsetX&&0===e.offsetY}function Ge(e){var t=e.touches&&e.touches[0]||e.changedTouches&&e.changedTouches[0];return!(!t||-1!==t.identifier||null!=t.radiusX&&1!==t.radiusX||null!=t.radiusY&&1!==t.radiusY)}"undefined"!=typeof Element&∈var Xe,Qe,Ke,Ze,Je=new c.y("cdk-input-modality-detector-options"),et={ignoreKeys:[18,17,224,91,16]},tt=Fe({passive:!0,capture:!0}),nt=((Xe=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this._platform=t,this._mostRecentTarget=null,this._modality=new pe(null),this._lastTouchMs=0,this._onKeydown=function(e){var t,n;(null===(n=null===(t=a._options)||void 0===t?void 0:t.ignoreKeys)||void 0===n?void 0:n.some(function(t){return t===e.keyCode}))||(a._modality.next("keyboard"),a._mostRecentTarget=Re(e))},this._onMousedown=function(e){Date.now()-a._lastTouchMs<650||(a._modality.next(qe(e)?"keyboard":"mouse"),a._mostRecentTarget=Re(e))},this._onTouchstart=function(e){Ge(e)?a._modality.next("keyboard"):(a._lastTouchMs=Date.now(),a._modality.next("touch"),a._mostRecentTarget=Re(e))},this._options=Object.assign(Object.assign({},et),r),this.modalityDetected=this._modality.pipe(function(e){return e.lift(new we(1))}),this.modalityChanged=this.modalityDetected.pipe(Ce()),t.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",a._onKeydown,tt),i.addEventListener("mousedown",a._onMousedown,tt),i.addEventListener("touchstart",a._onTouchstart,tt)})}return _createClass(e,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,tt),document.removeEventListener("mousedown",this._onMousedown,tt),document.removeEventListener("touchstart",this._onTouchstart,tt))}}]),e}()).\u0275fac=function(e){return new(e||Xe)(c.qc(He),c.qc(c.J),c.qc(l.d),c.qc(Je,8))},Xe.\u0275prov=c.Zb({factory:function(){return new Xe(c.qc(He),c.qc(c.J),c.qc(l.d),c.qc(Je,8))},token:Xe,providedIn:"root"}),Xe),it=new c.y("cdk-focus-monitor-default-options"),rt=Fe({passive:!0,capture:!0}),at=((Ze=function(){function e(t,n,i,r,a){var o=this;_classCallCheck(this,e),this._ngZone=t,this._platform=n,this._inputModalityDetector=i,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=function(){o._windowFocused=!0,o._windowFocusTimeoutId=setTimeout(function(){return o._windowFocused=!1})},this._stopInputModalityDetector=new oe.a,this._rootNodeFocusAndBlurListener=function(e){for(var t=Re(e),n="focus"===e.type?o._onFocus:o._onBlur,i=t;i;i=i.parentElement)n.call(o,e,i)},this._document=r,this._detectionMode=(null==a?void 0:a.detectionMode)||0}return _createClass(e,[{key:"monitor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ee(e);
1if(!this._platform.isBrowser||1!==n.nodeType)return Object(me.a)(null);var i=function(e){if(function(){if(null==Le){var e="undefined"!=typeof document?document.head:null;Le=!(!e||!e.createShadowRoot&&!e.attachShadow)}return Le}()){var t=e.getRootNode?e.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&t instanceof ShadowRoot)return t}return null}(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return t&&(r.checkChildren=!0),r.subject;var a={checkChildren:t,subject:new oe.a,rootNode:i};return this._elementInfo.set(n,a),this._registerGlobalListeners(a),a.subject}},{key:"stopMonitoring",value:function(e){var t=ee(e),n=this._elementInfo.get(t);n&&(n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(e,t,n){var i=this,r=ee(e);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(e){var n=_slicedToArray(e,2),r=n[0],a=n[1];return i._originChanged(r,t,a)}):(this._setOrigin(t),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var e=this;this._elementInfo.forEach(function(t,n){return e.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(e,t,n){n?e.classList.add(t):e.classList.remove(t)}},{key:"_getFocusOrigin",value:function(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(e){return 1===this._detectionMode||!!(null==e?void 0:e.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(e,t){this._toggleClass(e,"cdk-focused",!!t),this._toggleClass(e,"cdk-touch-focused","touch"===t),this._toggleClass(e,"cdk-keyboard-focused","keyboard"===t),this._toggleClass(e,"cdk-mouse-focused","mouse"===t),this._toggleClass(e,"cdk-program-focused","program"===t)}},{key:"_setOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){t._origin=e,t._originFromTouchInteraction="touch"===e&&n,0===t._detectionMode&&(clearTimeout(t._originTimeoutId),t._originTimeoutId=setTimeout(function(){return t._origin=null},t._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(e,t){var n=this._elementInfo.get(t),i=Re(e);n&&(n.checkChildren||t===i)&&this._originChanged(t,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(e,t){var n=this._elementInfo.get(t);!n||n.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(e,t){this._ngZone.run(function(){return e.next(t)})}},{key:"_registerGlobalListeners",value:function(e){var t=this;if(this._platform.isBrowser){var n=e.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",t._rootNodeFocusAndBlurListener,rt),n.addEventListener("blur",t._rootNodeFocusAndBlurListener,rt)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){t._getWindow().addEventListener("focus",t._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(De(this._stopInputModalityDetector)).subscribe(function(e){t._setOrigin(e,!0)}))}}},{key:"_removeGlobalListeners",value:function(e){var t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){var n=this._rootNodeFocusListenerCount.get(t);n>1?this._rootNodeFocusListenerCount.set(t,n-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rt),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rt),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(e,t,n){this._setClasses(e,t),this._emitOrigin(n.subject,t),this._lastFocusOrigin=t}},{key:"_getClosestElementsInfo",value:function(e){var t=[];return this._elementInfo.forEach(function(n,i){(i===e||n.checkChildren&&i.contains(e))&&t.push([i,n])}),t}}]),e}()).\u0275fac=function(e){return new(e||Ze)(c.qc(c.J),c.qc(He),c.qc(nt),c.qc(l.d,8),c.qc(it,8))},Ze.\u0275prov=c.Zb({factory:function(){return new Ze(c.qc(c.J),c.qc(He),c.qc(nt),c.qc(l.d,8),c.qc(it,8))},token:Ze,providedIn:"root"}),Ze),ot=((Ke=function(){function e(t,n){_classCallCheck(this,e),this._platform=t,this._document=n}return _createClass(e,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);var t=this._document.defaultView||window,n=t&&t.getComputedStyle?t.getComputedStyle(e):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(e),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}}
1,{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var e=this._document.body.classList;e.remove("cdk-high-contrast-active"),e.remove("cdk-high-contrast-black-on-white"),e.remove("cdk-high-contrast-white-on-black"),this._hasCheckedHighContrastMode=!0;var t=this.getHighContrastMode();1===t?(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-black-on-white")):2===t&&(e.add("cdk-high-contrast-active"),e.add("cdk-high-contrast-white-on-black"))}}}]),e}()).\u0275fac=function(e){return new(e||Ke)(c.qc(He),c.qc(l.d))},Ke.\u0275prov=c.Zb({factory:function(){return new Ke(c.qc(He),c.qc(l.d))},token:Ke,providedIn:"root"}),Ke),st=((Qe=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Qe)},Qe.\u0275mod=c.bc({type:Qe}),Qe.\u0275inj=c.ac({}),Qe),lt=new c.ab("12.2.13"),ct=n("bHdf");function ut(){return Object(ct.a)(1)(Object(me.a).apply(void 0,arguments))}var dt=n("z+Ro");function ht(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return Object(dt.a)(i)?(t.pop(),function(e){return ut(t,e,i)}):function(e){return ut(t,e)}}var ft=function e(){_classCallCheck(this,e)},pt=function e(){_classCallCheck(this,e)};function mt(e,t){return{type:7,name:e,definitions:t,options:{}}}function gt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function vt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function yt(e){return{type:6,styles:e,offset:null}}function bt(e,t,n){return{type:0,name:e,styles:t,options:n}}function _t(e){return{type:5,steps:e}}function wt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function kt(e){Promise.resolve(null).then(e)}var Ct=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{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 e=this;kt(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),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(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),xt=function(){function e(t){var n=this;_classCallCheck(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var i=0,r=0,a=0,o=this.players.length;0==o?kt(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++i==o&&n._onFinish()}),e.onDestroy(function(){++r==o&&n._onDestroy()}),e.onStart(function(){++a==o&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}}
1,{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}();function St(){return"undefined"!=typeof window&&void 0!==window.document}function Mt(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Dt(e){switch(e.length){case 0:return new Ct;case 1:return e[0];default:return new xt(e)}}function Tt(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],l=-1,c=null;if(i.forEach(function(e){var n=e.offset,i=n==l,u=i&&c||{};Object.keys(e).forEach(function(n){var i=n,s=e[n];if("offset"!==n)switch(i=t.normalizePropertyName(i,o),s){case"!":s=r[n];break;case"*":s=a[n];break;default:s=t.normalizeStyleValue(n,i,s,o)}u[i]=s}),i||s.push(u),c=u,l=n}),o.length){var u="\n - ";throw new Error("Unable to animate due to the following errors:".concat(u).concat(o.join(u)))}return s}function Et(e,t,n,i){switch(t){case"start":e.onStart(function(){return i(n&&At(n,"start",e))});break;case"done":e.onDone(function(){return i(n&&At(n,"done",e))});break;case"destroy":e.onDestroy(function(){return i(n&&At(n,"destroy",e))})}}function At(e,t,n){var i=n.totalTime,r=Pt(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==i?e.totalTime:i,!!n.disabled),a=e._data;return null!=a&&(r._data=a),r}function Pt(e,t,n,i){var r=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:e,triggerName:t,fromState:n,toState:i,phaseName:r,totalTime:a,disabled:!!o}}function Lt(e,t,n){var i;return e instanceof Map?(i=e.get(t))||e.set(t,i=n):(i=e[t])||(i=e[t]=n),i}function Ot(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var It=function(e,t){return!1},Ht=function(e,t){return!1},jt=function(e,t,n){return[]},Ft=Mt();(Ft||"undefined"!=typeof Element)&&(It=St()?function(e,t){for(;t&&t!==document.documentElement;){if(t===e)return!0;t=t.parentNode||t.host}return!1}:function(e,t){return e.contains(t)},Ht=function(){if(Ft||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:Ht}(),jt=function(e,t,n){var i=[];if(n)for(var r=e.querySelectorAll(t),a=0;a<r.length;a++)i.push(r[a]);else{var o=e.querySelector(t);o&&i.push(o)}return i});var Rt=null,Nt=!1;function Bt(e){Rt||(Rt=("undefined"!=typeof document?document.body:null)||{},Nt=!!Rt.style&&"WebkitAppearance"in Rt.style);var t=!0;return Rt.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(!(t=e in Rt.style)&&Nt)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in Rt.style),t}var Yt=Ht,zt=It,Vt=jt;function Ut(e){var t={};return Object.keys(e).forEach(function(n){var i=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[i]=e[n]}),t}var $t,Wt=(($t=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Bt(e)}},{key:"matchesElement",value:function(e,t){return Yt(e,t)}},{key:"containsElement",value:function(e,t){return zt(e,t)}},{key:"query",value:function(e,t,n){return Vt(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return n||""}},{key:"animate",value:function(e,t,n,i,r){return new Ct(n,i)}}]),e}()).\u0275fac=function(e){return new(e||$t)},$t.\u0275prov=c.Zb({token:$t,factory:$t.\u0275fac}),$t),qt=function(){var e=function e(){_classCallCheck(this,e)};return e.NOOP=new Wt,e}();function Gt(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Xt(parseFloat(t[1]),t[2])}function Xt(e,t){return"s"===t?1e3*e:e}function Qt(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var i,r=0,a="";if("string"==typeof e){var o=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===o)return t.push('The provided timing value "'.concat(e,'" is invali
1d.')),{duration:0,delay:0,easing:""};i=Xt(parseFloat(o[1]),o[2]);var s=o[3];null!=s&&(r=Xt(parseFloat(s),o[4]));var l=o[5];l&&(a=l)}else i=e;if(!n){var c=!1,u=t.length;i<0&&(t.push("Duration values below 0 are not allowed for this animation step."),c=!0),r<0&&(t.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&t.splice(u,0,'The provided timing value "'.concat(e,'" is invalid.'))}return{duration:i,delay:r,easing:a}}(e,t,n)}function Kt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Zt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var i in e)n[i]=e[i];else Kt(e,n);return n}function Jt(e,t,n){return n?t+":"+n+";":""}function en(e){for(var t="",n=0;n<e.style.length;n++){var i=e.style.item(n);t+=Jt(0,i,e.style.getPropertyValue(i))}for(var r in e.style)e.style.hasOwnProperty(r)&&!r.startsWith("_")&&(t+=Jt(0,r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[r]));e.setAttribute("style",t)}function tn(e,t,n){e.style&&(Object.keys(t).forEach(function(i){var r=un(i);n&&!n.hasOwnProperty(i)&&(n[i]=e.style[r]),e.style[r]=t[i]}),Mt()&&en(e))}function nn(e,t){e.style&&(Object.keys(t).forEach(function(t){var n=un(t);e.style[n]=""}),Mt()&&en(e))}function rn(e){return Array.isArray(e)?1==e.length?e[0]:vt(e):e}var an=new RegExp("{{\\s*(.+?)\\s*}}","g");function on(e){var t=[];if("string"==typeof e){for(var n;n=an.exec(e);)t.push(n[1]);an.lastIndex=0}return t}function sn(e,t,n){var i=e.toString(),r=i.replace(an,function(e,i){var r=t[i];return t.hasOwnProperty(i)||(n.push("Please provide a value for the animation param ".concat(i)),r=""),r.toString()});return r==i?e:r}function ln(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var cn=/-+([a-z0-9])/g;function un(e){return e.replace(cn,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function dn(e,t){return 0===e||0===t}function hn(e,t,n){var i=Object.keys(n);if(i.length&&t.length){var r=t[0],a=[];if(i.forEach(function(e){r.hasOwnProperty(e)||a.push(e),r[e]=n[e]}),a.length)for(var o=function(){var n=t[s];a.forEach(function(t){n[t]=pn(e,t)})},s=1;s<t.length;s++)o()}return t}function fn(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #".concat(t.type))}}function pn(e,t){return window.getComputedStyle(e)[t]}var mn=new Set(["true","1"]),gn=new Set(["false","0"]);function vn(e,t){var n=mn.has(e)||gn.has(e),i=mn.has(t)||gn.has(t);return function(r,a){var o="*"==e||e==r,s="*"==t||t==a;return!o&&n&&"boolean"==typeof r&&(o=r?mn.has(e):gn.has(e)),!s&&i&&"boolean"==typeof a&&(s=a?mn.has(t):gn.has(t)),o&&s}}var yn=new RegExp("s*:selfs*,?","g");function bn(e,t,n){return new _n(e).build(t,n)}var _n=function(){function e(t){_classCallCheck(this,e),this._driver=t}return _createClass(e,[{key:"build",value:function(e,t){var n=new wn(t);return this._resetContextStyleTimingState(n),fn(this,rn(e),n)}},{key:"_resetContextStyleTimingState",value:function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}},{key:"visitTrigger",value:function(e,t){var n=this,i=t.queryCount=0,r=t.depCount=0,a=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,l=s.name;l.toString().split(/\s*,\s*/).forEach(function(e){s.name=e,a.push(n.visitState(s,t))}),s.name=l}else if(1==e.type){var c=n.visitTransition(e,t);i+=c.queryCount,r+=c.depCount,o.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:a,transitions:o,queryCount:i,depCount:r,options:null}}},{key:"visitState",value:function(e,t){var n=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(n.containsDynamicStyles){var r=new Set,a=i||{};
1if(n.styles.forEach(function(e){if(kn(e)){var t=e;Object.keys(t).forEach(function(e){on(t[e]).forEach(function(e){a.hasOwnProperty(e)||r.add(e)})})}}),r.size){var o=ln(r.values());t.errors.push('state("'.concat(e.name,'", ...) must define default values for all the following style substitutions: ').concat(o.join(", ")))}}return{type:0,name:e.name,style:n,options:i?{params:i}:null}}},{key:"visitTransition",value:function(e,t){t.queryCount=0,t.depCount=0;var n,i,r,a=fn(this,rn(e.animation),t);return{type:1,matchers:(n=e.expr,i=t.errors,r=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var i=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'.concat(e,'" is not supported')),"* => *"}}(e,n);if("function"==typeof i)return void t.push(i);e=i}var r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var a=r[1],o=r[2],s=r[3];t.push(vn(a,s)),"<"!=o[0]||"*"==a&&"*"==s||t.push(vn(s,a))}(e,r,i)}):r.push(n),r),animation:a,queryCount:t.queryCount,depCount:t.depCount,options:Cn(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return fn(n,e,t)}),options:Cn(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,i=t.currentTime,r=0,a=e.steps.map(function(e){t.currentTime=i;var a=fn(n,e,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:a,options:Cn(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,i=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return xn(Qt(e,t).duration,0,"");var i=e;if(i.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var r=xn(0,0,"");return r.dynamic=!0,r.strValue=i,r}return xn((n=n||Qt(i,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;var r=e.styles?e.styles:yt({});if(5==r.type)n=this.visitKeyframes(r,t);else{var a=e.styles,o=!1;if(!a){o=!0;var s={};i.easing&&(s.easing=i.easing),a=yt(s)}t.currentTime+=i.duration+i.delay;var l=this.visitStyle(a,t);l.isEmptyStep=o,n=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?"*"==e?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var i=!1,r=null;return n.forEach(function(e){if(kn(e)){var t=e,n=t.easing;if(n&&(r=n,delete t.easing),!i)for(var a in t)if(t[a].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:e.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,i=t.currentAnimateTimings,r=t.currentTime,a=t.currentTime;i&&a>0&&(a-=i.duration+i.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(i){if(n._driver.validateStyleProperty(i)){var o=t.collectedStyles[t.currentQuerySelector],s=o[i],l=!0;s&&(a!=r&&a>=s.startTime&&r<=s.endTime&&(t.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(r,'ms"')),l=!1),a=s.startTime),l&&(o[i]={startTime:a,endTime:r}),t.options&&function(e,t,n){var i=t.params||{},r=on(e);r.length&&r.forEach(function(e){i.hasOwnProperty(e)||n.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))})}(e[i],t.options,t.errors)}else t.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,a=[],o=!1,s=!1,l=0,c=e.steps.map(function(e){var i=n._makeStyleAst(e,t),c=null!=i.offset?i.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(kn(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(kn(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(i.styles),u=0;return null!=c&&(r++,u=i.offset=c),s=s||u<0||u>1,o=o||u<l,l=u,a.push(u),i});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&t.errors.push("Please ensure that all keyframe offsets are in order");var u=e.steps.length,d=0;r>0&&r<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(d=1/(u-1));var h=u-1,f=t.currentTime,p=t.currentAnimateTimings,m=p.duration;
1return c.forEach(function(e,r){var o=d>0?r==h?1:d*r:a[r],s=o*m;t.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(e,t),e.offset=o,i.styles.push(e)}),i}},{key:"visitReference",value:function(e,t){return{type:8,animation:fn(this,rn(e.animation),t),options:Cn(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Cn(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Cn(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;var r=_slicedToArray(function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(yn,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),2),a=r[0],o=r[1];t.currentQuerySelector=n.length?n+" "+a:a,Lt(t.collectedStyles,t.currentQuerySelector,{});var s=fn(this,rn(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:s,originalSelector:e.selector,options:Cn(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Qt(e.timings,t.errors,!0);return{type:12,animation:fn(this,rn(e.animation),t),timings:n,options:null}}}]),e}(),wn=function e(t){_classCallCheck(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function kn(e){return!Array.isArray(e)&&"object"==typeof e}function Cn(e){var t;return e?(e=Kt(e)).params&&(e.params=(t=e.params)?Kt(t):null):e={},e}function xn(e,t,n){return{duration:e,delay:t,easing:n}}function Sn(e,t,n,i,r,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:e,keyframes:t,preStyleProps:n,postStyleProps:i,duration:r,delay:a,totalTime:r+a,easing:o,subTimeline:s}}var Mn=function(){function e(){_classCallCheck(this,e),this._map=new Map}return _createClass(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,i=this._map.get(e);i||this._map.set(e,i=[]),(n=i).push.apply(n,_toConsumableArray(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),Dn=new RegExp(":enter","g"),Tn=new RegExp(":leave","g");function En(e,t,n,i,r){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,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new An).buildKeyframes(e,t,n,i,r,a,o,s,l,c)}var An=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"buildKeyframes",value:function(e,t,n,i,r,a,o,s,l){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Mn;var u=new Ln(e,t,l,i,r,c,[]);u.options=s,u.currentTimeline.setStyles([a],null,u.errors,s),fn(this,n,u);var d=u.timelines.filter(function(e){return e.containsAnimation()});if(d.length&&Object.keys(o).length){var h=d[d.length-1];h.allowOnlyTimelineStyles()||h.setStyles([o],null,u.errors,s)}return d.length?d.map(function(e){return e.buildKeyframes()}):[Sn(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}}
1,{key:"_visitSubInstructions",value:function(e,t,n){var i=t.currentTimeline.currentTime,r=null!=n.duration?Gt(n.duration):null,a=null!=n.delay?Gt(n.delay):null;return 0!==r&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,r,a);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),fn(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,i=t.subContextCount,r=t,a=e.options;if(a&&(a.params||a.delay)&&((r=t.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Pn);var o=Gt(a.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(function(e){return fn(n,e,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,i=[],r=t.currentTimeline.currentTime,a=e.options&&e.options.delay?Gt(e.options.delay):0;e.steps.forEach(function(o){var s=t.createSubContext(e.options);a&&s.delayNextStep(a),fn(n,o,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(r),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return Qt(t.params?sn(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());var r=e.style;5==r.type?this.visitKeyframes(r,t):(t.incrementTime(n.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(r):n.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,i=t.currentTimeline.duration,r=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(function(e){a.forwardTime((e.offset||0)*r),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(i+r),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,i=t.currentTimeline.currentTime,r=e.options||{},a=r.delay?Gt(r.delay):0;a&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Pn);var o=i,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=s.length;var l=null;
1s.forEach(function(i,r){t.currentQueryIndex=r;var s=t.createSubContext(e.options,i);a&&s.delayNextStep(a),i===t.element&&(l=s.currentTimeline),fn(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),s=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var l=t.currentTimeline;s&&l.delayNextStep(s);var c=l.currentTime;fn(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=i.currentTime-c+(i.startTime-n.currentTimeline.startTime)}}]),e}(),Pn={},Ln=function(){function e(t,n,i,r,a,o,s,l){_classCallCheck(this,e),this._driver=t,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=a,this.errors=o,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Pn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new On(this._driver,n,0),s.push(this.currentTimeline)}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(e,t){var n=this;if(e){var i=e,r=this.options;null!=i.duration&&(r.duration=Gt(i.duration)),null!=i.delay&&(r.delay=Gt(i.delay));var a=i.params;if(a){var o=r.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(e){t&&o.hasOwnProperty(e)||(o[e]=sn(a[e],o,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,a=new e(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(t),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=Pn,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var i={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},r=new In(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,i,r,a){var o=[];if(i&&o.push(this.element),e.length>0){e=(e=e.replace(Dn,"."+this._enterClassName)).replace(Tn,"."+this._leaveClassName);var s=this._driver.query(this.element,e,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 r||0!=o.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}}]),e}(),On=function(){function e(t,n,i,r){_classCallCheck(this,e),this._driver=t,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}
1return _createClass(e,[{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(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||"*",t._currentKeyframe[e]="*"}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,i){var r=this;t&&(this._previousKeyframe.easing=t);var a=i&&i.params||{},o=function(e,t){var n,i={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){i[e]="*"}):Zt(e,!1,i)}),i}(e,this._globalTimelineStyles);Object.keys(o).forEach(function(e){var t=sn(o[e],a,n);r._pendingStyles[e]=t,r._localTimelineStyles.hasOwnProperty(e)||(r._backFill[e]=r._globalTimelineStyles.hasOwnProperty(e)?r._globalTimelineStyles[e]:"*"),r._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var i=t._styleSummary[n],r=e._styleSummary[n];(!i||r.time>i.time)&&t._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(a,o){var s=Zt(a,!0);Object.keys(s).forEach(function(e){var i=s[e];"!"==i?t.add(e):"*"==i&&n.add(e)}),i||(s.offset=o/e.duration),r.push(s)});var a=t.size?ln(t.values()):[],o=n.size?ln(n.values()):[];if(i){var s=r[0],l=Kt(s);s.offset=0,l.offset=1,r=[s,l]}return Sn(this.element,r,a,o,this.duration,this.startTime,this.easing,!1)}}]),e}(),In=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s){var l,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return _classCallCheck(this,n),(l=t.call(this,e,i,s.delay)).element=i,l.keyframes=r,l.preStyleProps=a,l.postStyleProps=o,l._stretchStartingKeyframe=c,l.timings={duration:s.duration,delay:s.delay,easing:s.easing},l}return _createClass(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,i=t.duration,r=t.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=i+n,s=n/o,l=Zt(e[0],!1);l.offset=0,a.push(l);var c=Zt(e[0],!1);c.offset=Hn(s),a.push(c);for(var u=e.length-1,d=1;d<=u;d++){var h=Zt(e[d],!1);h.offset=Hn((n+h.offset*i)/o),a.push(h)}i=o,n=0,r="",e=a}return Sn(this.element,e,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(On);function Hn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var jn,Fn,Rn=function e(){_classCallCheck(this,e)},Nn=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"normalizePropertyName",value:function(e,t){return un(e)}},{key:"normalizeStyleValue",value:function(e,t,n,i){var r="",a=n.toString().trim();if(Bn[t]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&i.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return a+r}}]),n}(Rn),Bn=(jn="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(","),Fn={},jn.forEach(function(e){return Fn[e]=!0}),Fn);function Yn(e,t,n,i,r,a,o,s,l,c,u,d,h){return{type:0,element:e,triggerName:t,isRemovalTransition:r,fromState:n,fromStyles:a,toState:i,toStyles:o,timelines:s,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}var zn={},Vn=function(){function e(t,n,i){_classCallCheck(this,e),this._triggerName=t,this.ast=n,this._stateStyles=i}return _createClass(e,[{key:"match",value:function(e,t,n,i){return function(e,t,n,i,r){return e.some(function(e){return e(t,n,i,r)})}(this.ast.matchers,e,t,n,i)}},{key:"buildStyles",value:function(e,t,n){var i=this._stateStyles["*"],r=this._stateStyles[e],a=i?i.buildStyles(t,n):{};return r?r.buildStyles(t,n):a}},{key:"build",value:function(e,t,n,i,r,a,o,s,l,c){var u=[],d=this.ast.options&&this.ast.options.params||zn,h=this.buildStyles(n,o&&o.params||zn,u),f=s&&s.params||zn,p=this.buildStyles(i,f,u),m=new Set,g=new Map,v=new Map,y="void"===i,b={params:Object.assign(Object.assign({},d),f)},_=c?[]:En(e,t,this.ast.animation,r,a,h,p,b,l,u),w=0;if(_.forEach(function(e){w=Math.max(e.duration+e.delay,w)}),u.length)return Yn(t,this._triggerName,n,i,y,h,p,[],[],g,v,w,u);_.forEach(function(e){var n=e.element,i=Lt(g,n,{});e.preStyleProps.forEach(function(e){return i[e]=!0});var r=Lt(v,n,{});e.postStyleProps.forEach(function(e){return r[e]=!0}),n!==t&&m.add(n)});var k=ln(m.values());return Yn(t,this._triggerName,n,i,y,h,p,_,k,g,v,w)}}]),e}(),Un=function(){function e(t,n){_classCallCheck(this,e),this.styles=t,this.defaultParams=n}return _createClass(e,[{key:"buildStyles",value:function(e,t){var n={},i=Kt(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(i[t]=n)}
1),this.styles.styles.forEach(function(e){if("string"!=typeof e){var r=e;Object.keys(r).forEach(function(e){var a=r[e];a.length>1&&(a=sn(a,i,t)),n[e]=a})}}),n}}]),e}(),$n=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){i.states[e.name]=new Un(e.style,e.options&&e.options.params||{})}),Wn(this.states,"true","1"),Wn(this.states,"false","0"),n.transitions.forEach(function(e){i.transitionFactories.push(new Vn(t,e,i.states))}),this.fallbackTransition=new Vn(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return _createClass(e,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(e,t,n,i){return this.transitionFactories.find(function(r){return r.match(e,t,n,i)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}]),e}();function Wn(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var qn=new Mn,Gn=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return _createClass(e,[{key:"register",value:function(e,t){var n=[],i=bn(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=i}},{key:"_buildPlayer",value:function(e,t,n){var i=e.element,r=Tt(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[e],s=new Map;if(o?(n=En(this._driver,t,o,"ng-enter","ng-leave",{},{},r,qn,a)).forEach(function(e){var t=Lt(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=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(e,t){Object.keys(e).forEach(function(n){e[n]=i._driver.computeStyle(t,n,"*")})});var l=Dt(n.map(function(e){var t=s.get(e.element);return i._buildPlayer(e,{},t)}));return this._playersById[e]=l,l.onDestroy(function(){return i.destroy(e)}),this.players.push(l),l}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,i){var r=Pt(t,"","","");return Et(this._getPlayer(e),n,r,i),function(){}}},{key:"command",value:function(e,t,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(e);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,i[0]||{});else this.register(e,i[0])}}]),e}(),Xn=[],Qn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Kn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Zn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";_classCallCheck(this,e),this.namespaceId=n;var i,r=t&&t.hasOwnProperty("value");if(this.value=null!=(i=r?t.value:t)?i:null,r){var a=Kt(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return _createClass(e,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}}]),e}(),Jn=new Zn("void"),ei=function(){function e(t,n,i){_classCallCheck(this,e),this.id=t,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+t,si(n,this._hostClassName)}return _createClass(e,[{key:"listen",value:function(e,t,n,i){var r,a=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=Lt(this._elementListeners,e,[]),s={name:t,phase:n,callback:i};o.push(s);var l=Lt(this._engine.statesByElement,e,{});return l.hasOwnProperty(t)||(si(e,"ng-trigger"),si(e,"ng-trigger-"+t),l[t]=Jn),function(){a._engine.afterFlush(function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),a._triggers[t]||delete l[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(t),o=new ni(this.id,t,e),s=this._engine.statesByElement.get(e);s||(si(e,"ng-trigger"),si(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var l=s[t],c=new Zn(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),s[t]=c,l||(l=Jn),"void"===c.value||l.value!==c.value){var u=Lt(this._engine.playersByElement,e,[]);u.forEach(function(e){e.namespaceId==i.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=a.matchTransition(l.value,c.value,e,c.params),h=!1;if(!d){if(!r)return;d=a.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:l,toState:c,player:o,isFallbackTransition:h}),h||(si(e,"ng-animate-queued"),o.onStart(function(){li(e,"ng-animate-queued")})),o.onDone(function(){var t=i.players.indexOf(o);t>=0&&i.players.splice(t,1);var n=i._engine.playersByElement.get(e);if(n){var r=n.indexOf(o);r>=0&&n.splice(r,1)}}),this.players.push(o),u.push(o),o}if(!function(e,t){var n=Object.keys(e),i=Object.keys(t);if(n.length!=i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(!t.hasOwnProperty(a)||e[a]!==t[a])return!1}return!0}(l.params,c.params)){var f=[],p=a.matchStyles(l.value,l.params,f),m=a.matchStyles(c.value,c.params,f);f.length?this._engine.reportError(f):this._engine.afterFlush(function(){nn(e,p),tn(e,m)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,i){t._elementListeners.set(i,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,i=this._engine.driver.query(e,".ng-trigger",!0);i.forEach(function(e){if(!e.__ng_removed){var i=n._engine.fetchNamespacesByElement(e);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,i){var r=this,a=this._engine.statesByElement.get(e);if(a){var o=[];if(Object.keys(a).forEach(function(t){if(r._triggers[t]){var n=r.trigger(e,t,"void",i);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&Dt(o).onDone(function(){return r._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(n&&i){var r=new Set;n.forEach(function(n){var a=n.name;if(!r.has(a)){r.add(a);var o=t._triggers[a].fallbackTransition,s=i[a]||Jn,l=new Zn("void"),c=new ni(t.
1id,a,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:a,transition:o,fromState:s,toState:l,player:c,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var r=!1;if(i.totalAnimations){var a=i.players.length?i.playersByQueriedElement.get(e):[];if(a&&a.length)r=!0;else for(var o=e;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==Qn||(i.afterFlush(function(){return n.clearElementCache(e)}),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){si(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var a=i.element,o=t._elementListeners.get(a);o&&o.forEach(function(t){if(t.name==i.triggerName){var n=Pt(a,i.triggerName,i.fromState.value,i.toState.value);n._data=e,Et(i.player,t.phase,n,t.callback)}}),r.markedForDestroy?t._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(e,n){var i=e.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),ti=function(){function e(t,n,i){_classCallCheck(this,e),this.bodyNode=t,this.driver=n,this._normalizer=i,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(e,t){}}return _createClass(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}},{key:"createNamespace",value:function(e,t){var n=new ei(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,t)){this._namespaceList.splice(r+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var i=this._namespaceLookup[e];i&&i.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var i=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(i);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var i=Object.keys(n),r=0;r<i.length;r++){var a=n[i[r]].namespaceId;if(a){var o=this._fetchNamespace(a);o&&t.add(o)}}return t}},{key:"trigger",value:function(e,t,n,i){if(ii(t)){var r=this._fetchNamespace(e);if(r)return r.trigger(t,n,i),!0}return!1}},{key:"insertNode",value:function(e,t,n,i){if(ii(t)){var r=t.__ng_removed;if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;var a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}i&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),si(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),li(e,"ng-animate-disabled"))}},{key:"removeNode",value:function(e,t,n,i){if(ii(t)){var r=e?this._fetchNamespace(e):null;if(r?r.removeNode(t,i):this.markElementAsRemoved(e,t,!1,i),n){var a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,i)}}else this._onRemovalComplete(t,i)}},{key:"markElementAsRemoved",value:function(e,t,n,i){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,i,r){return ii(t)?this._fetchNamespace(e).listen(t,n,i,r):function(){}}},{key:"_buildInstruction",value:function(e,t,n,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,i,e.fromState.options,e.toState.o
1ptions,t,r)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return Dt(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=Qn,n.namespaceId){this.destroyInnerAnimations(e);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)si(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var r=[];try{n=this._flushAnimations(r,t)}finally{for(var a=0;a<r.length;a++)r[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(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var s=this._whenQuietFns;this._whenQuietFns=[],n.length?Dt(n).onDone(function(){s.forEach(function(e){return e()})}):s.forEach(function(e){return e()})}}},{key:"reportError",value:function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n ".concat(e.join("\n")))}},{key:"_flushAnimations",value:function(e,t){var n=this,i=new Mn,r=[],a=new Map,o=[],s=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(function(e){u.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),i=0;i<t.length;i++)u.add(t[i])});var d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=oi(h,this.collectedEnterElements),p=new Map,m=0;f.forEach(function(e,t){var n="ng-enter"+m++;p.set(t,n),e.forEach(function(e){return si(e,n)})});for(var g=[],v=new Set,y=new Set,b=0;b<this.collectedLeaveElements.length;b++){var _=this.collectedLeaveElements[b],w=_.__ng_removed;w&&w.setForRemoval&&(g.push(_),v.add(_),w.hasAnimation?this.driver.query(_,".ng-star-inserted",!0).forEach(function(e){return v.add(e)}):y.add(_))}var k=new Map,C=oi(h,Array.from(v));C.forEach(function(e,t){var n="ng-leave"+m++;k.set(t,n),e.forEach(function(e){return si(e,n)})}),e.push(function(){f.forEach(function(e,t){var n=p.get(t);e.forEach(function(e){return li(e,n)})}),C.forEach(function(e,t){var n=k.get(t);e.forEach(function(e){return li(e,n)})}),g.forEach(function(e){n.processLeaveNode(e)})});for(var x=[],S=[],M=this._namespaceList.length-1;M>=0;M--)this._namespaceList[M].drainQueuedTransitions(t).forEach(function(e){var t=e.player,a=e.element;if(x.push(t),n.collectedEnterElements.length){var u=a.__ng_removed;if(u&&u.setForMove)return void t.destroy()}var h=!d||!n.driver.containsElement(d,a),f=k.get(a),m=p.get(a),g=n._buildInstruction(e,i,m,f,h);if(g.errors&&g.errors.length)S.push(g);else{if(h)return t.onStart(function(){return nn(a,g.fromStyles)}),t.onDestroy(function(){return tn(a,g.toStyles)}),void r.push(t);if(e.isFallbackTransition)return t.onStart(function(){return nn(a,g.fromStyles)}),t.onDestroy(function(){return tn(a,g.toStyles)}),void r.push(t);
1g.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),i.append(a,g.timelines),o.push({instruction:g,player:t,element:a}),g.queriedElements.forEach(function(e){return Lt(s,e,[]).push(t)}),g.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var i=l.get(t);i||l.set(t,i=new Set),n.forEach(function(e){return i.add(e)})}}),g.postStyleProps.forEach(function(e,t){var n=Object.keys(e),i=c.get(t);i||c.set(t,i=new Set),n.forEach(function(e){return i.add(e)})})}});if(S.length){var D=[];S.forEach(function(e){D.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return D.push("- ".concat(e,"\n"))})}),x.forEach(function(e){return e.destroy()}),this.reportError(D)}var T=new Map,E=new Map;o.forEach(function(e){var t=e.element;i.has(t)&&(E.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),r.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){Lt(T,t,[]).push(e),e.destroy()})});var A=g.filter(function(e){return di(e,l,c)}),P=new Map;ai(P,this.driver,y,c,"*").forEach(function(e){di(e,l,c)&&A.push(e)});var L=new Map;f.forEach(function(e,t){ai(L,n.driver,new Set(e),l,"!")}),A.forEach(function(e){var t=P.get(e),n=L.get(e);P.set(e,Object.assign(Object.assign({},t),n))});var O=[],I=[],H={};o.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(i.has(t)){if(u.has(t))return o.onDestroy(function(){return tn(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var l=H;if(E.size>1){for(var c=t,d=[];c=c.parentNode;){var h=E.get(c);if(h){l=h;break}d.push(c)}d.forEach(function(e){return E.set(e,l)})}var f=n._buildAnimation(o.namespaceId,s,T,a,L,P);if(o.setRealPlayer(f),l===H)O.push(o);else{var p=n.playersByElement.get(l);p&&p.length&&(o.parentPlayer=Dt(p)),r.push(o)}}else nn(t,s.fromStyles),o.onDestroy(function(){return tn(t,s.toStyles)}),I.push(o),u.has(t)&&r.push(o)}),I.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=Dt(t);e.setRealPlayer(n)}}),r.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var j=0;j<g.length;j++){var F=g[j],R=F.__ng_removed;if(li(F,"ng-leave"),!R||!R.hasAnimation){var N=[];if(s.size){var B=s.get(F);B&&B.length&&N.push.apply(N,_toConsumableArray(B));for(var Y=this.driver.query(F,".ng-animating",!0),z=0;z<Y.length;z++){var V=s.get(Y[z]);V&&V.length&&N.push.apply(N,_toConsumableArray(V))}}var U=N.filter(function(e){return!e.destroyed});U.length?ci(this,F,U):this.processLeaveNode(F)}}return g.length=0,O.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),O}},{key:"elementContainsData",value:function(e,t){var n=!1,i=t.__ng_removed;return i&&i.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}},{key:"afterFlush",value:function(e){this._flushFns.push(e)}},{key:"afterFlushAnimationsDone",value:function(e){this._whenQuietFns.push(e)}},{key:"_getPreviousPlayers",value:function(e,t,n,i,r){var a=[];if(t){var o=this.playersByQueriedElement.get(e);o&&(a=o)}else{var s=this.playersByElement.get(e);if(s){var l=!r||"void"==r;s.forEach(function(e){e.queued||(l||e.triggerName==i)&&a.push(e)})}}return(n||i)&&(a=a.filter(function(e){return!(n&&n!=e.namespaceId||i&&i!=e.triggerName)})),a}},{key:"_beforeAnimationBuild",value:function(e,t,n){var i,r=this,a=t.element,o=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName,l=_createForOfIteratorHelper(t.timelines);try{var c=function(){var e=i.value.element,l=e!==a,c=Lt(n,e,[]);r._getPreviousPlayers(e,l,o,s,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})};for(l.s();!(i=l.n()).done;)c()}catch(u){l.e(u)}finally{l.f()}nn(a,t.fromStyles)}},{key:"_buildAnimation",value:function(e,t,n,i,r,a){var o=this,s=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(function(t){var h=t.element;u.add(h);var f=h.__ng_removed;if(f&&f.removedBeforeQueried)return new Ct(t.duration,t.delay);var p,m,g=h!==l,v=(p=(n.get(h)||Xn).map(function(e){return e.getRealPlayer()}),m=[],ui(p,m),m).filter(function(e){return!!e.element&&e.element===h}),y=r.get(h),b=a.get(h),_=Tt(0,o._normalizer,0,t.keyframes,y,b),w=o._buildPlayer(t,_,v);if(t.subTimeline&&i&&d.add(h),g){var k=new ni(e,s,h);k.setRealPlayer(w),c.push(k)}return w});
1c.forEach(function(e){Lt(o.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var i;if(e instanceof Map){if(i=e.get(t)){if(i.length){var r=i.indexOf(n);i.splice(r,1)}0==i.length&&e.delete(t)}}else if(i=e[t]){if(i.length){var a=i.indexOf(n);i.splice(a,1)}0==i.length&&delete e[t]}return i}(o.playersByQueriedElement,e.element,e)})}),u.forEach(function(e){return si(e,"ng-animating")});var f=Dt(h);return f.onDestroy(function(){u.forEach(function(e){return li(e,"ng-animating")}),tn(l,t.toStyles)}),d.forEach(function(e){Lt(i,e,[]).push(f)}),f}},{key:"_buildPlayer",value:function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Ct(e.duration,e.delay)}}]),e}(),ni=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.triggerName=n,this.element=i,this._player=new Ct,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return _createClass(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEac
1h(function(n){t._queuedCallbacks[n].forEach(function(t){return Et(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){Lt(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{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(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function ii(e){return e&&1===e.nodeType}function ri(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function ai(e,t,n,i,r){var a=[];n.forEach(function(e){return a.push(ri(e))});var o=[];i.forEach(function(n,i){var a={};n.forEach(function(e){var n=a[e]=t.computeStyle(i,e,r);n&&0!=n.length||(i.__ng_removed=Kn,o.push(i))}),e.set(i,a)});var s=0;return n.forEach(function(e){return ri(e,a[s++])}),o}function oi(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var i=new Set(t),r=new Map;function a(e){if(!e)return 1;var t=r.get(e);if(t)return t;var o=e.parentNode;return t=n.has(o)?o:i.has(o)?1:a(o),r.set(e,t),t}return t.forEach(function(e){var t=a(e);1!==t&&n.get(t).push(e)}),n}function si(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function li(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function ci(e,t,n){Dt(n).onDone(function(){return e.processLeaveNode(t)})}function ui(e,t){for(var n=0;n<e.length;n++){var i=e[n];i instanceof xt?ui(i.players,t):t.push(i)}}function di(e,t,n){var i=n.get(e);if(!i)return!1;var r=t.get(e);return r?i.forEach(function(e){return r.add(e)}):t.set(e,i),n.delete(e),!0}var hi=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new ti(t,n,i),this._timelineEngine=new Gn(t,n,i),this._transitionEngine.onRemovalComplete=function(e,t){return r.onRemovalComplete(e,t)}}return _createClass(e,[{key:"registerTrigger",value:function(e,t,n,i,r){var a=e+"-"+i,o=this._triggerCache[a];if(!o){var s=[],l=bn(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'.concat(i,'" has failed to build due to the following errors:\n - ').concat(s.join("\n - ")));o=function(e,t){return new $n(e,t)}(i,l),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}},{key:"register",value:function(e,t){this._transitionEngine.register(e,t)}},{key:"destroy",value:function(e,t){this._transitionEngine.destroy(e,t)}},{key:"onInsert",value:function(e,t,n,i){this._transitionEngine.insertNode(e,t,n,i)}},{key:"onRemove",value:function(e,t,n,i){this._transitionEngine.removeNode(e,t,i||!1,n)}},{key:"disableAnimations",value:function(e,t){this._transitionEngine.markElementAsDisabled(e,t)}},{key:"process",value:function(e,t,n,i){if("@"==n.charAt(0)){var r=_slicedToArray(Ot(n),2),a=r[0],o=r[1];this._timelineEngine.command(a,t,o,i)}else this._transitionEngine.trigger(e,t,n,i)}},{key:"listen",value:function(e,t,n,i,r){if("@"==n.charAt(0)){var a=_slicedToArray(Ot(n),2),o=a[0],s=a[1];return this._timelineEngine.listen(o,t,s,r)}return this._transitionEngine.listen(e,t,n,i,r)}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),e}();function fi(e,t){var n=null,i=null;return Array.isArray(t)&&t.length?(n=mi(t[0]),t.length>1&&(i=mi(t[t.length-1]))):t&&(n=mi(t)),n||i?new pi(e,n,i):null}var pi=function(){var e=function(){function e(t,n,i){_classCallCheck(this,e),this._element=t,this._startStyles=n,this._endStyles=i,this._state=0;var r=e.initialStylesByElement.get(t);r||e.initialStylesByElement.set(t,r={}),this._initialStyles=r}return _createClass(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&tn(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(tn(this._element,this._initialStyles),this._endStyles&&(tn(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(nn(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(nn(this._element,this._endStyles),this._endStyles=null),tn(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function mi(e){for(var t=null,n=Object.keys(e),i=0;i<n.length;i++){var r=n[i];
1gi(r)&&((t=t||{})[r]=e[r])}return t}function gi(e){return"display"===e||"position"===e}var vi=function(){function e(t,n,i,r,a,o,s){var l=this;_classCallCheck(this,e),this._element=t,this._name=n,this._duration=i,this._delay=r,this._easing=a,this._fillMode=o,this._onDoneFn=s,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(e){return l._handleCallback(e)}}return _createClass(e,[{key:"apply",value:function(){!function(e,t){var n=Ci(e,"").trim();n.length&&(function(e){for(var t=0;t<e.length;t++)","===e.charAt(t)&&0}(n),t="".concat(n,", ").concat(t)),ki(e,"",t)}(this._element,"".concat(this._duration,"ms ").concat(this._easing," ").concat(this._delay,"ms 1 normal ").concat(this._fillMode," ").concat(this._name)),wi(this._element,this._eventFn,!1),this._startTime=Date.now()}},{key:"pause",value:function(){yi(this._element,this._name,"paused")}},{key:"resume",value:function(){yi(this._element,this._name,"running")}},{key:"setPosition",value:function(e){var t=bi(this._element,this._name);this._position=e*this._duration,ki(this._element,"Delay","-".concat(this._position,"ms"),t)}},{key:"getPosition",value:function(){return this._position}},{key:"_handleCallback",value:function(e){var t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),wi(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._element,t=this._name,n=Ci(e,"").split(","),(i=_i(n,t))>=0&&(n.splice(i,1),ki(e,"",n.join(","))))}}]),e}();function yi(e,t,n){ki(e,"PlayState",n,bi(e,t))}function bi(e,t){var n=Ci(e,"");return n.indexOf(",")>0?_i(n.split(","),t):_i([n],t)}function _i(e,t){for(var n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function wi(e,t,n){n?e.removeEventListener("animationend",t):e.addEventListener("animationend",t)}function ki(e,t,n,i){var r="animation"+t;if(null!=i){var a=e.style[r];if(a.length){var o=a.split(",");o[i]=n,n=o.join(",")}}e.style[r]=n}function Ci(e,t){return e.style["animation"+t]||""}var xi=function(){function e(t,n,i,r,a,o,s,l){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=a,this._finalStyles=s,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=r+a,this._buildStyler()}return _createClass(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{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(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{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._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new vi(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;
1Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(t[i]=n?e._finalStyles[i]:pn(e.element,i))})}this.currentSnapshot=t}}]),e}(),Si=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).element=e,r._startingStyles={},r.__initialized=!1,r._styles=Ut(i),r}return _createClass(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),_get(_getPrototypeOf(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),_get(_getPrototypeOf(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,_get(_getPrototypeOf(n.prototype),"destroy",this).call(this))}}]),n}(Ct),Mi=function(){function e(){_classCallCheck(this,e),this._count=0}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Bt(e)}},{key:"matchesElement",value:function(e,t){return Yt(e,t)}},{key:"containsElement",value:function(e,t){return zt(e,t)}},{key:"query",value:function(e,t,n){return Vt(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return Ut(e)});var i="@keyframes ".concat(t," {\n"),r="";n.forEach(function(e){r=" ";var t=parseFloat(e.offset);i+="".concat(r).concat(100*t,"% {\n"),r+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(t,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var a=document.createElement("style");return a.textContent=i,a}},{key:"animate",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(e){return e instanceof xi}),s={};dn(n,i)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var l=function(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=hn(e,t,s));if(0==n)return new Si(e,l);var c="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(e,c,t),d=function(e){var t,n=null===(t=e.getRootNode)||void 0===t?void 0:t.call(e);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head}(e);d.appendChild(u);var h=fi(e,t),f=new xi(e,t,c,n,i,r,l,h);return f.onDestroy(function(){var e;(e=u).parentNode.removeChild(e)}),f}}]),e}(),Di=function(){function e(t,n,i,r){_classCallCheck(this,e),this.element=t,this.keyframes=n,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}return _createClass(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),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(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*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 e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:pn(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),Ti=function(){function e(){_classCallCheck(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Ei().toString()),this._cssKeyframesDriver=new Mi}return _createClass(e,[{key:"validateStyleProperty",value:function(e){return Bt(e)}},{key:"matchesElement",value:function(e,t){return Yt(e,t)}},{key:"containsElement",value:function(e,t){return zt(e,t)}},{key:"query",value:function(e,t,n){return Vt(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,i,r){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(e,t,n,i,r,a);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var l={},c=a.filter(function(e){return e instanceof Di});
1dn(n,i)&&c.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var u=fi(e,t=hn(e,t=t.map(function(e){return Zt(e,!1)}),l));return new Di(e,t,s,u)}}]),e}();function Ei(){return St()&&Element.prototype.animate||{}}var Ai,Pi=((Ai=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._nextAnimationId=0,r._renderer=e.createRenderer(i.body,{id:"0",encapsulation:c.db.None,styles:[],data:{animation:[]}}),r}return _createClass(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?vt(e):e;return Ii(this._renderer,null,t,"register",[n]),new Li(t,this._renderer)}}]),n}(ft)).\u0275fac=function(e){return new(e||Ai)(c.qc(c.R),c.qc(l.d))},Ai.\u0275prov=c.Zb({token:Ai,factory:Ai.\u0275fac}),Ai),Li=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this))._id=e,r._renderer=i,r}return _createClass(n,[{key:"create",value:function(e,t){return new Oi(this._id,e,t||{},this._renderer)}}]),n}(pt),Oi=function(){function e(t,n,i,r){_classCallCheck(this,e),this.id=t,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return _createClass(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Ii(this._renderer,this.element,this.id,e,n)}},{key:"onDone",value:function(e){this._listen("done",e)}},{key:"onStart",value:function(e){this._listen("start",e)}},{key:"onDestroy",value:function(e){this._listen("destroy",e)}},{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"),this._started=!1}},{key:"setPosition",value:function(e){this._command("setPosition",e)}},{key:"getPosition",value:function(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}]),e}();function Ii(e,t,n,i,r){return e.setProperty(t,"@@".concat(n,":").concat(i),r)}var Hi,ji,Fi,Ri,Ni=((Hi=function(){function e(t,n,i){_classCallCheck(this,e),this.delegate=t,this.engine=n,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return _createClass(e,[{key:"createRenderer",value:function(e,t){var n=this,i=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var r=this._rendererCache.get(i);return r||(r=new Bi("",i,this.engine),this._rendererCache.set(i,r)),r}var a=t.id,o=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(o,e),t.data.animation.forEach(function t(i){Array.isArray(i)?i.forEach(t):n.engine.registerTrigger(a,o,e,i.name,i)}),new Yi(this,o,i,this.engine)}},{key:"begin",value:function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}},{key:"_scheduleCountTask",value:function(){var e=this;this.promise.then(function(){e._microtaskId++})}},{key:"scheduleListenerCallback",value:function(e,t,n){var i=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(e){var t=_slicedToArray(e,2);(0,t[0])(t[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}},{key:"end",value:function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()}},{key:"whenRenderingDone",value:function(){return this.engine.whenRenderingDone()}}]),e}()).\u0275fac=function(e){return new(e||Hi)(c.qc(c.R),c.qc(hi),c.qc(c.J))},Hi.\u0275prov=c.Zb({token:Hi,factory:Hi.\u0275fac}),Hi),Bi=function(){function e(t,n,i){_classCallCheck(this,e),this.namespaceId=t,this.delegate=n,this.engine=i,this.destroyNode=this.delegate.destroyNode?function(e){return n.destroyNode(e)}:null}return _createClass(e,[{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(e,t){return this.delegate.createElement(e,t)}},{key:"createComment",value:function(e){return this.delegate.createComment(e)}},{key:"createText",value:function(e){return this.delegate.createText(e)}},{key:"appendChild",value:function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}},{key:"insertBefore",value:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,i)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,i){this.delegate.setAttribute(e,t,n,i)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,i){this.delegate.setStyle(e,t,n,i)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n
1)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}}]),e}(),Yi=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,i,r,a)).factory=e,o.namespaceId=i,o}return _createClass(n,[{key:"setProperty",value:function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var i,r,a=this;if("@"==t.charAt(0)){var o,s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),l=t.substr(1),c="";return"@"!=l.charAt(0)&&(r=(i=l).indexOf("."),l=(o=_slicedToArray([i.substring(0,r),i.substr(r+1)],2))[0],c=o[1]),this.engine.listen(this.namespaceId,s,l,c,function(e){a.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(Bi),zi=((ji=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){return _classCallCheck(this,n),t.call(this,e.body,i,r)}return _createClass(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(hi)).\u0275fac=function(e){return new(e||ji)(c.qc(l.d),c.qc(qt),c.qc(Rn))},ji.\u0275prov=c.Zb({token:ji,factory:ji.\u0275fac}),ji),Vi=new c.y("AnimationModuleType"),Ui=[{provide:ft,useClass:Pi},{provide:Rn,useFactory:function(){return new Nn}},{provide:hi,useClass:zi},{provide:c.R,useFactory:function(e,t,n){return new Ni(e,t,n)},deps:[L,hi,c.J]}],$i=[{provide:qt,useFactory:function(){return"function"==typeof Ei()?new Ti:new Mi}},{provide:Vi,useValue:"BrowserAnimations"}].concat(Ui),Wi=[{provide:qt,useClass:Wt},{provide:Vi,useValue:"NoopAnimations"}].concat(Ui),qi=((Fi=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"withConfig",value:function(t){return{ngModule:e,providers:t.disableAnimations?Wi:$i}}}]),e}()).\u0275fac=function(e){return new(e||Fi)},Fi.\u0275mod=c.bc({type:Fi}),Fi.\u0275inj=c.ac({providers:$i,imports:[G]}),Fi),Gi=function(){var e=function e(){_classCallCheck(this,e)};return e.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",e.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",e.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",e.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",e}(),Xi=function(){var e=function e(){_classCallCheck(this,e)};return e.COMPLEX="375ms",e.ENTERING="225ms",e.EXITING="195ms",e}(),Qi=new c.ab("12.2.13"),Ki=new c.y("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Zi=((Ri=function(){function e(t,n,i){_classCallCheck(this,e),this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return _createClass(e,[{key:"_checkIsEnabled",value:function(e){return!(!Object(c.ib)()||"undefined"!=typeof __karma__&&__karma__||"undefined"!=typeof jasmine&&jasmine||"undefined"!=typeof jest&&jest||"undefined"!=typeof Mocha&&Mocha)&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[e])}},{key:"_checkDoctypeIsDefined",value:function(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checkIsEnabled("theme")&&this._document.body&&"function"==typeof getComputedStyle){var e=this._document.createElement("div");e.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(e);var t=getComputedStyle(e);t&&"none"!==t.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(e)}}},{key:"_checkCdkVersionMatch",value:function(){this._checkIsEnabled("version")&&Qi.full!==lt.full&&console.warn("The Angular Material version ("+Qi.full+") does not match the Angular CDK version ("+lt.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),e}()).\u0275fac=function(e){return new(e||Ri)(c.qc(ot),c.qc(Ki,8),c.qc(l.d))},Ri.\u0275mod=c.bc({type:Ri}),Ri.\u0275inj=c.ac({imports:[[st],st]}),Ri);function Ji(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._disabled=!1,e}return _createClass(n,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=Z(e)}}]),n}(e)}try{"undefined"!=typeof Intl}catch(QV){!1}var er,tr,nr=function(){function e(t,n,i){_classCallCheck(this,e),this._renderer=t,this.element=n,this.config=i,this.state=3}return _createClass(e,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),e}(),ir={enterDuration:225,exitDuration:150},rr=Fe({passive:!0}),ar=["mousedown","touchstart"],or=["mouseup","mouseleave","touchend","touchcancel"],sr=function(){function e(t,n,i,r){_classCallCheck(this,e),this._target=t,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=ee(i))}return _createClass(e,[{key:"fadeInRipple",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=Object.assign(Object.assign({},ir),i.animation);
1i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);var o=i.radius||function(e,t,n){var i=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),r=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),s=e-r.left,l=t-r.top,c=a.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=s-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration="".concat(c,"ms"),this._containerElement.appendChild(u),window.getComputedStyle(u).getPropertyValue("opacity"),u.style.transform="scale(1)";var d=new nr(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(function(){var e=d===n._mostRecentTransientRipple;d.state=1,i.persistent||e&&n._isPointerDown||d.fadeOut()},c),d}},{key:"fadeOutRipple",value:function(e){var t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),t){var n=e.element,i=Object.assign(Object.assign({},ir),e.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(function(){e.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(e){return e.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(e){e.config.persistent||e.fadeOut()})}},{key:"setupTriggerEvents",value:function(e){var t=ee(e);t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(ar))}},{key:"handleEvent",value:function(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(or),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(e){var t=qe(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||t||n||(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}},{key:"_onTouchStart",value:function(e){if(!this._target.rippleDisabled&&!Ge(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;for(var t=e.changedTouches,n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}},{key:"_onPointerUp",value:function(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(function(e){!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}},{key:"_runTimeoutOutsideZone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(e,t)})}},{key:"_registerEvents",value:function(e){var t=this;this._ngZone.runOutsideAngular(function(){e.forEach(function(e){t._triggerElement.addEventListener(e,t,rr)})})}},{key:"_removeTriggerEvents",value:function(){var e=this;this._triggerElement&&(ar.forEach(function(t){e._triggerElement.removeEventListener(t,e,rr)}),this._pointerUpEventsRegistered&&or.forEach(function(t){e._triggerElement.removeEventListener(t,e,rr)}))}}]),e}(),lr=new c.y("mat-ripple-global-options"),cr=((tr=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this._elementRef=t,this._animationMode=a,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new sr(this,n,t,i)}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent
1()}},{key:"rippleConfig",get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e?this._rippleRenderer.fadeInRipple(e,t,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),e))}}]),e}()).\u0275fac=function(e){return new(e||tr)(c.dc(c.q),c.dc(c.J),c.dc(He),c.dc(lr,8),c.dc(Vi,8))},tr.\u0275dir=c.Yb({type:tr,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(e,t){2&e&&c.Vb("mat-ripple-unbounded",t.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),tr),ur=((er=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||er)},er.\u0275mod=c.bc({type:er}),er.\u0275inj=c.ac({imports:[[Zi,je],Zi]}),er),dr=n("Cfvw"),hr=n("DH7j"),fr=n("XoHu");function pr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var i=t[0];if(Object(hr.a)(i))return mr(i,null);if(Object(fr.a)(i)&&Object.getPrototypeOf(i)===Object.prototype){var r=Object.keys(i);return mr(r.map(function(e){return i[e]}),r)}}if("function"==typeof t[t.length-1]){var a=t.pop();return mr(t=1===t.length&&Object(hr.a)(t[0])?t[0]:t,null).pipe(Object(ye.a)(function(e){return a.apply(void 0,_toConsumableArray(e))}))}return mr(t,null)}function mr(e,t){return new ae.a(function(n){var i=e.length;if(0!==i)for(var r=new Array(i),a=0,o=0,s=function(s){var l=Object(dr.a)(e[s]),c=!1;n.add(l.subscribe({next:function(e){c||(c=!0,o++),r[s]=e},error:function(e){return n.error(e)},complete:function(){++a!==i&&c||(o===i&&n.next(t?t.reduce(function(e,t,n){return e[t]=r[n],e},{}):r),n.complete())}}))},l=0;l<i;l++)s(l);else n.complete()})}var gr,vr,yr,br,_r,wr,kr=((yr=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"setProperty",value:function(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"setDisabledState",value:function(e){this.setProperty("disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||yr)(c.dc(c.Q),c.dc(c.q))},yr.\u0275dir=c.Yb({type:yr}),yr),Cr=((vr=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(kr)).\u0275fac=function(e){return(gr||(gr=c.lc(vr)))(e||vr)},vr.\u0275dir=c.Yb({type:vr,features:[c.Mb]}),vr),xr=new c.y("NgValueAccessor"),Sr={provide:xr,useExisting:Object(c.gb)(function(){return Mr}),multi:!0},Mr=((_r=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"writeValue",value:function(e){this.setProperty("checked",e)}}]),n}(Cr)).\u0275fac=function(e){return(br||(br=c.lc(_r)))(e||_r)},_r.\u0275dir=c.Yb({type:_r,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&c.tc("change",function(e){return t.onChange(e.target.checked)})("blur",function(){return t.onTouched()})},features:[c.Ob([Sr]),c.Mb]}),_r),Dr={provide:xr,useExisting:Object(c.gb)(function(){return Er}),multi:!0},Tr=new c.y("CompositionEventMode"),Er=((wr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a,o;return _classCallCheck(this,n),(a=t.call(this,e,i))._compositionMode=r,a._composing=!1,null==a._compositionMode&&(a._compositionMode=(o=Object(l.C)()?Object(l.C)().getUserAgent():"",!/android (\d+)/.test(o.toLowerCase()))),a}return _createClass(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),n}(kr)).\u0275fac=function(e){return new(e||wr)(c.dc(c.Q),c.dc(c.q),c.dc(Tr,8))},wr.\u0275dir=c.Yb({type:wr,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(e,t){1&e&&c.tc("input",function(e){return t._handleInput(e.target.value)})("blur",function(){return t.onTouched()})("compositionstart",function(){return t._compositionStart()})("compositionend",function(e){return t._compositionEnd(e.target.value)})},features:[c.Ob([Dr]),c.Mb]}),wr);function Ar(e){return null==e||0===e.length}function Pr(e){return null!=e&&"number"==typeof e.length}var Lr=new c.y("NgValidators"),Or=new c.y("NgAsyncValidators");function Ir(e){return null}function Hr(e){return null!=e}function jr(e){var t=Object(c.Fb)(e)?Object(dr.a)(e):e;return Object(c.Eb)(t),t}function Fr(e){var t={};return e.forEach(function(e){t=null!=e?Object.assign(Object.assign({},t),e):t}),0===Object.keys(t).length?null:t}function Rr(e,t){return t.map(function(t){return t(e)})}function Nr(e){return e.map(function(e){return function(e){return!e.validate}(e)?e:function(t){return e.validate(t)}})}function Br(e){return null!=e?function(e){if(!e)return null;var t=e.filter(Hr);return 0==t.length?null:function(e){return Fr(Rr(e,t))}}(Nr(e)):null}function Yr(e){return null!=e?function(e){if(!e)return null;var t=e.filter(Hr);
1return 0==t.length?null:function(e){return pr(Rr(e,t).map(jr)).pipe(Object(ye.a)(Fr))}}(Nr(e)):null}function zr(e,t){return null===e?[t]:Array.isArray(e)?[].concat(_toConsumableArray(e),[t]):[e,t]}var Vr,Ur,$r,Wr,qr,Gr=(($r=function(){function e(){_classCallCheck(this,e),this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}return _createClass(e,[{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:"_setValidators",value:function(e){this._rawValidators=e||[],this._composedValidatorFn=Br(this._rawValidators)}},{key:"_setAsyncValidators",value:function(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Yr(this._rawAsyncValidators)}},{key:"validator",get:function(){return this._composedValidatorFn||null}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn||null}},{key:"_registerOnDestroy",value:function(e){this._onDestroyCallbacks.push(e)}},{key:"_invokeOnDestroyCallbacks",value:function(){this._onDestroyCallbacks.forEach(function(e){return e()}),this._onDestroyCallbacks=[]}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}}]),e}()).\u0275fac=function(e){return new(e||$r)},$r.\u0275dir=c.Yb({type:$r}),$r),Xr=((Ur=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(Gr)).\u0275fac=function(e){return(Vr||(Vr=c.lc(Ur)))(e||Ur)},Ur.\u0275dir=c.Yb({type:Ur,features:[c.Mb]}),Ur),Qr=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e}return n}(Gr),Kr=function(){function e(t){_classCallCheck(this,e),this._cd=t}return _createClass(e,[{key:"is",value:function(e){var t,n;return!!(null===(n=null===(t=this._cd)||void 0===t?void 0:t.control)||void 0===n?void 0:n[e])}}]),e}(),Zr=((qr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(Kr)).\u0275fac=function(e){return new(e||qr)(c.dc(Qr,2))},qr.\u0275dir=c.Yb({type:qr,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&c.Vb("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[c.Mb]}),qr),Jr=((Wr=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(Kr)).\u0275fac=function(e){return new(e||Wr)(c.dc(Xr,10))},Wr.\u0275dir=c.Yb({type:Wr,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(e,t){2&e&&c.Vb("ng-untouched",t.is("untouched"))("ng-touched",t.is("touched"))("ng-pristine",t.is("pristine"))("ng-dirty",t.is("dirty"))("ng-valid",t.is("valid"))("ng-invalid",t.is("invalid"))("ng-pending",t.is("pending"))},features:[c.Mb]}),Wr);function ea(e,t){na(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&ia(e,t)})}(e,t),function(e,t){var n=function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)};e.registerOnChange(n),t._registerOnDestroy(function(){e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&ia(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){var n=function(e){t.valueAccessor.setDisabledState(e)};e.registerOnDisabledChange(n),t._registerOnDestroy(function(){e._unregisterOnDisabledChange(n)})}}(e,t)}function ta(e,t){e.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(t)}
vendor: 4,108 bytes, line 1
1)}function na(e,t){var n=function(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(zr(n,t.validator)):"function"==typeof n&&e.setValidators([n]);var i=function(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(zr(i,t.asyncValidator)):"function"==typeof i&&e.setAsyncValidators([i]);var r=function(){return e.updateValueAndValidity()};ta(t._rawValidators,r),ta(t._rawAsyncValidators,r)}function ia(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function ra(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}function aa(e){return(ca(e)?e.validators:e)||null}function oa(e){return Array.isArray(e)?Br(e):e||null}function sa(e,t){return(ca(t)?t.asyncValidators:e)||null}function la(e){return Array.isArray(e)?Yr(e):e||null}function ca(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var ua,da,ha,fa,pa,ma,ga,va,ya,ba,_a,wa,ka,Ca,xa,Sa,Ma,Da,Ta=function(){function e(t,n){_classCallCheck(this,e),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=oa(this._rawValidators),this._composedAsyncValidatorFn=la(this._rawAsyncValidators)}return _createClass(e,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(e){this._rawValidators=this._composedValidatorFn=e}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}},{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(e){this._rawValidators=e,this._composedValidatorFn=oa(e)}},{key:"setAsyncValidators",value:function(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=la(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(e){return e.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild(function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}
1),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!0)})}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild(function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(function(e){return e(!1)})}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=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(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.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(e){var t=this;if(this.asyncValidator){this.status="PENDING",this._hasOwnPendingAsyncValidator=!0;var n=jr(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){t._hasOwnPendingAsyncValidator=!1,t.setErrors(n,{emitEvent:e})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var n=e;return t.forEach(function(e){n=n instanceof Aa?n.controls.hasOwnProperty(e)?n.controls[e]:null:n instanceof Pa&&n.at(e)||null}),n}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new c.s,this.statusChanges=new c.s}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls(function(t){return t.status===e})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(e){return e.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(e){return e.touched})}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){ca(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),e}(),Ea=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,a=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,aa(r),sa(a,r)))._onChange=[],e._applyFormState(i),e._setUpdateStrategy(r),e._initObservables(),e.updateValueAndValidity({onlySelf:!0,emitEvent:!!e.asyncValidator}),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};
1this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(e){return e(t.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_unregisterOnChange",value:function(e){ra(this._onChange,e)}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_unregisterOnDisabledChange",value:function(e){ra(this._onDisabledChange,e)}},{key:"_forEachChild",value:function(e){}},{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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}(Ta),Aa=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,aa(i),sa(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!a.asyncValidator}),a}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach(function(i){t._throwIfControlMissing(i),t.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(Object.keys(e).forEach(function(i){t.controls[i]&&t.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof Ea?t.value:t.getRawValue(),e})}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});
1return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach(function(n){var i=t.controls[n];i&&e(i,n)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var i=n[t],r=this.controls[i];if(this.contains(i)&&e(r))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},function(t,n,i){return(n.enabled||e.disabled)&&(t[i]=n.value),t})}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild(function(e,i){n=t(n,e,i)}),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Mu
1st supply a value for form control with name: '".concat(n,"'."))})}}]),n}(Ta),Pa=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,aa(i),sa(r,i))).controls=e,a._initObservables(),a._setUpdateStrategy(i),a._setUpControls(),a.updateValueAndValidity({onlySelf:!0,emitEvent:!!a.asyncValidator}),a}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}},{key:"setControl",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach(function(e,i){t._throwIfControlMissing(i),t.at(i).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=e&&(e.forEach(function(e,i){t.at(i)&&t.at(i).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map(function(e){return e instanceof Ea?e.value:e.getRawValue()})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(e){return e._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index ".concat(e))}},{key:"_forEachChild",value:function(e){this.controls.forEach(function(t,n){e(t,n)})}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})}},{key:"_anyControls",value:function(e){return this.controls.some(function(t){return t.enabled&&e(t)})}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Mu
1st supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}]),n}(Ta),La={provide:Xr,useExisting:Object(c.gb)(function(){return Ia})},Oa=Promise.resolve(null),Ia=((ua=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new c.s,r.form=new Aa({},Br(e),Yr(i)),r}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(e){var t=this;Oa.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),ea(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Oa.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name),ra(t._directives,e)})}},{key:"addFormGroup",value:function(e){var t=this;Oa.then(function(){var n=t._findContainer(e.path),i=new Aa({});(function(e,t){na(e,t)})(i,e),n.registerControl(e.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(e){var t=this;Oa.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Oa.then(function(){n.form.get(e.path).setValue(t)})}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}}]),n}(Xr)).\u0275fac=function(e){return new(e||ua)(c.dc(Lr,10),c.dc(Or,10))},ua.\u0275dir=c.Yb({type:ua,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&c.tc("submit",function(e){return t.onSubmit(e)})("reset",function(){return t.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c.Ob([La]),c.Mb]}),ua),Ha={provide:Qr,useExisting:Object(c.gb)(function(){return Fa})},ja=Promise.resolve(null),Fa=((ha=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this)).control=new Ea,o._registered=!1,o.update=new c.s,o._parent=e,o._setValidators(i),o._setAsyncValidators(r),o.valueAccessor=function(e,t){return t?(Array.isArray(t),t.forEach(function(e){e.constructor===Er?n=e:Object.getPrototypeOf(e.constructor)===Cr?i=e:r=e}),r||i||n||null):null;var n,i,r}(0,a),o}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,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?[].concat(_toConsumableArray(this._parent.path),[this.name]):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{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(){ea(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}}
1,{key:"_updateValue",value:function(e){var t=this;ja.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,i=""===n||n&&"false"!==n;ja.then(function(){i&&!t.control.disabled?t.control.disable():!i&&t.control.disabled&&t.control.enable()})}}]),n}(Qr)).\u0275fac=function(e){return new(e||ha)(c.dc(Xr,9),c.dc(Lr,10),c.dc(Or,10),c.dc(xr,10))},ha.\u0275dir=c.Yb({type:ha,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[c.Ob([Ha]),c.Mb,c.Nb]}),ha),Ra=((da=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||da)},da.\u0275dir=c.Yb({type:da,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),da),Na={provide:xr,useExisting:Object(c.gb)(function(){return Ba}),multi:!0},Ba=((ga=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"writeValue",value:function(e){this.setProperty("value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}}]),n}(Cr)).\u0275fac=function(e){return(ma||(ma=c.lc(ga)))(e||ga)},ga.\u0275dir=c.Yb({type:ga,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&c.tc("input",function(e){return t.onChange(e.target.value)})("blur",function(){return t.onTouched()})},features:[c.Ob([Na]),c.Mb]}),ga),Ya=((pa=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||pa)},pa.\u0275mod=c.bc({type:pa}),pa.\u0275inj=c.ac({}),pa),za=((fa=function(){function e(){_classCallCheck(this,e),this._validator=Ir}return _createClass(e,[{key:"handleChanges",value:function(e){if(this.inputName in e){var t=this.normalizeInput(e[this.inputName].currentValue);this._validator=this.createValidator(t),this._onChange&&this._onChange()}}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}()).\u0275fac=function(e){return new(e||fa)},fa.\u0275dir=c.Yb({type:fa}),fa),Va={provide:Lr,useExisting:Object(c.gb)(function(){return Ua}),multi:!0},Ua=((ya=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).inputName="min",e.normalizeInput=function(e){return parseFloat(e)},e.createValidator=function(e){return function(e){return function(t){if(Ar(t.value)||Ar(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}(e)},e}return _createClass(n,[{key:"ngOnChanges",value:function(e){this.handleChanges(e)}}]),n}(za)).\u0275fac=function(e){return(va||(va=c.lc(ya)))(e||ya)},ya.\u0275dir=c.Yb({type:ya,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(e,t){var n;2&e&&c.Qb("min",null!==(n=t.min)&&void 0!==n?n:null)},inputs:{min:"min"},features:[c.Ob([Va]),c.Mb,c.Nb]}),ya),$a={provide:Lr,useExisting:Object(c.gb)(function(){return Wa}),multi:!0},Wa=((ba=function(){function e(){_classCallCheck(this,e),this._required=!1}return _createClass(e,[{key:"required",get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&"false"!="".concat(e),this._onChange&&this._onChange()}},{key:"validate",value:function(e){return this.required?function(e){return Ar(e.value)?{required:!0}:null}(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}}]),e}()).\u0275fac=function(e){return new(e||ba)},ba.\u0275dir=c.Yb({type:ba,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(e,t){2&e&&c.Qb("required",t.required?"":null)},inputs:{required:"required"},features:[c.Ob([$a])]}),ba),qa={provide:Lr,useExisting:Object(c.gb)(function(){return Ga}),multi:!0},Ga=((_a=function(){function e(){_classCallCheck(this,e),this._val
1idator=Ir}return _createClass(e,[{key:"ngOnChanges",value:function(e){"minlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null==this.minlength?null:this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){var e;this._validator=(e="number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10),function(t){return Ar(t.value)||!Pr(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null})}}]),e}()).\u0275fac=function(e){return new(e||_a)},_a.\u0275dir=c.Yb({type:_a,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&c.Qb("minlength",t.minlength?t.minlength:null)},inputs:{minlength:"minlength"},features:[c.Ob([qa]),c.Nb]}),_a),Xa={provide:Lr,useExisting:Object(c.gb)(function(){return Qa}),multi:!0},Qa=((wa=function(){function e(){_classCallCheck(this,e),this._validator=Ir}return _createClass(e,[{key:"ngOnChanges",value:function(e){"maxlength"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return null!=this.maxlength?this._validator(e):null}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){var e;this._validator=(e="number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10),function(t){return Pr(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null})}}]),e}()).\u0275fac=function(e){return new(e||wa)},wa.\u0275dir=c.Yb({type:wa,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&c.Qb("maxlength",t.maxlength?t.maxlength:null)},inputs:{maxlength:"maxlength"},features:[c.Ob([Xa]),c.Nb]}),wa),Ka={provide:Lr,useExisting:Object(c.gb)(function(){return Za}),multi:!0},Za=((xa=function(){function e(){_classCallCheck(this,e),this._validator=Ir}return _createClass(e,[{key:"ngOnChanges",value:function(e){"pattern"in e&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(e){return this._validator(e)}},{key:"registerOnValidatorChange",value:function(e){this._onChange=e}},{key:"_createValidator",value:function(){var e,t,n;this._validator=(e=this.pattern)?("string"==typeof e?(n="","^"!==e.charAt(0)&&(n+="^"),n+=e,"$"!==e.charAt(e.length-1)&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),function(e){if(Ar(e.value))return null;var i=e.value;return t.test(i)?null:{pattern:{requiredPattern:n,actualValue:i}}}):Ir}}]),e}()).\u0275fac=function(e){return new(e||xa)},xa.\u0275dir=c.Yb({type:xa,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(e,t){2&e&&c.Qb("pattern",t.pattern?t.pattern:null)},inputs:{pattern:"pattern"},features:[c.Ob([Ka]),c.Nb]}),xa),Ja=((Ca=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ca)},Ca.\u0275mod=c.bc({type:Ca}),Ca.\u0275inj=c.ac({imports:[[Ya]]}),Ca),eo=((ka=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ka)},ka.\u0275mod=c.bc({type:ka}),ka.\u0275inj=c.ac({imports:[Ja]}),ka),to=["thumbContainer"],no=["toggleBar"],io=["input"],ro=function(e){return{enterDuration:e}},ao=["*"],oo=new c.y("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),so=0,lo={provide:xr,useExisting:Object(c.gb)(function(){return ho}),multi:!0},co=function e(t,n){_classCallCheck(this,e),this.source=t,this.checked=n},uo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(e=n.call.apply(n,[this].concat(a)))._tabIndex=t,e.defaultTabIndex=t,e}return _createClass(i,[{key:"tabIndex",get:function(){return this.disabled?-1:this._tabIndex},set:function(e){this._tabIndex=null!=e?J(e):this.defaultTabIndex}}]),i}(e)}(function(e,t){return function(e){_inherits(i,e);var n=_createSuper(i);function i(){var e;_classCallCheck(this,i);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return(e=n.call.apply(n,[this].concat(a))).defaultColor=t,e.color=t,e}
1return _createClass(i,[{key:"color",get:function(){return this._color},set:function(e){var t=e||this.defaultColor;t!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-".concat(this._color)),t&&this._elementRef.nativeElement.classList.add("mat-".concat(t)),this._color=t)}}]),i}(e)}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._disableRipple=!1,e}return _createClass(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(e){this._disableRipple=Z(e)}}]),n}(Ji(function(){return function e(t){_classCallCheck(this,e),this._elementRef=t}}())))),ho=((Da=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s){var l;return _classCallCheck(this,n),(l=t.call(this,e))._focusMonitor=i,l._changeDetectorRef=r,l.defaults=o,l._onChange=function(e){},l._onTouched=function(){},l._uniqueId="mat-slide-toggle-"+ ++so,l._required=!1,l._checked=!1,l.name=null,l.id=l._uniqueId,l.labelPosition="after",l.ariaLabel=null,l.ariaLabelledby=null,l.change=new c.s,l.toggleChange=new c.s,l.tabIndex=parseInt(a)||0,l.color=l.defaultColor=o.color||"accent",l._noopAnimations="NoopAnimations"===s,l}return _createClass(n,[{key:"required",get:function(){return this._required},set:function(e){this._required=Z(e)}},{key:"checked",get:function(){return this._checked},set:function(e){this._checked=Z(e),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){"keyboard"===t||"program"===t?e._inputElement.nativeElement.focus():t||Promise.resolve().then(function(){return e._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(e){e.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(e){e.stopPropagation()}},{key:"writeValue",value:function(e){this.checked=!!e}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this.disabled=e,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(e,t){t?this._focusMonitor.focusVia(this._inputElement,t,e):this._inputElement.nativeElement.focus(e)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new co(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(uo)).\u0275fac=function(e){return new(e||Da)(c.dc(c.q),c.dc(at),c.dc(c.j),c.rc("tabindex"),c.dc(oo),c.dc(Vi,8))},Da.\u0275cmp=c.Xb({type:Da,selectors:[["mat-slide-toggle"]],viewQuery:function(e,t){var n;1&e&&(c.ed(to,5),c.ed(no,5),c.ed(io,5)),2&e&&(c.Mc(n=c.uc())&&(t._thumbEl=n.first),c.Mc(n=c.uc())&&(t._thumbBarEl=n.first),c.Mc(n=c.uc())&&(t._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(e,t){2&e&&(c.mc("id",t.id),c.Qb("tabindex",t.disabled?null:-1)("aria-label",null)("aria-labelledby",null),c.Vb("mat-checked",t.checked)("mat-disabled",t.disabled)("mat-slide-toggle-label-before","before"==t.labelPosition)("_mat-animation-noopable",t._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked",ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[c.Ob([lo]),c.Mb],ngContentSelectors:ao,decls:16,vars:20,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(e,t){if(1&e&&(c.Cc(),c.jc(0,"label",0,1),c.jc(2,"div",2,3),c.jc(4,"input",4,5),c.tc("change",function(e){return t._onChangeEvent(e)})("click",function(e){return t._onInputClick(e)}),c.ic(),c.jc(6,"div",6,7),c.ec(8,"div",8),c.jc(9,"div",9),c.ec(10,"div",10),c.ic(),c.ic(),c.ic(),c.jc(11,"span",11,12),c.tc("cdkObserveContent",function(){return t._onLabelTextChange()}),c.jc(13,"span",13),c.ad(14,"\xa0"),c.ic(),c.Bc(15),c.ic(),c.ic()),2&e){var n=c.Nc(1),i=c.Nc(12);c.Qb("for",t.inputId),c.Pb(2),c.Vb("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),c.Pb(2),c.Dc("id",t.inputId)("required",t.required)("tabIndex",t.tabIndex)("checked",t.checked)("disabled",t.disabled),c.Qb("name",t.name)("aria-checked",t.checked.toString())("aria-label",t.ariaLabel)("aria-labelledby",t.ariaLabelledby)("aria-describedby",t.ariaDescribedby),c.Pb(5),c.Dc("matRippleTrigger",n)("matRippleDisabled",t.disableRipple||t.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",c.Hc(18,ro,t._noopAnimations?0:150))}},directives:[cr,ue],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}
1@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),Da),fo=((Ma=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ma)},Ma.\u0275mod=c.bc({type:Ma}),Ma.\u0275inj=c.ac({}),Ma),po=((Sa=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Sa)},Sa.\u0275mod=c.bc({type:Sa}),Sa.\u0275inj=c.ac({imports:[[fo,ur,Zi,de],fo,Zi]}),Sa),mo=n("VRyK"),go=["mat-sort-header",""];function vo(e,t){if(1&e){var n=c.kc();c.jc(0,"div",3),c.tc("@arrowPosition.start",function(){return c.Qc(n),c.xc()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return c.Qc(n),c.xc()._disableViewStateAnimation=!1}),c.ec(1,"div",4),c.jc(2,"div",5),c.ec(3,"div",6),c.ec(4,"div",7),c.ec(5,"div",8),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Dc("@arrowOpacity",i._getArrowViewState())("@arrowPosition",i._getArrowViewState())("@allowChildren",i._getArrowDirectionState()),c.Pb(2),c.Dc("@indicator",i._getArrowDirectionState()),c.Pb(1),c.Dc("@leftPointer",i._getArrowDirectionState()),c.Pb(1),c.Dc("@rightPointer",i._getArrowDirectionState())}}var yo,bo,_o,wo,ko=["*"],Co=new c.y("MAT_SORT_DEFAULT_OPTIONS"),xo=function(e){return function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;_classCallCheck(this,n);for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(e=t.call.apply(t,[this].concat(r)))._isInitialized=!1,e._pendingSubscribers=[],e.initialized=new ae.a(function(t){e._isInitialized?e._notifySubscriber(t):e._pendingSubscribers.push(t)}),e}return _createClass(n,[{key:"_markInitialized",value:function(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}},{key:"_notifySubscriber",value:function(e){e.next(),e.complete()}}]),n}(e)}(Ji(function(){return function e(){_classCallCheck(this,e)}}())),So=((yo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this))._defaultOptions=e,i.sortables=new Map,i._stateChanges=new oe.a,i.start="asc",i._direction="",i.sortChange=new c.s,i}return _createClass(n,[{key:"direction",get:function(){return this._direction},set:function(e){this._direction=e}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=Z(e)}},{key:"register",value:function(e){this.sortables.set(e.id,e)}},{key:"deregister",value:function(e){this.sortables.delete(e.id)}},{key:"sort",value:function(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(e){var t,n,i;if(!e)return"";var r=null!==(n=null!==(t=null==e?void 0:e.disableClear)&&void 0!==t?t:this.disableClear)&&void 0!==n?n:!!(null===(i=this._defaultOptions)||void 0===i?void 0:i.disableClear),a=function(e,t){var n=["asc","desc"];return"desc"==e&&n.reverse(),t||n.push(""),n}(e.start||this.start,r),o=a.indexOf(this.direction)+1;return o>=a.length&&(o=0),a[o]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(xo)).\u0275fac=function(e){return new(e||yo)(c.dc(Co,8))},yo.\u0275dir=c.Yb({type:yo,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[c.Mb,c.Nb]}),yo),Mo=Xi.ENTERING+" "+Gi.STANDARD_CURVE,Do={indicator:mt("indicator",[bt("active-asc, asc",yt({transform:"translateY(0px)"})),bt("active-desc, desc",yt({transform:"translateY(10px)"})),wt("active-asc <=> active-desc",gt(Mo))]),leftPointer:mt("leftPointer",[bt("active-asc, asc",yt({transform:"rotate(-45deg)"})),bt("active-desc, desc",yt({transform:"rotate(45deg)"})),wt("active-asc <=> active-desc",gt(Mo))]),rightPointer:mt("rightPointer",[bt("active-asc, asc",yt({transform:"rotate(45deg)"})),bt("active-desc, desc",yt({transform:"rotate(-45deg)"})),wt("active-asc <=> active-desc",gt(Mo))]),arrowOpacity:mt("arrowOpacity",[bt("desc-to-active, asc-to-active, active",yt({opacity:1})),bt("desc-to-hint, asc-to-hint, hint",yt({opacity:.54})),bt("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",yt({opacity:0}
1)),wt("* => asc, * => desc, * => active, * => hint, * => void",gt("0ms")),wt("* <=> *",gt(Mo))]),arrowPosition:mt("arrowPosition",[wt("* => desc-to-hint, * => desc-to-active",gt(Mo,_t([yt({transform:"translateY(-25%)"}),yt({transform:"translateY(0)"})]))),wt("* => hint-to-desc, * => active-to-desc",gt(Mo,_t([yt({transform:"translateY(0)"}),yt({transform:"translateY(25%)"})]))),wt("* => asc-to-hint, * => asc-to-active",gt(Mo,_t([yt({transform:"translateY(25%)"}),yt({transform:"translateY(0)"})]))),wt("* => hint-to-asc, * => active-to-asc",gt(Mo,_t([yt({transform:"translateY(0)"}),yt({transform:"translateY(-25%)"})]))),bt("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",yt({transform:"translateY(0)"})),bt("hint-to-desc, active-to-desc, desc",yt({transform:"translateY(-25%)"})),bt("hint-to-asc, active-to-asc, asc",yt({transform:"translateY(25%)"}))]),allowChildren:mt("allowChildren",[wt("* <=> *",[function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:e,animation:t,options:n}}("@*",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:e}}(),{optional:!0})])])},To=((bo=function e(){_classCallCheck(this,e),this.changes=new oe.a}).\u0275fac=function(e){return new(e||bo)},bo.\u0275prov=c.Zb({factory:function(){return new bo},token:bo,providedIn:"root"}),bo),Eo={provide:To,deps:[[new c.K,new c.V,To]],useFactory:function(e){return e||new To}},Ao=Ji(function(){return function e(){_classCallCheck(this,e)}}()),Po=((wo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o,s,l){var c;return _classCallCheck(this,n),(c=t.call(this))._intl=e,c._changeDetectorRef=i,c._sort=r,c._columnDef=a,c._focusMonitor=o,c._elementRef=s,c._ariaDescriber=l,c._showIndicatorHint=!1,c._viewState={},c._arrowDirection="",c._disableViewStateAnimation=!1,c.arrowPosition="after",c._sortActionDescription="Sort",c._handleStateChanges(),c}return _createClass(n,[{key:"sortActionDescription",get:function(){return this._sortActionDescription},set:function(e){this._updateSortActionDescription(e)}},{key:"disableClear",get:function(){return this._disableClear},set:function(e){this._disableClear=Z(e)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector('[role="button"]'),this._updateSortActionDescription(this._sortActionDescription)}},{key:"ngAfterViewInit",value:function(){var e=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(t){var n=!!t;n!==e._showIndicatorHint&&(e._setIndicatorHintVisible(n),e._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(e){this._isDisabled()&&e||(this._showIndicatorHint=e,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(e){this._viewState=e||{},this._disableViewStateAnimation&&(this._viewState={toState:e.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(e){this._isDisabled()||32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var e=this._viewState.fromState;return(e?"".concat(e,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_updateSortActionDescription",value:function(e){var t,n;this._sortButton&&(null===(t=this._ariaDescriber)||void 0===t||t.removeDescription(this._sortButton,this._sortActionDescription),null===(n=this._ariaDescriber)||void 0===n||n.describe(this._sortButton,e)),this._sortActionDescription=e}},{key:"_handleStateChanges",value:function(){var e=this;this._rerenderSubscription=Object(mo.a)(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){e._isSorted()&&(e._updateArrowDirection(),"hint"!==e._viewState.toState&&"active"!==e._viewState.toState||(e._disableViewStateAnimation=!0),e._setAnimationTransitionState({fromState:e._arrowDirection,toState:"active"}),e._showIndicatorHint=!1),!e._isSorted()&&e._viewState&&"active"===e._viewState.toState&&(e._disableViewStateAnimation=!1,e._setAnimationTransitionState({fromState:"active",toState:e._arrowDirection})),e._changeDetectorRef.markForCheck()})}}]),n}(Ao)).\u0275fac=function(e){return new(e||wo)(c.dc(To),c.dc(c.j),c.dc(So,8),c.dc("MAT_SORT_HEADER_COLUMN_DEF",8),c.dc(at),c.dc(c.q),c.dc(Ue,8))},wo.\u0275cmp=c.Xb({type:wo,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(e,t){1&e&&c.tc("click",function(){return t._handleClick()})("keydown",function(e){return t._handleKeydown(e)})("mouseenter",function(){return t._setIndicatorHintVisible(!0)})("mouseleave",function(){return t._setIndicatorHintVisible(!1)}),2&e&&(c.Qb("aria-sort",t._getAriaSortAttribute()),c.Vb("mat-sort-header-disabled",t._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",sortActionDescription:"sortActionDescription",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[c.Mb],attrs:go,ngContentSelectors:ko,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(e,t){1&e&&(c.Cc(),c.jc(0,"div",0),c.jc(1,"div",1),c.Bc(2),c.ic(),c.Yc(3,vo,6,6,"div",2),c.ic()),2&e&&(c.Vb("mat-sort-header-sorted",t._isSorted())("mat-sort-header-position-before","before"==t.arrowPosition),c.Qb("tabindex",t._isDisabled()?null:0),c.Pb(3),c.Dc("ngIf",t._renderArrow()))},directives:[l.m],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}
1.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[Do.indicator,Do.leftPointer,Do.rightPointer,Do.arrowOpacity,Do.arrowPosition,Do.allowChildren]},changeDetection:0}),wo),Lo=((_o=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||_o)},_o.\u0275mod=c.bc({type:_o}),_o.\u0275inj=c.ac({providers:[Eo],imports:[[l.c,Zi]]}),_o),Oo=n("EY2u"),Io=n("n6bG");function Ho(e,t,n,i){return Object(Io.a)(n)&&(i=n,n=void 0),i?Ho(e,t,n).pipe(Object(ye.a)(function(e){return Object(hr.a)(e)?i.apply(void 0,_toConsumableArray(e)):i(e)})):new ae.a(function(i){jo(e,t,function(e){i.next(arguments.length>1?Array.prototype.slice.call(arguments):e)},i,n)})}function jo(e,t,n,i,r){var a;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var o=e;e.addEventListener(t,n,r),a=function(){return o.removeEventListener(t,n,r)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var s=e;e.on(t,n),a=function(){return s.off(t,n)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var l=e;e.addListener(t,n),a=function(){return l.removeListener(t,n)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,u=e.length;c<u;c++)jo(e[c],t,n,i,r)}i.add(a)}var Fo=n("D0XW");function Ro(e){return!Object(hr.a)(e)&&e-parseFloat(e)+1>=0}function No(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Ro(t)?i=Number(t)<1?1:Number(t):Object(dt.a)(t)&&(n=t),Object(dt.a)(n)||(n=Fo.a),new ae.a(function(t){var r=Ro(e)?e:+e-n.now();return n.schedule(Bo,r,{index:0,period:i,subscriber:t})})}function Bo(e){var t=e.index,n=e.period,i=e.subscriber;if(i.next(t),!i.closed){if(-1===n)return i.complete();e.index=t+1,this.schedule(e,n)}}var Yo=n("Nv8m"),zo=n("itXk");n("KqfI");var Vo=n("yCtX"),Uo=n("Lhse");function $o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[t.length-1];return"function"==typeof i&&t.pop(),Object(Vo.a)(t,void 0).lift(new Wo(i))}var Wo=function(){function e(t){_classCallCheck(this,e),this.resultSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new qo(e,this.resultSelector))}}]),e}(),qo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;arguments.length>2&&void 0!==arguments[2]||Object.create(null);return _classCallCheck(this,n),(r=t.call(this,e)).resultSelector=i,r.iterators=[],r.active=0,r.resultSelector="function"==typeof i?i:void 0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.iterators;Object(hr.a)(e)?t.push(new Xo(e)):t.push("function"==typeof e[Uo.a]?new Go(e[Uo.a]()):new Qo(this.destination,this,e))}},{key:"_complete",value:function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var n=0;n<t;n++){var i=e[n];i.stillUnsubscribed?this.destination.add(i.subscribe()):this.active--}}else this.destination.complete()}},{key:"notifyInactive",value:function(){this.active--,0===this.active&&this.destination.complete()}},{key:"checkIterators",value:function(){for(var e=this.iterators,t=e.length,n=this.destination,i=0;i<t;i++){var r=e[i];if("function"==typeof r.hasValue&&!r.hasValue())return}for(var a=!1,o=[],s=0;s<t;s++){var l=e[s],c=l.next();if(l.hasCompleted()&&(a=!0),c.done)return void n.complete();o.push(c.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),a&&n.complete()}},{key:"_tryresultSelector",value:function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(_e.a),Go=function(){function e(t){_classCallCheck(this,e),this.iterator=t,this.nextResult=t.next()}return _createClass(e,[{key:"hasValue",value:function(){return!0}},{key:"next",value:function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e}},{key:"hasCompleted",value:function(){var e=this.nextResult;return Boolean(e&&e.done)}}]),e}(),Xo=function(){function e(t){_classCallCheck(this,e),this.array=t,this.index=0,this.length=0,this.length=t.length}return _createClass(e,[{key:Uo.a,value:function(){return this}},{key:"next",value:function(e){var t=this.index++;return t<this.length?{value:this.array[t],done:!1}:{value:null,done:!0}}},{key:"hasValue",value:function(){return this.array.length>this.index}},{key:"hasCompleted",value:function(){return this.array.length===this.index}}]),e}(),Qo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e)).parent=i,a.observable=r,a.stillUnsubscribed=!0,a.buffer=[],a.isComplete=!1,a}return _createClass(n,[{key:Uo.a,value:function(){return this}},{key:"next",value:function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}}},{key:"hasValue",value:function(){return this.buffer.length>0}},{key:"hasCompleted",value:function(){return 0===this.buffer.length&&this.isComplete}},{key:"notifyComplete",value:function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}},{key:"notifyNext",value:function(e){this.buffer.push(e),this.parent.checkIterators()}},{key:"subscribe",value:function(){return Object(Me.c)(this.observable,new Me.a(this))}}]),n}(Me.b),Ko=n("eIep"),Zo=n("l7GE"),Jo=n("ZUHj");function es(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new ts(t,n))}}var ts=function(){function e(t,n){_classCallCheck(this,e),this.observables=t,this.project=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ns(e,this.observables,this.project))}}]),e}(),ns=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;_classCallCheck(this,n),(a=t.call(this,e)).observables=i,a.project=r,a.toRespond=[];var o=i.length;a.values=new Array(o);for(var s=0;s<o;s++)a.toRespond.push(s);for(var l=0;l<o;l++){var c=i[l];a.add(Object(Jo.a)(_assertThisInitialized(a),c,void 0,l))}return a}return _createClass(n,[{key:"notifyNext",value:function(e,t,n){this.values[n]=t;var i=this.toRespond;if(i.length>0){var r=i.indexOf(n);-1!==r&&i.splice(r,1)}}},{key:"notifyComplete",value:function(){}},{key:"_next",value:function(e){if(0===this.toRespond.length){var t=[e].concat(_toConsumableArray(this.values));this.project?this._tryProject(t):this.destination.next(t)}}},{key:"_tryProject",value:function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(Zo.a);n("3E0/");var is=n("5+tZ");function rs(e,t){}function as(e,t){if(1&e&&(c.jc(0,"button",3),c.ad(1),c.Yc(2,rs,0,0,"ng-template",4),c.ic()),2&e){var n=t.$implicit;c.Dc("ngbPanelToggle",n),c.Pb(1),c.cd(" ",n.title,""),c.Pb(1),c.Dc("ngTemplateOutlet",null==n.titleTpl?null:n.titleTpl.templateRef)}}function os(e,t){}function ss(e,t){}function ls(e,t){if(1&e&&(c.jc(0,"div",8),c.jc(1,"div",9),c.Yc(2,ss,0,0,"ng-template",4),c.ic(),c.ic()),2&e){var n=c.xc().$implicit;c.Ec("id",n.id),c.Qb("aria-labelledby",n.id+"-header"),c.Pb(2),c.Dc("ngTemplateOutlet",(null==n.contentTpl?null:n.contentTpl.templateRef)||null)}}n("w1tV");var cs=function(e,t){return{$implicit:e,opened:t}};function us(e,t){if(1&e&&(c.jc(0,"div"),c.jc(1,"div",5),c.Yc(2,os,0,0,"ng-template",6),c.ic(),c.Yc(3,ls,3,3,"div",7),c.ic()),2&e){var n=t.$implicit,i=c.xc(),r=c.Nc(1);c.Sb("card "+(n.cardClass||"")),c.Pb(1),c.Sb("card-header "+(n.type?"bg-"+n.type:i.type?"bg-"+i.type:"")),c.Fc("id","",n.id,"-header"),c.Pb(1),c.Dc("ngTemplateOutlet",(null==n.headerTpl?null:n.headerTpl.templateRef)||r)("ngTemplateOutletContext",c.Ic(8,cs,n,n.isOpen)),c.Pb(1),c.Dc("ngIf",!i.destroyOnHide||n.isOpen||n.transitionRunning)}}var ds=["*"],hs=["dialog"];function fs(e){return"string"==typeof e}function ps(e){return null!=e}function ms(e){return(e||document.body).getBoundingClientRect()}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null});var gs,vs,ys,bs,_s,ws,ks,Cs,xs,Ss,Ms,Ds,Ts,Es=!0,As=5,Ps=((vs=function e(){_classCallCheck(this,e),this.animation=Es}).\u0275fac=function(e){return new(e||vs)},vs.\u0275prov=c.Zb({factory:function(){return new vs},token:vs,providedIn:"root"}),vs),Ls=((gs=function(){function e(t){_classCallCheck(this,e),this._ngbConfig=t,this.closeOthers=!1}return _createClass(e,[{key:"animation",get:function(){return void 0===this._animation?this._ngbConfig.animation:this._animation},set:function(e){this._animation=e}}]),e}()).\u0275fac=function(e){return new(e||gs)(c.qc(Ps))},gs.\u0275prov=c.Zb({factory:function(){return new gs(c.qc(Ps))},token:gs,providedIn:"root"}),gs),Os=function(){},Is=As,Hs=new Map,js=function(e,t,n,i){var r=i.context||{},a=Hs.get(t);if(a)switch(i.runningTransition){case"continue":return Oo.a;case"stop":e.run(function(){return a.transition$.complete()}),r=Object.assign(a.context,r),Hs.delete(t)}var o=n(t,i.animation,r)||Os;if(!i.animation||"none"===window.getComputedStyle(t).transitionProperty)return e.run(function(){return o()}),Object(me.a)(void 0).pipe(function(e){return function(t){return new ae.a(function(n){return t.subscribe(function(t){return e.run(function(){return n.next(t)})},function(t){return e.run(function(){return n.error(t)})},function(){return e.run(function(){return n.complete()})})})}}(e));var s=new oe.a,l=new oe.a,c=s.pipe(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return ut(e,Object(me.a).apply(void 0,t))}}(!0));Hs.set(t,{transition$:s,complete:function(){l.next(),l.complete()},context:r});var u=function(e){var t=window.getComputedStyle(e),n=t.transitionDelay,i=t.transitionDuration;return 1e3*(parseFloat(n)+parseFloat(i))}(t);return e.runOutsideAngular(function(){var n=Ho(t,"transitionend").pipe(De(c),Object(ve.a)(function(e){return e.target===t})),i=No(u+Is).pipe(De(c));Object(Yo.a)(i,n,l).pipe(De(c)).subscribe(function(){Hs.delete(t),e.run(function(){o(),s.next(),s.complete()})})}),s.asObservable()},Fs=function(e,t,n){var i=n.direction,r=n.maxHeight,a=e.classList;function o(){a.add("collapse"),"show"===i?a.add("show"):a.remove("show")}if(t)return r||(r=function(e){if("undefined"==typeof navigator)return"0px";var t=e.classList,n=t.contains("show");n||t.add("show"),e.style.height="";var i=e.getBoundingClientRect().height+"px";return n||t.remove("show"),i}(e),n.maxHeight=r,e.style.height="show"!==i?r:"0px",a.remove("collapse"),a.remove("collapsing"),a.remove("show"),ms(e),a.add("collapsing")),e.style.height="show"===i?r:"0px",function(){o(),a.remove("collapsing"),e.style.height=""};o()},Rs=0,Ns=((Ts=function e(t){_classCallCheck(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||Ts)(c.dc(c.X))},Ts.\u0275dir=c.Yb({type:Ts,selectors:[["ng-template","ngbPanelHeader",""]]}),Ts),Bs=((Ds=function e(t){_classCallCheck(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||Ds)(c.dc(c.X))},Ds.\u0275dir=c.Yb({type:Ds,selectors:[["ng-template","ngbPanelTitle",""]]}),Ds),Ys=((Ms=function e(t){_classCallCheck(this,e),this.templateRef=t}).\u0275fac=function(e){return new(e||Ms)(c.dc(c.X))},Ms.\u0275dir=c.Yb({type:Ms,selectors:[["ng-template","ngbPanelContent",""]]}),Ms),zs=((Ss=function(){function e(){_classCallCheck(this,e),this.disabled=!1,this.id="ngb-panel-"+Rs++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new c.s,this.hidden=new c.s}return _createClass(e,[{key:"ngAfterContentChecked",value:function(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}]),e}()).\u0275fac=function(e){return new(e||Ss)}
1,Ss.\u0275dir=c.Yb({type:Ss,selectors:[["ngb-panel"]],contentQueries:function(e,t,n){var i;1&e&&(c.Wb(n,Bs,4),c.Wb(n,Ns,4),c.Wb(n,Ys,4)),2&e&&(c.Mc(i=c.uc())&&(t.titleTpls=i),c.Mc(i=c.uc())&&(t.headerTpls=i),c.Mc(i=c.uc())&&(t.contentTpls=i))},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),Ss),Vs=((xs=function(){function e(t,n,i,r){_classCallCheck(this,e),this._element=n,this._ngZone=i,this._changeDetector=r,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new c.s,this.shown=new c.s,this.hidden=new c.s,this.animation=t.animation,this.type=t.type,this.closeOtherPanels=t.closeOthers}return _createClass(e,[{key:"isExpanded",value:function(e){return this.activeIds.indexOf(e)>-1}},{key:"expand",value:function(e){this._changeOpenState(this._findPanelById(e),!0)}},{key:"expandAll",value:function(){var e=this;this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(function(t){return e._changeOpenState(t,!0)})}},{key:"collapse",value:function(e){this._changeOpenState(this._findPanelById(e),!1)}},{key:"collapseAll",value:function(){var e=this;this.panels.forEach(function(t){e._changeOpenState(t,!1)})}},{key:"toggle",value:function(e){var t=this._findPanelById(e);t&&this._changeOpenState(t,!t.isOpen)}},{key:"ngAfterContentChecked",value:function(){var e=this;fs(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(function(t){t.isOpen=!t.disabled&&e.activeIds.indexOf(t.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(Object(be.a)(1)).subscribe(function(){e.panels.forEach(function(t){var n=e._getPanelElement(t.id);n?t.initClassDone||(t.initClassDone=!0,js(e._ngZone,n,Fs,{animation:!1,runningTransition:"continue",context:{direction:t.isOpen?"show":"hide"}})):t.initClassDone=!1})})}},{key:"_changeOpenState",value:function(e,t){if(null!=e&&!e.disabled&&e.isOpen!==t){var n=!1;this.panelChange.emit({panelId:e.id,nextState:t,preventDefault:function(){n=!0}}),n||(e.isOpen=t,e.transitionRunning=!0,t&&this.closeOtherPanels&&this._closeOthers(e.id),this._updateActiveIds(),this._runTransitions(this.animation))}}},{key:"_closeOthers",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.panels.forEach(function(n){n.id!==e&&n.isOpen&&(n.isOpen=!1,n.transitionRunning=t)})}},{key:"_findPanelById",value:function(e){return this.panels.find(function(t){return t.id===e})||null}},{key:"_updateActiveIds",value:function(){this.activeIds=this.panels.filter(function(e){return e.isOpen&&!e.disabled}).map(function(e){return e.id})}},{key:"_runTransitions",value:function(e){var t=this;this._changeDetector.detectChanges(),this.panels.forEach(function(n){if(n.transitionRunning){var i=t._getPanelElement(n.id);js(t._ngZone,i,Fs,{animation:e,runningTransition:"stop",context:{direction:n.isOpen?"show":"hide"}}).subscribe(function(){n.transitionRunning=!1;var e=n.id;n.isOpen?(n.shown.emit(),t.shown.emit(e)):(n.hidden.emit(),t.hidden.emit(e))})}})}},{key:"_getPanelElement",value:function(e){return this._element.nativeElement.querySelector("#"+e)}}]),e}()).\u0275fac=function(e){return new(e||xs)(c.dc(Ls),c.dc(c.q),c.dc(c.J),c.dc(c.j))},xs.\u0275cmp=c.Xb({type:xs,selectors:[["ngb-accordion"]],contentQueries:function(e,t,n){var i;1&e&&c.Wb(n,zs,4),2&e&&c.Mc(i=c.uc())&&(t.panels=i)},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(e,t){2&e&&c.Qb("aria-multiselectable",!t.closeOtherPanels)},inputs:{activeIds:"activeIds",destroyOnHide:"destroyOnHide",animation:"animation",type:"type",closeOtherPanels:["closeOthers","closeOtherPanels"]},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],decls:3,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"btn","btn-link",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id",4,"ngIf"],["role","tabpanel",3,"id"],[1,"card-body"]],template:function(e,t){1&e&&(c.Yc(0,as,3,3,"ng-template",0,1,c.Zc),c.Yc(2,us,4,11,"ng-template",2)),2&e&&(c.Pb(2),c.Dc("ngForOf",t.panels))},directives:function(){return[Ns,l.l,Us,l.o,l.m]},encapsulation:2}),xs),Us=((Cs=function(){function e(t,n){_classCallCheck(this,e),this.accordion=t,this.panel=n}return _createClass(e,[{key:"ngbPanelToggle",set:function(e){e&&(this.panel=e)}}]),e}()).\u0275fac=function(e){return new(e||Cs)(c.dc(Vs),c.dc(zs,9))},Cs.\u0275dir=c.Yb({type:Cs,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(e,t){1&e&&c.tc("click",function(){return t.accordion.toggle(t.panel.id)}),2&e&&(c.mc("disabled",t.panel.disabled),c.Qb("aria-expanded",t.panel.isOpen)("aria-controls",t.panel.id),c.Vb("collapsed",!t.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),Cs),$s=((ks=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ks)},ks.\u0275mod=c.bc({type:ks}),ks.\u0275inj=c.ac({imports:[[l.c]]}),ks),Ws=((ws=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ws)},ws.\u0275mod=c.bc({type:ws}),ws.\u0275inj=c.ac({imports:[[l.c]]}),ws),qs=((_s=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||_s)},_s.\u0275mod=c.bc({type:_s}),_s.\u0275inj=c.ac({}),_s),Gs=((bs=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||bs)},bs.\u0275mod=c.bc({type:bs}),bs.\u0275inj=c.ac({imports:[[l.c]]}),bs),Xs=((ys=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ys)}
1,ys.\u0275mod=c.bc({type:ys}),ys.\u0275inj=c.ac({}),ys),Qs=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Escape=27]="Escape",e[e.Space=32]="Space",e[e.PageUp=33]="PageUp",e[e.PageDown=34]="PageDown",e[e.End=35]="End",e[e.Home=36]="Home",e[e.ArrowLeft=37]="ArrowLeft",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowRight=39]="ArrowRight",e[e.ArrowDown=40]="ArrowDown",e}({});"undefined"!=typeof navigator&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));var Ks=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Zs(e){var t=Array.from(e.querySelectorAll(Ks)).filter(function(e){return-1!==e.tabIndex});return[t[0],t[t.length-1]]}new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"getAllStyles",value:function(e){return window.getComputedStyle(e)}},{key:"getStyle",value:function(e,t){return this.getAllStyles(e)[t]}},{key:"isStaticPositioned",value:function(e){return"static"===(this.getStyle(e,"position")||"static")}},{key:"offsetParent",value:function(e){for(var t=e.offsetParent||document.documentElement;t&&t!==document.documentElement&&this.isStaticPositioned(t);)t=t.offsetParent;return t||document.documentElement}},{key:"position",value:function(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(e,"position"))t={top:(t=e.getBoundingClientRect()).top,bottom:t.bottom,left:t.left,right:t.right,height:t.height,width:t.width};else{var r=this.offsetParent(e);t=this.offset(e,!1),r!==document.documentElement&&(i=this.offset(r,!1)),i.top+=r.clientTop,i.left+=r.clientLeft}return t.top-=i.top,t.bottom-=i.top,t.left-=i.left,t.right-=i.left,n&&(t.top=Math.round(t.top),t.bottom=Math.round(t.bottom),t.left=Math.round(t.left),t.right=Math.round(t.right)),t}},{key:"offset",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.getBoundingClientRect(),i=window.pageYOffset-document.documentElement.clientTop,r=window.pageXOffset-document.documentElement.clientLeft,a={height:n.height||e.offsetHeight,width:n.width||e.offsetWidth,top:n.top+i,bottom:n.bottom+i,left:n.left+r,right:n.right+r};return t&&(a.height=Math.round(a.height),a.width=Math.round(a.width),a.top=Math.round(a.top),a.bottom=Math.round(a.bottom),a.left=Math.round(a.left),a.right=Math.round(a.right)),a}},{key:"positionElements",value:function(e,t,n,i){var r=_slicedToArray(n.split("-"),2),a=r[0],o=void 0===a?"top":a,s=r[1],l=void 0===s?"center":s,c=i?this.offset(e,!1):this.position(e,!1),u=this.getAllStyles(t),d=parseFloat(u.marginTop),h=parseFloat(u.marginBottom),f=parseFloat(u.marginLeft),p=parseFloat(u.marginRight),m=0,g=0;switch(o){case"top":m=c.top-(t.offsetHeight+d+h);break;case"bottom":m=c.top+c.height;break;case"left":g=c.left-(t.offsetWidth+f+p);break;case"right":g=c.left+c.width}switch(l){case"top":m=c.top;break;case"bottom":m=c.top+c.height-t.offsetHeight;break;case"left":g=c.left;break;case"right":g=c.left+c.width-t.offsetWidth;break;case"center":"top"===o||"bottom"===o?g=c.left+c.width/2-t.offsetWidth/2:m=c.top+c.height/2-t.offsetHeight/2}t.style.transform="translate(".concat(Math.round(g),"px, ").concat(Math.round(m),"px)");var v=t.getBoundingClientRect(),y=document.documentElement,b=window.innerHeight||y.clientHeight,_=window.innerWidth||y.clientWidth;return v.left>=0&&v.top>=0&&v.right<=_&&v.bottom<=b}}]),e}()),new Date(1882,10,12),new Date(2174,10,25);var Js,el,tl,nl,il,rl,al,ol,sl,ll,cl,ul,dl,hl,fl,pl,ml,gl,vl=((nl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||nl)},nl.\u0275mod=c.bc({type:nl}),nl.\u0275inj=c.ac({imports:[[l.c,eo]]}),nl),yl=((tl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||tl)},tl.\u0275dir=c.Yb({type:tl,selectors:[["",8,"navbar"]]}),tl),bl=((el=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||el)},el.\u0275mod=c.bc({type:el}),el.\u0275inj=c.ac({}),el),_l=((Js=function(){function e(t){_classCallCheck(this,e),this._ngbConfig=t,this.backdrop=!0,this.keyboard=!0}return _createClass(e,[{key:"animation",get:function(){return void 0===this._animation?this._ngbConfig.animation:this._animation},set:function(e){this._animation=e}}]),e}()).\u0275fac=function(e){return new(e||Js)(c.qc(Ps))},Js.\u0275prov=c.Zb({factory:function(){return new Js(c.qc(Ps))},token:Js,providedIn:"root"}),Js),wl=function e(t,n,i){_classCallCheck(this,e),this.nodes=t,this.viewRef=n,this.componentRef=i},kl=function(){},Cl=((rl=function(){function e(t){_classCallCheck(this,e),this._document=t}
1return _createClass(e,[{key:"compensate",value:function(){var e=this._getWidth();return this._isPresent(e)?this._adjustBody(e):kl}},{key:"_adjustBody",value:function(e){var t=this._document.body,n=t.style.paddingRight,i=parseFloat(window.getComputedStyle(t)["padding-right"]);return t.style["padding-right"]="".concat(i+e,"px"),function(){return t.style["padding-right"]=n}}},{key:"_isPresent",value:function(e){var t=this._document.body.getBoundingClientRect();return window.innerWidth-(t.left+t.right)>=e-.1*e}},{key:"_getWidth",value:function(){var e=this._document.createElement("div");e.className="modal-scrollbar-measure";var t=this._document.body;t.appendChild(e);var n=e.getBoundingClientRect().width-e.clientWidth;return t.removeChild(e),n}}]),e}()).\u0275fac=function(e){return new(e||rl)(c.qc(l.d))},rl.\u0275prov=c.Zb({factory:function(){return new rl(c.qc(l.d))},token:rl,providedIn:"root"}),rl),xl=((il=function(){function e(t,n){_classCallCheck(this,e),this._el=t,this._zone=n}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this._zone.onStable.asObservable().pipe(Object(be.a)(1)).subscribe(function(){js(e._zone,e._el.nativeElement,function(e,t){t&&ms(e),e.classList.add("show")},{animation:e.animation,runningTransition:"continue"})})}},{key:"hide",value:function(){return js(this._zone,this._el.nativeElement,function(e){return e.classList.remove("show")},{animation:this.animation,runningTransition:"stop"})}}]),e}()).\u0275fac=function(e){return new(e||il)(c.dc(c.q),c.dc(c.J))},il.\u0275cmp=c.Xb({type:il,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(e,t){2&e&&(c.Sb("modal-backdrop"+(t.backdropClass?" "+t.backdropClass:"")),c.Vb("show",!t.animation)("fade",t.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(e,t){},encapsulation:2}),il),Sl=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"close",value:function(e){}},{key:"dismiss",value:function(e){}}]),e}(),Ml=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this._windowCmptRef=t,this._contentRef=n,this._backdropCmptRef=i,this._beforeDismiss=r,this._closed=new oe.a,this._dismissed=new oe.a,this._hidden=new oe.a,t.instance.dismissEvent.subscribe(function(e){a.dismiss(e)}),this.result=new Promise(function(e,t){a._resolve=e,a._reject=t}),this.result.then(null,function(){})}return _createClass(e,[{key:"componentInstance",get:function(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}},{key:"closed",get:function(){return this._closed.asObservable().pipe(De(this._hidden))}},{key:"dismissed",get:function(){return this._dismissed.asObservable().pipe(De(this._hidden))}},{key:"hidden",get:function(){return this._hidden.asObservable()}},{key:"shown",get:function(){return this._windowCmptRef.instance.shown.asObservable()}},{key:"close",value:function(e){this._windowCmptRef&&(this._closed.next(e),this._resolve(e),this._removeModalElements())}},{key:"_dismiss",value:function(e){this._dismissed.next(e),this._reject(e),this._removeModalElements()}},{key:"dismiss",value:function(e){var t=this;if(this._windowCmptRef)if(this._beforeDismiss){var n=this._beforeDismiss();n&&n.then?n.then(function(n){!1!==n&&t._dismiss(e)},function(){}):!1!==n&&this._dismiss(e)}else this._dismiss(e)}},{key:"_removeModalElements",value:function(){var e=this,t=this._windowCmptRef.instance.hide(),n=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Object(me.a)(void 0);t.subscribe(function(){var t=e._windowCmptRef.location.nativeElement;t.parentNode.removeChild(t),e._windowCmptRef.destroy(),e._contentRef&&e._contentRef.viewRef&&e._contentRef.viewRef.destroy(),e._windowCmptRef=null,e._contentRef=null}),n.subscribe(function(){if(e._backdropCmptRef){var t=e._backdropCmptRef.location.nativeElement;t.parentNode.removeChild(t),e._backdropCmptRef.destroy(),e._backdropCmptRef=null}}),$o(t,n).subscribe(function(){e._hidden.next(),e._hidden.complete()})}}]),e}(),Dl=function(e){return e[e.BACKDROP_CLICK=0]="BACKDROP_CLICK",e[e.ESC=1]="ESC",e}({}),Tl=((gl=function(){function e(t,n,i){_classCallCheck(this,e),this._document=t,this._elRef=n,this._zone=i,this._closed$=new oe.a,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new c.s,this.shown=new oe.a,this.hidden=new oe.a}return _createClass(e,[{key:"dismiss",value:function(e){this.dismissEvent.emit(e)}},{key:"ngOnInit",value:function(){var e=this;this._elWithFocus=this._document.activeElement,this._zone.onStable.asObservable().pipe(Object(be.a)(1)).subscribe(function(){e._show()})}},{key:"ngOnDestroy",value:function(){this._disableEventHandling()}},{key:"hide",value:function(){var e=this,t=this._elRef.nativeElement,n={animation:this.animation,runningTransition:"stop"},i=$o(js(this._zone,t,function(){return t.classList.remove("show")},n),js(this._zone,this._dialogEl.nativeElement,function(){},n));return i.subscribe(function(){e.hidden.next(),e.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),i}},{key:"_show",value:function(){var e=this,t={animation:this.animation,runningTransition:"continue"};$o(js(this._zone,this._elRef.nativeElement,function(e,t){t&&ms(e),e.classList.add("show")},t),js(this._zone,this._dialogEl.nativeElement,function(){},t)).subscribe(function(){e.shown.next(),e.shown.complete()}),this._enableEventHandling(),this._setFocus()}},{key:"_enableEventHandling",value:function(){var e=this,t=this._elRef.nativeElement;this._zone.runOutsideAngular(function(){Ho(t,"keydown").pipe(De(e._closed$),Object(ve.a)(function(e){return e.which===Qs.Escape})).subscribe(function(t){e.keyboard?requestAnimationFrame(function(){t.defaultPrevented||e._zone.run(function(){return e.dismiss(Dl.ESC)})}):"static"===e.backdrop&&e._bumpBackdrop()});var n=!1;Ho(e._dialogEl.nativeElement,"mousedown").pipe(De(e._closed$),Object(ge.a)(function(){return n=!1}),Object(Ko.a)(function(){return Ho(t,"mouseup").pipe(De(e._closed$),Object(be.a)(1))}),Object(ve.a)(function(e){var n=e.target;return t===n})).subscribe(function(){n=!0}),Ho(t,"click").pipe(De(e._closed$)).subscribe(function(i){var r=i.target;t===r&&("static"===e.backdrop?e._bumpBackdrop():!0!==e.backdrop||n||e._zone.run(function(){return e.dismiss(Dl.BACKDROP_CLICK)})),n=!1})})}},{key:"_disableEventHandling",value:function(){this._closed$.next()}},{key:"_setFocus",value:function(){var e=this._elRef.nativeElement;if(!e.contains(document.activeElement)){var t=e.querySelector("[ngbAutofocus]"),n=Zs(e)[0];(t||n||e).focus()}}},{key:"_restoreFocus",value:function(){var e,t=this,n=this._document.body,i=this._elWithFocus;e=i&&i.focus&&n.contains(i)?i:n,this._zone.runOutsideAngular(function(){setTimeout(function(){return e.focus()}),t._elWithFocus=null})}},{key:"_bumpBackdrop",value:function(){"static"===this.backdrop&&js(this._zone,this._elRef.nativeElement,function(e){var t=e.classList;return t.add("modal-static"),function(){return t.remove("modal-static")}},{animation:this.animation,runningTransition:"continue"})}}]),e}()).\u0275fac=function(e){return new(e||gl)(c.dc(l.d),c.dc(c.q),c.dc(c.J))},gl.\u0275cmp=c.Xb({type:gl,selectors:[["ngb-modal-window"]],viewQuery:function(e,t){var n;1&e&&c.ed(hs,7),2&e&&c.Mc(n=c.uc())&&(t._dialogEl=n.first)},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(e,t){2&e&&(c.Qb("aria-modal",!0)("aria-labelledby",t.ariaLabelledBy)("aria-describedby",t.ariaDescribedBy),c.Sb("modal d-block"+(t.windowClass?" "+t.windowClass:"")),c.Vb("fade",t.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass",modalDialogClass:"modalDialogClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:ds,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(e,t){1&e&&(c.Cc(),c.jc(0,"div",0,1),c.jc(2,"div",2),c.Bc(3),c.ic(),c.ic()),2&e&&c.Sb("modal-dialog"+(t.size?" modal-"+t.size:"")+(t.centered?" modal-dialog-centered":"")+(t.scrollable?" modal-dialog-scrollable":"")+(t.modalDialogClass?" "+t.modalDialogClass:""))},styles:["ngb-modal-window .component-host-scrollable{display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),gl),El=((ml=function(){function e(t,n,i,r,a,o){var s=this;_classCallCheck(this,e),this._applicationRef=t,this._injector=n,this._document=i,this._scrollBar=r,this._rendererFactory=a,this._ngZone=o,this._activeWindowCmptHasChanged=new oe.a,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRef
1s=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass","modalDialogClass"],this._windowCmpts=[],this._activeInstances=new c.s,this._activeWindowCmptHasChanged.subscribe(function(){if(s._windowCmpts.length){var e=s._windowCmpts[s._windowCmpts.length-1];(function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];s._ngZone.runOutsideAngular(function(){var e=Ho(t,"focusin").pipe(De(n),Object(ye.a)(function(e){return e.target}));Ho(t,"keydown").pipe(De(n),Object(ve.a)(function(e){return e.which===Qs.Tab}),es(e)).subscribe(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1],a=_slicedToArray(Zs(t),2),o=a[0],s=a[1];r!==o&&r!==t||!i.shiftKey||(s.focus(),i.preventDefault()),r!==s||i.shiftKey||(o.focus(),i.preventDefault())}),i&&Ho(t,"click").pipe(De(n),es(e),Object(ye.a)(function(e){return e[1]})).subscribe(function(e){return e.focus()})})})(0,e.location.nativeElement,s._activeWindowCmptHasChanged),s._revertAriaHidden(),s._setAriaHidden(e.location.nativeElement)}})}return _createClass(e,[{key:"open",value:function(e,t,n,i){var r=this,a=i.container instanceof HTMLElement?i.container:ps(i.container)?this._document.querySelector(i.container):this._document.body,o=this._rendererFactory.createRenderer(null,null),s=this._scrollBar.compensate(),l=function(){r._modalRef
1s.length||(o.removeClass(r._document.body,"modal-open"),r._revertAriaHidden())};if(!a)throw new Error('The specified modal container "'.concat(i.container||"body",'" was not found in the DOM.'));var c=new Sl,u=this._getContentRef(e,i.injector||t,n,c,i),d=!1!==i.backdrop?this._attachBackdrop(e,a):void 0,h=this._attachWindowComponent(e,a,u),f=new Ml(h,u,d,i.beforeDismiss);return this._registerModalRef(f),this._registerWindowCmpt(h),f.result.then(s,s),f.result.then(l,l),c.close=function(e){f.close(e)},c.dismiss=function(e){f.dismiss(e)},this._applyWindowOptions(h.instance,i),1===this._modalRefs.length&&o.addClass(this._document.body,"modal-open"),d&&d.instance&&(this._applyBackdropOptions(d.instance,i),d.changeDetectorRef.detectChanges()),h.changeDetectorRef.detectChanges(),f}},{key:"activeInstances",get:function(){return this._activeInstances}},{key:"dismissAll",value:function(e){this._modalRefs.forEach(function(t){return t.dismiss(e)})}},{key:"hasOpenModals",value:function(){return this._modalRefs.length>0}},{key:"_attachBackdrop",value:function(e,t){var n=e.resolveComponentFactory(xl).create(this._injector);return this._applicationRef.attachView(n.hostView),t.appendChild(n.location.nativeElement),n}},{key:"_attachWindowComponent",value:function(e,t,n){var i=e.resolveComponentFactory(Tl).create(this._injector,n.nodes);return this._applicationRef.attachView(i.hostView),t.appendChild(i.location.nativeElement),i}},{key:"_applyWindowOptions",value:function(e,t){this._windowAttributes.forEach(function(n){ps(t[n])&&(e[n]=t[n])})}},{key:"_applyBackdropOptions",value:function(e,t){this._backdropAttributes.forEach(function(n){ps(t[n])&&(e[n]=t[n])})}},{key:"_getContentRef",value:function(e,t,n,i,r){return n?n instanceof c.X?this._createFromTemplateRef(n,i):fs(n)?this._createFromString(n):this._createFromComponent(e,t,n,i,r):new wl([])}},{key:"_createFromTemplateRef",value:function(e,t){var n=e.createEmbeddedView({$implicit:t,close:function(e){t.close(e)},dismiss:function(e){t.dismiss(e)}});return this._applicationRef.attachView(n),new wl([n.rootNodes],n)}},{key:"_createFromString",value:function(e){var t=this._document.createTextNode("".concat(e));return new wl([[t]])}},{key:"_createFromComponent",value:function(e,t,n,i,r){var a=e.resolveComponentFactory(n),o=c.z.create({providers:[{provide:Sl,useValue:i}],parent:t}),s=a.create(o),l=s.location.nativeElement;return r.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(s.hostView),new wl([[l]],s.hostView,s)}},{key:"_setAriaHidden",value:function(e){var t=this,n=e.parentElement;n&&e!==this._document.body&&(Array.from(n.children).forEach(function(n){n!==e&&"SCRIPT"!==n.nodeName&&(t._ariaHiddenValues.set(n,n.getAttribute("aria-hidden")),n.setAttribute("aria-hidden","true"))}),this._setAriaHidden(n))}},{key:"_revertAriaHidden",value:function(){this._ariaHiddenValues.forEach(function(e,t){e?t.setAttribute("aria-hidden",e):t.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}},{key:"_registerModalRef",value:function(e){var t=this,n=function(){var n=t._modalRefs.indexOf(e);n>-1&&(t._modalRefs.splice(n,1),t._activeInstances.emit(t._modalRefs))};this._modalRefs.push(e),this._activeInstances.emit(this._modalRefs),e.result.then(n,n)}},{key:"_registerWindowCmpt",value:function(e){var t=this;this._windowCmpts.push(e),this._activeWindowCmptHasChanged.next(),e.onDestroy(function(){var n=t._windowCmpts.indexOf(e);n>-1&&(t._windowCmpts.splice(n,1),t._activeWindowCmptHasChanged.next())})}}]),e}()).\u0275fac=function(e){return new(e||ml)(c.qc(c.g),c.qc(c.z),c.qc(l.d),c.qc(Cl),c.qc(c.R),c.qc(c.J))},ml.\u0275prov=c.Zb({factory:function(){return new ml(c.qc(c.g),c.qc(c.v),c.qc(l.d),c.qc(Cl),c.qc(c.R),c.qc(c.J))},token:ml,providedIn:"root"}),ml),Al=((pl=function(){function e(t,n,i,r){_classCallCheck(this,e),this._moduleCFR=t,this._injector=n,this._modalStack=i,this._config=r}return _createClass(e,[{key:"open",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign(Object.assign(Object.assign({},this._config),{animation:this._config.animation}),t);
1return this._modalStack.open(this._moduleCFR,this._injector,e,n)}},{key:"activeInstances",get:function(){return this._modalStack.activeInstances}},{key:"dismissAll",value:function(e){this._modalStack.dismissAll(e)}},{key:"hasOpenModals",value:function(){return this._modalStack.hasOpenModals()}}]),e}()).\u0275fac=function(e){return new(e||pl)(c.qc(c.m),c.qc(c.z),c.qc(El),c.qc(_l))},pl.\u0275prov=c.Zb({factory:function(){return new pl(c.qc(c.m),c.qc(c.v),c.qc(El),c.qc(_l))},token:pl,providedIn:"root"}),pl),Pl=((fl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||fl)},fl.\u0275mod=c.bc({type:fl}),fl.\u0275inj=c.ac({providers:[Al]}),fl),Ll=((hl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||hl)},hl.\u0275mod=c.bc({type:hl}),hl.\u0275inj=c.ac({imports:[[l.c]]}),hl),Ol=((dl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||dl)},dl.\u0275mod=c.bc({type:dl}),dl.\u0275inj=c.ac({imports:[[l.c]]}),dl),Il=((ul=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ul)},ul.\u0275mod=c.bc({type:ul}),ul.\u0275inj=c.ac({imports:[[l.c]]}),ul),Hl=((cl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||cl)},cl.\u0275mod=c.bc({type:cl}),cl.\u0275inj=c.ac({imports:[[l.c]]}),cl),jl=((ll=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ll)},ll.\u0275mod=c.bc({type:ll}),ll.\u0275inj=c.ac({imports:[[l.c]]}),ll),Fl=((sl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||sl)},sl.\u0275mod=c.bc({type:sl}),sl.\u0275inj=c.ac({imports:[[l.c]]}),sl),Rl=((ol=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||ol)},ol.\u0275mod=c.bc({type:ol}),ol.\u0275inj=c.ac({imports:[[l.c]]}),ol),Nl=((al=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||al)},al.\u0275mod=c.bc({type:al}),al.\u0275inj=c.ac({}),al);new c.y("live announcer delay",{providedIn:"root",factory:function(){return 100}});var Bl,Yl,zl=((Bl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Bl)},Bl.\u0275mod=c.bc({type:Bl}),Bl.\u0275inj=c.ac({imports:[[l.c]]}),Bl),Vl=[$s,Ws,qs,Gs,Xs,vl,bl,Pl,Ll,Ol,Il,Hl,jl,Fl,Rl,Nl,zl],Ul=((Yl=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Yl)},Yl.\u0275mod=c.bc({type:Yl}),Yl.\u0275inj=c.ac({imports:[Vl,$s,Ws,qs,Gs,Xs,vl,bl,Pl,Ll,Ol,Il,Hl,jl,Fl,Rl,Nl,zl]}),Yl),$l=n("tk/3"),Wl=function(){function e(e,t,n){this.el=e,this.vcr=t,this.renderer=n,this.dtOptions={}}return e.prototype.ngOnInit=function(){var e=this;this.dtTrigger?this.dtTrigger.subscribe(function(t){e.displayTable(t)}):this.displayTable(null)},e.prototype.ngOnDestroy=function(){this.dtTrigger&&this.dtTrigger.unsubscribe(),this.dt&&this.dt.destroy(!0)},e.prototype.displayTable=function(e){var t=this;e&&(this.dtOptions=e),this.dtInstance=new Promise(function(e,n){Promise.resolve(t.dtOptions).then(function(i){0===Object.keys(i).length&&0===$("tbody tr",t.el.nativeElement).length?n("Both the table and dtOptions cannot be empty"):setTimeout(function(){var n={rowCallback:function(e,n,r){if(i.columns){var a=i.columns;t.applyNgPipeTransform(e,a),t.applyNgRefTemplate(e,a,n)}i.rowCallback&&i.rowCallback(e,n,r)}};n=Object.assign({},i,n),t.dt=$(t.el.nativeElement).DataTable(n),e(t.dt)})})})},e.prototype.applyNgPipeTransform=function(e,t){t.filter(function(e){return e.ngPipeInstance&&!e.ngTemplateRef}).forEach(function(n){var i=n.ngPipeInstance,r=t.findIndex(function(e){return e.data===n.data}),a=e.childNodes.item(r),o=$(a).text(),s=i.transform(o);$(a).text(s)})},e.prototype.applyNgRefTemplate=function(e,t,n){var i=this;t.filter(function(e){return e.ngTemplateRef&&!e.ngPipeInstance}).forEach(function(r){var a=r.ngTemplateRef,o=a.ref,s=a.context,l=t.findIndex(function(e){return e.data===r.data}),c=e.childNodes.item(l);$(c).html("");var u=Object.assign({},s,null==s?void 0:s.userData,{adtData:n}),d=i.vcr.createEmbeddedView(o,u);i.renderer.appendChild(c,d.rootNodes[0])})},e.\u0275fac=function(t){return new(t||e)(c.dc(c.q),c.dc(c.cb),c.dc(c.Q))},e.\u0275dir=c.Yb({type:e,selectors:[["","datatable",""]],inputs:{dtOptions:"dtOptions",dtTrigger:"dtTrigger"}}),e}(),ql=function(){function e(){}return e.forRoot=function(){return{ngModule:e}},e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[l.c]]}),e}();function Gl(e){return!!e&&(e instanceof ae.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}function Xl(e){return new ae.a(function(t){var n;try{n=e()}catch(i){return void t.error(i)}return(n?Object(dr.a)(n):Object(Oo.b)()).subscribe(t)})}var Ql=n("3N8a"),Kl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;
1return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"schedule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t>0?_get(_getPrototypeOf(n.prototype),"schedule",this).call(this,e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}},{key:"execute",value:function(e,t){return t>0||this.closed?_get(_getPrototypeOf(n.prototype),"execute",this).call(this,e,t):this._execute(e,t)}},{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0||null===i&&this.delay>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):e.flush(this)}}]),n}(Ql.a),Zl=n("IjjT"),Jl=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(Zl.a))(Kl),ec=n("WMd4"),tc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return _classCallCheck(this,n),(r=t.call(this,e)).scheduler=i,r.delay=a,r}return _createClass(n,[{key:"scheduleMessage",value:function(e){this.destination.add(this.scheduler.schedule(n.dispatch,this.delay,new nc(e,this.destination)))}},{key:"_next",value:function(e){this.scheduleMessage(ec.a.createNext(e))}},{key:"_error",value:function(e){this.scheduleMessage(ec.a.createError(e)),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleMessage(ec.a.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()}}]),n}(_e.a),nc=function e(t,n){_classCallCheck(this,e),this.notification=t,this.destination=n},ic=n("Ylt2"),rc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,a=arguments.length>2?arguments[2]:void 0;
1return _classCallCheck(this,n),(e=t.call(this)).scheduler=a,e._events=[],e._infiniteTimeWindow=!1,e._bufferSize=i<1?1:i,e._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(e._infiniteTimeWindow=!0,e.next=e.nextInfiniteTimeWindow):e.next=e.nextTimeWindow,e}return _createClass(n,[{key:"nextInfiniteTimeWindow",value:function(e){if(!this.isStopped){var t=this._events;t.push(e),t.length>this._bufferSize&&t.shift()}_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"nextTimeWindow",value:function(e){this.isStopped||(this._events.push(new ac(this._getNow(),e)),this._trimBufferThenGetEvents()),_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"_subscribe",value:function(e){var t,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,a=i.length;if(this.closed)throw new fe.a;if(this.isStopped||this.hasError?t=he.a.EMPTY:(this.observers.push(e),t=new ic.a(this,e)),r&&e.add(e=new tc(e,r)),n)for(var o=0;o<a&&!e.closed;o++)e.next(i[o]);else for(var s=0;s<a&&!e.closed;s++)e.next(i[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t}},{key:"_getNow",value:function(){return(this.scheduler||Jl).now()}},{key:"_trimBufferThenGetEvents",value:function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,i=this._events,r=i.length,a=0;a<r&&!(e-i[a].time<n);)a++;return r>t&&(a=Math.max(a,r-t)),a>0&&i.splice(0,a),i}}]),n}(oe.a),ac=function e(t,n){_classCallCheck(this,e),this.time=t,this.value=n};function oc(e,t,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){return e.lift(function(e){var t,n,i=e.bufferSize,r=void 0===i?Number.POSITIVE_INFINITY:i,a=e.windowTime,o=void 0===a?Number.POSITIVE_INFINITY:a,s=e.refCount,l=e.scheduler,c=0,u=!1,d=!1;return function(e){var i;c++,!t||u?(u=!1,t=new rc(r,o,l),i=t.subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){u=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):i=t.subscribe(this),this.add(function(){c--,i.unsubscribe(),i=void 0,n&&!d&&s&&0===c&&(n.unsubscribe(),n=void 0,t=void 0)})}}(i))}}var sc,lc,cc,uc=n("bOdf"),dc=function e(){_classCallCheck(this,e)},hc=((lc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getTranslation",value:function(e){return Object(me.a)({})}}]),n}(dc)).\u0275fac=function(e){return(sc||(sc=c.lc(lc)))(e||lc)},lc.\u0275prov=c.Zb({token:lc,factory:lc.\u0275fac}),lc),fc=function e(){_classCallCheck(this,e)},pc=((cc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"handle",value:function(e){return e.key}}]),e}()).\u0275fac=function(e){return new(e||cc)},cc.\u0275prov=c.Zb({token:cc,factory:cc.\u0275fac}),cc);function mc(e,t){if(e===t)return!0;if(null===e||null===t)return!1;if(e!=e&&t!=t)return!0;var n,i,r,a=typeof e;if(a==typeof t&&"object"==a){if(!Array.isArray(e)){if(Array.isArray(t))return!1;for(i in r=Object.create(null),e){if(!mc(e[i],t[i]))return!1;r[i]=!0}for(i in t)if(!(i in r)&&void 0!==t[i])return!1;return!0}if(!Array.isArray(t))return!1;if((n=e.length)==t.length){for(i=0;i<n;i++)if(!mc(e[i],t[i]))return!1;return!0}}return!1}function gc(e){return null!=e}function vc(e){return e&&"object"==typeof e&&!Array.isArray(e)}function yc(e,t){var n=Object.assign({},e);return vc(e)&&vc(t)&&Object.keys(t).forEach(function(i){vc(t[i])&&i in e?n[i]=yc(e[i],t[i]):Object.assign(n,_defineProperty({},i,t[i]))}),n}var bc,_c,wc,kc,Cc,xc,Sc,Mc=function e(){_classCallCheck(this,e)},Dc=((_c=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments)).templateMatcher=/{{\s?([^{}\s]*)\s?}}/g,e}return _createClass(n,[{key:"interpolate",value:function(e,t){return"string"==typeof e?this.interpolateString(e,t):"function"==typeof e?this.interpolateFunction(e,t):e}},{key:"getValue",value:function(e,t){var n="string"==typeof t?t.split("."):[t];t="";do{t+=n.shift(),!gc(e)||!gc(e[t])||"object"!=typeof e[t]&&n.length?n.length?t+=".":e=void 0:(e=e[t],t="")}while(n.length);return e}},{key:"interpolateFunction",value:function(e,t){return e(t)}},{key:"interpolateString",value:function(e,t){var n=this;return t?e.replace(this.templateMatcher,function(e,i){var r=n.getValue(t,i);return gc(r)?r:e}):e}}]),n}(Mc)).\u0275fac=function(e){return(bc||(bc=c.lc(_c)))(e||_c)},_c.\u0275prov=c.Zb({token:_c,factory:_c.\u0275fac}),_c),Tc=function e(){_classCallCheck(this,e)},Ec=((kc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}
1return _createClass(n,[{key:"compile",value:function(e,t){return e}},{key:"compileTranslations",value:function(e,t){return e}}]),n}(Tc)).\u0275fac=function(e){return(wc||(wc=c.lc(kc)))(e||kc)},kc.\u0275prov=c.Zb({token:kc,factory:kc.\u0275fac}),kc),Ac=function e(){_classCallCheck(this,e),this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new c.s,this.onLangChange=new c.s,this.onDefaultLangChange=new c.s},Pc=new c.y("USE_STORE"),Lc=new c.y("USE_DEFAULT_LANG"),Oc=new c.y("DEFAULT_LANGUAGE"),Ic=new c.y("USE_EXTEND"),Hc=((Sc=function(){function e(t,n,i,r,a){var o=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7],u=arguments.length>8?arguments[8]:void 0;_classCallCheck(this,e),this.store=t,this.currentLoader=n,this.compiler=i,this.parser=r,this.missingTranslationHandler=a,this.useDefaultLang=o,this.isolate=s,this.extend=l,this.pending=!1,this._onTranslationChange=new c.s,this._onLangChange=new c.s,this._onDefaultLangChange=new c.s,this._langs=[],this._translations={},this._translationRequests={},u&&this.setDefaultLang(u)}return _createClass(e,[{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(e){this.isolate?this._defaultLang=e:this.store.defaultLang=e}},{key:"currentLang",get:function(){return this.isolate?this._currentLang:this.store.currentLang},set:function(e){this.isolate?this._currentLang=e:this.store.currentLang=e}},{key:"langs",get:function(){return this.isolate?this._langs:this.store.langs},set:function(e){this.isolate?this._langs=e:this.store.langs=e}},{key:"translations",get:function(){return this.isolate?this._translations:this.store.translations},set:function(e){this.isolate?this._translations=e:this.store.translations=e}},{key:"setDefaultLang",value:function(e){var t=this;if(e!==this.defaultLang){var n=this.retrieveTranslations(e);void 0!==n?(null==this.defaultLang&&(this.defaultLang=e),n.pipe(Object(be.a)(1)).subscribe(function(n){t.changeDefaultLang(e)})):this.changeDefaultLang(e)}}},{key:"getDefaultLang",value:function(){return this.defaultLang}},{key:"use",value:function(e){var t=this;if(e===this.currentLang)return Object(me.a)(this.translations[e]);var n=this.retrieveTranslations(e);return void 0!==n?(this.currentLang||(this.currentLang=e),n.pipe(Object(be.a)(1)).subscribe(function(n){t.changeLang(e)}),n):(this.changeLang(e),Object(me.a)(this.translations[e]))}},{key:"retrieveTranslations",value:function(e){var t;return(void 0===this.translations[e]||this.extend)&&(this._translationRequests[e]=this._translationRequests[e]||this.getTranslation(e),t=this._translationRequests[e]),t}},{key:"getTranslation",value:function(e){var t=this;this.pending=!0;var n=this.currentLoader.getTranslation(e).pipe(oc(1),Object(be.a)(1));return this.loadingTranslations=n.pipe(Object(ye.a)(function(n){return t.compiler.compileTranslations(n,e)}),oc(1),Object(be.a)(1)),this.loadingTranslations.subscribe({next:function(n){t.translations[e]=t.extend&&t.translations[e]?Object.assign(Object.assign({},n),t.translations[e]):n,t.updateLangs(),t.pending=!1},error:function(e){t.pending=!1}}),n}},{key:"setTranslation",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t=this.compiler.compileTranslations(t,e),this.translations[e]=(n||this.extend)&&this.translations[e]?yc(this.translations[e],t):t,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}},{key:"getLangs",value:function(){return this.langs}},{key:"addLangs",value:function(e){var t=this;e.forEach(function(e){-1===t.langs.indexOf(e)&&t.langs.push(e)})}},{key:"updateLangs",value:function(){this.addLangs(Object.keys(this.translations))}},{key:"getParsedResult",value:function(e,t,n){var i;if(t instanceof Array){var r,a={},o=!1,s=_createForOfIteratorHelper(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;a[l]=this.getParsedResult(e,l,n),Gl(a[l])&&(o=!0)}}catch(u){s.e(u)}finally{s.f()}
1return o?pr(t.map(function(e){return Gl(a[e])?a[e]:Object(me.a)(a[e])})).pipe(Object(ye.a)(function(e){var n={};return e.forEach(function(e,i){n[t[i]]=e}),n})):a}if(e&&(i=this.parser.interpolate(this.parser.getValue(e,t),n)),void 0===i&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(i=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],t),n)),void 0===i){var c={key:t,translateService:this};void 0!==n&&(c.interpolateParams=n),i=this.missingTranslationHandler.handle(c)}return void 0!==i?i:t}},{key:"get",value:function(e,t){var n=this;if(!gc(e)||!e.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Object(uc.a)(function(i){return Gl(i=n.getParsedResult(i,e,t))?i:Object(me.a)(i)}));var i=this.getParsedResult(this.translations[this.currentLang],e,t);return Gl(i)?i:Object(me.a)(i)}},{key:"getStreamOnTranslationChange",value:function(e,t){var n=this;if(!gc(e)||!e.length)throw new Error('Parameter "key" required');return ut(Xl(function(){return n.get(e,t)}),this.onTranslationChange.pipe(Object(Ko.a)(function(i){var r=n.getParsedResult(i.translations,e,t);return"function"==typeof r.subscribe?r:Object(me.a)(r)})))}},{key:"stream",value:function(e,t){var n=this;if(!gc(e)||!e.length)throw new Error('Parameter "key" required');return ut(Xl(function(){return n.get(e,t)}),this.onLangChange.pipe(Object(Ko.a)(function(i){var r=n.getParsedResult(i.translations,e,t);
1return Gl(r)?r:Object(me.a)(r)})))}},{key:"instant",value:function(e,t){if(!gc(e)||!e.length)throw new Error('Parameter "key" required');var n=this.getParsedResult(this.translations[this.currentLang],e,t);if(Gl(n)){if(e instanceof Array){var i={};return e.forEach(function(t,n){i[e[n]]=e[n]}),i}return e}return n}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.currentLang;this.translations[n][e]=this.compiler.compile(t,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}},{key:"changeLang",value:function(e){this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),null==this.defaultLang&&this.changeDefaultLang(e)}},{key:"changeDefaultLang",value:function(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}},{key:"reloadLang",value:function(e){return this.resetLang(e),this.getTranslation(e)}},{key:"resetLang",value:function(e){this._translationRequests[e]=void 0,this.translations[e]=void 0}},{key:"getBrowserLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return void 0!==(e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage)?(-1!==e.indexOf("-")&&(e=e.split("-")[0]),-1!==e.indexOf("_")&&(e=e.split("_")[0]),e):void 0}}},{key:"getBrowserCultureLang",value:function(){if("undefined"!=typeof window&&void 0!==window.navigator){var e=window.navigator.languages?window.navigator.languages[0]:null;return e=e||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}}}]),e}()).\u0275fac=function(e){return new(e||Sc)(c.qc(Ac),c.qc(dc),c.qc(Tc),c.qc(Mc),c.qc(fc),c.qc(Lc),c.qc(Pc),c.qc(Ic),c.qc(Oc))},Sc.\u0275prov=c.Zb({token:Sc,factory:Sc.\u0275fac}),Sc),jc=((xc=function(){function e(t,n){_classCallCheck(this,e),this.translate=t,this._ref=n,this.value=""}return _createClass(e,[{key:"updateValue",value:function(e,t,n){var i=this,r=function(t){i.value=void 0!==t?t:e,i.lastKey=e,i._ref.markForCheck()};if(n){var a=this.translate.getParsedResult(n,e,t);Gl(a.subscribe)?a.subscribe(r):r(a)}this.translate.get(e,t).subscribe(r)}},{key:"transform",value:function(e){var t,n=this;if(!e||!e.length)return e;for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];if(mc(e,this.lastKey)&&mc(r,this.lastParams))return this.value;if(gc(r[0])&&r.length)if("string"==typeof r[0]&&r[0].length){var o=r[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{t=JSON.parse(o)}catch(s){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: ".concat(r[0]))}}else"object"!=typeof r[0]||Array.isArray(r[0])||(t=r[0]);return this.lastKey=e,this.lastParams=r,this.updateValue(e,t),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(function(i){n.lastKey&&i.lang===n.translate.currentLang&&(n.lastKey=null,n.updateValue(e,t,i.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(function(i){n.lastKey&&(n.lastKey=null,n.updateValue(e,t,i.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(function(){n.lastKey&&(n.lastKey=null,n.updateValue(e,t))})),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()}}]),e}()).\u0275fac=function(e){return new(e||xc)(c.dc(Hc,16),c.dc(c.j,16))},xc.\u0275pipe=c.cc({name:"translate",type:xc,pure:!1}),xc.\u0275prov=c.Zb({token:xc,factory:xc.\u0275fac}),xc),Fc=((Cc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:dc,useClass:hc},t.compiler||{provide:Tc,useClass:Ec},t.parser||{provide:Mc,useClass:Dc}
1,t.missingTranslationHandler||{provide:fc,useClass:pc},Ac,{provide:Pc,useValue:t.isolate},{provide:Lc,useValue:t.useDefaultLang},{provide:Ic,useValue:t.extend},{provide:Oc,useValue:t.defaultLanguage},Hc]}}},{key:"forChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:e,providers:[t.loader||{provide:dc,useClass:hc},t.compiler||{provide:Tc,useClass:Ec},t.parser||{provide:Mc,useClass:Dc},t.missingTranslationHandler||{provide:fc,useClass:pc},{provide:Pc,useValue:t.isolate},{provide:Lc,useValue:t.useDefaultLang},{provide:Ic,useValue:t.extend},{provide:Oc,useValue:t.defaultLanguage},Hc]}}}]),e}()).\u0275fac=function(e){return new(e||Cc)},Cc.\u0275mod=c.bc({type:Cc}),Cc.\u0275inj=c.ac({}),Cc),Rc=n("mrSG"),Nc=["*"];function Bc(e,t){1&e&&c.ec(0,"datatable-progress")}function Yc(e,t){if(1&e&&c.ec(0,"datatable-summary-row",9),2&e){var n=c.xc(2);c.Dc("rowHeight",n.summaryHeight)("offsetX",n.offsetX)("innerWidth",n.innerWidth)("rows",n.rows)("columns",n.columns)}}function zc(e,t){if(1&e){var n=c.kc();c.jc(0,"datatable-body-row",13),c.tc("treeAction",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc(2).onTreeAction(e)})("activate",function(e){c.Qc(n);var t=c.xc().index,i=c.xc(2);return c.Nc(2).onActivate(e,i.indexes.first+t)}),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc(2),a=c.Nc(2);c.Dc("isSelected",a.getRowSelected(i))("innerWidth",r.innerWidth)("offsetX",r.offsetX)("columns",r.columns)("rowHeight",r.getRowHeight(i))("row",i)("rowIndex",r.getRowIndex(i))("expanded",r.getRowExpanded(i))("rowClass",r.rowClass)("displayCheck",r.displayCheck)("treeStatus",i&&i.treeStatus)}}function Vc(e,t){if(1&e){var n=c.kc();c.jc(0,"datatable-body-row",15),c.tc("activate",function(e){var t=c.Qc(n).index;return c.xc(4),c.Nc(2).onActivate(e,t)}),c.ic()}if(2&e){var i=t.$implicit,r=c.xc(2).$implicit,a=c.xc(2),o=c.Nc(2);c.Dc("isSelected",o.getRowSelected(i))("innerWidth",a.innerWidth)("offsetX",a.offsetX)("columns",a.columns)("rowHeight",a.getRowHeight(i))("row",i)("group",r.value)("rowIndex",a.getRowIndex(i))("expanded",a.getRowExpanded(i))("rowClass",a.rowClass)}}function Uc(e,t){if(1&e&&c.Yc(0,Vc,1,10,"datatable-body-row",14),2&e){var n=c.xc().$implicit,i=c.xc(2);c.Dc("ngForOf",n.value)("ngForTrackBy",i.rowTrackingFn)}}function $c(e,t){if(1&e){var n=c.kc();c.jc(0,"datatable-row-wrapper",10),c.tc("rowContextmenu",function(e){return c.Qc(n),c.xc(2).rowContextmenu.emit(e)}),c.Yc(1,zc,1,11,"datatable-body-row",11),c.Yc(2,Uc,1,2,"ng-template",null,12,c.Zc),c.ic()}if(2&e){var i=t.$implicit,r=t.index,a=c.Nc(3),o=c.xc(2);c.Dc("groupedRows",o.groupedRows)("innerWidth",o.innerWidth)("ngStyle",o.getRowsStyles(i))("rowDetail",o.rowDetail)("groupHeader",o.groupHeader)("offsetX",o.offsetX)("detailRowHeight",o.getDetailRowHeight(i&&i[r],r))("row",i)("expanded",o.getRowExpanded(i))("rowIndex",o.getRowIndex(i&&i[r])),c.Pb(1),c.Dc("ngIf",!o.groupedRows)("ngIfElse",a)}}function Wc(e,t){if(1&e&&c.ec(0,"datatable-summary-row",16),2&e){var n=c.xc(2);c.Dc("ngStyle",n.getBottomSummaryRowStyles())("rowHeight",n.summaryHeight)("offsetX",n.offsetX)("innerWidth",n.innerWidth)("rows",n.rows)("columns",n.columns)}}function qc(e,t){if(1&e){var n=c.kc();c.jc(0,"datatable-scroller",5),c.tc("scroll",function(e){return c.Qc(n),c.xc().onBodyScroll(e)}),c.Yc(1,Yc,1,5,"datatable-summary-row",6),c.Yc(2,$c,4,12,"datatable-row-wrapper",7),c.Yc(3,Wc,1,6,"datatable-summary-row",8),c.ic()}if(2&e){var i=c.xc();c.Dc("scrollbarV",i.scrollbarV)("scrollbarH",i.scrollbarH)("scrollHeight",i.scrollHeight)("scrollWidth",null==i.columnGroupWidths?null:i.columnGroupWidths.total),c.Pb(1),c.Dc("ngIf",i.summaryRow&&"top"===i.summaryPosition),c.Pb(1),c.Dc("ngForOf",i.temp)("ngForTrackBy",i.rowTrackingFn),c.Pb(1),c.Dc("ngIf",i.summaryRow&&"bottom"===i.summaryPosition)}}function Gc(e,t){if(1&e&&c.ec(0,"div",17),2&e){var n=c.xc();c.Dc("innerHTML",n.emptyMessage,c.Rc)}}function Xc(e,t){if(1&e){var n=c.kc();c.jc(0,"datatable-header-cell",4),c.tc("resize",function(e){var t=c.Qc(n).$implicit;return c.xc(2).onColumnResized(e,t)})("longPressStart",function(e){return c.Qc(n),c.xc(2).onLongPressStart(e)})("longPressEnd",function(e){return c.Qc(n),c.xc(2).onLongPressEnd(e)})("sort",function(e){return c.Qc(n),c.xc(2).onSort(e)})("select",function(e){return c.Qc(n),c.xc(2).select.emit(e)})("columnContextmenu",function(e){return c.Qc(n),c.xc(2).columnContextmenu.emit(e)}),c.ic()}
1if(2&e){var i=t.$implicit,r=c.xc(2);c.Dc("resizeEnabled",i.resizeable)("pressModel",i)("pressEnabled",r.reorderable&&i.draggable)("dragX",r.reorderable&&i.draggable&&i.dragging)("dragY",!1)("dragModel",i)("dragEventTarget",r.dragEventTarget)("headerHeight",r.headerHeight)("isTarget",i.isTarget)("targetMarkerTemplate",r.targetMarkerTemplate)("targetMarkerContext",i.targetMarkerContext)("column",i)("sortType",r.sortType)("sorts",r.sorts)("selectionType",r.selectionType)("sortAscendingIcon",r.sortAscendingIcon)("sortDescendingIcon",r.sortDescendingIcon)("sortUnsetIcon",r.sortUnsetIcon)("allRowsSelected",r.allRowsSelected)}}function Qc(e,t){if(1&e&&(c.jc(0,"div",2),c.Yc(1,Xc,1,19,"datatable-header-cell",3),c.ic()),2&e){var n=t.$implicit,i=c.xc();c.Sb("datatable-row-"+n.type),c.Dc("ngStyle",i._styleByGroup[n.type]),c.Pb(1),c.Dc("ngForOf",n.columns)("ngForTrackBy",i.columnTrackingFn)}}function Kc(e,t){if(1&e){var n=c.kc();c.jc(0,"datatable-header",4),c.tc("sort",function(e){return c.Qc(n),c.xc().onColumnSort(e)})("resize",function(e){return c.Qc(n),c.xc().onColumnResize(e)})("reorder",function(e){return c.Qc(n),c.xc().onColumnReorder(e)})("select",function(e){return c.Qc(n),c.xc().onHeaderSelect(e)})("columnContextmenu",function(e){return c.Qc(n),c.xc().onColumnContextmenu(e)}),c.yc(1,"async"),c.ic()}if(2&e){var i=c.xc();c.Dc("sorts",i.sorts)("sortType",i.sortType)("scrollbarH",i.scrollbarH)("innerWidth",i._innerWidth)("offsetX",c.zc(1,15,i._offsetX))("dealsWithGroup",void 0!==i.groupedRows)("columns",i._internalColumns)("headerHeight",i.headerHeight)("reorderable",i.reorderable)("targetMarkerTemplate",i.targetMarkerTemplate)("sortAscendingIcon",i.cssClasses.sortAscending)("sortDescendingIcon",i.cssClasses.sortDescending)("sortUnsetIcon",i.cssClasses.sortUnset)("allRowsSelected",i.allRowsSelected)("selectionType",i.selectionType)}}function Zc(e,t){if(1&e){var n=c.kc();c.jc(0,"datatable-footer",5),c.tc("page",function(e){return c.Qc(n),c.xc().onFooterPage(e)}),c.ic()}if(2&e){var i=c.xc();c.Dc("rowCount",i.rowCount)("pageSize",i.pageSize)("offset",i.offset)("footerHeight",i.footerHeight)("footerTemplate",i.footer)("totalMessage",i.messages.totalMessage)("pagerLeftArrowIcon",i.cssClasses.pagerLeftArrow)("pagerRightArrowIcon",i.cssClasses.pagerRightArrow)("pagerPreviousIcon",i.cssClasses.pagerPrevious)("selectedCount",i.selected.length)("selectedMessage",!!i.selectionType&&i.messages.selectedMessage)("pagerNextIcon",i.cssClasses.pagerNext)}}function Jc(e,t){}function eu(e,t){if(1&e&&c.Yc(0,Jc,0,0,"ng-template",5),2&e){var n=c.xc();c.Dc("ngTemplateOutlet",n.targetMarkerTemplate)("ngTemplateOutletContext",n.targetMarkerContext)}}function tu(e,t){if(1&e){var n=c.kc();c.jc(0,"label",6),c.jc(1,"input",7),c.tc("change",function(){c.Qc(n);var e=c.xc();return e.select.emit(!e.allRowsSelected)}),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(1),c.Dc("checked",i.allRowsSelected)}}function nu(e,t){if(1&e){var n=c.kc();c.jc(0,"span",8),c.jc(1,"span",9),c.tc("click",function(){return c.Qc(n),c.xc().onSort()}),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(1),c.Dc("innerHTML",i.name,c.Rc)}}function iu(e,t){}function ru(e,t){if(1&e&&c.Yc(0,iu,0,0,"ng-template",5),2&e){var n=c.xc();c.Dc("ngTemplateOutlet",n.column.headerTemplate)("ngTemplateOutletContext",n.cellContext)}}function au(e,t){}var ou=function(e,t,n,i,r){return{rowCount:e,pageSize:t,selectedCount:n,curPage:i,offset:r}};function su(e,t){if(1&e&&c.Yc(0,au,0,0,"ng-template",4),2&e){var n=c.xc();c.Dc("ngTemplateOutlet",n.footerTemplate.template)("ngTemplateOutletContext",c.Lc(2,ou,n.rowCount,n.pageSize,n.selectedCount,n.curPage,n.offset))}}function lu(e,t){if(1&e&&(c.jc(0,"span"),c.ad(1),c.ic()),2&e){var n=c.xc(2);c.Pb(1),c.dd(" ",null==n.selectedCount?null:n.selectedCount.toLocaleString()," ",n.selectedMessage," / ")}}function cu(e,t){if(1&e&&(c.jc(0,"div",5),c.Yc(1,lu,2,2,"span",1),c.ad(2),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngIf",n.selectedMessage),c.Pb(1),c.dd(" ",null==n.rowCount?null:n.rowCount.toLocaleString()," ",n.totalMessage," ")}}function uu(e,t){if(1&e){var n=c.kc();c.jc(0,"datatable-pager",6),c.tc("change",function(e){return c.Qc(n),c.xc().page.emit(e)}),c.ic()}if(2&e){var i=c.xc();c.Dc("pagerLeftArrowIcon",i.pagerLeftArrowIcon)("pagerRightArrowIcon",i.pagerRightArrowIcon)("pagerPreviousIcon",i.pagerPreviousIcon)("pagerNextIcon",i.pagerNextIcon)("page",i.curPage)("size",i.pageSize)("count",i.rowCount)("hidden",!i.isVisible)}}var du=function(e){return{"selected-count":e}};function hu(e,t){if(1&e){var n=c.kc();c.jc(0,"li",6),c.jc(1,"a",7),c.tc("click",function(){var e=c.Qc(n).$implicit;return c.xc().selectPage(e.number)}),c.ad(2),c.ic(),c.ic()}
1if(2&e){var i=t.$implicit,r=c.xc();c.Vb("active",i.number===r.page),c.Qb("aria-label","page "+i.number),c.Pb(2),c.cd(" ",i.text," ")}}function fu(e,t){if(1&e){var n=c.kc();c.jc(0,"datatable-body-cell",3),c.tc("activate",function(e){var t=c.Qc(n).index;return c.xc(2).onActivate(e,t)})("treeAction",function(){return c.Qc(n),c.xc(2).onTreeAction()}),c.ic()}if(2&e){var i=t.$implicit,r=c.xc(2);c.Dc("row",r.row)("group",r.group)("expanded",r.expanded)("isSelected",r.isSelected)("rowIndex",r.rowIndex)("column",i)("rowHeight",r.rowHeight)("displayCheck",r.displayCheck)("treeStatus",r.treeStatus)}}function pu(e,t){if(1&e&&(c.jc(0,"div",1),c.Yc(1,fu,1,9,"datatable-body-cell",2),c.ic()),2&e){var n=t.$implicit,i=c.xc();c.Tb("datatable-row-",n.type," datatable-row-group"),c.Dc("ngStyle",i._groupStyles[n.type]),c.Pb(1),c.Dc("ngForOf",n.columns)("ngForTrackBy",i.columnTrackingFn)}}function mu(e,t){}function gu(e,t){if(1&e&&c.Yc(0,mu,0,0,"ng-template",4),2&e){var n=c.xc(2);c.Dc("ngTemplateOutlet",n.groupHeader.template)("ngTemplateOutletContext",n.groupContext)}}function vu(e,t){if(1&e&&(c.jc(0,"div",3),c.Yc(1,gu,1,2,void 0,1),c.ic()),2&e){var n=c.xc();c.Dc("ngStyle",n.getGroupHeaderStyle()),c.Pb(1),c.Dc("ngIf",n.groupHeader&&n.groupHeader.template)}}function yu(e,t){1&e&&c.Bc(0,0,["*ngIf","(groupHeader && groupHeader.template && expanded) || !groupHeader || !groupHeader.template"])}function bu(e,t){}function _u(e,t){if(1&e&&c.Yc(0,bu,0,0,"ng-template",4),2&e){var n=c.xc(2);c.Dc("ngTemplateOutlet",n.rowDetail.template)("ngTemplateOutletContext",n.rowContext)}}function wu(e,t){if(1&e&&(c.jc(0,"div",5),c.Yc(1,_u,1,2,void 0,1),c.ic()),2&e){var n=c.xc();c.Xc("height",n.detailRowHeight,"px"),c.Pb(1),c.Dc("ngIf",n.rowDetail&&n.rowDetail.template)}}var ku=["cellTemplate"];function Cu(e,t){if(1&e){var n=c.kc();c.jc(0,"label",4),c.jc(1,"input",5),c.tc("click",function(e){return c.Qc(n),c.xc().onCheckboxChange(e)}),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(1),c.Dc("checked",i.isSelected)}}function xu(e,t){1&e&&c.ec(0,"i",11)}function Su(e,t){1&e&&c.ec(0,"i",12)}function Mu(e,t){1&e&&c.ec(0,"i",13)}function Du(e,t){if(1&e){var n=c.kc();c.jc(0,"button",7),c.tc("click",function(){return c.Qc(n),c.xc(2).onTreeAction()}),c.jc(1,"span"),c.Yc(2,xu,1,0,"i",8),c.Yc(3,Su,1,0,"i",9),c.Yc(4,Mu,1,0,"i",10),c.ic(),c.ic()}if(2&e){var i=c.xc(2);c.Dc("disabled","disabled"===i.treeStatus),c.Pb(2),c.Dc("ngIf","loading"===i.treeStatus),c.Pb(1),c.Dc("ngIf","collapsed"===i.treeStatus),c.Pb(1),c.Dc("ngIf","expanded"===i.treeStatus||"disabled"===i.treeStatus)}}function Tu(e,t){}var Eu=function(e){return{cellContext:e}};function Au(e,t){if(1&e&&c.Yc(0,Tu,0,0,"ng-template",14),2&e){var n=c.xc(2);c.Dc("ngTemplateOutlet",n.column.treeToggleTemplate)("ngTemplateOutletContext",c.Hc(2,Eu,n.cellContext))}}function Pu(e,t){if(1&e&&(c.hc(0),c.Yc(1,Du,5,4,"button",6),c.Yc(2,Au,1,4,void 0,2),c.gc()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngIf",!n.column.treeToggleTemplate),c.Pb(1),c.Dc("ngIf",n.column.treeToggleTemplate)}}function Lu(e,t){if(1&e&&c.ec(0,"span",15),2&e){var n=c.xc();c.Dc("title",n.sanitizedValue)("innerHTML",n.value,c.Rc)}}function Ou(e,t){}function Iu(e,t){if(1&e&&c.Yc(0,Ou,0,0,"ng-template",14,16,c.Zc),2&e){var n=c.xc();c.Dc("ngTemplateOutlet",n.column.cellTemplate)("ngTemplateOutletContext",n.cellContext)}}function Hu(e,t){if(1&e&&c.ec(0,"datatable-body-row",1),2&e){var n=c.xc();c.Dc("innerWidth",n.innerWidth)("offsetX",n.offsetX)("columns",n._internalColumns)("rowHeight",n.rowHeight)("row",n.summaryRow)("rowIndex",-1)}}var ju,Fu,Ru,Nu,Bu,Yu,zu,Vu,Uu,$u,Wu,qu,Gu=((qu=function(){function e(t){_classCallCheck(this,e),this.document=t,this.width=this.getWidth()}return _createClass(e,[{key:"getWidth",value:function(){var e=this.document.createElement("div");e.style.visibility="hidden",e.style.width="100px",e.style.msOverflowStyle="scrollbar",this.document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=this.document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),t-i}}]),e}()).\u0275fac=function(e){return new(e||qu)(c.qc(l.d))},qu.\u0275prov=c.Zb({token:qu,factory:qu.\u0275fac}),qu),Xu=((Wu=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"getDimensions",value:function(e){return e.getBoundingClientRect()}}]),e}()).\u0275fac=function(e){return new(e||Wu)},Wu.\u0275prov=c.Zb({token:Wu,factory:Wu.\u0275fac}),Wu),Qu=(($u=function(){function e(){_classCallCheck(this,e),this.columnInputChanges=new oe.a}
1return _createClass(e,[{key:"columnInputChanges$",get:function(){return this.columnInputChanges.asObservable()}},{key:"onInputChange",value:function(){this.columnInputChanges.next()}}]),e}()).\u0275fac=function(e){return new(e||$u)},$u.\u0275prov=c.Zb({token:$u,factory:$u.\u0275fac}),$u),Ku=((Uu=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||Uu)(c.dc(c.X))},Uu.\u0275dir=c.Yb({type:Uu,selectors:[["","ngx-datatable-footer-template",""]]}),Uu),Zu=((Vu=function(){function e(t,n){_classCallCheck(this,e),this.element=t,this.zone=n,this.isVisible=!1,this.visible=new c.s}return _createClass(e,[{key:"ngOnInit",value:function(){this.runCheck()}},{key:"ngOnDestroy",value:function(){clearTimeout(this.timeout)}},{key:"onVisibilityChange",value:function(){var e=this;this.zone.run(function(){e.isVisible=!0,e.visible.emit(!0)})}},{key:"runCheck",value:function(){var e=this,t=function t(){var n=e.element.nativeElement,i=n.offsetHeight,r=n.offsetWidth;i&&r?(clearTimeout(e.timeout),e.onVisibilityChange()):(clearTimeout(e.timeout),e.zone.runOutsideAngular(function(){e.timeout=setTimeout(function(){return t()},50)}))};this.timeout=setTimeout(function(){return t()})}}]),e}()).\u0275fac=function(e){return new(e||Vu)(c.dc(c.q),c.dc(c.J))},Vu.\u0275dir=c.Yb({type:Vu,selectors:[["","visibilityObserver",""]],hostVars:2,hostBindings:function(e,t){2&e&&c.Vb("visible",t.isVisible)},outputs:{visible:"visible"}}),Vu),Ju=((zu=function(){function e(t){_classCallCheck(this,e),this.dragX=!0,this.dragY=!0,this.dragStart=new c.s,this.dragging=new c.s,this.dragEnd=new c.s,this.isDragging=!1,this.element=t.nativeElement}return _createClass(e,[{key:"ngOnChanges",value:function(e){e.dragEventTarget&&e.dragEventTarget.currentValue&&this.dragModel.dragging&&this.onMousedown(e.dragEventTarget.currentValue)}},{key:"ngOnDestroy",value:function(){this._destroySubscription()}},{key:"onMouseup",value:function(e){this.isDragging&&(this.isDragging=!1,this.element.classList.remove("dragging"),this.subscription&&(this._destroySubscription(),this.dragEnd.emit({event:e,element:this.element,model:this.dragModel})))}},{key:"onMousedown",value:function(e){var t=this;if(e.target.classList.contains("draggable")&&(this.dragX||this.dragY)){e.preventDefault(),this.isDragging=!0;var n={x:e.clientX,y:e.clientY},i=Ho(document,"mouseup");this.subscription=i.subscribe(function(e){return t.onMouseup(e)});var r=Ho(document,"mousemove").pipe(De(i)).subscribe(function(e){return t.move(e,n)});this.subscription.add(r),this.dragStart.emit({event:e,element:this.element,model:this.dragModel})}}},{key:"move",value:function(e,t){if(this.isDragging){var n=e.clientY-t.y;this.dragX&&(this.element.style.left=e.clientX-t.x+"px"),this.dragY&&(this.element.style.top="".concat(n,"px")),this.element.classList.add("dragging"),this.dragging.emit({event:e,element:this.element,model:this.dragModel})}}},{key:"_destroySubscription",value:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}]),e}()).\u0275fac=function(e){return new(e||zu)(c.dc(c.q))},zu.\u0275dir=c.Yb({type:zu,selectors:[["","draggable",""]],inputs:{dragX:"dragX",dragY:"dragY",dragEventTarget:"dragEventTarget",dragModel:"dragModel"},outputs:{dragStart:"dragStart",dragging:"dragging",dragEnd:"dragEnd"},features:[c.Nb]}),zu),ed=((Yu=function(){function e(t,n){_classCallCheck(this,e),this.renderer=n,this.resizeEnabled=!0,this.resize=new c.s,this.resizing=!1,this.element=t.nativeElement}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this.renderer;this.resizeHandle=e.createElement("span"),e.addClass(this.resizeHandle,this.resizeEnabled?"resize-handle":"resize-handle--not-resizable"),e.appendChild(this.element,this.resizeHandle)}},{key:"ngOnDestroy",value:function(){this._destroySubscription(),this.renderer.destroyNode?this.renderer.destroyNode(this.resizeHandle):this.resizeHandle&&this.renderer.removeChild(this.renderer.parentNode(this.resizeHandle),this.resizeHandle)}},{key:"onMouseup",value:function(){this.resizing=!1,this.subscription&&!this.subscription.closed&&(this._destroySubscription(),this.resize.emit(this.element.clientWidth))}},{key:"onMousedown",value:function(e){var t=this,n=e.target.classList.contains("resize-handle"),i=this.element.clientWidth,r=e.screenX;if(n){e.stopPropagation(),this.resizing=!0;var a=Ho(document,"mouseup");this.subscription=a.subscribe(function(e){return t.onMouseup()});var o=Ho(document,"mousemove").pipe(De(a)).subscribe(function(e){return t.move(e,i,r)});this.subscription.add(o)}}},{key:"move",value:function(e,t,n){var i=t+(e.screenX-n);(!this.minWidth||i>=this.minWidth)&&(!this.maxWidth||i<=this.maxWidth)&&(this.element.style.width="".concat(i,"px"))}},{key:"_destroySubscription",value:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}]),e}()).\u0275fac=function(e){return new(e||Yu)(c.dc(c.q),c.dc(c.Q))},Yu.\u0275dir=c.Yb({type:Yu,selectors:[["","resizeable",""]],hostVars:2,hostBindings:function(e,t){1&e&&c.tc("mousedown",function(e){return t.onMousedown(e)}),2&e&&c.Vb("resizeable",t.resizeEnabled)},inputs:{resizeEnabled:"resizeEnabled",minWidth:"minWidth",maxWidth:"maxWidth"},outputs:{resize:"resize"}}),Yu),td=((Bu=function(){function e(t,n){_classCallCheck(this,e),this.document=n,this.reorder=new c.s,this.targetChanged=new c.s,this.differ=t.find({}).create()}return _createClass(e,[{key:"ngAfterContentInit",value:function(){this.updateSubscriptions(),this.draggables.changes.subscribe(this.updateSubscriptions.bind(this))}}
1,{key:"ngOnDestroy",value:function(){this.draggables.forEach(function(e){e.dragStart.unsubscribe(),e.dragging.unsubscribe(),e.dragEnd.unsubscribe()})}},{key:"updateSubscriptions",value:function(){var e=this,t=this.differ.diff(this.createMapDiffs());if(t){var n=function(e){var t=e.previousValue;t&&(t.dragStart.unsubscribe(),t.dragging.unsubscribe(),t.dragEnd.unsubscribe())};t.forEachAddedItem(function(t){var i=t.currentValue,r=t.previousValue;n({previousValue:r}),i&&(i.dragStart.subscribe(e.onDragStart.bind(e)),i.dragging.subscribe(e.onDragging.bind(e)),i.dragEnd.subscribe(e.onDragEnd.bind(e)))}),t.forEachRemovedItem(n)}}},{key:"onDragStart",value:function(){this.positions={};var e,t=0,n=_createForOfIteratorHelper(this.draggables.toArray());try{for(n.s();!(e=n.n()).done;){var i=e.value,r=i.element,a=parseInt(r.offsetLeft.toString(),0);this.positions[i.dragModel.prop]={left:a,right:a+parseInt(r.offsetWidth.toString(),0),index:t++,element:r}}}catch(o){n.e(o)}finally{n.f()}}},{key:"onDragging",value:function(e){var t=e.model,n=e.event,i=this.positions[t.prop],r=this.isTarget(t,n);r?this.lastDraggingIndex!==r.i&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,newIndex:r.i,initialIndex:i.index}),this.lastDraggingIndex=r.i):this.lastDraggingIndex!==i.index&&(this.targetChanged.emit({prevIndex:this.lastDraggingIndex,initialIndex:i.index}),this.lastDraggingIndex=i.index)}},{key:"onDragEnd",value:function(e){var t=e.element,n=e.model,i=e.event,r=this.positions[n.prop],a=this.isTarget(n,i);a&&this.reorder.emit({prevIndex:r.index,newIndex:a.i,model:n}),this.lastDraggingIndex=void 0,t.style.left="auto"}},{key:"isTarget",value:function(e,t){var n=this,i=0,r=this.document.elementsFromPoint(t.x||t.clientX,t.y||t.clientY),a=function(t){var a=n.positions[t];if(e.prop!==t&&r.find(function(e){return e===a.element}))return{v:{pos:a,i:i}};i++};for(var o in this.positions){var s=a(o);if("object"==typeof s)return s.v}}},{key:"createMapDiffs",value:function(){return this.draggables.toArray().reduce(function(e,t){return e[t.dragModel.$$id]=t,e},{})}}]),e}()).\u0275fac=function(e){return new(e||Bu)(c.dc(c.C),c.dc(l.d))},Bu.\u0275dir=c.Yb({type:Bu,selectors:[["","orderable",""]],contentQueries:function(e,t,n){var i;1&e&&c.Wb(n,Ju,5),2&e&&c.Mc(i=c.uc())&&(t.draggables=i)},outputs:{reorder:"reorder",targetChanged:"targetChanged"}}),Bu),nd=((Nu=function(){function e(){_classCallCheck(this,e),this.pressEnabled=!0,this.duration=500,this.longPressStart=new c.s,this.longPressing=new c.s,this.longPressEnd=new c.s,this.mouseX=0,this.mouseY=0}return _createClass(e,[{key:"press",get:function(){return this.pressing}},{key:"isLongPress",get:function(){return this.isLongPressing}},{key:"onMouseDown",value:function(e){var t=this;if(1===e.which&&this.pressEnabled&&!e.target.classList.contains("resize-handle")){this.mouseX=e.clientX,this.mouseY=e.clientY,this.pressing=!0,this.isLongPressing=!1;var n=Ho(document,"mouseup");this.subscription=n.subscribe(function(e){return t.onMouseup()}),this.timeout=setTimeout(function(){t.isLongPressing=!0,t.longPressStart.emit({event:e,model:t.pressModel}),t.subscription.add(Ho(document,"mousemove").pipe(De(n)).subscribe(function(e){return t.onMouseMove(e)})),t.loop(e)},this.duration),this.loop(e)}}},{key:"onMouseMove",value:function(e){if(this.pressing&&!this.isLongPressing){var t=Math.abs(e.clientX-this.mouseX)>10,n=Math.abs(e.clientY-this.mouseY)>10;(t||n)&&this.endPress()}}},{key:"loop",value:function(e){var t=this;this.isLongPressing&&(this.timeout=setTimeout(function(){t.longPressing.emit({event:e,model:t.pressModel}),t.loop(e)},50))}},{key:"endPress",value:function(){clearTimeout(this.timeout),this.isLongPressing=!1,this.pressing=!1,this._destroySubscription(),this.longPressEnd.emit({model:this.pressModel})}},{key:"onMouseup",value:function(){this.endPress()}},{key:"ngOnDestroy",value:function(){this._destroySubscription()}},{key:"_destroySubscription",value:function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0)}}]),e}()).\u0275fac=function(e){return new(e||Nu)},Nu.\u0275dir=c.Yb({type:Nu,selectors:[["","long-press",""]],hostVars:4,hostBindings:function(e,t){1&e&&c.tc("mousedown",function(e){return t.onMouseDown(e)}),2&e&&c.Vb("press",t.press)("longpress",t.isLongPress)},inputs:{pressEnabled:"pressEnabled",duration:"duration",pressModel:"pressModel"},outputs:{longPressStart:"longPressStart",longPressing:"longPressing",longPressEnd:"longPressEnd"}}),Nu),id=((Ru=function(){function e(t,n,i){_classCallCheck(this,e),this.ngZone=t,this.renderer=i,this.scrollbarV=!1,this.scrollbarH=!1,this.scroll=ne
1w c.s,this.scrollYPos=0,this.scrollXPos=0,this.prevScrollYPos=0,this.prevScrollXPos=0,this._scrollEventListener=null,this.element=n.nativeElement}return _createClass(e,[{key:"ngOnInit",value:function(){if(this.scrollbarV||this.scrollbarH){var e=this.renderer;this.parentElement=e.parentNode(e.parentNode(this.element)),this._scrollEventListener=this.onScrolled.bind(this),this.parentElement.addEventListener("scroll",this._scrollEventListener)}}},{key:"ngOnDestroy",value:function(){this._scrollEventListener&&(this.parentElement.removeEventListener("scroll",this._scrollEventListener),this._scrollEventListener=null)}},{key:"setOffset",value:function(e){this.parentElement&&(this.parentElement.scrollTop=e)}},{key:"onScrolled",value:function(e){var t=this,n=e.currentTarget;requestAnimationFrame(function(){t.scrollYPos=n.scrollTop,t.scrollXPos=n.scrollLeft,t.updateOffset()})}},{key:"updateOffset",value:function(){var e;this.scrollYPos<this.prevScrollYPos?e="down":this.scrollYPos>this.prevScrollYPos&&(e="up"),this.scroll.emit({direction:e,scrollYPos:this.scrollYPos,scrollXPos:this.scrollXPos}),this.prevScrollYPos=this.scrollYPos,this.prevScrollXPos=this.scrollXPos}}]),e}()).\u0275fac=function(e){return new(e||Ru)(c.dc(c.J),c.dc(c.q),c.dc(c.Q))},Ru.\u0275cmp=c.Xb({type:Ru,selectors:[["datatable-scroller"]],hostAttrs:[1,"datatable-scroll"],hostVars:4,hostBindings:function(e,t){2&e&&c.Xc("height",t.scrollHeight,"px")("width",t.scrollWidth,"px")},inputs:{scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth"},outputs:{scroll:"scroll"},ngContentSelectors:Nc,decls:1,vars:0,template:function(e,t){1&e&&(c.Cc(),c.Bc(0))},encapsulation:2,changeDetection:0}),Ru),rd=((Fu=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||Fu)(c.dc(c.X))},Fu.\u0275dir=c.Yb({type:Fu,selectors:[["","ngx-datatable-group-header-template",""]]}),Fu),ad=((ju=function(){function e(){_classCallCheck(this,e),this.rowHeight=0,this.toggle=new c.s}return _createClass(e,[{key:"template",get:function(){return this._templateInput||this._templateQuery}},{key:"toggleExpandGroup",value:function(e){this.toggle.emit({type:"group",value:e})}},{key:"expandAllGroups",value:function(){this.toggle.emit({type:"all",value:!0})}},{key:"collapseAllGroups",value:function(){this.toggle.emit({type:"all",value:!1})}}]),e}()).\u0275fac=function(e){return new(e||ju)},ju.\u0275dir=c.Yb({type:ju,selectors:[["ngx-datatable-group-header"]],contentQueries:function(e,t,n){var i;1&e&&c.Wb(n,rd,7,c.X),2&e&&c.Mc(i=c.uc())&&(t._templateQuery=i.first)},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),ju);function od(){return""}function sd(e){return null==e?od:"number"==typeof e?ld:-1!==e.indexOf(".")?ud:cd}function ld(e,t){if(null==e)return"";if(!e||null==t)return e;var n=e[t];return null==n?"":n}function cd(e,t){if(null==e)return"";if(!e||!t)return e;var n=e[t];return null==n?"":n}function ud(e,t){if(null==e)return"";if(!e||!t)return e;var n=e[t];if(void 0!==n)return n;n=e;var i=t.split(".");if(i.length)for(var r=0;r<i.length;r++)if(null==(n=n[i[r]]))return"";return n}function dd(e){return e&&function(t){return sd(e)(t,e)}}function hd(e,t,n){if(t&&n){var i={},r=e.length,a=null;i[0]=new fd;for(var o=e.reduce(function(e,t){var i=n(t);return-1===e.indexOf(i)&&e.push(i),e},[]),s=0;s<r;s++)i[n(e[s])]=new fd(e[s]);for(var l=0;l<r;l++){var c=0,u=t((a=i[n(e[l])]).row);u&&o.indexOf(u)>-1&&(c=u),a.parent=i[c],a.row.level=a.parent.row.level+1,a.parent.children.push(a)}var d=[];return i[0].flatten(function(){d=[].concat(_toConsumableArray(d),[this.row])},!0),d}return e}var fd=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,e),t||(t={level:-1,treeStatus:"expanded"}),this.row=t,this.parent=null,this.children=[]}return _createClass(e,[{key:"flatten",value:function(e,t){if("expanded"===this.row.treeStatus)for(var n=0,i=this.children.length;n<i;n++){var r=this.children[n];e.apply(r,Array.prototype.slice.call(arguments,2)),t&&r.flatten.apply(r,arguments)}}}]),e}();
1function pd(e){return(e=(e=(e=e.replace(/[^a-zA-Z0-9 ]/g," ")).replace(/([a-z](?=[A-Z]))/g,"$1 ")).replace(/([^a-zA-Z0-9 ])|^[0-9]+/g,"").trim().toLowerCase()).replace(/([ 0-9]+)([a-zA-Z])/g,function(e,t,n){return t.trim()+n.toUpperCase()})}function md(e){if(e){var t,n=!1,i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.$$id||(r.$$id=("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4)),gd(r.prop)&&r.name&&(r.prop=pd(r.name)),r.$$valueGetter||(r.$$valueGetter=sd(r.prop)),!gd(r.prop)&&gd(r.name)&&(r.name=String(r.prop).replace(/([A-Z])/g,function(e){return" ".concat(e)}).replace(/^./,function(e){return e.toUpperCase()})),gd(r.prop)&&gd(r.name)&&(r.name=""),r.hasOwnProperty("resizeable")||(r.resizeable=!0),r.hasOwnProperty("sortable")||(r.sortable=!0),r.hasOwnProperty("draggable")||(r.draggable=!0),r.hasOwnProperty("canAutoResize")||(r.canAutoResize=!0),r.hasOwnProperty("width")||(r.width=150),r.hasOwnProperty("isTreeColumn")&&r.isTreeColumn&&!n?n=!0:r.isTreeColumn=!1}}catch(a){i.e(a)}finally{i.f()}}}function gd(e){return null==e}var vd,yd,bd,_d,wd,kd,Cd,xd=function(e){return e.standard="standard",e.flex="flex",e.force="force",e}({}),Sd=function(e){return e.single="single",e.multi="multi",e.multiClick="multiClick",e.cell="cell",e.checkbox="checkbox",e}({}),Md=function(e){return e.single="single",e.multi="multi",e}({}),Dd=function(e){return e.header="header",e.body="body",e}({}),Td=((Cd=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||Cd)(c.dc(c.X))},Cd.\u0275dir=c.Yb({type:Cd,selectors:[["","ngx-datatable-header-template",""]]}),Cd),Ed=((kd=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||kd)(c.dc(c.X))},kd.\u0275dir=c.Yb({type:kd,selectors:[["","ngx-datatable-cell-template",""]]}),kd),Ad=((wd=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||wd)(c.dc(c.X))},wd.\u0275dir=c.Yb({type:wd,selectors:[["","ngx-datatable-tree-toggle",""]]}),wd),Pd=((_d=function(){function e(t){_classCallCheck(this,e),this.columnChangesService=t,this.isFirstChange=!0}return _createClass(e,[{key:"cellTemplate",get:function(){return this._cellTemplateInput||this._cellTemplateQuery}},{key:"headerTemplate",get:function(){return this._headerTemplateInput||this._headerTemplateQuery}},{key:"treeToggleTemplate",get:function(){return this._treeToggleTemplateInput||this._treeToggleTemplateQuery}},{key:"ngOnChanges",value:function(){this.isFirstChange?this.isFirstChange=!1:this.columnChangesService.onInputChange()}}]),e}()).\u0275fac=function(e){return new(e||_d)(c.dc(Qu))},_d.\u0275dir=c.Yb({type:_d,selectors:[["ngx-datatable-column"]],contentQueries:function(e,t,n){var i;1&e&&(c.Wb(n,Ed,7,c.X),c.Wb(n,Td,7,c.X),c.Wb(n,Ad,7,c.X)),2&e&&(c.Mc(i=c.uc())&&(t._cellTemplateQuery=i.first),c.Mc(i=c.uc())&&(t._headerTemplateQuery=i.first),c.Mc(i=c.uc())&&(t._treeToggleTemplateQuery=i.first))},inputs:{name:"name",prop:"prop",frozenLeft:"frozenLeft",frozenRight:"frozenRight",flexGrow:"flexGrow",resizeable:"resizeable",comparator:"comparator",pipe:"pipe",sortable:"sortable",draggable:"draggable",canAutoResize:"canAutoResize",minWidth:"minWidth",width:"width",maxWidth:"maxWidth",checkboxable:"checkboxable",headerCheckboxable:"headerCheckboxable",headerClass:"headerClass",cellClass:"cellClass",isTreeColumn:"isTreeColumn",treeLevelIndent:"treeLevelIndent",summaryFunc:"summaryFunc",summaryTemplate:"summaryTemplate",_cellTemplateInput:["cellTemplate","_cellTemplateInput"],_headerTemplateInput:["headerTemplate","_headerTemplateInput"],_treeToggleTemplateInput:["treeToggleTemplate","_treeToggleTemplateInput"]},features:[c.Nb]}),_d),Ld=((bd=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||bd)(c.dc(c.X))},bd.\u0275dir=c.Yb({type:bd,selectors:[["","ngx-datatable-row-detail-template",""]]}),bd),Od=((yd=function(){function e(){_classCallCheck(this,e),this.rowHeight=0,this.toggle=new c.s}return _createClass(e,[{key:"template",get:function(){return this._templateInput||this._templateQuery}},{key:"toggleExpandRow",value:function(e){this.toggle.emit({type:"row",value:e})}},{key:"expandAllRows",value:function(){this.toggle.emit({type:"all",value:!0})}},{key:"collapseAllRows",value:function(){this.toggle.emit({type:"all",value:!1})}}]),e}()).\u0275fac=function(e){return new(e||yd)},yd.\u0275dir=c.Yb({type:yd,selectors:[["ngx-datatable-row-detail"]],contentQueries:function(e,t,n){var i;1&e&&c.Wb(n,Ld,7,c.X),2&e&&c.Mc(i=c.uc())&&(t._templateQuery=i.first)},inputs:{rowHeight:"rowHeight",_templateInput:["template","_templateInput"]},outputs:{toggle:"toggle"}}),yd),Id=((vd=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"template",get:function(){return this._templateInput||this._templateQuery}}]),e}()).\u0275fac=function(e){return new(e||vd)},vd.\u0275dir=c.Yb({type:vd,selectors:[["ngx-datatable-footer"]],contentQueries:function(e,t,n){var i;1&e&&c.Wb(n,Ku,5,c.X),2&e&&c.Mc(i=c.uc())&&(t._templateQuery=i.first)},inputs:{footerHeight:"footerHeight",totalMessage:"totalMessage",selectedMessage:"selectedMessage",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",_templateInput:["template","_templateInput"]}}),vd);
1function Hd(e){var t={left:[],center:[],right:[]};if(e){var n,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.frozenLeft?t.left.push(r):r.frozenRight?t.right.push(r):t.center.push(r)}}catch(a){i.e(a)}finally{i.f()}}return t}function jd(e,t){return{left:Fd(e.left),center:Fd(e.center),right:Fd(e.right),total:Math.floor(Fd(t))}}function Fd(e,t){var n=0;if(e){var i,r=_createForOfIteratorHelper(e);try{for(r.s();!(i=r.n()).done;){var a=i.value;n+=parseFloat(t&&a[t]?a[t]:a.width)}}catch(o){r.e(o)}finally{r.f()}}return n}function Rd(e){var t=[],n=Hd(e);return t.push({type:"left",columns:n.left}),t.push({type:"center",columns:n.center}),t.push({type:"right",columns:n.right}),t}var Nd,Bd,Yd,zd,Vd=function(){function e(){_classCallCheck(this,e),this.treeArray=[]}return _createClass(e,[{key:"clearCache",value:function(){this.treeArray=[]}},{key:"initCache",value:function(e){var t=e.rows,n=e.rowHeight,i=e.detailRowHeight,r=e.externalVirtual,a=e.rowCount,o=e.rowIndexes,s=e.rowExpansions,l="function"==typeof n,c="function"==typeof i;if(!l&&isNaN(n))throw new Error("Row Height cache initialization failed. Please ensure that 'rowHeight' is a\n valid number or function value: (".concat(n,") when 'scrollbarV' is enabled."));if(!c&&isNaN(i))throw new Error("Row Height cache initialization failed. Please ensure that 'detailRowHeight' is a\n valid number or function value: (".concat(i,") when 'scrollbarV' is enabled."));var u=r?a:t.length;this.treeArray=new Array(u);for(var d=0;d<u;++d)this.treeArray[d]=0;for(var h=0;h<u;++h){var f=t[h],p=n;l&&(p=n(f));var m=s.has(f);f&&m&&(p+=c?i(f,o.get(f)):i),this.update(h,p)}}},{key:"getRowIndex",value:function(e){return 0===e?0:this.calcRowIndex(e)}},{key:"update",value:function(e,t){if(!this.treeArray.length)throw new Error("Update at index ".concat(e," with value ").concat(t," failed:\n Row Height cache not initialized."));var n=this.treeArray.length;for(e|=0;e<n;)this.treeArray[e]+=t,e|=e+1}},{key:"query",value:function(e){if(!this.treeArray.length)throw new Error("query at index ".concat(e," failed: Fenwick tree array not initialized."));var t=0;for(e|=0;e>=0;)t+=this.treeArray[e],e=(e&e+1)-1;return t}},{key:"queryBetween",value:function(e,t){return this.query(t)-this.query(e-1)}},{key:"calcRowIndex",value:function(e){if(!this.treeArray.length)return 0;for(var t=-1,n=this.treeArray.length,i=Math.pow(2,n.toString(2).length-1);0!==i;i>>=1){var r=t+i;r<n&&e>=this.treeArray[r]&&(e-=this.treeArray[r],t=r)}return t+1}}]),e}(),Ud={},$d="undefined"!=typeof document?document.createElement("div").style:void 0,Wd=(Nd="undefined"!=typeof window?window.getComputedStyle(document.documentElement,""):void 0,Bd=void 0!==Nd?Array.prototype.slice.call(Nd).join("").match(/-(moz|webkit|ms)-/):null,Yd=null!==Bd?Bd[1]:void 0,(zd=void 0!==Yd?"WebKit|Moz|MS|O".match(new RegExp("("+Yd+")","i"))[1]:void 0)?{dom:zd,lowercase:Yd,css:"-".concat(Yd,"-"),js:Yd[0].toUpperCase()+Yd.substr(1)}:void 0);function qd(e){var t=pd(e);return Ud[t]||(void 0!==Wd&&void 0!==$d[Wd.css+e]?Ud[t]=Wd.css+e:void 0!==$d[e]&&(Ud[t]=e)),Ud[t]}var Gd="undefined"!=typeof window?qd("transform"):void 0,Xd="undefined"!=typeof window?qd("backfaceVisibility"):void 0,Qd="undefined"!=typeof window?!!qd("transform"):void 0,Kd="undefined"!=typeof window?!!qd("perspective"):void 0,Zd="undefined"!=typeof window?window.navigator.userAgent:"Chrome",Jd=/Safari\//.test(Zd)&&!/Chrome\//.test(Zd);function eh(e,t,n){void 0!==Gd&&Qd?!Jd&&Kd?(e[Gd]="translate3d(".concat(t,"px, ").concat(n,"px, 0)"),e[Xd]="hidden"):e[pd(Gd)]="translate(".concat(t,"px, ").concat(n,"px)"):(e.top="".concat(n,"px"),e.left="".concat(t,"px"))}var th,nh,ih=((nh=function(){function e(t){var n=this;_classCallCheck(this,e),this.cd=t,this.selected=[],this.scroll=new c.s,this.page=new c.s,this.activate=new c.s,this.select=new c.s,this.detailToggle=new c.s,this.rowContextmenu=new c.s(!1),this.treeAction=new c.s,this.rowHeightsCache=new Vd,this.temp=[],this.offsetY=0,this.indexes={},this.rowIndexes=new WeakMap,this.rowExpansions=[],this.getDetailRowHeight=function(e,t){if(!n.rowDetail)return 0;var i=n.rowDetail.rowHeight;return"function"==typeof i?i(e,t):i},this.rowTrackingFn=function(e,t){var i=n.getRowIndex(t);return n.trackByProp?t[n.trackByProp]:i}}return _createClass(e,[{key:"pageSize",get:function(){return this._pageSize},set:function(e){this._pageSize=e,this.recalcLayout()}},{key:"rows",get:function(){return this._rows},set:function(e){this._rows=e,this.recalcLayout()}},{key:"columns",get:function(){return this._columns},set:function(e){this._columns=e;var t=Hd(e);this.columnGroupWidths=jd(t,e)}},{key:"offset",get:function(){return this._offset},set:function(e){this._offset=e,(!this.scrollbarV||this.scrollbarV&&!this.virtualization)&&this.recalcLayout()}},{key:"rowCount",get:function(){return this._rowCount},set:function(e){this._rowCount=e,this.recalcLayout()}},{key:"bodyWidth",get:function(){return this.scrollbarH?this.innerWidth+"px":"100%"}},{key:"bodyHeight",get:function(){return this._bodyHeight},set:function(e){this._bodyHeight=this.scrollbarV?e+"px":"auto",this.recalcLayout()}},{key:"selectEnabled",get:function(){return!!this.selectionType}},{key:"scrollHeight",get:function(){if(this.scrollbarV&&this.virtualization&&this.rowCount)return this.rowHeightsCache.query(this.rowCount-1)}},{key:"ngOnInit",value:function(){var e=this;this.rowDetail&&(this.listener=this.rowDetail.toggle.subscribe(function(t){var n=t.type,i=t.value;"row"===n&&e.toggleRowExpansion(i),"all"===n&&e.toggleAllRows(i),e.updateIndexes(),e.updateRows(),e.cd.markForCheck()})),this.groupHeader&&(this.listener=this.groupHeader.toggle.subscribe(function(t){var n=t.type,i=t.value;"group"===n&&e.toggleRowExpansion(i),"all"===n&&e.toggleAllRows(i),e.updateIndexes(),e.updateRows(),e.cd.markForCheck()}))}},{key:"ngOnDestroy",value:function(){(this.rowDetail||this.groupHeader)&&this.listener.unsubscribe()}},{key:"updateOffsetY",value:function(e){this.scroller&&(this.scrollbarV&&this.virtualization&&e?e=this.rowHeightsCache.query(this.pageSize*e-1):this.scrollbarV&&!this.virtualization&&(e=0),this.scroller.setOffset(e||0
1))}},{key:"onBodyScroll",value:function(e){var t=e.scrollYPos,n=e.scrollXPos;this.offsetY===t&&this.offsetX===n||this.scroll.emit({offsetY:t,offsetX:n}),this.offsetY=t,this.offsetX=n,this.updateIndexes(),this.updatePage(e.direction),this.updateRows()}},{key:"updatePage",value:function(e){var t=this.indexes.first/this.pageSize;"up"===e?t=Math.ceil(t):"down"===e&&(t=Math.floor(t)),void 0===e||isNaN(t)||this.page.emit({offset:t})}},{key:"updateRows",value:function(){var e=this,t=this.indexes,n=t.first,i=t.last,r=n,a=0,o=[];if(this.groupedRows)for(1===this.groupedRows.length&&this.groupedRows[0].value.length;r<i&&r<this.groupedRows.length;){var s=this.groupedRows[r];this.rowIndexes.set(s,r),s.value&&s.value.forEach(function(t,n){e.rowIndexes.set(t,"".concat(r,"-").concat(n))}),o[a]=s,a++,r++}else for(;r<i&&r<this.rowCount;){var l=this.rows[r];l&&(this.rowIndexes.set(l,r),o[a]=l),a++,r++}this.temp=o}},{key:"getRowHeight",value:function(e){return"function"==typeof this.rowHeight?this.rowHeight(e):this.rowHeight}},{key:"getGroupHeight",value:function(e){var t=0;if(e.value)for(var n=0;n<e.value.length;n++)t+=this.getRowAndDetailHeight(e.value[n]);return t}},{key:"getRowAndDetailHeight",value:function(e){var t=this.getRowHeight(e);return this.getRowExpanded(e)&&(t+=this.getDetailRowHeight(e)),t}},{key:"getRowsStyles",value:function(e){var t={};if(this.groupedRows&&(t.width=this.columnGroupWidths.total),this.scrollbarV&&this.virtualization){var n=0;if(this.groupedRows){var i=e[e.length-1];n=i?this.getRowIndex(i):0}else n=this.getRowIndex(e);eh(t,0,this.rowHeightsCache.query(n-1))}return t}},{key:"getBottomSummaryRowStyles",value:function(){if(!this.scrollbarV||!this.rows||!this.rows.length)return null;var e={position:"absolute"};return eh(e,0,this.rowHeightsCache.query(this.rows.length-1)),e}},{key:"hideIndicator",value:function(){var e=this;setTimeout(function(){return e.loadingIndicator=!1},500)}},{key:"updateIndexes",value:function(){var e=0,t=0;if(this.scrollbarV)if(this.virtualization){var n=parseInt(this.bodyHeight,0);e=this.rowHeightsCache.getRowIndex(this.offsetY),t=this.rowHeightsCache.getRowIndex(n+this.offsetY)+1}else e=0,t=this.rowCount;else this.externalPaging||(e=Math.max(this.offset*this.pageSize,0)),t=Math.min(e+this.pageSize,this.rowCount);this.indexes={first:e,last:t}}},{key:"refreshRowHeightCache",value:function(){if(this.scrollbarV&&(!this.scrollbarV||this.virtualization)&&(this.rowHeightsCache.clearCache(),this.rows&&this.rows.length)){var e,t=new Set,n=_createForOfIteratorHelper(this.rows);try{for(n.s();!(e=n.n()).done;){var i=e.value;this.getRowExpanded(i)&&t.add(i)}}catch(r){n.e(r)}finally{n.f()}this.rowHeightsCache.initCache({rows:this.rows,rowHeight:this.rowHeight,detailRowHeight:this.getDetailRowHeight,externalVirtual:this.scrollbarV&&this.externalPaging,rowCount:this.rowCount,rowIndexes:this.rowIndexes,rowExpansions:t})}}},{key:"getAdjustedViewPortIndex",value:function(){var e=this.indexes.first;return this.scrollbarV&&this.virtualization&&this.rowHeightsCache.query(e-1)<=this.offsetY?e-1:e}},{key:"toggleRowExpansion",value:function(e){var t=this.getAdjustedViewPortIndex(),n=this.getRowExpandedIdx(e,this.rowExpansions),i=n>-1;if(this.scrollbarV&&this.virtualization){var r=this.getDetailRowHeight(e)*(i?-1:1),a=this.getRowIndex(e);this.rowHeightsCache.update(a,r)}i?this.rowExpansions.splice(n,1):this.rowExpansions.push(e),this.detailToggle.emit({rows:[e],currentIndex:t})}},{key:"toggleAllRows",value:function(e){this.rowExpansions=[];var t=this.getAdjustedViewPortIndex();if(e){var n,i=_createForOfIteratorHelper(this.rows);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.rowExpansions.push(r)}}catch(a){i.e(a)}finally{i.f()}}this.scrollbarV&&this.recalcLayout(),this.detailToggle.emit({rows:this.rows,currentIndex:t})}},{key:"recalcLayout",value:function(){this.refreshRowHeightCache(),this.updateIndexes(),this.updateRows()}},{key:"columnTrackingFn",value:function(e,t){return t.$$id}},{key:"stylesByGroup",value:function(e){var t=this.columnGroupWidths,n=this.offsetX,i={width:"".concat(t[e],"px")};if("left"===e)eh(i,n,0);else if("right"===e){var r=parseInt(this.innerWidth+"",0);eh(i,-1*(t.total-r-n),0)}return i}},{key:"getRowExpanded",value:function(e){if(0===this.rowExpansions.length&&this.groupExpansionDefault){var t,n=_createForOfIteratorHelper(this.groupedRows);try{for(n.s();!(t=n.n()).done;){var i=t.value;this.rowExpansions.push(i)}}catch(r){n.e(r)}finally{n.f()}}return this.getRowExpandedIdx(e,this.rowExpansions)>-1}},{key:"getRowExpandedIdx",value:function(e,t){var n=this;if(!t||!t.length)return-1;var i=this.rowIdentity(e);return t.findIndex(function(e){return n.rowIdentity(e)===i})}},{key:"getRowIndex",value:function(e){return this.rowIndexes.get(e)||0}},{key:"onTreeAction",value:function(e){this.treeAction.emit({row:e})}}]),e}()).\u0275fac=function(e){return new(e||nh)(c.dc(c.j))},nh.\u0275cmp=c.Xb({type:nh,selectors:[["datatable-body"]],viewQuery:function(e,t){var n;1&e&&c.ed(id,5),2&e&&c.Mc(n=c.uc())&&(t.scroller=n.first)},hostAttrs:[1,"datatable-body"],hostVars:4,hostBindings:function(e,t){2&e&&c.Xc("width",t.bodyWidth)("height",t.bodyHeight)},inputs:{selected:"selected",pageSize:"pageSize",rows:"rows",columns:"columns",offset:"offset",rowCount:"rowCount",bodyHeight:"bodyHeight",offsetX:"offsetX",loadingIndicator:"loadingIndicator",scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",externalPaging:"externalPaging",rowHeight:"rowHeight",emptyMessage:"emptyMessage",selectionType:"selectionType",rowIdentity:"rowIdentity",rowDetail:"rowDetail",groupHeader:"groupHeader",selectCheck:"selectCheck",displayCheck:"displayCheck",trackByProp:"trackByProp",rowClass:"rowClass",groupedRows:"groupedRows",groupExpansionDefault:"groupExpansionDefault",innerWidth:"innerWidth",groupRowsBy:"groupRowsBy",virtualization:"virtualization",summaryRow:"summaryRow",summaryPosition:"summaryPosition",summaryHeight:"summaryHeight"},outputs:{scroll:"scroll",page:"page",activate:"activate",select:"select",detailToggle:"detailToggle",rowContextmenu:"rowContextmenu",treeAction:"treeAction"},decls:5,vars:9,consts:[[4,"ngIf"],[3,"selected","rows","selectCheck","selectEnabled","selectionType","rowIdentity","select","activate"],["selector",""],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll",4,"ngIf"],["class","empty-row",3,"innerHTML",4,"ngIf"],[3,"scrollbarV","scrollbarH","scrollHeight","scrollWidth","scroll"],[3,"rowHeight","offsetX","innerWidth","rows","columns",4,"ngIf"],[3,"groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex","rowContextmenu",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns",4,"ngIf"],[3,"rowHeight","offsetX","innerWidth","rows","columns"],[3,"groupedRows","innerWidth","ngStyle","rowDetail","groupHeader","offsetX","detailRowHeight","row","expanded","rowIndex","rowContextmenu"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate",4,"ngIf","ngIfElse"],["groupedRowsTemplate",""],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","rowIndex","expanded","rowClass","displayCheck","treeStatus","treeAction","activate"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass","activate",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",3,"isSelected","innerWidth","offsetX","columns","rowHeight","row","group","rowIndex","expanded","rowClass","activate"],[3,"ngStyle","rowHeight","offsetX","innerWidth","rows","columns"],[1,"empty-row",3,"innerHTML"]],template:function(e,t){1&e&&(c.Yc(0,Bc,1,0,"datatable-progress",0),c.jc(1,"datatable-selection",1,2),c.tc("select",function(e){return t.select.emit(e)})("activate",function(e){return t.activate.emit(e)}),c.Yc(3,qc,4,8,"datatable-scroller",3),c.Yc(4,Gc,1,1,"div",4),c.ic()),2&e&&(c.Dc("ngIf",t.loadingIndicator),c.Pb(1),c.Dc("selected",t.selected)("rows",t.rows)("selectCheck",t.selectCheck)("selectEnabled",t.selectEnabled)("selectionType",t.selectionType)("rowIdentity",t.rowIdentity),c.Pb(2),c.Dc("ngIf",null==t.rows?null:t.rows.length),c.Pb(1),c.Dc("ngIf",!(null!=t.rows&&t.rows.length||t.loadingIndicator)))},directives:function(){return[l.m,Eh,kh,id,l.l,Ih,Sh,l.n,xh]},encapsulation:2,changeDetection:0}),nh),rh=((th=function(){function e(t){_classCallCheck(this,e),this.cd=t,this.sort=new c.s,this.reorder=new c.s,this.resize=new c.s,this.select=new c.s,this.columnContextmenu=new c.s(!1),this._columnGroupWidths={total:100},this._styleByGroup={left:{},center:{},right:{}},this.destroyed=!1}return _createClass(e,[{key:"innerWidth",get:function(){return this._innerWidth}
1,set:function(e){var t=this;this._innerWidth=e,setTimeout(function(){if(t._columns){var e=Hd(t._columns);t._columnGroupWidths=jd(e,t._columns),t.setStylesByGroup()}})}},{key:"headerHeight",get:function(){return this._headerHeight},set:function(e){this._headerHeight="auto"!==e?"".concat(e,"px"):e}},{key:"columns",get:function(){return this._columns},set:function(e){var t=this;this._columns=e;var n=Hd(e);this._columnsByPin=Rd(e),setTimeout(function(){t._columnGroupWidths=jd(n,e),t.setStylesByGroup()})}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this.setStylesByGroup()}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}},{key:"onLongPressStart",value:function(e){var t=e.event;e.model.dragging=!0,this.dragEventTarget=t}},{key:"onLongPressEnd",value:function(e){var t=this,n=e.event,i=e.model;this.dragEventTarget=n,setTimeout(function(){var e=t._columns.find(function(e){return e.$$id===i.$$id});e&&(e.dragging=!1)},5)}},{key:"headerWidth",get:function(){return this.scrollbarH?this.innerWidth+"px":"100%"}},{key:"trackByGroups",value:function(e,t){return t.type}},{key:"columnTrackingFn",value:function(e,t){return t.$$id}},{key:"onColumnResized",value:function(e,t){e<=t.minWidth?e=t.minWidth:e>=t.maxWidth&&(e=t.maxWidth),this.resize.emit({column:t,prevValue:t.width,newValue:e})}},{key:"onColumnReordered",value:function(e){var t=e.prevIndex,n=e.newIndex,i=e.model,r=this.getColumn(n);r.isTarget=!1,r.targetMarkerContext=void 0,this.reorder.emit({column:i,prevValue:t,newValue:n})}},{key:"onTargetChanged",value:function(e){var t=e.prevIndex,n=e.newIndex,i=e.initialIndex;if(t||0===t){var r=this.getColumn(t);r.isTarget=!1,r.targetMarkerContext=void 0}if(n||0===n){var a=this.getColumn(n);a.isTarget=!0,i!==n&&(a.targetMarkerContext={class:"targetMarker ".concat(i>n?"dragFromRight":"dragFromLeft")})}}},{key:"getColumn",value:function(e){var t=this._columnsByPin[0].columns.length;if(e<t)return this._columnsByPin[0].columns[e];var n=this._columnsByPin[1].columns.length;return e<t+n?this._columnsByPin[1].columns[e-t]:this._columnsByPin[2].columns[e-t-n]}},{key:"onSort",value:function(e){var t=e.column,n=e.prevValue,i=e.newValue;if(!t.dragging){var r=this.calcNewSorts(t,n,i);this.sort.emit({sorts:r,column:t,prevValue:n,newValue:i})}}},{key:"calcNewSorts",value:function(e,t,n){var i=0;this.sorts||(this.sorts=[]);var r=this.sorts.map(function(t,n){return(t=Object.assign({},t)).prop===e.prop&&(i=n),t});return void 0===n?r.splice(i,1):t?r[i].dir=n:(this.sortType===Md.single&&r.splice(0,this.sorts.length),r.push({dir:n,prop:e.prop})),r}},{key:"setStylesByGroup",value:function(){this._styleByGroup.left=this.calcStylesByGroup("left"),this._styleByGroup.center=this.calcStylesByGroup("center"),this._styleByGroup.right=this.calcStylesByGroup("right"),this.destroyed||this.cd.detectChanges()}},{key:"calcStylesByGroup",value:function(e){var t=this._columnGroupWidths,n={width:"".concat(t[e],"px")};return"center"===e?eh(n,-1*this.offsetX,0):"right"===e&&eh(n,-1*(t.total-this.innerWidth),0),n}}]),e}()).\u0275fac=function(e){return new(e||th)(c.dc(c.j))},th.\u0275cmp=c.Xb({type:th,selectors:[["datatable-header"]],hostAttrs:[1,"datatable-header"],hostVars:4,hostBindings:function(e,t){2&e&&c.Xc("height",t.headerHeight)("width",t.headerWidth)},inputs:{innerWidth:"innerWidth",headerHeight:"headerHeight",columns:"columns",offsetX:"offsetX",sorts:"sorts",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",sortUnsetIcon:"sortUnsetIcon",scrollbarH:"scrollbarH",dealsWithGroup:"dealsWithGroup",targetMarkerTemplate:"targetMarkerTemplate",sortType:"sortType",allRowsSelected:"allRowsSelected",selectionType:"selectionType",reorderable:"reorderable"},outputs:{sort:"sort",reorder:"reorder",resize:"resize",select:"select",columnContextmenu:"columnContextmenu"},decls:2,vars:4,consts:[["orderable","",1,"datatable-header-inner",3,"reorder","targetChanged"],[3,"class","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle"],["resizeable","","long-press","","draggable","",3,"resizeEnabled","pressModel","pressEnabled","dragX","dragY","dragModel","dragEventTarget","headerHeight","isTarget","targetMarkerTemplate","targetMarkerContext","column","sortType","sorts","selectionType","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","resize","longPressStart","longPressEnd","sort","select","columnContextmenu",4,"ngFor","ngForOf","ngForTrackBy"],["resizeable","","long-press","","draggable","",3,"resizeEnabled","pressModel","pressEnabled","dragX","dragY","dragModel","dragEventTarget","headerHeight","isTarget","targetMarkerTemplate","targetMarkerContext","column","sortType","sorts","selectionType","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","resize","longPressStart","longPressEnd","sort","select","columnContextmenu"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.tc("reorder",function(e){return t.onColumnReordered(e)})("targetChanged",function(e){return t.onTargetChanged(e)}),c.Yc(1,Qc,2,5,"div",1),c.ic()),2&e&&(c.Xc("width",t._columnGroupWidths.total,"px"),c.Pb(1),c.Dc("ngForOf",t._columnsByPin)("ngForTrackBy",t.trackByGroups))},directives:function(){return[td,l.l,l.n,bh,ed,nd,Ju]},encapsulation:2,changeDetection:0}),th);function ah(e,t,n){var i,r,a;n=n||{};var o=null,s=0;function l(){s=!1===n.leading?0:+new Date,o=null,a=e.apply(i,r)}return function(){var c=+new Date;
1s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,r=arguments,u<=0?(clearTimeout(o),o=null,s=c,a=e.apply(i,r)):o||!1===n.trailing||(o=setTimeout(l,u)),a}}function oh(e,t){var n,i=_createForOfIteratorHelper(t);try{for(i.s();!(n=i.n()).done;){var r=n.value,a=e.indexOf(r);e.splice(a,1)}}catch(o){i.e(o)}finally{i.f()}}function sh(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:300,i=0,r=_createForOfIteratorHelper(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;i+=a.width||n}}catch(o){r.e(o)}finally{r.f()}return i}var lh=function(e){return e.asc="asc",e.desc="desc",e}({});function ch(e,t){if(null==e&&(e=0),null==t&&(t=0),e instanceof Date&&t instanceof Date){if(e<t)return-1;if(e>t)return 1}else if(isNaN(parseFloat(e))||!isFinite(e)||isNaN(parseFloat(t))||!isFinite(t)){if(e=String(e),t=String(t),e.toLowerCase()<t.toLowerCase())return-1;if(e.toLowerCase()>t.toLowerCase())return 1}else{if(parseFloat(e)<parseFloat(t))return-1;if(parseFloat(e)>parseFloat(t))return 1}return 0}var uh,dh,hh,fh,ph,mh,gh,vh,yh=((ph=function(){function e(t,n,i,r,a,o,s){var l=this;_classCallCheck(this,e),this.scrollbarHelper=t,this.dimensionsHelper=n,this.cd=i,this.columnChangesService=o,this.configuration=s,this.selected=[],this.scrollbarV=!1,this.scrollbarH=!1,this.rowHeight=30,this.columnMode=xd.standard,this.headerHeight=30,this.footerHeight=0,this.externalPaging=!1,this.externalSorting=!1,this.loadingIndicator=!1,this.reorderable=!0,this.swapColumns=!0,this.sortType=Md.single,this.sorts=[],this.cssClasses={sortAscending:"datatable-icon-up",sortDescending:"datatable-icon-down",sortUnset:"datatable-icon-sort-unset",pagerLeftArrow:"datatable-icon-left",pagerRightArrow:"datatable-icon-right",pagerPrevious:"datatable-icon-prev",pagerNext:"datatable-icon-skip"},this.messages={emptyMessage:"No data to display",totalMessage:"total",selectedMessage:"selected"},this.groupExpansionDefault=!1,this.selectAllRowsOnPage=!1,this.virtualization=!0,this.summaryRow=!1,this.summaryHeight=30,this.summaryPosition="top",this.scroll=new c.s,this.activate=new c.s,this.select=new c.s,this.sort=new c.s,this.page=new c.s,this.reorder=new c.s,this.resize=new c.s,this.tableContextmenu=new c.s(!1),this.treeAction=new c.s,this.rowCount=0,this._offsetX=new pe(0),this._count=0,this._offset=0,this._subscriptions=[],this.rowIdentity=function(e){return l._groupRowsBy?e.key:e},this.element=r.nativeElement,this.rowDiffer=a.find({}).create(),this.configuration&&this.configuration.messages&&(this.messages=Object.assign({},this.configuration.messages))}return _createClass(e,[{key:"rows",get:function(){return this._rows},set:function(e){this._rows=e,e&&(this._internalRows=_toConsumableArray(e)),this.externalSorting||this.sortInternalRows(),this._internalRows=hd(this._internalRows,dd(this.treeFromRelation),dd(this.treeToRelation)),this.recalculate(),this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)),this.cd.markForCheck()}},{key:"groupRowsBy",get:function(){return this._groupRowsBy},set:function(e){e&&(this._groupRowsBy=e,this._rows&&this._groupRowsBy&&(this.groupedRows=this.groupArrayBy(this._rows,this._groupRowsBy)))}},{key:"columns",get:function(){return this._columns},set:function(e){e&&(this._internalColumns=_toConsumableArray(e),md(this._internalColumns),this.recalculateColumns()),this._columns=e}},{key:"limit",get:function(){return this._limit},set:function(e){this._limit=e,this.recalculate()}},{key:"count",get:function(){return this._count},set:function(e){this._count=e,this.recalculate()}},{key:"offset",get:function(){return Math.max(Math.min(this._offset,Math.ceil(this.rowCount/this.pageSize)-1),0)},set:function(e){this._offset=e}},{key:"isFixedHeader",get:function(){var e=this.headerHeight;return"string"!=typeof e||"auto"!==e}},{key:"isFixedRow",get:function(){return"auto"!==this.rowHeight}},{key:"isVertScroll",get:function(){return this.scrollbarV}},{key:"isVirtualized",get:function(){return this.virtualization}},{key:"isHorScroll",get:function(){return this.scrollbarH}},{key:"isSelectable",get:function(){return void 0!==this.selectionType}},{key:"isCheckboxSelection",get:function(){return this.selectionType===Sd.checkbox}},{key:"isCellSelection",get:function(){return this.selectionType===Sd.cell}},{key:"isSingleSelection",get:function(){return this.selectionType===Sd.single}},{key:"isMultiSelection",get:function(){return this.selectionType===Sd.multi}},{key:"isMultiClickSelection",get:function(){return this.selectionType===Sd.multiClick}},{key:"columnTemplates",get:function(){return this._columnTemplates},set:function(e){this._columnTemplates=e,this.translateColumns(e)}},{key:"allRowsSelected",get:function(){var e=this.rows&&this.selected&&this.selected.length===this.rows.length;if(this.bodyComponent&&this.selectAllRowsOnPage){var t=this.bodyComponent.indexes;e=this.selected.length===t.last-t.first}return this.selected&&this.rows&&0!==this.rows.length&&e}},{key:"ngOnInit",value:function(){this.recalculate()}},{key:"ngAfterViewInit",value:function(){var e=this;this.externalSorting||this.sortInternalRows(),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(function(){e.recalculate(),e.externalPaging&&e.scrollbarV&&e.page.emit({count:e.count,pageSize:e.pageSize,limit:e.limit,offset:0})})}},{key:"ngAfterContentInit",value:function(){var e=this;this.columnTemplates.changes.subscribe(function(t){return e.translateColumns(t)}),this.listenForColumnInputChanges()}},{key:"translateColumns",value:function(e){if(e){var t=e.toArray();t.length&&(this._internalColumns=function(e){var t,n=[],i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;){var r,a=t.value,o={},s=_createForOfIteratorHelper(Object.getOwnPropertyNames(a));try{for(s.s();!(r=s.n()).done;){var l=r.value;o[l]=a[l]}}catch(c){s.e(c)}finally{s.f()}a.headerTemplate&&(o.headerTemplate=a.headerTemplate),a.cellTemplate&&(o.cellTemplate=a.cellTemplate),a.summaryFunc&&(o.summaryFunc=a.summaryFunc),a.summaryTemplate&&(o.summaryTemplate=a.summaryTemplate),n.push(o)}}catch(c){i.e(c)}finally{i.f()}return n}(t),md(this._internalColumns),this.recalculateColumns(),this.sortInternalRows(),this.cd.markForCheck())}}},{key:"groupArrayBy",value:function(e,t){var n=new Map;return e.forEach(function(e){var i=e[t];n.has(i)?n.get(i).push(e):n.set(i,[e])}),Array.from(n,function(e){return{key:e[0],value:e[1]}})}},{key:"ngDoCheck",value:function(){this.rowDiffer.diff(this.rows)&&(this.externalSorting?this._internalRows=_toConsumableArray(this.rows):this.sortInternalRows(),this._internalRows=hd(this._internalRows,dd(this.treeFromRelation),dd(this.treeToRelation)),this.recalculatePages(),this.cd.markForCheck())}},{key:"recalculate",value:function(){this.recalculateDims(),this.recalculateColumns(),this.cd.markForCheck()}},{key:"onWindowResize",value:function(){this.recalculate()}},{key:"recalculateColumns",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._internalColumns,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.scrollbarH;
1if(e){var i,r,a,o,s,l=this._innerWidth;return this.scrollbarV&&(l-=this.scrollbarHelper.width),this.columnMode===xd.force?function(e,t,n,i){var r,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:300,o=e.slice(n+1,e.length).filter(function(e){return!1!==e.canAutoResize}),s=_createForOfIteratorHelper(o);try{for(s.s();!(r=s.n()).done;){var l=r.value;l.$$oldWidth||(l.$$oldWidth=l.width)}}catch(y){s.e(y)}finally{s.f()}var c=0,u=!1,d=sh(e,a),h=t-d,f=[];do{c=h/o.length,u=d>=t;var p,m=_createForOfIteratorHelper(o);try{for(m.s();!(p=m.n()).done;){var g=p.value;if(u&&i)g.width=g.$$oldWidth||g.width||a;else{var v=(g.width||a)+c;g.minWidth&&v<g.minWidth?(g.width=g.minWidth,f.push(g)):g.maxWidth&&v>g.maxWidth?(g.width=g.maxWidth,f.push(g)):g.width=v}g.width=Math.max(0,g.width)}}catch(y){m.e(y)}finally{m.f()}h=t-(d=sh(e)),oh(o,f)}while(h>1&&0!==o.length)}(e,l,t,n):this.columnMode===xd.flex&&(r=l,a=function(e){var t,n=0,i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;)n+=t.value.width}catch(r){i.e(r)}finally{i.f()}return n}(i=e),o=function(e){var t,n=0,i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;)n+=t.value.flexGrow||0}catch(r){i.e(r)}finally{i.f()}return n}(i),s=Hd(i),a!==r&&function(e,t,n){for(var i in e){var r,a=_createForOfIteratorHelper(e[i]);try{for(a.s();!(r=a.n()).done;){var o=r.value;o.canAutoResize?o.width=0:(t-=o.width,n-=o.flexGrow?o.flexGrow:0)}}catch(m){a.e(m)}finally{a.f()}}var s={},l=t;do{var c=l/n;for(var u in l=0,e){var d,h=_createForOfIteratorHelper(e[u]);try{for(h.s();!(d=h.n()).done;){var f=d.value;if(f.canAutoResize&&!s[f.prop]){var p=f.width+f.flexGrow*c;void 0!==f.minWidth&&p<f.minWidth?(l+=p-f.minWidth,f.width=f.minWidth,s[f.prop]=!0):f.width=p}}}catch(m){h.e(m)}finally{h.f()}}}while(0!==l)}(s,r,o)),e}}},{key:"recalculateDims",value:function(){var e=this.dimensionsHelper.getDimensions(this.element);if(this._innerWidth=Math.floor(e.width),this.scrollbarV){var t=e.height;this.headerHeight&&(t-=this.headerHeight),this.footerHeight&&(t-=this.footerHeight),this.bodyHeight=t}this.recalculatePages()}},{key:"recalculatePages",value:function(){this.pageSize=this.calcPageSize(),this.rowCount=this.calcRowCount()}},{key:"onBodyPage",value:function(e){var t=e.offset;this.externalPaging&&!this.virtualization||(this.offset=t,this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset}))}},{key:"onBodyScroll",value:function(e){this._offsetX.next(e.offsetX),this.scroll.emit(e),this.cd.detectChanges()}},{key:"onFooterPage",value:function(e){this.offset=e.page-1,this.bodyComponent.updateOffsetY(this.offset),this.page.emit({count:this.count,pageSize:this.pageSize,limit:this.limit,offset:this.offset}),this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected}))}},{key:"calcPageSize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rows;if(this.scrollbarV&&this.virtualization){var t=Math.ceil(this.bodyHeight/this.rowHeight);return Math.max(t,0)}return void 0!==this.limit?this.limit:e?e.length:0}},{key:"calcRowCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rows;return this.externalPaging?this.count:e?this.groupedRows?this.groupedRows.length:null!=this.treeFromRelation&&null!=this.treeToRelation?this._internalRows.length:e.length:0}},{key:"onColumnContextmenu",value:function(e){var t=e.event,n=e.column;this.tableContextmenu.emit({event:t,type:Dd.header,content:n})}},{key:"onRowContextmenu",value:function(e){var t=e.event,n=e.row;this.tableContextmenu.emit({event:t,type:Dd.body,content:n})}},{key:"onColumnResize",value:function(e){var t=e.column,n=e.newValue;if(void 0!==t){var i,r=this._internalColumns.map(function(e,r){return(e=Object.assign({},e)).$$id===t.$$id&&(i=r,e.width=n,e.$$oldWidth=n),e});this.recalculateColumns(r,i),this._internalColumns=r,this.resize.emit({column:t,newValue:n})}}},{key:"onColumnReorder",value:function(e){var t=e.column,n=e.newValue,i=e.prevValue,r=this._internalColumns.map(function(e){return Object.assign({},e)});if(this.swapColumns){var a=r[n];r[n]=t,r[i]=a}else if(n>i){for(var o=r[i],s=i;s<n;s++)r[s]=r[s+1];r[n]=o}else{for(var l=r[i],c=i;c>n;c--)r[c]=r[c-1];r[n]=l}this._internalColumns=r,this.reorder.emit({column:t,newValue:n,prevValue:i})}},{key:"onColumnSort",value:function(e){this.selectAllRowsOnPage&&(this.selected=[],this.select.emit({selected:this.selected})),this.sorts=e.sorts,!1===this.externalSorting&&this.sortInternalRows(),this._internalRows=hd(this._internalRows,dd(this.treeFromRelation),dd(this.treeToRelation)),this.offset=0,this.bodyComponent.updateOffsetY(this.offset),this.sort.emit(e)}},{key:"onHeaderSelect",value:function(e){if(this.bodyComponent&&this.selectAllRowsOnPage){var t,n=this.bodyComponent.indexes.first,
1i=this.bodyComponent.indexes.last,r=this.selected.length===i-n;this.selected=[],r||(t=this.selected).push.apply(t,_toConsumableArray(this._internalRows.slice(n,i)))}else{var a,o=this.selected.length===this.rows.length;this.selected=[],o||(a=this.selected).push.apply(a,_toConsumableArray(this.rows))}this.select.emit({selected:this.selected})}},{key:"onBodySelect",value:function(e){this.select.emit(e)}},{key:"onTreeAction",value:function(e){var t=this,n=e.row,i=this._rows.findIndex(function(n){return n[t.treeToRelation]===e.row[t.treeToRelation]});this.treeAction.emit({row:n,rowIndex:i})}},{key:"ngOnDestroy",value:function(){this._subscriptions.forEach(function(e){return e.unsubscribe()})}},{key:"listenForColumnInputChanges",value:function(){var e=this;this._subscriptions.push(this.columnChangesService.columnInputChanges$.subscribe(function(){e.columnTemplates&&e.columnTemplates.notifyOnChanges()}))}},{key:"sortInternalRows",value:function(){this._internalRows=function(e,t,n){if(!e)return[];if(!n||!n.length||!t)return _toConsumableArray(e);var i=new Map;e.forEach(function(e,t){return i.set(e,t)});var r=_toConsumableArray(e),a=t.reduce(function(e,t){return t.comparator&&"function"==typeof t.comparator&&(e[t.prop]=t.comparator),e},{}),o=n.map(function(e){var t=e.prop;return{prop:t,dir:e.dir,valueGetter:sd(t),compareFn:a[t]||ch}});return r.sort(function(e,t){var n,r=_createForOfIteratorHelper(o);try{for(r.s();!(n=r.n()).done;){var a=n.value,s=a.prop,l=a.valueGetter,c=l(e,s),u=l(t,s),d=a.dir!==lh.desc?a.compareFn(c,u,e,t,a.dir):-a.compareFn(c,u,e,t,a.dir);if(0!==d)return d}}catch(h){r.e(h)}finally{r.f()}return i.has(e)&&i.has(t)?i.get(e)<i.get(t)?-1:1:0})}(this._internalRows,this._internalColumns,this.sorts)}}]),e}()).\u0275fac=function(e){return new(e||ph)(c.dc(Gu,4),c.dc(Xu,4),c.dc(c.j),c.dc(c.q),c.dc(c.C),c.dc(Qu),c.dc("configuration",8))},ph.\u0275cmp=c.Xb({type:ph,selectors:[["ngx-datatable"]],contentQueries:function(e,t,n){var i;1&e&&(c.Wb(n,Od,5),c.Wb(n,ad,5),c.Wb(n,Id,5),c.Wb(n,Pd,4)),2&e&&(c.Mc(i=c.uc())&&(t.rowDetail=i.first),c.Mc(i=c.uc())&&(t.groupHeader=i.first),c.Mc(i=c.uc())&&(t.footer=i.first),c.Mc(i=c.uc())&&(t.columnTemplates=i))},viewQuery:function(e,t){var n;1&e&&(c.ed(ih,5),c.ed(rh,5)),2&e&&(c.Mc(n=c.uc())&&(t.bodyComponent=n.first),c.Mc(n=c.uc())&&(t.headerComponent=n.first))},hostAttrs:[1,"ngx-datatable"],hostVars:22,hostBindings:function(e,t){1&e&&c.tc("resize",function(){return t.onWindowResize()},!1,c.Pc),2&e&&c.Vb("fixed-header",t.isFixedHeader)("fixed-row",t.isFixedRow)("scroll-vertical",t.isVertScroll)("virtualized",t.isVirtualized)("scroll-horz",t.isHorScroll)("selectable",t.isSelectable)("checkbox-selection",t.isCheckboxSelection)("cell-selection",t.isCellSelection)("single-selection",t.isSingleSelection)("multi-selection",t.isMultiSelection)("multi-click-selection",t.isMultiClickSelection)},inputs:{selected:"selected",scrollbarV:"scrollbarV",scrollbarH:"scrollbarH",rowHeight:"rowHeight",columnMode:"columnMode",headerHeight:"headerHeight",footerHeight:"footerHeight",externalPaging:"externalPaging",externalSorting:"externalSorting",loadingIndicator:"loadingIndicator",reorderable:"reorderable",swapColumns:"swapColumns",sortType:"sortType",sorts:"sorts",cssClasses:"cssClasse
1s",messages:"messages",groupExpansionDefault:"groupExpansionDefault",selectAllRowsOnPage:"selectAllRowsOnPage",virtualization:"virtualization",summaryRow:"summaryRow",summaryHeight:"summaryHeight",summaryPosition:"summaryPosition",rowIdentity:"rowIdentity",rows:"rows",groupedRows:"groupedRows",groupRowsBy:"groupRowsBy",columns:"columns",limit:"limit",count:"count",offset:"offset",targetMarkerTemplate:"targetMarkerTemplate",selectionType:"selectionType",rowClass:"rowClass",selectCheck:"selectCheck",displayCheck:"displayCheck",trackByProp:"trackByProp",treeFromRelation:"treeFromRelation",treeToRelation:"treeToRelation"},outputs:{scroll:"scroll",activate:"activate",select:"select",sort:"sort",page:"page",reorder:"reorder",resize:"resize",tableContextmenu:"tableContextmenu",treeAction:"treeAction"},decls:5,vars:34,consts:[["visibilityObserver","",3,"visible"],[3,"sorts","sortType","scrollbarH","innerWidth","offsetX","dealsWithGroup","columns","headerHeight","reorderable","targetMarkerTemplate","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","selectionType","sort","resize","reorder","select","columnContextmenu",4,"ngIf"],[3,"groupRowsBy","groupedRows","rows","groupExpansionDefault","scrollbarV","scrollbarH","virtualization","loadingIndicator","externalPaging","rowHeight","rowCount","offset","trackByProp","columns","pageSize","offsetX","rowDetail","groupHeader","selected","innerWidth","bodyHeight","selectionType","emptyMessage","rowIdentity","rowClass","selectCheck","displayCheck","summaryRow","summaryHeight","summaryPosition","page","activate","rowContextmenu","select","scroll","treeAction"],[3,"rowCount","pageSize","offset","footerHeight","footerTemplate","totalMessage","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","selectedCount","selectedMessage","pagerNextIcon","page",4,"ngIf"],[3,"sorts","sortType","scrollbarH","innerWidth","offsetX","dealsWithGroup","columns","headerHeight","reorderable","targetMarkerTemplate","sortAscendingIcon","sortDescendingIcon","sortUnsetIcon","allRowsSelected","selectionType","sort","resize","reorder","select","columnContextmenu"],[3,"rowCount","pageSize","offset","footerHeight","footerTemplate","totalMessage","pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","selectedCount","selectedMessage","pagerNextIcon","page"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.tc("visible",function(){return t.recalculate()}),c.Yc(1,Kc,2,17,"datatable-header",1),c.jc(2,"datatable-body",2),c.tc("page",function(e){return t.onBodyPage(e)})("activate",function(e){return t.activate.emit(e)})("rowContextmenu",function(e){return t.onRowContextmenu(e)})("select",function(e){return t.onBodySelect(e)})("scroll",function(e){return t.onBodyScroll(e)})("treeAction",function(e){return t.onTreeAction(e)}),c.yc(3,"async"),c.ic(),c.Yc(4,Zc,1,12,"datatable-footer",3),c.ic()),2&e&&(c.Pb(1),c.Dc("ngIf",t.headerHeight),c.Pb(1),c.Dc("groupRowsBy",t.groupRowsBy)("groupedRows",t.groupedRows)("rows",t._internalRows)("groupExpansionDefault",t.groupExpansionDefault)("scrollbarV",t.scrollbarV)("scrollbarH",t.scrollbarH)("virtualization",t.virtualization)("loadingIndicator",t.loadingIndicator)("externalPaging",t.externalPaging)("rowHeight",t.rowHeight)("rowCount",t.rowCount)("offset",t.offset)("trackByProp",t.trackByProp)("columns",t._internalColumns)("pageSize",t.pageSize)("offsetX",c.zc(3,32,t._offsetX))("rowDetail",t.rowDetail)("groupHeader",t.groupHeader)("selected",t.selected)("innerWidth",t._innerWidth)("bodyHeight",t.bodyHeight)("selectionType",t.selectionType)("emptyMessage",t.messages.emptyMessage)("rowIdentity",t.rowIdentity)("rowClass",t.rowClass)("selectCheck",t.selectCheck)("displayCheck",t.displayCheck)("summaryRow",t.summaryRow)("summaryHeight",t.summaryHeight)("summaryPosition",t.summaryPosition),c.Pb(2),c.Dc("ngIf",t.footerHeight))},directives:function(){return[Zu,l.m,ih,rh,_h]},pipes:function(){return[l.b]},styles:[".ngx-datatable{display:block;justify-content:center;overflow:hidden;position:relative;transform:translateZ(0)}.ngx-datatable [hidden]{display:none!important}.ngx-datatable *,.ngx-datatable :after,.ngx-datatable :before{box-sizing:border-box}.ngx-datatable.scroll-vertical .datatable-body{overflow-y:auto}.ngx-datatable.scroll-vertical.virtualized .datatable-body .datatable-row-wrapper{position:absolute}.ngx-datatable.scroll-horz .datatable-body{-webkit-overflow-scrolling:touch;overflow-x:auto}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner{white-space:nowrap}.ngx-datatable.fixed-header .datatable-header .datatable-header-inner .datatable-header-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row{white-space:nowrap}.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-cell,.ngx-datatable.fixed-row .datatable-scroll .datatable-body-row .datatable-body-group-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ngx-datatable .datatable-body-row,.ngx-datatable .datatable-header-inner,.ngx-datatable .datatable-row-center{-o-flex-flow:row;display:flex;flex-direction:row;flex-flow:row}.ngx-datatable .datatable-body-cell,.ngx-datatable .datatable-header-cell{display:inline-block;line-height:1.625;overflow-x:hidden;vertical-align:top}.ngx-datatable .datatable-body-cell:focus,.ngx-datatable .datatable-header-cell:focus{outline:none}.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{z-index:9}.ngx-datatable .datatable-row-center,.ngx-datatable .datatable-row-group,.ngx-datatable .datatable-row-left,.ngx-datatable .datatable-row-right{position:relative}.ngx-datatable .datatable-header{display:block;overflow:hidden}.ngx-datatable .datatable-header .datatable-header-inner{-webkit-align-items:stretch;align-items:stretch}.ngx-datatable .datatable-header .datatable-header-cell{display:inline-block;position:relative}.ngx-datatable .datatable-header .datatable-header-cell.sortable .datatable-header-cell-wrapper{cursor:pointer}.ngx-datatable .datatable-header .datatable-header-cell.longpress .datatable-header-cell-wrapper{cursor:move}.ngx-datatable .datatable-header .datatable-header-cell .sort-btn{cursor:pointer;display:inline-block;line-height:100%;vertical-align:middle}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell .resize-handle--not-resizable{bottom:0;display:inline-block;padding:0 4px;position:absolute;right:0;top:0;visibility:hidden;width:5px}.ngx-datatable .datatable-header .datatable-header-cell .resize-handle{cursor:ew-resize}.ngx-datatable .datatable-header .datatable-header-cell.resizeable:hover .resize-handle,.ngx-datatable .datatable-header .datatable-header-cell:hover .resize-handle--not-resizable{visibility:visible}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker{bottom:0;position:absolute;top:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromLeft{right:0}.ngx-datatable .datatable-header .datatable-header-cell .targetMarker.dragFromRight{left:0}.ngx-datatable .datatable-header .datatable-header-cell .datatable-header-cell-template-wrap{height:inherit}
1.ngx-datatable .datatable-body{display:block;position:relative;z-index:10}.ngx-datatable .datatable-body .datatable-scroll{display:inline-block}.ngx-datatable .datatable-body .datatable-row-detail{overflow-y:hidden}.ngx-datatable .datatable-body .datatable-row-wrapper{display:flex;flex-direction:column}.ngx-datatable .datatable-body .datatable-body-row{outline:none}.ngx-datatable .datatable-body .datatable-body-row>div{display:flex}.ngx-datatable .datatable-footer{display:block;overflow:auto;width:100%}.ngx-datatable .datatable-footer .datatable-footer-inner{align-items:center;display:flex;width:100%}.ngx-datatable .datatable-footer .selected-count .page-count{flex:1 1 40%}.ngx-datatable .datatable-footer .selected-count .datatable-pager{flex:1 1 60%}.ngx-datatable .datatable-footer .page-count{flex:1 1 20%}.ngx-datatable .datatable-footer .datatable-pager{flex:1 1 80%;text-align:right}.ngx-datatable .datatable-footer .datatable-pager .pager,.ngx-datatable .datatable-footer .datatable-pager .pager li{display:inline-block;list-style:none;margin:0;padding:0}.ngx-datatable .datatable-footer .datatable-pager .pager li,.ngx-datatable .datatable-footer .datatable-pager .pager li a{outline:none}.ngx-datatable .datatable-footer .datatable-pager .pager li a{cursor:pointer;display:inline-block}.ngx-datatable .datatable-footer .datatable-pager .pager li.disabled a{curs
1or:not-allowed}"],encapsulation:2,changeDetection:0}),Object(Rc.b)([function(e,t,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,t,{configurable:!0,enumerable:n.enumerable,value:ah(n.value,5,void 0)}),this[t]}}}],ph.prototype,"onWindowResize",null),ph),bh=((fh=function(){function e(t){_classCallCheck(this,e),this.cd=t,this.sort=new c.s,this.select=new c.s,this.columnContextmenu=new c.s(!1),this.sortFn=this.onSort.bind(this),this.selectFn=this.select.emit.bind(this.select),this.cellContext={column:this.column,sortDir:this.sortDir,sortFn:this.sortFn,allRowsSelected:this.allRowsSelected,selectFn:this.selectFn}}return _createClass(e,[{key:"allRowsSelected",get:function(){return this._allRowsSelected},set:function(e){this._allRowsSelected=e,this.cellContext.allRowsSelected=e}},{key:"column",get:function(){return this._column},set:function(e){this._column=e,this.cellContext.column=e,this.cd.markForCheck()}},{key:"sorts",get:function(){return this._sorts},set:function(e){this._sorts=e,this.sortDir=this.calcSortDir(e),this.cellContext.sortDir=this.sortDir,this.sortClass=this.calcSortClass(this.sortDir),this.cd.markForCheck()}},{key:"columnCssClasses",get:function(){var e="datatable-header-cell";if(this.column.sortable&&(e+=" sortable"),this.column.resizeable&&(e+=" resizeable"),this.column.headerClass)if("string"==typeof this.column.headerClass)e+=" "+this.column.headerClass;else if("function"==typeof this.column.headerClass){var t=this.column.headerClass({column:this.column});if("string"==typeof t)e+=t;else if("object"==typeof t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];!0===t[r]&&(e+=" ".concat(r))}}var a=this.sortDir;return a&&(e+=" sort-active sort-".concat(a)),e}},{key:"name",get:function(){return void 0===this.column.headerTemplate?this.column.name:void 0}},{key:"minWidth",get:function(){return this.column.minWidth}},{key:"maxWidth",get:function(){return this.column.maxWidth}},{key:"width",get:function(){return this.column.width}},{key:"isCheckboxable",get:function(){return this.column.checkboxable&&this.column.headerCheckboxable&&this.selectionType===Sd.checkbox}},{key:"onContextmenu",value:function(e){this.columnContextmenu.emit({event:e,column:this.column})}},{key:"ngOnInit",value:function(){this.sortClass=this.calcSortClass(this.sortDir)}},{key:"calcSortDir",value:function(e){var t=this;if(e&&this.column){var n=e.find(function(e){return e.prop===t.column.prop});if(n)return n.dir}}},{key:"onSort",value:function(){if(this.column.sortable){var e,t=(e=this.sortDir,this.sortType===Md.single?e===lh.asc?lh.desc:lh.asc:e?e===lh.asc?lh.desc:void 0:lh.asc);this.sort.emit({column:this.column,prevValue:this.sortDir,newValue:t})}}},{key:"calcSortClass",value:function(e){if(this.cellContext.column.sortable)return e===lh.asc?"sort-btn sort-asc ".concat(this.sortAscendingIcon):e===lh.desc?"sort-btn sort-desc ".concat(this.sortDescendingIcon):"sort-btn ".concat(this.sortUnsetIcon)}}]),e}()).\u0275fac=function(e){return new(e||fh)(c.dc(c.j))},fh.\u0275cmp=c.Xb({type:fh,selectors:[["datatable-header-cell"]],hostAttrs:[1,"datatable-header-cell"],hostVars:11,hostBindings:function(e,t){1&e&&c.tc("contextmenu",function(e){return t.onContextmenu(e)}),2&e&&(c.Qb("title",t.name),c.Sb(t.columnCssClasses),c.Xc("min-width",t.minWidth,"px")("max-width",t.maxWidth,"px")("width",t.width,"px")("height",t.headerHeight,"px"))},inputs:{allRowsSelected:"allRowsSelected",column:"column",sorts:"sorts",sortType:"sortType",sortAscendingIcon:"sortAscendingIcon",sortDescendingIcon:"sortDescendingIcon",sortUnsetIcon:"sortUnsetIcon",isTarget:"isTarget",targetMarkerTemplate:"targetMarkerTemplate",targetMarkerContext:"targetMarkerContext",selectionType:"selectionType",headerHeight:"headerHeight"},outputs:{sort:"sort",select:"select",columnContextmenu:"columnContextmenu"},decls:6,vars:6,consts:[[1,"datatable-header-cell-template-wrap"],[4,"ngIf"],["class","datatable-checkbox",4,"ngIf"],["class","datatable-header-cell-wrapper",4,"ngIf"],[3,"click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"datatable-checkbox"],["type","checkbox",3,"checked","change"],[1,"datatable-header-cell-wrapper"],[1,"datatable-header-cell-label","draggable",3,"innerHTML","click"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.Yc(1,eu,1,2,void 0,1),c.Yc(2,tu,2,1,"label",2),c.Yc(3,nu,2,1,"span",3),c.Yc(4,ru,1,2,void 0,1),c.jc(5,"span",4),c.tc("click",function(){return t.onSort()}),c.ic(),c.ic()),2&e&&(c.Pb(1),c.Dc("ngIf",t.isTarget),c.Pb(1),c.Dc("ngIf",t.isCheckboxable),c.Pb(1),c.Dc("ngIf",!t.column.headerTemplate),c.Pb(1),c.Dc("ngIf",t.column.headerTemplate),c.Pb(1),c.Sb(t.sortClass))},directives:[l.m,l.o],encapsulation:2,changeDetection:0}),fh),_h=((hh=function(){function e(){_classCallCheck(this,e),this.selectedCount=0,this.page=new c.s}return _createClass(e,[{key:"isVisible",get:function(){return this.rowCount/this.pageSize>1}},{key:"curPage",get:function(){return this.offset+1}}]),e}()).\u0275fac=function(e){return new(e||hh)},hh.\u0275cmp=c.Xb({type:hh,selectors:[["datatable-footer"]],hostAttrs:[1,"datatable-footer"],inputs:{selectedCount:"selectedCount",footerHeight:"footerHeight",rowCount:"rowCount",pageSize:"pageSize",offset:"offset",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon",totalMessage:"totalMessage",footerTemplate:"footerTemplate",selectedMessage:"selectedMessage"},outputs:{page:"page"},decls:4,vars:8,consts:[[1,"datatable-footer-inner",3,"ngClass"],[4,"ngIf"],["class","page-count",4,"ngIf"],[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"page-count"],[3,"pagerLeftArrowIcon","pagerRightArrowIcon","pagerPreviousIcon","pagerNextIcon","page","size","count","hidden","change"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.Yc(1,su,1,8,void 0,1),c.Yc(2,cu,3,3,"div",2),c.Yc(3,uu,1,8,"datatable-pager",3),c.ic()),2&e&&(c.Xc("height",t.footerHeight,"px"),c.Dc("ngClass",c.Hc(6,du,t.selectedMessage)),c.Pb(1),c.Dc("ngIf",t.footerTemplate),c.Pb(1),c.Dc("ngIf",!t.footerTemplate),c.Pb(1),c.Dc("ngIf",!t.footerTemplate))},directives:function(){return[l.k,l.m,l.o,wh]},encapsulation:2,changeDetection:0}),hh),wh=((dh=function(){function e(){_classCallCheck(this,e),this.change=new c.s,this._count=0,this._page=1,this._size=0}return _createClass(e,[{key:"size",get:function(){return this._size},set:function(e){this._size=e,this.pages=this.calcPages()}},{key:"count",get:function(){return this._count},set:function(e){this._count=e,this.pages=this.calcPages()}},{key:"page",get:function(){return this._page},set:function(e){this._page=e,this.pages=this.calcPages()}},{key:"totalPages",get:function(){var e=this.size<1?1:Math.ceil(this.count/this.size);return Math.max(e||0,1)}},{key:"canPrevious",value:function(){return this.page>1}},{key:"canNext",value:function(){return this.page<this.totalPages}},{key:"prevPage",value:function(){this.selectPage(this.page-1)}},{key:"nextPage",value:function(){this.selectPage(this.page+1)}},{key:"selectPage",value:function(e){e>0&&e<=this.totalPages&&e!==this.page&&(this.page=e,this.change.emit({page:e}))}},{key:"calcPages",value:function(e){var t=[],n=1,i=this.totalPages;e=e||this.page,5<this.totalPages&&(n=e-Math.floor(2.5),i=e+Math.floor(2.5),n<1?(n=1,i=Math.min(n+5-1,this.totalPages)):i>this.totalPages&&(n=Math.max(this.totalPages-5+1,1),i=this.totalPages));for(var r=n;r<=i;r++)t.push({number:r,text:r});return t}}]),e}()).\u0275fac=function(e){return new(e||dh)},dh.\u0275cmp=c.Xb({type:dh,selectors:[["datatable-pager"]],hostAttrs:[1,"datatable-pager"],inputs:{size:"size",count:"count",page:"page",pagerLeftArrowIcon:"pagerLeftArrowIcon",pagerRightArrowIcon:"pagerRightArrowIcon",pagerPreviousIcon:"pagerPreviousIcon",pagerNextIcon:"pagerNextIcon"},outputs:{change:"change"},decls:14,vars:21,consts:[[1,"pager"],["role","button","aria-label","go to first page","href","javascript:void(0)",3,"click"],["role","button","aria-label","go to previous page","href","javascript:void(0)",3,"click"],["role","button","class","pages",3,"active",4,"ngFor","ngForOf"],["role","button","aria-label","go to next page","href","javascript:void(0)",3,"click"],["role","button","aria-label","go to last page","href","javascript:void(0)",3,"click"],["role","button",1,"pages"],["href","javascript:void(0)",3,"click"]],template:function(e,t){1&e&&(c.jc(0,"ul",0),c.jc(1,"li"),c.jc(2,"a",1),c.tc("click",function(){return t.selectPage(1)}),c.ec(3,"i"),c.ic(),c.ic(),c.jc(4,"li"),c.jc(5,"a",2),c.tc("click",function(){return t.prevPage()}),c.ec(6,"i"),c.ic(),c.ic(),c.Yc(7,hu,3,4,"li",3),c.jc(8,"li"),c.jc(9,"a",4),c.tc("click",function(){return t.nextPage()}),c.ec(10,"i"),c.ic(),c.ic(),c.jc(11,"li"),c.jc(12,"a",5),c.tc("click",function(){return t.selectPage(t.totalPages)}),c.ec(13,"i"),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(1),c.Vb("disabled",!t.canPrevious()),c.Pb(2),c.Sb(t.pagerPreviousIcon),c.Pb(1),c.Vb("disabled",!t.canPrevious()),c.Pb(2),c.Sb(t.pagerLeftArrowIcon),c.Pb(1),c.Dc("ngForOf",t.pages),c.Pb(1),c.Vb("disabled",!t.canNext()),c.Pb(2),c.Sb(t.pagerRightArrowIcon),c.Pb(1),c.Vb("disabled",!t.canNext()),c.Pb(2),c.Sb(t.pagerNextIcon))},directives:[l.l],encapsulation:2,changeDetection:0}),dh),kh=((uh=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||uh)},uh.\u0275cmp=c.Xb({type:uh,selectors:[["datatable-progress"]],decls:3,vars:0,consts:[["role","progressbar",1,"progress-linear"],[1,"container"],[1,"bar"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"div",1),c.ec(2,"div",2),c.ic(),c.ic())},encapsulation:2,changeDetection:0}),uh),Ch=function(e){return e[e.up=38]="up",e[e.down=40]="down",e[e.return=13]="return",e[e.escape=27]="escape",e[e.left=37]="left",e[e.right=39]="right",e}({}),xh=((vh=function(){function e(t,n,i,r){_classCallCheck(this,e),this.differs=t,this.scrollbarHelper=n,this.cd=i,this.treeStatus="collapsed",this.activate=new c.s,this.treeAction=new c.s,this._groupStyles={left:{},center:{},right:{}},this._element=r.nativeElement,this._rowDiffer=t.find({}).create()}
1return _createClass(e,[{key:"columns",get:function(){return this._columns},set:function(e){this._columns=e,this.recalculateColumns(e),this.buildStylesByGroup()}},{key:"innerWidth",get:function(){return this._innerWidth},set:function(e){if(this._columns){var t=Hd(this._columns);this._columnGroupWidths=jd(t,this._columns)}this._innerWidth=e,this.recalculateColumns(),this.buildStylesByGroup()}},{key:"offsetX",get:function(){return this._offsetX},set:function(e){this._offsetX=e,this.buildStylesByGroup()}},{key:"cssClass",get:function(){var e="datatable-body-row";if(this.isSelected&&(e+=" active"),this.rowIndex%2!=0&&(e+=" datatable-row-odd"),this.rowIndex%2==0&&(e+=" datatable-row-even"),this.rowClass){var t=this.rowClass(this.row);if("string"==typeof t)e+=" ".concat(t);else if("object"==typeof t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];!0===t[r]&&(e+=" ".concat(r))}}return e}},{key:"columnsTotalWidths",get:function(){return this._columnGroupWidths.total}},{key:"ngDoCheck",value:function(){this._rowDiffer.diff(this.row)&&this.cd.markForCheck()}},{key:"trackByGroups",value:function(e,t){return t.type}},{key:"columnTrackingFn",value:function(e,t){return t.$$id}},{key:"buildStylesByGroup",value:function(){this._groupStyles.left=this.calcStylesByGroup("left"),this._groupStyles.center=this.calcStylesByGroup("center"),this._groupStyles.right=this.calcStylesByGroup("right"),this.cd.markForCheck()}},{key:"calcStylesByGroup",value:function(e){var t=this._columnGroupWidths,n=this.offsetX,i={width:"".concat(t[e],"px")};if("left"===e)eh(i,n,0);else if("right"===e){var r=parseInt(this.innerWidth+"",0);eh(i,-1*(t.total-r-n+this.scrollbarHelper.width),0)}return i}},{key:"onActivate",value:function(e,t){e.cellIndex=t,e.rowElement=this._element,this.activate.emit(e)}},{key:"onKeyDown",value:function(e){var t=e.keyCode;(t===Ch.return||t===Ch.down||t===Ch.up||t===Ch.left||t===Ch.right)&&e.target===this._element&&(e.preventDefault(),e.stopPropagation(),this.activate.emit({type:"keydown",event:e,row:this.row,rowElement:this._element}))}},{key:"onMouseenter",value:function(e){this.activate.emit({type:"mouseenter",event:e,row:this.row,rowElement:this._element})}},{key:"recalculateColumns",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.columns;this._columns=e;var t=Hd(this._columns);this._columnsByPin=Rd(this._columns),this._columnGroupWidths=jd(t,this._columns)}},{key:"onTreeAction",value:function(){this.treeAction.emit()}}]),e}()).\u0275fac=function(e){return new(e||vh)(c.dc(c.C),c.dc(Gu,4),c.dc(c.j),c.dc(c.q))},vh.\u0275cmp=c.Xb({type:vh,selectors:[["datatable-body-row"]],hostVars:6,hostBindings:function(e,t){1&e&&c.tc("keydown",function(e){return t.onKeyDown(e)})("mouseenter",function(e){return t.onMouseenter(e)}),2&e&&(c.Sb(t.cssClass),c.Xc("width",t.columnsTotalWidths,"px")("height",t.rowHeight,"px"))},inputs:{treeStatus:"treeStatus",columns:"columns",innerWidth:"innerWidth",offsetX:"offsetX",expanded:"expanded",rowClass:"rowClass",row:"row",group:"group",isSelected:"isSelected",rowIndex:"rowIndex",displayCheck:"displayCheck",rowHeight:"rowHeight"},outputs:{activate:"activate",treeAction:"treeAction"},decls:1,vars:2,consts:[[3,"class","ngStyle",4,"ngFor","ngForOf","ngForTrackBy"],[3,"ngStyle"],["tabindex","-1",3,"row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus","activate","treeAction",4,"ngFor","ngForOf","ngForTrackBy"],["tabindex","-1",3,"row","group","expanded","isSelected","rowIndex","column","rowHeight","displayCheck","treeStatus","activate","treeAction"]],template:function(e,t){1&e&&c.Yc(0,pu,2,6,"div",0),2&e&&c.Dc("ngForOf",t._columnsByPin)("ngForTrackBy",t.trackByGroups)},directives:function(){return[l.l,l.n,Mh]},encapsulation:2,changeDetection:0}),vh),Sh=((gh=function(){function e(t,n){_classCallCheck(this,e),this.cd=t,this.differs=n,this.rowContextmenu=new c.s(!1),this._expanded=!1,this.groupContext={group:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowContext={row:this.row,expanded:this.expanded,rowIndex:this.rowIndex},this.rowDiffer=n.find({}).create()}return _createClass(e,[{key:"rowIndex",get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.rowContext.rowIndex=e,this.groupContext.rowIndex=e,this.cd.markForCheck()}},{key:"expanded",get:function(){return this._expanded}
1,set:function(e){this._expanded=e,this.groupContext.expanded=e,this.rowContext.expanded=e,this.cd.markForCheck()}},{key:"ngDoCheck",value:function(){this.rowDiffer.diff(this.row)&&(this.rowContext.row=this.row,this.groupContext.group=this.row,this.cd.markForCheck())}},{key:"onContextmenu",value:function(e){this.rowContextmenu.emit({event:e,row:this.row})}},{key:"getGroupHeaderStyle",value:function(){var e={};return e.transform="translate3d("+this.offsetX+"px, 0px, 0px)",e["backface-visibility"]="hidden",e.width=this.innerWidth,e}}]),e}()).\u0275fac=function(e){return new(e||gh)(c.dc(c.j),c.dc(c.C))},gh.\u0275cmp=c.Xb({type:gh,selectors:[["datatable-row-wrapper"]],hostAttrs:[1,"datatable-row-wrapper"],hostBindings:function(e,t){1&e&&c.tc("contextmenu",function(e){return t.onContextmenu(e)})},inputs:{rowIndex:"rowIndex",expanded:"expanded",innerWidth:"innerWidth",rowDetail:"rowDetail",groupHeader:"groupHeader",offsetX:"offsetX",detailRowHeight:"detailRowHeight",row:"row",groupedRows:"groupedRows"},outputs:{rowContextmenu:"rowContextmenu"},ngContentSelectors:Nc,decls:3,vars:3,consts:[["class","datatable-group-header",3,"ngStyle",4,"ngIf"],[4,"ngIf"],["class","datatable-row-detail",3,"height",4,"ngIf"],[1,"datatable-group-header",3,"ngStyle"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"datatable-row-detail"]],template:function(e,t){1&e&&(c.Cc(),c.Yc(0,vu,2,2,"div",0),c.Yc(1,yu,1,0,"ng-content",1),c.Yc(2,wu,2,3,"div",2)),2&e&&(c.Dc("ngIf",t.groupHeader&&t.groupHeader.template),c.Pb(1),c.Dc("ngIf",t.groupHeader&&t.groupHeader.template&&t.expanded||!t.groupHeader||!t.groupHeader.template),c.Pb(1),c.Dc("ngIf",t.rowDetail&&t.rowDetail.template&&t.expanded))},directives:[l.m,l.n,l.o],encapsulation:2,changeDetection:0}),gh),Mh=((mh=function(){function e(t,n){_classCallCheck(this,e),this.cd=n,this.activate=new c.s,this.treeAction=new c.s,this.isFocused=!1,this.onCheckboxChangeFn=this.onCheckboxChange.bind(this),this.activateFn=this.activate.emit.bind(this.activate),this.cellContext={onCheckboxChangeFn:this.onCheckboxChangeFn,activateFn:this.activateFn,row:this.row,group:this.group,value:this.value,column:this.column,rowHeight:this.rowHeight,isSelected:this.isSelected,rowIndex:this.rowIndex,treeStatus:this.treeStatus,onTreeAction:this.onTreeAction.bind(this)},this._element=t.nativeElement}return _createClass(e,[{key:"group",get:function(){return this._group},set:function(e){this._group=e,this.cellContext.group=e,this.checkValueUpdates(),this.cd.markForCheck()}},{key:"rowHeight",get:function(){return this._rowHeight},set:function(e){this._rowHeight=e,this.cellContext.rowHeight=e,this.checkValueUpdates(),this.cd.markForCheck()}},{key:"isSelected",get:function(){return this._isSelected},set:function(e){this._isSelected=e,this.cellContext.isSelected=e,this.cd.markForCheck()}},{key:"expanded",get:function(){return this._expanded},set:function(e){this._expanded=e,this.cellContext.expanded=e,this.cd.markForCheck()}},{key:"rowIndex",get:function(){return this._rowIndex},set:function(e){this._rowIndex=e,this.cellContext.rowIndex=e,this.checkValueUpdates(),this.cd.markForCheck()}},{key:"column",get:function(){return this._column},set:function(e){this._column=e,this.cellContext.column=e,this.checkValueUpdates(),this.cd.markForCheck()}},{key:"row",get:function(){return this._row},set:function(e){this._row=e,this.cellContext.row=e,this.checkValueUpdates(),this.cd.markForCheck()}},{key:"sorts",get:function(){return this._sorts},set:function(e){this._sorts=e,this.calcSortDir=this.calcSortDir(e)}},{key:"treeStatus",get:function(){return this._treeStatus},set:function(e){this._treeStatus="collapsed"!==e&&"expanded"!==e&&"loading"!==e&&"disabled"!==e?"collapsed":e,this.cellContext.treeStatus=this._treeStatus,this.checkValueUpdates(),this.cd.markForCheck()}},{key:"columnCssClasses",get:function(){var e="datatable-body-cell";if(this.column.cellClass)if("string"==typeof this.column.cellClass)e+=" "+this.column.cellClass;else if("function"==typeof this.column.cellClass){var t=this.column.cellClass({row:this.row,group:this.group,column:this.column,value:this.value,rowHeight:this.rowHeight});if("string"==typeof t)e+=" "+t;else if("object"==typeof t)for(var n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];!0===t[r]&&(e+=" ".concat(r))}}return this.sortDir||(e+=" sort-active"),this.isFocused&&(e+=" active"),this.sortDir===lh.asc&&(e+=" sort-asc"),this.sortDir===lh.desc&&(e+=" sort-desc"),e}},{key:"width",get:function(){return this.column.width}},{key:"minWidth",get:function(){return this.column.minWidth}},{key:"maxWidth",get:function(){return this.column.maxWidth}},{key:"height",get:function(){var e=this.rowHeight;return isNaN(e)?e:e+"px"}},{key:"ngDoCheck",value:function(){this.checkValueUpdates()}},{key:"ngOnDestroy",value:function(){this.cellTemplate&&this.cellTemplate.clear()}},{key:"checkValueUpdates",value:function(){var e="";if(this.row&&this.column){var t=this.column.$$valueGetter(this.row,this.column.prop
1),n=this.column.pipe;n?e=n.transform(t):void 0!==e&&(e=t)}else e="";this.value!==e&&(this.value=e,this.cellContext.value=e,this.sanitizedValue=null!=e?this.stripHtml(e):e,this.cd.markForCheck())}},{key:"onFocus",value:function(){this.isFocused=!0}},{key:"onBlur",value:function(){this.isFocused=!1}},{key:"onClick",value:function(e){this.activate.emit({type:"click",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})}},{key:"onDblClick",value:function(e){this.activate.emit({type:"dblclick",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element})}},{key:"onKeyDown",value:function(e){var t=e.keyCode;(t===Ch.return||t===Ch.down||t===Ch.up||t===Ch.left||t===Ch.right)&&e.target===this._element&&(e.preventDefault(),e.stopPropagation(),this.activate.emit({type:"keydown",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element}))}},{key:"onCheckboxChange",value:function(e){this.activate.emit({type:"checkbox",event:e,row:this.row,group:this.group,rowHeight:this.rowHeight,column:this.column,value:this.value,cellElement:this._element,treeStatus:"collapsed"})}},{key:"calcSortDir",value:function(e){var t=this;if(e){var n=e.find(function(e){return e.prop===t.column.prop});return n?n.dir:void 0}}},{key:"stripHtml",value:function(e){return e.replace?e.replace(/<\/?[^>]+(>|$)/g,""):e}},{key:"onTreeAction",value:function(){this.treeAction.emit(this.row)}},{key:"calcLeftMargin",value:function(e,t){return e.isTreeColumn?t.level*(null!=e.treeLevelIndent?e.treeLevelIndent:50):0}}]),e}()).\u0275fac=function(e){return new(e||mh)(c.dc(c.q),c.dc(c.j))},mh.\u0275cmp=c.Xb({type:mh,selectors:[["datatable-body-cell"]],viewQuery:function(e,t){var n;1&e&&c.ed(ku,7,c.cb),2&e&&c.Mc(n=c.uc())&&(t.cellTemplate=n.first)},hostVars:10,hostBindings:function(e,t){1&e&&c.tc("focus",function(){return t.onFocus()})("blur",function(){return t.onBlur()})("click",function(e){return t.onClick(e)})("dblclick",function(e){return t.onDblClick(e)})("keydown",function(e){return t.onKeyDown(e)}),2&e&&(c.Sb(t.columnCssClasses),c.Xc("width",t.width,"px")("min-width",t.minWidth,"px")("max-width",t.maxWidth,"px")("height",t.height))},inputs:{group:"group",rowHeight:"rowHeight",isSelected:"isSelected",expanded:"expanded",rowIndex:"rowIndex",column:"column",row:"row",sorts:"sorts",treeStatus:"treeStatus",displayCheck:"displayCheck"},outputs:{activate:"activate",treeAction:"treeAction"},decls:5,vars:6,consts:[[1,"datatable-body-cell-label"],["class","datatable-checkbox",4,"ngIf"],[4,"ngIf"],[3,"title","innerHTML",4,"ngIf"],[1,"datatable-checkbox"],["type","checkbox",3,"checked","click"],["class","datatable-tree-button",3,"disabled","click",4,"ngIf"],[1,"datatable-tree-button",3,"disabled","click"],["class","icon datatable-icon-collapse",4,"ngIf"],["class","icon datatable-icon-up",4,"ngIf"],["class","icon datatable-icon-down",4,"ngIf"],[1,"icon","datatable-icon-collapse"],[1,"icon","datatable-icon-up"],[1,"icon","datatable-icon-down"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"title","innerHTML"],["cellTemplate",""]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.Yc(1,Cu,2,1,"label",1),c.Yc(2,Pu,3,2,"ng-container",2),c.Yc(3,Lu,1,2,"span",3),c.Yc(4,Iu,2,2,void 0,2),c.ic()),2&e&&(c.Xc("margin-left",t.calcLeftMargin(t.column,t.row),"px"),c.Pb(1),c.Dc("ngIf",t.column.checkboxable&&(!t.displayCheck||t.displayCheck(t.row,t.column,t.value))),c.Pb(1),c.Dc("ngIf",t.column.isTreeColumn),c.Pb(1),c.Dc("ngIf",!t.column.cellTemplate),c.Pb(1),c.Dc("ngIf",t.column.cellTemplate))},directives:[l.m,l.o],encapsulation:2,changeDetection:0}),mh);function Dh(e,t,n){var i=n(t,e);return i>-1?e.splice(i,1):e.push(t),e}var Th,Eh=((Th=function(){function e(){_classCallCheck(this,e),this.activate=new c.s,this.select=new c.s}return _createClass(e,[{key:"selectRow",value:function(e,t,n){var i;if(this.selectEnabled){var r=this.selectionType===Sd.checkbox,a=this.selectionType===Sd.multiClick,o=[];o=this.selectionType===Sd.multi||r||a?e.shiftKey?function(e,t,n,i){for(var r=n<i,a=0;a<t.length;a++){var o;o=r?{start:n,end:i}:{start:i,end:n+1},(r&&a<=i&&a>=n||!r&&a>=i&&a<=n)&&a>=o.start&&a<=o.end&&e.push(t[a])}return e}([],this.rows,t,this.prevIndex,this.getRowSelectedIdx.bind(this)):Dh(e.ctrlKey||e.metaKey||a||r?_toConsumableArray(this.selected):[],n,this.getRowSelectedIdx.bind(this)):Dh([],n,this.getRowSelectedIdx.bind(this)),"function"==typeof this.selectCheck&&(o=o.filter(this.selectCheck.bind(this))),this.selected.splice(0,this.selected.length),(i=this.selected).push.apply(i,_toConsumableArray(o)),this.prevIndex=t,this.select.emit({selected:o})}}},{key:"onActivate",value:function(e,t){var n=e.type,i=e.event,r=e.row,a=this.selectionType===Sd.checkbox;!a&&("click"===n||"dblclick"===n)||a&&"checkbox"===n?this.selectRow(i,t,r):"keydown"===n&&(i.keyCode===Ch.return?this.selectRow(i,t,r):this.onKeyboardFocus(e)),this.activate.emit(e)}},{key:"onKeyboardFocus",value:function(e){var t=e.event.keyCode;if(t===Ch.up||t===Ch.down||t===Ch.right||t===Ch.left){var n=this.selectionType===Sd.cell;e.cellElement&&n?n&&this.focusCell(e.cellElement,e.rowElement,t,e.cellIndex):this.focusRow(e.rowElement,t)}}},{key:"focusRow",value:function(e,t){var n=this.getPrevNextRow(e,t);n&&n.focus()}},{key:"getPrevNextRow",value:function(e,t){var n,i=e.parentElement;if(i&&(t===Ch.up?n=i.previousElementSibling:t===Ch.down&&(n=i.nextElementSibling),n&&n.children.length))return n.children[0]}},{key:"focusCell",value:function(e,t,n,i){var r;if(n===Ch.left)r=e.previousElementSibling;else if(n===Ch.right)r=e.nextElementSibling;else if(n===Ch.up||n===Ch.down){var a=this.getPrevNextRow(t,n);if(a){var o=a.getElementsByClassName("datatable-body-cell");o.length&&(r=o[i])}}r&&r.focus()}},{key:"getRowSelected",value:function(e){return this.getRowSelectedIdx(e,this.selected)>-1}},{key:"getRowSelectedIdx",value:function(e,t){var n=this;if(!t||!t.length)return-1;var i=this.rowIdentity(e);return t.findIndex(function(e){return n.rowIdentity(e)===i})}}]),e}()).\u0275fac=function(e){return new(e||Th)},Th.\u0275cmp=c.Xb({type:Th,selectors:[["datatable-selection"]],inputs:{rows:"rows",selected:"selected",selectEnabled:"selectEnabled",selectionType:"selectionType",rowIdentity:"rowIdentity",selectCheck:"selectCheck"},outputs:{activate:"activate",select:"select"},ngContentSelectors:Nc,decls:1,vars:0,template:function(e,t){1&e&&(c.Cc(),c.Bc(0))},encapsulation:2,changeDetection:0}),Th);function Ah(e){var t=e.filter(function(e){return!!e});return t.length?t.some(function(e){return"number"!=typeof e})?null:t.reduce(function(e,t){return e+t}):null}function Ph(e){return null}var Lh,Oh,Ih=((Oh=function(){function e(){_classCallCheck(this,e),this.summaryRow={}}return _createClass(e,[{key:"ngOnChanges",value:function(){this.columns&&this.rows&&(this.updateInternalColumns(),this.updateV
1alues())}},{key:"updateInternalColumns",value:function(){this._internalColumns=this.columns.map(function(e){return Object.assign(Object.assign({},e),{cellTemplate:e.summaryTemplate})})}},{key:"updateValues",value:function(){var e=this;this.summaryRow={},this.columns.filter(function(e){return!e.summaryTemplate}).forEach(function(t){var n=e.rows.map(function(e){return e[t.prop]}),i=e.getSummaryFunction(t);e.summaryRow[t.prop]=t.pipe?t.pipe.transform(i(n)):i(n)})}},{key:"getSummaryFunction",value:function(e){return void 0===e.summaryFunc?Ah:null===e.summaryFunc?Ph:e.summaryFunc}}]),e}()).\u0275fac=function(e){return new(e||Oh)},Oh.\u0275cmp=c.Xb({type:Oh,selectors:[["datatable-summary-row"]],hostAttrs:[1,"datatable-summary-row"],inputs:{rows:"rows",columns:"columns",rowHeight:"rowHeight",offsetX:"offsetX",innerWidth:"innerWidth"},features:[c.Nb],decls:1,vars:1,consts:[["tabindex","-1",3,"innerWidth","offsetX","columns","rowHeight","row","rowIndex",4,"ngIf"],["tabindex","-1",3,"innerWidth","offsetX","columns","rowHeight","row","rowIndex"]],template:function(e,t){1&e&&c.Yc(0,Hu,1,6,"datatable-body-row",0),2&e&&c.Dc("ngIf",t.summaryRow&&t._internalColumns)},directives:[l.m,xh],encapsulation:2}),Oh),Hh=((Lh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t){return{ngModule:e,providers:[{provide:"configuration",useValue:t}]}}}]),e}()).\u0275fac=function(e){return new(e||Lh)},Lh.\u0275mod=c.bc({type:Lh}),Lh.\u0275inj=c.ac({providers:[Gu,Xu,Qu],imports:[[l.c]]}),Lh);"undefined"==typeof document||document.elementsFromPoint||(document.elementsFromPoint=function(e,t){for(var n,i,r,a=[],o=[];(n=document.elementFromPoint(e,t))&&-1===a.indexOf(n)&&null!=n;)a.push(n),o.push({value:n.style.getPropertyValue("pointer-events"),priority:n.style.getPropertyPriority("pointer-events")}),n.style.setProperty("pointer-events","none","important");for(i=o.length;r=o[--i];)a[i].style.setProperty("pointer-events",r.value?r.value:"",r.priority);return a});var jh=n("LgUO");function Fh(e,t){if(1&e){var n=c.kc();c.jc(0,"ngx-toast",2),c.tc("closeToast",function(){var e=c.Qc(n).$implicit;return c.xc().closeToast(e)}),c.ic()}2&e&&c.Dc("toast",t.$implicit)}var Rh=function(e){return[e]};function Nh(e,t){if(1&e){var n=c.kc();c.jc(0,"div",4),c.tc("click",function(e){return c.Qc(n),c.xc().close(e)}),c.ic()}}function Bh(e,t){if(1&e&&(c.ec(0,"span",9),c.yc(1,"safeHtml")),2&e){var n=c.xc(2);c.Dc("innerHTML",c.zc(1,1,n.toast.title),c.Rc)}}function Yh(e,t){1&e&&c.ec(0,"br")}function zh(e,t){if(1&e&&(c.ec(0,"span",10),c.yc(1,"safeHtml")),2&e){var n=c.xc(2);c.Dc("innerHtml",c.zc(1,1,n.toast.msg),c.Rc)}}function Vh(e,t){if(1&e&&(c.jc(0,"div",5),c.Yc(1,Bh,2,3,"span",6),c.Yc(2,Yh,1,0,"br",7),c.Yc(3,zh,2,3,"span",8),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngIf",n.toast.title),c.Pb(1),c.Dc("ngIf",n.toast.title&&n.toast.msg),c.Pb(1),c.Dc("ngIf",n.toast.msg)}}function Uh(e,t){if(1&e&&(c.jc(0,"div",11),c.ec(1,"div",12),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Xc("width",n.progressPercent,"%")}}var $h=function(e,t){return[e,t]};function Wh(e){return"function"==typeof e}var qh,Gh,Xh,Qh,Kh,Zh,Jh=((qh=function e(){_classCallCheck(this,e),this.limit=5,this.showClose=!0,this.showDuration=!0,this.position="bottom-right",this.timeout=5e3,this.theme="default"}).\u0275fac=function(e){return new(e||qh)},qh.\u0275prov=c.Zb({token:qh,factory:qh.\u0275fac}),qh),ef=function(e){return e[e.ADD=0]="ADD",e[e.CLEAR=1]="CLEAR",e[e.CLEAR_ALL=2]="CLEAR_ALL",e}({}),tf=function e(t,n){_classCallCheck(this,e),this.type=t,this.value=n},nf=((Zh=function(){function e(t){_classCallCheck(this,e),this.config=t,this.uniqueCounter=0,this.eventSource=new oe.a,this.events=this.eventSource.asObservable()}return _createClass(e,[{key:"default",value:function(e){this.add(e,"default")}},{key:"info",value:function(e){this.add(e,"info")}},{key:"success",value:function(e){this.add(e,"success")}},{key:"wait",value:function(e){this.add(e,"wait")}},{key:"error",value:function(e){this.add(e,"error")}},{key:"warning",value:function(e){this.add(e,"warning")}},{key:"add",value:function(t,n){var i;
1if(!(i="string"==typeof t&&""!==t||"number"==typeof t?{title:t.toString()}:t)||!i.title&&!i.msg)throw new Error("ngx-toasta: No toast title or message specified!");n=n||"default",this.uniqueCounter++;var r,a=this._checkConfigItem(this.config,i,"showClose"),o=this._checkConfigItem(this.config,i,"showDuration");r=i.theme&&e.THEMES.indexOf(i.theme)>-1?i.theme:this.config.theme;var s={id:this.uniqueCounter,title:i.title,msg:i.msg,showClose:a,showDuration:o,type:"toasta-type-"+n,theme:"toasta-theme-"+r,onAdd:i.onAdd&&Wh(i.onAdd)?i.onAdd:null,onRemove:i.onRemove&&Wh(i.onRemove)?i.onRemove:null};s.timeout=i.hasOwnProperty("timeout")?i.timeout:this.config.timeout,this.emitEvent(new tf(ef.ADD,s)),i.onAdd&&Wh(i.onAdd)&&i.onAdd.call(this,s)}},{key:"clearAll",value:function(){this.emitEvent(new tf(ef.CLEAR_ALL))}},{key:"clear",value:function(e){this.emitEvent(new tf(ef.CLEAR,e))}},{key:"_checkConfigItem",value:function(e,t,n){return!1!==t[n]&&(!!t[n]||e[n])}},{key:"emitEvent",value:function(e){this.eventSource&&this.eventSource.next(e)}}]),e}()).\u0275fac=function(e){return new(e||Zh)(c.qc(Jh))},Zh.\u0275prov=c.Zb({token:Zh,factory:Zh.\u0275fac}),Zh.THEMES=["default","material","bootstrap"],Zh),rf=((Kh=function(){function e(t,n){_classCallCheck(this,e),this.config=t,this.toastaService=n,this._position="",this.toasts=[],this.position=""}return _createClass(e,[{key:"position",get:function(){return this._position},set:function(t){if(t){for(var n=!0,i=0;i<e.POSITIONS.length;i++)if(e.POSITIONS[i]===t){n=!1;break}n&&(t=this.config.position)}else t=this.config.position;this._position="toasta-position-"+t}},{key:"ngOnInit",value:function(){var e=this;this.toastaService.events.subscribe(function(t){t.type===ef.ADD?e.add(t.value):t.type===ef.CLEAR?e.clear(t.value):t.type===ef.CLEAR_ALL&&e.clearAll()})}},{key:"closeToast",value:function(e){this.clear(e.id)}},{key:"add",value:function(e){this.config.limit&&this.toasts.length>=this.config.limit&&this.toasts.shift(),this.toasts.push(e),+e.timeout&&this._setTimeout(e)}},{key:"clear",value:function(e){var t=this;if(!e)throw new Error("Please provide id of Toast to close");this.toasts.forEach(function(n,i){n.id===e&&(n.onRemove&&Wh(n.onRemove)&&n.onRemove.call(t,n),t.toasts.splice(i,1))})}},{key:"clearAll",value:function(){var e=this;this.toasts.forEach(function(t,n){t.onRemove&&Wh(t.onRemove)&&t.onRemove.call(e,t)}),this.toasts=[]}},{key:"_setTimeout",value:function(e){var t=this;window.setTimeout(function(){t.clear(e.id)},e.timeout)}}]),e}()).\u0275fac=function(e){return new(e||Kh)(c.dc(Jh),c.dc(nf))},Kh.\u0275cmp=c.Xb({type:Kh,selectors:[["ngx-toasta"]],inputs:{position:"position"},decls:2,vars:4,consts:[["id","toasta",3,"ngClass"],[3,"toast","closeToast",4,"ngFor","ngForOf"],[3,"toast","closeToast"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.Yc(1,Fh,1,1,"ngx-toast",1),c.ic()),2&e&&(c.Dc("ngClass",c.Hc(2,Rh,t.position)),c.Pb(1),c.Dc("ngForOf",t.toasts))},directives:function(){return[l.k,l.l,af]},encapsulation:2}),Kh.POSITIONS=["bottom-right","bottom-left","bottom-center","bottom-fullwidth","top-right","top-left","top-center","top-fullwidth","center-center"],Kh),af=((Qh=function(){function e(){_classCallCheck(this,e),this.progressPercent=0,this.startTime=performance.now(),this.closeToastEvent=new c.s}return _createClass(e,[{key:"ngAfterViewInit",value:function(){var e=this;this.toast.showDuration&&this.toast.timeout>0&&(this.progressInterval=window.setInterval(function(){e.progressPercent=100-(performance.now()-e.startTime)/e.toast.timeout*100,e.progressPercent<=0&&clearInterval(e.progressInterval)},16.7))}},{key:"close",value:function(e){e.preventDefault(),this.closeToastEvent.next(this.toast),this.progressInterval&&clearInterval(this.progressInterval)}}]),e}()).\u0275fac=function(e){return new(e||Qh)},Qh.\u0275cmp=c.Xb({type:Qh,selectors:[["ngx-toast"]],inputs:{toast:"toast"},outputs:{closeToastEvent:"closeToast"},decls:4,vars:7,consts:[[1,"toast",3,"ngClass"],["class","close-button",3,"click",4,"ngIf"],["class","toast-text",4,"ngIf"],["class","durationbackground",4,"ngIf"],[1,"close-button",3,"click"],[1,"toast-text"],["class","toast-title",3,"innerHTML",4,"ngIf"],[4,"ngIf"],["class","toast-msg",3,"innerHtml",4,"ngIf"],[1,"toast-title",3,"innerHTML"],[1,"toast-msg",3,"innerHtml"],[1,"durationbackground"],[1,"durationbar"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.Yc(1,Nh,1,0,"div",1),c.Yc(2,Vh,4,3,"div",2),c.Yc(3,Uh,2,2,"div",3),c.ic()),2&e&&(c.Dc("ngClass",c.Ic(4,$h,t.toast.type,t.toast.theme)),c.Pb(1),c.Dc("ngIf",t.toast.showClose),c.Pb(1),c.Dc("ngIf",t.toast.title||t.toast.msg),c.Pb(1),c.Dc("ngIf",t.toast.showDuration&&t.toast.timeout>0))},directives:function(){return[l.k,l.m]},pipes:function(){return[of]},encapsulation:2}),Qh),of=((Xh=function(){function e(t){_classCallCheck(this,e),this.domSanitized=t}return _createClass(e,[{key:"transform",value:function(e){return this.domSanitized.bypassSecurityTrustHtml(e)}}]),e}()).\u0275fac=function(e){return new(e||Xh)(c.dc(z,16))},Xh.\u0275pipe=c.cc({name:"safeHtml",type:Xh,pure:!0}),Xh),sf=[Jh,{provide:nf,useFactory:function(e){return new nf(e)},deps:[Jh]}],lf=((Gh=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){return{ngModule:e,providers:sf}}}]),e}()).\u0275fac=function(e){return new(e||Gh)}
1,Gh.\u0275mod=c.bc({type:Gh}),Gh.\u0275inj=c.ac({providers:sf,imports:[[l.c]]}),Gh),cf=function(){function e(t){_classCallCheck(this,e),this.durationSelector=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new uf(e,this.durationSelector))}}]),e}(),uf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).durationSelector=i,r.hasValue=!1,r}return _createClass(n,[{key:"_next",value:function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t;try{t=(0,this.durationSelector)(e)}catch(i){return this.destination.error(i)}var n=Object(Me.c)(t,new Me.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},{key:"clearThrottle",value:function(){var e=this.value,t=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}},{key:"notifyNext",value:function(){this.clearThrottle()}},{key:"notifyComplete",value:function(){this.clearThrottle()}}]),n}(Me.b),df=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;
1return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(function(){return e.flush(null)})))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}}]),n}(Ql.a),hf=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(Zl.a))(df),ff=1,pf=Promise.resolve(),mf={};function gf(e){return e in mf&&(delete mf[e],!0)}var vf=function(e){var t=ff++;return mf[t]=!0,pf.then(function(){return gf(t)&&e()}),t},yf=function(e){gf(e)},bf=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;
1return _classCallCheck(this,n),(r=t.call(this,e,i)).scheduler=e,r.work=i,r}return _createClass(n,[{key:"requestAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==i&&i>0?_get(_getPrototypeOf(n.prototype),"requestAsyncId",this).call(this,e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=vf(e.flush.bind(e,null))))}},{key:"recycleAsyncId",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==i&&i>0||null===i&&this.delay>0)return _get(_getPrototypeOf(n.prototype),"recycleAsyncId",this).call(this,e,t,i);0===e.actions.length&&(yf(t),e.scheduled=void 0)}}]),n}(Ql.a),_f=new(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"flush",value:function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,i=-1,r=n.length;e=e||n.shift();do{if(t=e.execute(e.state,e.delay))break}while(++i<r&&(e=n.shift()));if(this.active=!1,t){for(;++i<r&&(e=n.shift());)e.unsubscribe();throw t}}}]),n}(Zl.a))(bf),wf=["content"],kf=["scroll"],Cf=["padding"],xf=function(e){return{searchTerm:e}};function Sf(e,t){if(1&e&&(c.jc(0,"div",6),c.fc(1,7),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngTemplateOutlet",n.headerTemplate)("ngTemplateOutletContext",c.Hc(2,xf,n.filterValue))}}function Mf(e,t){if(1&e&&(c.jc(0,"div",8),c.fc(1,7),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngTemplateOutlet",n.footerTemplate)("ngTemplateOutletContext",c.Hc(2,xf,n.filterValue))}}var Df=["*"],Tf=["searchInput"];function Ef(e,t){if(1&e){var n=c.kc();c.jc(0,"span",15),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc(2).unselect(e)}),c.ad(1,"\xd7"),c.ic(),c.ec(2,"span",16)}if(2&e){var i=c.xc().$implicit,r=c.xc(2);c.Pb(2),c.Dc("ngItemLabel",i.label)("escape",r.escapeHTML)}}function Af(e,t){}var Pf=function(e,t,n){return{item:e,clear:t,label:n}};function Lf(e,t){if(1&e&&(c.jc(0,"div",12),c.Yc(1,Ef,3,2,"ng-template",null,13,c.Zc),c.Yc(3,Af,0,0,"ng-template",14),c.ic()),2&e){var n=t.$implicit,i=c.Nc(2),r=c.xc(2);c.Vb("ng-value-disabled",n.disabled),c.Pb(3),c.Dc("ngTemplateOutlet",r.labelTemplate||i)("ngTemplateOutletContext",c.Jc(4,Pf,n.value,r.clearItem,n.label))}}function Of(e,t){if(1&e&&(c.hc(0),c.Yc(1,Lf,4,8,"div",11),c.gc()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngForOf",n.selectedItems)("ngForTrackBy",n.trackByOption)}}function If(e,t){}var Hf=function(e,t){return{items:e,clear:t}};function jf(e,t){if(1&e&&c.Yc(0,If,0,0,"ng-template",14),2&e){var n=c.xc();c.Dc("ngTemplateOutlet",n.multiLabelTemplate)("ngTemplateOutletContext",c.Ic(2,Hf,n.selectedValues,n.clearItem))}}function Ff(e,t){1&e&&c.ec(0,"div",19)}function Rf(e,t){}function Nf(e,t){if(1&e&&(c.hc(0),c.Yc(1,Ff,1,0,"ng-template",null,17,c.Zc),c.Yc(3,Rf,0,0,"ng-template",18),c.gc()),2&e){var n=c.Nc(2),i=c.xc();c.Pb(3),c.Dc("ngTemplateOutlet",i.loadingSpinnerTemplate||n)}}function Bf(e,t){if(1&e&&(c.jc(0,"span",20),c.jc(1,"span",21),c.ad(2,"\xd7"),c.ic(),c.ic()),2&e){var n=c.xc();c.Ec("title",n.clearAllText)}}function Yf(e,t){if(1&e&&c.ec(0,"span",27),2&e){var n=c.xc().$implicit,i=c.xc(2);c.Dc("ngItemLabel",n.label)("escape",i.escapeHTML)}}function zf(e,t){}var Vf=function(e,t,n,i){return{item:e,item$:t,index:n,searchTerm:i}};function Uf(e,t){if(1&e){var n=c.kc();c.jc(0,"div",25),c.tc("click",function(){var e=c.Qc(n).$implicit;return c.xc(2).toggleItem(e)})("mouseover",function(){var e=c.Qc(n).$implicit;return c.xc(2).onItemHover(e)}),c.Yc(1,Yf,1,2,"ng-template",null,26,c.Zc),c.Yc(3,zf,0,0,"ng-template",14),c.ic()}if(2&e){var i=t.$implicit,r=c.Nc(2),a=c.xc(2);c.Vb("ng-option-disabled",i.disabled)("ng-option-selected",i.selected)("ng-optgroup",i.children)("ng-option",!i.children)("ng-option-child",!!i.parent)("ng-option-marked",i===a.itemsList.markedItem),c.Qb("role",i.children?"group":"option")("aria-selected",i.selected)("id",null==i?null:i.htmlId),c.Pb(3),c.Dc("ngTemplateOutlet",i.children?a.optgroupTemplate||r:a.optionTemplate||r)("ngTemplateOutletContext",c.Kc(17,Vf,i.value,i,i.index,a.searchTerm))}}function $f(e,t){if(1&e&&(c.jc(0,"span"),c.jc(1,"span",30),c.ad(2),c.ic(),c.ad(3),c.ic()),2&e){var n=c.xc(3);c.Pb(2),c.bd(n.addTagText),c.Pb(1),c.cd('"',n.searchTerm,'"')}}function Wf(e,t){}function qf(e,t){if(1&e){var n=c.kc();c.jc(0,"div",28),c.tc("mouseover",function(){return c.Qc(n),c.xc(2).itemsList.unmarkItem()})("click",function(){return c.Qc(n),c.xc(2).selectTag()}),c.Yc(1,$f,4,2,"ng-template",null,29,c.Zc),c.Yc(3,Wf,0,0,"ng-template",14),
1c.ic()}if(2&e){var i=c.Nc(2),r=c.xc(2);c.Vb("ng-option-marked",!r.itemsList.markedItem),c.Pb(3),c.Dc("ngTemplateOutlet",r.tagTemplate||i)("ngTemplateOutletContext",c.Hc(4,xf,r.searchTerm))}}function Gf(e,t){if(1&e&&(c.jc(0,"div",32),c.ad(1),c.ic()),2&e){var n=c.xc(3);c.Pb(1),c.bd(n.notFoundText)}}function Xf(e,t){}function Qf(e,t){if(1&e&&(c.hc(0),c.Yc(1,Gf,2,1,"ng-template",null,31,c.Zc),c.Yc(3,Xf,0,0,"ng-template",14),c.gc()),2&e){var n=c.Nc(2),i=c.xc(2);c.Pb(3),c.Dc("ngTemplateOutlet",i.notFoundTemplate||n)("ngTemplateOutletContext",c.Hc(2,xf,i.searchTerm))}}function Kf(e,t){if(1&e&&(c.jc(0,"div",32),c.ad(1),c.ic()),2&e){var n=c.xc(3);c.Pb(1),c.bd(n.typeToSearchText)}}function Zf(e,t){}function Jf(e,t){if(1&e&&(c.hc(0),c.Yc(1,Kf,2,1,"ng-template",null,33,c.Zc),c.Yc(3,Zf,0,0,"ng-template",18),c.gc()),2&e){var n=c.Nc(2),i=c.xc(2);c.Pb(3),c.Dc("ngTemplateOutlet",i.typeToSearchTemplate||n)}}function ep(e,t){if(1&e&&(c.jc(0,"div",32),c.ad(1),c.ic()),2&e){var n=c.xc(3);c.Pb(1),c.bd(n.loadingText)}}function tp(e,t){}function np(e,t){if(1&e&&(c.hc(0),c.Yc(1,ep,2,1,"ng-template",null,34,c.Zc),c.Yc(3,tp,0,0,"ng-template",14),c.gc()),2&e){var n=c.Nc(2),i=c.xc(2);c.Pb(3),c.Dc("ngTemplateOutlet",i.loadingTextTemplate||n)("ngTemplateOutletContext",c.Hc(2,xf,i.searchTerm))}}function ip(e,t){if(1&e){var n=c.kc();c.jc(0,"ng-dropdown-panel",22),c.tc("update",function(e){return c.Qc(n),c.xc().viewPortItems=e})("scroll",function(e){return c.Qc(n),c.xc().scroll.emit(e)})("scrollToEnd",function(e){return c.Qc(n),c.xc().scrollToEnd.emit(e)})("outsideClick",function(){return c.Qc(n),c.xc().close()}),c.hc(1),c.Yc(2,Uf,4,22,"div",23),c.Yc(3,qf,4,6,"div",24),c.gc(),c.Yc(4,Qf,4,4,"ng-container",3),c.Yc(5,Jf,4,1,"ng-container",3),c.Yc(6,np,4,4,"ng-container",3),c.ic()}if(2&e){var i=c.xc();c.Vb("ng-select-multiple",i.multiple),c.Dc("virtualScroll",i.virtualScroll)("bufferAmount",i.bufferAmount)("appendTo",i.appendTo)("position",i.dropdownPosition)("headerTemplate",i.headerTemplate)("footerTemplate",i.footerTemplate)("filterValue",i.searchTerm)("items",i.itemsList.filteredItems)("markedItem",i.itemsList.markedItem)("ngClass",i.appendTo?i.classes:null)("id",i.dropdownId),c.Pb(2),c.Dc("ngForOf",i.viewPortItems)("ngForTrackBy",i.trackByOption),c.Pb(1),c.Dc("ngIf",i.showAddTag),c.Pb(1),c.Dc("ngIf",i.showNoItemsFound()),c.Pb(1),c.Dc("ngIf",i.showTypeToSearch()),c.Pb(1),c.Dc("ngIf",i.loading&&0===i.itemsList.filteredItems.length)}}var rp=/[&<>"']/g,ap=RegExp(rp.source),op={"&":"&","<":"<",">":">",'"':""","'":"'"};function sp(e){return null!=e}function lp(e){return"object"==typeof e&&sp(e)}function cp(e){return e instanceof Function}var up,dp,hp,fp,pp,mp,gp,vp,yp,bp,_p,wp,kp,Cp=((kp=function(){function e(t){_classCallCheck(this,e),this.element=t,this.escape=!0}return _createClass(e,[{key:"ngOnChanges",value:function(e){var t;this.element.nativeElement.innerHTML=this.escape?(t=this.ngItemLabel)&&ap.test(t)?t.replace(rp,function(e){return op[e]}):t:this.ngItemLabel}}]),e}()).\u0275fac=function(e){return new(e||kp)(c.dc(c.q))},kp.\u0275dir=c.Yb({type:kp,selectors:[["","ngItemLabel",""]],inputs:{escape:"escape",ngItemLabel:"ngItemLabel"},features:[c.Nb]}),kp),xp=((wp=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||wp)(c.dc(c.X))},wp.\u0275dir=c.Yb({type:wp,selectors:[["","ng-option-tmp",""]]}),wp),Sp=((_p=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||_p)(c.dc(c.X))},_p.\u0275dir=c.Yb({type:_p,selectors:[["","ng-optgroup-tmp",""]]}),_p),Mp=((bp=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||bp)(c.dc(c.X))},bp.\u0275dir=c.Yb({type:bp,selectors:[["","ng-label-tmp",""]]}),bp),Dp=((yp=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||yp)(c.dc(c.X))},yp.\u0275dir=c.Yb({type:yp,selectors:[["","ng-multi-label-tmp",""]]}),yp),Tp=((vp=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||vp)(c.dc(c.X))},vp.\u0275dir=c.Yb({type:vp,selectors:[["","ng-header-tmp",""]]}),vp),Ep=((gp=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||gp)(c.dc(c.X))},gp.\u0275dir=c.Yb({type:gp,selectors:[["","ng-footer-tmp",""]]}),gp),Ap=((mp=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||mp)(c.dc(c.X))},mp.\u0275dir=c.Yb({type:mp,selectors:[["","ng-notfound-tmp",""]]}),mp),Pp=((pp=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||pp)(c.dc(c.X))},pp.\u0275dir=c.Yb({type:pp,selectors:[["","ng-typetosearch-tmp",""]]}),pp),Lp=((fp=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||fp)(c.dc(c.X))},fp.\u0275dir=c.Yb({type:fp,selectors:[["","ng-loadingtext-tmp",""]]}),fp),Op=((hp=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||hp)(c.dc(c.X))},hp.\u0275dir=c.Yb({type:hp,selectors:[["","ng-tag-tmp",""]]}),hp),Ip=((dp=function e(t){_classCallCheck(this,e),this.template=t}).\u0275fac=function(e){return new(e||dp)(c.dc(c.X))},dp.\u0275dir=c.Yb({type:dp,selectors:[["","ng-loadingspinner-tmp",""]]}),dp),Hp=((up=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"warn",value:function(e){console.warn(e)}}]),e}()).\u0275fac=function(e){return new(e||up)},up.\u0275prov=Object(c.Zb)({factory:function(){return new up},token:up,providedIn:"root"}),up);function jp(){return"axxxxxxxxxxx".replace(/[x]/g,function(e){return(16*Math.random()|0).toString(16)})}var Fp
vendor: 10,560 bytes, line 1
1={"\u24b6":"A","\uff21":"A","\xc0":"A","\xc1":"A","\xc2":"A","\u1ea6":"A","\u1ea4":"A","\u1eaa":"A","\u1ea8":"A","\xc3":"A","\u0100":"A","\u0102":"A","\u1eb0":"A","\u1eae":"A","\u1eb4":"A","\u1eb2":"A","\u0226":"A","\u01e0":"A","\xc4":"A","\u01de":"A","\u1ea2":"A","\xc5":"A","\u01fa":"A","\u01cd":"A","\u0200":"A","\u0202":"A","\u1ea0":"A","\u1eac":"A","\u1eb6":"A","\u1e00":"A","\u0104":"A","\u023a":"A","\u2c6f":"A","\ua732":"AA","\xc6":"AE","\u01fc":"AE","\u01e2":"AE","\ua734":"AO","\ua736":"AU","\ua738":"AV","\ua73a":"AV","\ua73c":"AY","\u24b7":"B","\uff22":"B","\u1e02":"B","\u1e04":"B","\u1e06":"B","\u0243":"B","\u0182":"B","\u0181":"B","\u24b8":"C","\uff23":"C","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\xc7":"C","\u1e08":"C","\u0187":"C","\u023b":"C","\ua73e":"C","\u24b9":"D","\uff24":"D","\u1e0a":"D","\u010e":"D","\u1e0c":"D","\u1e10":"D","\u1e12":"D","\u1e0e":"D","\u0110":"D","\u018b":"D","\u018a":"D","\u0189":"D","\ua779":"D","\u01f1":"DZ","\u01c4":"DZ","\u01f2":"Dz","\u01c5":"Dz","\u24ba":"E","\uff25":"E","\xc8":"E","\xc9":"E","\xca":"E","\u1ec0":"E","\u1ebe":"E","\u1ec4":"E","\u1ec2":"E","\u1ebc":"E","\u0112":"E","\u1e14":"E","\u1e16":"E","\u0114":"E","\u0116":"E","\xcb":"E","\u1eba":"E","\u011a":"E","\u0204":"E","\u0206":"E","\u1eb8":"E","\u1ec6":"E","\u0228":"E","\u1e1c":"E","\u0118":"E","\u1e18":"E","\u1e1a":"E","\u0190":"E","\u018e":"E","\u24bb":"F","\uff26":"F","\u1e1e":"F","\u0191":"F","\ua77b":"F","\u24bc":"G","\uff27":"G","\u01f4":"G","\u011c":"G","\u1e20":"G","\u011e":"G","\u0120":"G","\u01e6":"G","\u0122":"G","\u01e4":"G","\u0193":"G","\ua7a0":"G","\ua77d":"G","\ua77e":"G","\u24bd":"H","\uff28":"H","\u0124":"H","\u1e22":"H","\u1e26":"H","\u021e":"H","\u1e24":"H","\u1e28":"H","\u1e2a":"H","\u0126":"H","\u2c67":"H","\u2c75":"H","\ua78d":"H","\u24be":"I","\uff29":"I","\xcc":"I","\xcd":"I","\xce":"I","\u0128":"I","\u012a":"I","\u012c":"I","\u0130":"I","\xcf":"I","\u1e2e":"I","\u1ec8":"I","\u01cf":"I","\u0208":"I","\u020a":"I","\u1eca":"I","\u012e":"I","\u1e2c":"I","\u0197":"I","\u24bf":"J","\uff2a":"J","\u0134":"J","\u0248":"J","\u24c0":"K","\uff2b":"K","\u1e30":"K","\u01e8":"K","\u1e32":"K","\u0136":"K","\u1e34":"K","\u0198":"K","\u2c69":"K","\ua740":"K","\ua742":"K","\ua744":"K","\ua7a2":"K","\u24c1":"L","\uff2c":"L","\u013f":"L","\u0139":"L","\u013d":"L","\u1e36":"L","\u1e38":"L","\u013b":"L","\u1e3c":"L","\u1e3a":"L","\u0141":"L","\u023d":"L","\u2c62":"L","\u2c60":"L","\ua748":"L","\ua746":"L","\ua780":"L","\u01c7":"LJ","\u01c8":"Lj","\u24c2":"M","\uff2d":"M","\u1e3e":"M","\u1e40":"M","\u1e42":"M","\u2c6e":"M","\u019c":"M","\u24c3":"N","\uff2e":"N","\u01f8":"N","\u0143":"N","\xd1":"N","\u1e44":"N","\u0147":"N","\u1e46":"N","\u0145":"N","\u1e4a":"N","\u1e48":"N","\u0220":"N","\u019d":"N","\ua790":"N","\ua7a4":"N","\u01ca":"NJ","\u01cb":"Nj","\u24c4":"O","\uff2f":"O","\xd2":"O","\xd3":"O","\xd4":"O","\u1ed2":"O","\u1ed0":"O","\u1ed6":"O","\u1ed4":"O","\xd5":"O","\u1e4c":"O","\u022c":"O","\u1e4e":"O","\u014c":"O","\u1e50":"O","\u1e52":"O","\u014e":"O","\u022e":"O","\u0230":"O","\xd6":"O","\u022a":"O","\u1ece":"O","\u0150":"O","\u01d1":"O","\u020c":"O","\u020e":"O","\u01a0":"O","\u1edc":"O","\u1eda":"O","\u1ee0":"O","\u1ede":"O","\u1ee2":"O","\u1ecc":"O","\u1ed8":"O","\u01ea":"O","\u01ec":"O","\xd8":"O","\u01fe":"O","\u0186":"O","\u019f":"O","\ua74a":"O","\ua74c":"O","\u01a2":"OI","\ua74e":"OO","\u0222":"OU","\u24c5":"P","\uff30":"P","\u1e54":"P","\u1e56":"P","\u01a4":"P","\u2c63":"P","\ua750":"P","\ua752":"P","\ua754":"P","\u24c6":"Q","\uff31":"Q","\ua756":"Q","\ua758":"Q","\u024a":"Q","\u24c7":"R","\uff32":"R","\u0154":"R","\u1e58":"R","\u0158":"R","\u0210":"R","\u0212":"R","\u1e5a":"R","\u1e5c":"R","\u0156":"R","\u1e5e":"R","\u024c":"R","\u2c64":"R","\ua75a":"R","\ua7a6":"R","\ua782":"R","\u24c8":"S","\uff33":"S","\u1e9e":"S","\u015a":"S","\u1e64":"S","\u015c":"S","\u1e60":"S","\u0160":"S","\u1e66":"S","\u1e62":"S","\u1e68":"S","\u0218":"S","\u015e":"S","\u2c7e":"S","\ua7a8":"S","\ua784":"S","\u24c9":"T","\uff34":"T","\u1e6a":"T","\u0164":"T","\u1e6c":"T","\u021a":"T","\u0162":"T","\u1e70":"T","\u1e6e":"T","\u0166":"T","\u01ac":"T","\u01ae":"T","\u023e":"T","\ua786":"T","\ua728":"TZ","\u24ca":"U","\uff35":"U","\xd9":"U","\xda":"U","\xdb":"U","\u0168":"U","\u1e78":"U","\u016a":"U","\u1e7a":"U","\u016c":"U","\xdc":"U","\u01db":"U","\u01d7":"U","\u01d5":"U","\u01d9":"U","\u1ee6":"U","\u016e":"U","\u0170":"U","\u01d3":"U","\u0214":"U","\u0216":"U","\u01af":"U","\u1eea":"U","\u1ee8":"U","\u1eee":"U","\u1eec":"U","\u1ef0":"U","\u1ee4":"U","\u1e72":"U","\u0172":"U","\u1e76":"U","\u1e74":"U","\u0244":"U","\u24cb":"V","\uff36":"V","\u1e7c":"V","\u1e7e":"V","\u01b2":"V","\ua75e":"V","\u0245":"V","\ua760":"VY","\u24cc":"W","\uff37":"W","\u1e80":"W","\u1e82":"W","\u0174":"W","\u1e86":"W","\u1e84":"W","\u1e88":"W","\u2c72":"W","\u24cd":"X","\uff38":"X","\u1e8a":"X","\u1e8c":"X","\u24ce":"Y","\uff39":"Y","\u1ef2":"Y","\xdd":"Y","\u0176":"Y","\u1ef8":"Y","\u0232":"Y","\u1e8e":"Y","\u0178":"Y","\u1ef6":"Y","\u1ef4":"Y","\u01b3":"Y","\u024e":"Y","\u1efe":"Y","\u24cf":"Z","\uff3a":"Z","\u0179":"Z","\u1e90":"Z","\u017b":"Z","\u017d":"Z","\u1e92":"Z","\u1e94":"Z","\u01b5":"Z","\u0224":"Z","\u2c7f":"Z","\u2c6b":"Z","\ua762":"Z","\u24d0":"a","\uff41":"a","\u1e9a":"a","\xe0":"a","\xe1":"a","\xe2":"a","\u1ea7":"a","\u1ea5":"a","\u1eab":"a","\u1ea9":"a","\xe3":"a","\u0101":"a","\u0103":"a","\u1eb1":"a","\u1eaf":"a","\u1eb5":"a","\u1eb3":"a","\u0227":"a","\u01e1":"a","\xe4":"a","\u01df":"a","\u1ea3":"a","\xe5":"a","\u01fb":"a","\u01ce":"a","\u0201":"a","\u0203":"a","\u1ea1":"a","\u1ead":"a","\u1eb7":"a","\u1e01":"a","\u0105":"a","\u2c65":"a","\u0250":"a","\ua733":"aa","\xe6":"ae","\u01fd":"ae","\u01e3":"ae","\ua735":"ao","\ua737":"au","\ua739":"av","\ua73b":"av","\ua73d":"ay","\u24d1":"b","\uff42":"b","\u1e03":"b","\u1e05":"b","\u1e07":"b","\u0180":"b","\u0183":"b","\u0253":"b","\u24d2":"c","\uff43":"c","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\xe7":"c","\u1e09":"c","\u0188":"c","\u023c":"c","\ua73f":"c","\u2184":"c","\u24d3":"d","\uff44":"d","\u1e0b":"d","\u010f":"d","\u1e0d":"d","\u1e11":"d","\u1e13":"d","\u1e0f":"d","\u0111":"d","\u018c":"d","\u0256":"d","\u0257":"d","\ua77a":"d","\u01f3":"dz","\u01c6":"dz","\u24d4":"e","\uff45":"e","\xe8":"e","\xe9":"e","\xea":"e","\u1ec1":"e","\u1ebf":"e","\u1ec5":"e","\u1ec3":"e","\u1ebd":"e","\u0113":"e","\u1e15":"e","\u1e17":"e","\u0115":"e","\u0117":"e","\xeb":"e","\u1ebb":"e","\u011b":"e","\u0205":"e","\u0207":"e","\u1eb9":"e","\u1ec7":"e","\u0229":"e","\u1e1d":"e","\u0119":"e","\u1e19":"e","\u1e1b":"e","\u0247":"e","\u025b":"e","\u01dd":"e","\u24d5":"f","\uff46":"f","\u1e1f":"f","\u0192":"f","\ua77c":"f","\u24d6":"g","\uff47":"g","\u01f5":"g","\u011d":"g","\u1e21":"g","\u011f":"g","\u0121":"g","\u01e7":"g","\u0123":"g","\u01e5":"g","\u0260":"g","\ua7a1":"g","\u1d79":"g","\ua77f":"g","\u24d7":"h","\uff48":"h","\u0125":"h","\u1e23":"h","\u1e27":"h","\u021f":"h","\u1e25":"h","\u1e29":"h","\u1e2b":"h","\u1e96":"h","\u0127":"h","\u2c68":"h","\u2c76":"h","\u0265":"h","\u0195":"hv","\u24d8":"i","\uff49":"i","\xec":"i","\xed":"i","\xee":"i","\u0129":"i","\u012b":"i","\u012d":"i","\xef":"i","\u1e2f":"i","\u1ec9":"i","\u01d0":"i","\u0209":"i","\u020b":"i","\u1ecb":"i","\u012f":"i","\u1e2d":"i","\u0268":"i","\u0131":"i","\u24d9":"j","\uff4a":"j","\u0135":"j","\u01f0":"j","\u0249":"j","\u24da":"k","\uff4b":"k","\u1e31":"k","\u01e9":"k","\u1e33":"k","\u0137":"k","\u1e35":"k","\u0199":"k","\u2c6a":"k","\ua741":"k","\ua743":"k","\ua745":"k","\ua7a3":"k","\u24db":"l","\uff4c":"l","\u0140":"l","\u013a":"l","\u013e":"l","\u1e37":"l","\u1e39":"l","\u013c":"l","\u1e3d":"l","\u1e3b":"l","\u017f":"l","\u0142":"l","\u019a":"l","\u026b":"l","\u2c61":"l","\ua749":"l","\ua781":"l","\ua747":"l","\u01c9":"lj","\u24dc":"m","\uff4d":"m","\u1e3f":"m","\u1e41":"m","\u1e43":"m","\u0271":"m","\u026f":"m","\u24dd":"n","\uff4e":"n","\u01f9":"n","\u0144":"n","\xf1":"n","\u1e45":"n","\u0148":"n","\u1e47":"n","\u0146":"n","\u1e4b":"n","\u1e49":"n","\u019e":"n","\u0272":"n","\u0149":"n","\ua791":"n","\ua7a5":"n","\u01cc":"nj","\u24de":"o","\uff4f":"o","\xf2":"o","\xf3":"o","\xf4":"o","\u1ed3":"o","\u1ed1":"o","\u1ed7":"o","\u1ed5":"o","\xf5":"o","\u1e4d":"o","\u022d":"o","\u1e4f":"o","\u014d":"o","\u1e51":"o","\u1e53":"o","\u014f":"o","\u022f":"o","\u0231":"o","\xf6":"o","\u022b":"o","\u1ecf":"o","\u0151":"o","\u01d2":"o","\u020d":"o","\u020f":"o","\u01a1":"o","\u1edd":"o","\u1edb":"o","\u1ee1":"o","\u1edf":"o","\u1ee3":"o","\u1ecd":"o","\u1ed9":"o","\u01eb":"o","\u01ed":"o","\xf8":"o","\u01ff":"o","\u0254":"o","\ua74b":"o","\ua74d":"o","\u0275":"o","\u01a3":"oi","\u0223":"ou","\ua74f":"oo","\u24df":"p","\uff50":"p","\u1e55":"p","\u1e57":"p","\u01a5":"p","\u1d7d":"p","\ua751":"p","\ua753":"p","\ua755":"p","\u24e0":"q","\uff51":"q","\u024b":"q","\ua757":"q","\ua759":"q","\u24e1":"r","\uff52":"r","\u0155":"r","\u1e59":"r","\u0159":"r","\u0211":"r","\u0213":"r","\u1e5b":"r","\u1e5d":"r","\u0157":"r","\u1e5f":"r","\u024d":"r","\u027d":"r","\ua75b":"r","\ua7a7":"r","\ua783":"r","\u24e2":"s","\uff53":"s","\xdf":"s","\u015b":"s","\u1e65":"s","\u015d":"s","\u1e61":"s","\u0161":"s","\u1e67":"s","\u1e63":"s","\u1e69":"s","\u0219":"s","\u015f":"s","\u023f":"s","\ua7a9":"s","\ua785":"s","\u1e9b":"s","\u24e3":"t","\uff54":"t","\u1e6b":"t","\u1e97":"t","\u0165":"t","\u1e6d":"t","\u021b":"t","\u0163":"t","\u1e71":"t","\u1e6f":"t","\u0167":"t","\u01ad":"t","\u0288":"t","\u2c66":"t","\ua787":"t","\ua729":"tz","\u24e4":"u","\uff55":"u","\xf9":"u","\xfa":"u","\xfb":"u","\u0169":"u","\u1e79":"u","\u016b":"u","\u1e7b":"u","\u016d":"u","\xfc":"u","\u01dc":"u","\u01d8":"u","\u01d6":"u","\u01da":"u","\u1ee7":"u","\u016f":"u","\u0171":"u","\u01d4":"u","\u0215":"u","\u0217":"u","\u01b0":"u","\u1eeb":"u","\u1ee9":"u","\u1eef":"u","\u1eed":"u","\u1ef1":"u","\u1ee5":"u","\u1e73":"u","\u0173":"u","\u1e77":"u","\u1e75":"u","\u0289":"u","\u24e5":"v","\uff56":"v","\u1e7d":"v","\u1e7f":"v","\u028b":"v","\ua75f":"v","\u028c":"v","\ua761":"vy","\u24e6":"w","\uff57":"w","\u1e81":"w","\u1e83":"w","\u0175":"w","\u1e87":"w","\u1e85":"w","\u1e98":"w","\u1e89":"w","\u2c73":"w","\u24e7":"x","\uff58":"x","\u1e8b":"x","\u1e8d":"x","\u24e8":"y","\uff59":"y","\u1ef3":"y","\xfd":"y","\u0177":"y","\u1ef9":"y","\u0233":"y","\u1e8f":"y","\xff":"y","\u1ef7":"y","\u1e99":"y","\u1ef5":"y","\u01b4":"y","\u024f":"y","\u1eff":"y","\u24e9":"z","\uff5a":"z","\u017a":"z","\u1e91":"z","\u017c":"z","\u017e":"z","\u1e93":"z","\u1e95":"z","\u01b6":"z","\u0225":"z","\u0240":"z","\u2c6c":"z","\ua763":"z"
1,"\u0386":"\u0391","\u0388":"\u0395","\u0389":"\u0397","\u038a":"\u0399","\u03aa":"\u0399","\u038c":"\u039f","\u038e":"\u03a5","\u03ab":"\u03a5","\u038f":"\u03a9","\u03ac":"\u03b1","\u03ad":"\u03b5","\u03ae":"\u03b7","\u03af":"\u03b9","\u03ca":"\u03b9","\u0390":"\u03b9","\u03cc":"\u03bf","\u03cd":"\u03c5","\u03cb":"\u03c5","\u03b0":"\u03c5","\u03c9":"\u03c9","\u03c2":"\u03c3"};function Rp(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return Fp[e]||e})}var Np,Bp,Yp,zp,Vp,Up,$p=function(){function e(t,n){_classCallCheck(this,e),this._ngSelect=t,this._selectionModel=n,this._items=[],this._filteredItems=[],this._markedIndex=-1}return _createClass(e,[{key:"items",get:function(){return this._items}},{key:"filteredItems",get:function(){return this._filteredItems}},{key:"markedIndex",get:function(){return this._markedIndex}},{key:"selectedItems",get:function(){return this._selectionModel.value}},{key:"markedItem",get:function(){return this._filteredItems[this._markedIndex]}},{key:"noItemsToSelect",get:function(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}},{key:"maxItemsSelected",get:function(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}},{key:"lastSelectedItem",get:function(){for(var e=this.selectedItems.length-1;e>=0;e--){var t=this.selectedItems[e];if(!t.disabled)return t}return null}},{key:"setItems",value:function(e){var t=this;this._items=e.map(function(e,n){return t.mapItem(e,n)}),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=_toConsumableArray(this._items)}},{key:"select",value:function(e){if(!e.selected&&!this.maxItemsSelected){var t=this._ngSelect.multiple;t||this.clearSelected(),this._selectionModel.select(e,t,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(e)}}},{key:"unselect",value:function(e){e.selected&&(this._selectionModel.unselect(e,this._ngSelect.multiple),this._ngSelect.hideSelected&&sp(e.index)&&this._ngSelect.multiple&&this._showSelected(e))}},{key:"findItem",value:function(e){var t,n=this;return t=this._ngSelect.compareWith?function(t){return n._ngSelect.compareWith(t.value,e)}:this._ngSelect.bindValue?function(t){return!t.children&&n.resolveNested(t.value,n._ngSelect.bindValue)===e}:function(t){return t.value===e||!t.children&&t.label&&t.label===n.resolveNested(e,n._ngSelect.bindLabel)},this._items.find(function(e){return t(e)})}},{key:"addItem",value:function(e){var t=this.mapItem(e,this._items.length);return this._items.push(t),this._filteredItems.push(t),t}},{key:"clearSelected",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._selectionModel.clear(e),this._items.forEach(function(t){t.selected=e&&t.selected&&t.disabled,t.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}},{key:"findByLabel",value:function(e){return e=Rp(e).toLocaleLowerCase(),this.filteredItems.find(function(t){return Rp(t.label).toLocaleLowerCase().substr(0,e.length)===e})}},{key:"filter",value:function(e){var t=this;if(e){this._filteredItems=[],e=this._ngSelect.searchFn?e:Rp(e).toLocaleLowerCase();for(var n=this._ngSelect.searchFn||this._defaultSearchFn,i=this._ngSelect.hideSelected,r=0,a=Array.from(this._groups.keys());r<a.length;r++){var o,s=a[r],l=[],c=_createForOfIteratorHelper(this._groups.get(s));try{for(c.s();!(o=c.n()).done;){var u=o.value;i&&(u.parent&&u.parent.selected||u.selected)||n(e,this._ngSelect.searchFn?u.value:u)&&l.push(u)}}catch(d){c.e(d)}finally{c.f()}l.length>0&&function(e){var n=_slicedToArray(l.slice(-1),1)[0];if(n.parent){var i=t._items.find(function(e){return e===n.parent});t._filteredItems.push(i)}(e=t._filteredItems).push.apply(e,l)}()}}else this.resetFilteredItems()}},{key:"resetFilteredItems",value:function(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(function(e){return!e.selected}):this._items)}},{key:"unmarkItem",value:function(){this._markedIndex=-1}},{key:"markNextItem",value:function(){this._stepToItem(1)}},{key:"markPreviousItem",value:function(){this._stepToItem(-1)}},{key:"markItem",value:function(e){this._markedIndex=this._filteredItems.indexOf(e)}},{key:"markSelectedOrDefault",value:function(e){if(0!==this._filteredItems.length){var t=this._getLastMarkedIndex();this._markedIndex=t>-1?t:e?this.filteredItems.findIndex(function(e){return!e.disabled}):-1}}},{key:"resolveNested",value:function(e,t){if(!lp(e))return e;if(-1===t.indexOf("."))return e[t];for(var n=t.split("."),i=e,r=0,a=n.length;r<a;++r){if(null==i)return null;i=i[n[r]]}return i}},{key:"mapItem",value:function(e,t){var n=sp(e.$ngOptionLabel)?e.$ngOptionLabel:this.resolveNested(e,this._ngSelect.bindLabel),i=sp(e.$ngOptionValue)?e.$ngOptionValue:e;return{index:t,label:sp(n)?n.toString():"",value:i,disabled:e.disabled,htmlId:"".concat(this._ngSelect.dropdownId,"-").concat(t)}}},{key:"mapSelectedItems",value:function(){var e,t=this,n=this._ngSelect.multiple,i=_createForOfIteratorHelper(this.selectedItems);try{for(i.s();!(e=i.n()).done;){var r=e.value,a=this._ngSelect.bindValue?this.resolveNested(r.value,this._ngSelect.bindValue):r.value,o=sp(a)?this.findItem(a):null;this._selectionModel.unselect(r,n),this._selectionModel.select(o||r,n,this._ngSelect.selectableGroupAsModel)}}catch(s){i.e(s)}finally{i.f()}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(function(e){return-1===t.selectedItems.indexOf(e)}))}},{key:"_showSelected",value:function(e){if(this._filteredItems.push(e),e.parent){var t=e.parent;this._filteredItems.find(function(e){return e===t})||this._filteredItems.push(t)}else if(e.children){var n,i=_createForOfIteratorHelper(e.children);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.selected=!1,this._filteredItems.push(r)}}catch(a){i.e(a)}finally{i.f()}}this._filteredItems=_toConsumableArray(this._filteredItems.sort(function(e,t){return e.index-t.index}))}},{key:"_hideSelected",value:function(e){this._filteredItems=this._filteredItems.filter(function(t){return t!==e}),e.parent?e.parent.children.every(function(e){return e.selected})&&(this._filteredItems=this._filteredItems.filter(function(t){return t!==e.parent})):e.children&&(this._filteredItems=this.filteredItems.filter(function(t){return t.parent!==e}))}},{key:"_defaultSearchFn",value:function(e,t){return Rp(t.label).toLocaleLowerCase().indexOf(e)>-1}},{key:"_getNextItemIndex",value:function(e){return e>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}},{key:"_stepToItem",value:function(e){0===this._filteredItems.length||this._filteredItems.every(function(e){return e.disabled})||(this._markedIndex=this._getNextItemIndex(e),this.markedItem.disabled&&this._stepToItem(e))}},{key:"_getLastMarkedIndex",value:function(){if(this._ngSelect.hideSelected)return-1;if(this._markedIndex>-1&&void 0===this.markedItem)return-1;var e=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&e<0?-1:Math.max(this.markedIndex,e)}},{key:"_groupBy",value:function(e,t){var n=this,i=new Map;if(0===e.length)return i;if(Array.isArray(e[0].value[t])){var r,a=_createForOfIteratorHelper(e);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=(o.value[t]||[]).map(function(e,t){return n.mapItem(e,t)});i.set(o,s)}}catch(m){a.e(m)}finally{a.f()}return i}var l,c=cp(this._ngSelect.groupBy),u=function(e){var n=c?t(e.value):e.value[t];return sp(n)?n:void 0},d=_createForOfIteratorHelper(e);try{for(d.s();!(l=d.n()).done;){var h=l.value,f=u(h),p=i.get(f);p?p.push(h):i.set(f,[h])}}catch(m){d.e(m)}finally{d.f()}return i}},{key:"_flatten",value:function(e){for(var t=this,n=cp(this._ngSelect.groupBy),i=[],r=function(){var r=o[a],s=i.length;if(void 0===r){var l=e.get(void 0)||[];return i.push.apply(i,_toConsumableArray(l.map(function(e){return e.index=s++,e}))),"continue"}
1var c=lp(r),u={label:c?"":String(r),children:void 0,parent:null,index:s++,disabled:!t._ngSelect.selectableGroup,htmlId:jp()},d=n?t._ngSelect.bindLabel:t._ngSelect.groupBy,h=t._ngSelect.groupValue||function(){return c?r.value:_defineProperty({},d,r)},f=e.get(r).map(function(e){return e.parent=u,e.children=void 0,e.index=s++,e});u.children=f,u.value=h(r,f.map(function(e){return e.value})),i.push(u),i.push.apply(i,_toConsumableArray(f))},a=0,o=Array.from(e.keys());a<o.length;a++)r();return i}}]),e}(),Wp=function(e){return e[e.Tab=9]="Tab",e[e.Enter=13]="Enter",e[e.Esc=27]="Esc",e[e.Space=32]="Space",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowDown=40]="ArrowDown",e[e.Backspace=8]="Backspace",e}({}),qp=((Np=function(){function e(){_classCallCheck(this,e),this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}return _createClass(e,[{key:"dimensions",get:function(){return this._dimensions}},{key:"calculateItems",value:function(e,t,n){var i=this._dimensions,r=i.itemHeight*t,a=Math.max(0,e)/r*t,o=Math.min(t,Math.ceil(a)+(i.itemsPerViewport+1)),s=Math.max(0,o-i.itemsPerViewport),l=Math.min(s,Math.floor(a)),c=i.itemHeight*Math.ceil(l)-i.itemHeight*Math.min(l,n);return c=isNaN(c)?0:c,l=isNaN(l)?-1:l,o=isNaN(o)?-1:o,l-=n,o+=n,{topPadding:c,scrollHeight:r,start:l=Math.max(0,l),end:o=Math.min(t,o)}}},{key:"setDimensions",value:function(e,t){var n=Math.max(1,Math.floor(t/e));this._dimensions={itemHeight:e,panelHeight:t,itemsPerViewport:n}}},{key:"getScrollTo",value:function(e,t,n){var i=this.dimensions.panelHeight,r=e+t,a=n+i;return i>=r&&n===e?null:r>a?n+r-a:e<=n?e:null}}]),e}()).\u0275fac=function(e){return new(e||Np)},Np.\u0275prov=c.Zb({token:Np,factory:Np.\u0275fac}),Np),Gp="undefined"!=typeof requestAnimationFrame?hf:_f,Xp=((zp=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this._renderer=t,this._zone=n,this._panelService=i,this._document=a,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new c.s,this.scroll=new c.s,this.scrollToEnd=new c.s,this.outsideClick=new c.s,this._destroy$=new oe.a,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=r.nativeElement}return _createClass(e,[{key:"currentPosition",get:function(){return this._currentPosition}},{key:"itemsLength",get:function(){return this._itemsLength},set:function(e){e!==this._itemsLength&&(this._itemsLength=e,this._onItemsLengthChanged())}},{key:"_startOffset",get:function(){if(this.markedItem){var e=this._panelService.dimensions,t=e.itemHeight,n=e.panelHeight,i=this.markedItem.index*t;return n>i?0:i}return 0}},{key:"handleMousedown",value:function(e){"INPUT"!==e.target.tagName&&e.preventDefault()}},{key:"ngOnInit",value:function(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown()}},{key:"ngOnChanges",value:function(e){if(e.items){var t=e.items;this._onItemsChange(t.currentValue,t.firstChange)}}},{key:"ngOnDestroy",value:function(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}},{key:"scrollTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e){var n=this.items.indexOf(e);if(!(n<0||n>=this.itemsLength)){var i;if(this.virtualScroll){var r=this._panelService.dimensions.itemHeight;i=this._panelService.getScrollTo(n*r,r,this._lastScrollPosition)}else{var a=this._dropdown.querySelector("#".concat(e.htmlId));i=this._panelService.getScrollTo(a.offsetTop,a.clientHeight,t?a.offsetTop:this._lastScrollPosition)}sp(i)&&(this._scrollablePanel.scrollTop=i)}}}},{key:"scrollToTag",value:function(){var e=this._scrollablePanel;e.scrollTop=e.scrollHeight-e.clientHeight}},{key:"adjustPosition",value:function(){this._updateYPosition()}},{key:"_handleDropdownPosition",value:function(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),"top"===this._currentPosition?(this._renderer.addClass(this._dropdown,"ng-select-top"),this._renderer.removeClass(this._dropdown,"ng-select-bottom"),this._renderer.addClass(this._select,"ng-select-top"),this._renderer.removeClass(this._select,"ng-select-bottom")):(this._renderer.addClass(this._dropdown,"ng-select-bottom"),this._renderer.removeClass(this._dropdown,"ng-select-top"),this._renderer.addClass(this._select,"ng-select-bottom"),this._renderer.removeClass(this._select,"ng-select-top")),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}},{key:"_handleScroll",value:function(){var e=this;this._zone.runOutsideAngular(function(){Ho(e.scrollElementRef.nativeElement,"scroll").pipe(De(e._destroy$),function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fo.a;return t=function(){return No(e,n)},function(e){return e.lift(new cf(t))}}(0,Gp)).subscribe(function(t){var n=t.path||t.composedPath&&t.composedPath();e._onContentScrolled(n&&0!==n.length?n[0].scrollTop:t.target.scrollTop)})})}},{key:"_handleOutsideClick",value:function(){var e=this;this._document&&this._zone.runOutsideAngular(function(){Object(mo.a)(Ho(e._document,"touchstart",{capture:!0}),Ho(e._document,"mousedown",{capture:!0})).pipe(De(e._destroy$)).subscribe(function(t){return e._checkToClose(t)})})}},{key:"_checkToClose",value:function(e){var t=this;if(!this._select.contains(e.target)&&!this._dropdown.contains(e.target)){var n=e.path||e.composedPath&&e.composedPath();e.target&&e.target.shadowRoot&&n&&n[0]&&this._select.contains(n[0])||this._zone.run(function(){return t.outsideClick.emit()})}}},{key:"_onItemsChange",value:function(e,t){this.items=e||[],this._scrollToEndFired=!1,this.itemsLength=e.length,this.virtualScroll?this._updateItemsRange(t):(this._setVirtualHeight(),this._updateItems(t))}},{key:"_updateItems",value:function(e){var t=this;this.update.emit(this.items),!1!==e&&this._zone.runOutsideAngular(function(){Promise.resolve().then(function(){t._panelService.setDimensions(0,t._scrollablePanel.clientHeight),t._handleDropdownPosition(),t.scrollTo(t.markedItem,e)})})}},{key:"_updateItemsRange",value:function(e){var t=this;this._zone.runOutsideAngular(function(){t._measureDimensions().then(function(){e?(t._renderItemsRange(t._startOffset),t._handleDropdownPosition()):t._renderItemsRange()})})}},{key:"_onContentScrolled",value:function(e){this.virtualScroll&&this._renderItemsRange(e),this._lastScrollPosition=e,this._fireScrollToEnd(e)}},{key:"_updateVirtualHeight",value:function(e){this._updateScrollHeight&&(this._virtualPadding.style.height="".concat(e,"px"),this._updateScrollHeight=!1)}},{key:"_setVirtualHeight",value:function(){this._virtualPadding&&(this._virtualPadding.style.height="0px")}},{key:"_onItemsLengthChanged",value:function(){this._updateScrollHeight=!0}},{key:"_renderItemsRange",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!t||this._lastScrollPosition!==t){var n=this._panelService.calculateItems(t=t||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(n.scrollHeight),this._contentPanel.style.transform="translateY(".concat(n.topPadding,"px)"),this._zone.run(function(){e.update.emit(e.items.slice(n.start,n.end)),e.scroll.emit({start:n.start,end:n.end})}),sp(t)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=t,this._lastScrollPosition=t)}}},{key:"_measureDimensions",value:function(){var e=this;if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);var t=_slicedToArray(this.items,1)[0];return this.update.emit([t]),Promise.resolve().then(function(){var n=e._dropdown.querySelector("#".concat(t.htmlId)).clientHeight;return e._virtualPadding.style.height=n*e.itemsLength+"px",e._panelService.setDimensions(n,e._scrollablePanel.clientHeight),e._panelService.dimensions})}},{key:"_fireScrollToEnd",value:function(e){var t=this;this._scrollToEndFired||0===e||e+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight&&(this._zone.run(function(){return t.scrollToEnd.emit()}),this._scrollToEndFired=!0)}},{key:"_calculateCurrentPosition",value:function(e){if("auto"!==this.position)return this.position;var t=this._select.getBoundingClientRect(),n=document.documentElement.scrollTop||document.body.scrollTop;return t.top+window.pageYOffset+t.height+e.getBoundingClientRect().height>n+document.documentElement.clientHeight?"top":"bottom"}},{key:"_appendDropdown",value:function(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error("appendTo selector ".concat(this.appendTo," did not found any parent element"));this._updateXPosition(),this._parent.appendChild(this._dropdown)}}},{key:"_updateXPosition",value:function(){var e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect();this._dropdown.style.left=e.left-t.left+"px",this._dropdown.style.width=e.width+"px",this._dropdown.style.minWidth=e.width+"px"}},{key:"_updateYPosition",value:function(){var e=this._select.getBoundingClientRect(),t=this._parent.getBoundingClientRect(),n=e.height;"top"===this._currentPosition?(this._dropdown.style.bottom=t.bottom-e.bottom+n+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=e.top-t.top+n+"px",this._dropdown.style.bottom="auto")}}]),e}()).\u0275fac=function(e){return new(e||zp)(c.dc(c.Q),c.dc(c.J),c.dc(qp),c.dc(c.q),c.dc(l.d,8))},zp.\u0275cmp=c.Xb({type:zp,selectors:[["ng-dropdown-panel"]],viewQuery:function(e,t){var n;1&e&&(c.ed(wf,7,c.q),c.ed(kf,7,c.q),c.ed(Cf,7,c.q)),2&e&&(c.Mc(n=c.uc())&&(t.contentElementRef=n.first),c.Mc(n=c.uc())&&(t.scrollElementRef=n.first),c.Mc(n=c.uc())&&(t.paddingElementRef=n.first))},hostBindings:function(e,t){1&e&&c.tc("mousedown",function(e){return t.handleMousedown(e)})},inputs:{items:"items",position:"position",virtualScroll:"virtualScroll",filterValue:"filterValue",markedItem:"markedItem",appendTo:"appendTo",bufferAmount:"bufferAmount",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[c.Nb],ngContentSelectors:Df,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(e,t){1&e&&(c.Cc(),c.Yc(0,Sf,2,4,"div",0),c.jc(1,"div",1,2),c.ec(3,"div",null,3),c.jc(5,"div",null,4),c.Bc(7),c.ic(),c.ic(),c.Yc(8,Mf,2,4,"div",5)),2&e&&(c.Dc("ngIf",t.headerTemplate),c.Pb(3),c.Vb("total-padding",t.virtualScroll),c.Pb(2),c.Vb("scrollable-content",t.virtualScroll&&t.items.length),c.Pb(3),c.Dc("ngIf",t.footerTemplate))},directives:[l.m,l.o],encapsulation:2,changeDetection:0}),zp),Qp=((Yp=function(){function e(t){_classCallCheck(this,e),this.elementRef=t,this.stateChange$=new oe.a,this._disabled=!1}return _createClass(e,[{key:"disabled",get:function(){return this._disabled},set:function(e){this._disabled=this._isDisabled(e)}},{key:"label",get:function(){return(this.elementRef.nativeElement.textContent||"").trim()}},{key:"ngOnChanges",value:function(e){e.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}},{key:"ngAfterViewChecked",value:function(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}},{key:"ngOnDestroy",value:function(){this.stateChange$.complete()}},{key:"_isDisabled",value:function(e){return null!=e&&"false"!="".concat(e)}}]),e}()).\u0275fac=function(e){return new(e||Yp)(c.dc(c.q))},Yp.\u0275cmp=c.Xb({type:Yp,selectors:[["ng-option"]],inputs:{disabled:"disabled",value:"value"},features:[c.Nb],ngContentSelectors:Df,decls:1,vars:0,template:function(e,t){1&e&&(c.Cc(),c.Bc(0))},encapsulation:2,changeDetection:0}),Yp),Kp=((Bp=function e(){_classCallCheck(this,e),this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}).\u0275fac=function(e){return new(e||Bp)},Bp.\u0275prov=Object(c.Zb)({factory:function(){return new Bp},token:Bp,providedIn:"root"}),Bp),Zp=new c.y("ng-select-selection-model"),Jp=((Vp=function(){function e(t,n,i,r,a,o,s){var l=this;_classCallCheck(this,e),this.classes=t,this.autoFocus=n,this._cd=o,this._console=s,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=function(e){return!0},this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=ne
1w c.s,this.focusEvent=new c.s,this.changeEvent=new c.s,this.openEvent=new c.s,this.closeEvent=new c.s,this.searchEvent=new c.s,this.clearEvent=new c.s,this.addEvent=new c.s,this.removeEvent=new c.s,this.scroll=new c.s,this.scrollToEnd=new c.s,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=jp(),this.escapeHTML=!0,this.useDefaultClass=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new oe.a,this._keyPress$=new oe.a,this._onChange=function(e){},this._onTouched=function(){},this.clearItem=function(e){var t=l.selectedItems.find(function(t){return t.value===e});l.unselect(t)},this.trackByOption=function(e,t){return l.trackByFn?l.trackByFn(t.value):t},this._mergeGlobalConfig(i),this.itemsList=new $p(this,r()),this.element=a.nativeElement}return _createClass(e,[{key:"items",get:function(){return this._items},set:function(e){this._itemsAreUsed=!0,this._items=e}},{key:"compareWith",get:function(){return this._compareWith},set:function(e){if(null!=e&&!cp(e))throw Error("`compareWith` must be a function.");this._compareWith=e}},{key:"clearSearchOnAdd",get:function(){return sp(this._clearSearchOnAdd)?this._clearSearchOnAdd:this.closeOnSelect},set:function(e){this._clearSearchOnAdd=e}},{key:"disabled",get:function(){return this.readonly||this._disabled}},{key:"filtered",get:function(){return!!this.searchTerm&&this.searchable||this._isComposing}},{key:"_editableSearchTerm",get:function(){return this.editableSearchTerm&&!this.multiple}},{key:"selectedItems",get:function(){return this.itemsList.selectedItems}},{key:"selectedValues",get:function(){return this.selectedItems.map(function(e){return e.value})}},{key:"hasValue",get:function(){return this.selectedItems.length>0}},{key:"currentPanelPosition",get:function(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}},{key:"ngOnInit",value:function(){this._handleKeyPresses(),this._setInputAttributes()}},{key:"ngOnChanges",value:function(e){e.multiple&&this.itemsList.clearSelected(),e.items&&this._setItems(e.items.currentValue||[]),e.isOpen&&(this._manualOpen=sp(e.isOpen.currentValue))}},{key:"ngAfterViewInit",value:function(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),sp(this.autoFocus)&&this.focus()}},{key:"ngOnDestroy",value:function(){this._destroy$.next(),this._destroy$.complete()}},{key:"handleKeyDown",value:function(e){if(Wp[e.which]){if(!1===this.keyDownFn(e))return;this.handleKeyCode(e)}else e.key&&1===e.key.length&&this._keyPress$.next(e.key.toLocaleLowerCase())}},{key:"handleKeyCode",value:function(e){switch(e.which){case Wp.ArrowDown:this._handleArrowDown(e);break;case Wp.ArrowUp:this._handleArrowUp(e);break;case Wp.Space:this._handleSpace(e);break;case Wp.Enter:this._handleEnter(e);break;case Wp.Tab:this._handleTab(e);break;case Wp.Esc:this.close(),e.preventDefault();break;case Wp.Backspace:this._handleBackspace()}}},{key:"handleMousedown",value:function(e){var t=e.target;"INPUT"!==t.tagName&&e.preventDefault(),t.classList.contains("ng-clear-wrapper")?this.handleClearClick():t.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():t.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}},{key:"handleArrowClick",value:function(){this.isOpen?this.close():this.open()}},{key:"handleClearClick",value:function(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}},{key:"clearModel",value:function(){this.clearable&&(this.itemsList.clearSelected(),this._updateNgModel())}},{key:"writeValue",value:function(e){this.itemsList.clearSelected(),this._handleWriteValue(e),this._cd.markForCheck()}},{key:"registerOnChange",value:function(e){this._onChange=e}},{key:"registerOnTouched",value:function(e){this._onTouched=e}},{key:"setDisabledState",value:function(e){this._disabled=e,this._cd.markForCheck()}},{key:"toggle",value:function(){this.isOpen?this.close():this.open()}},{key:"open",value:function(){this.disabled||this.isOpen||this.itemsList.maxItemsSelected||this._manualOpen||(this._isTypeahead||this.addTag||!this.itemsList.noItemsToSelect)&&(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}},{key:"close",value:function(){this.isOpen&&!this._manualOpen&&(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}},{key:"toggleItem",value:function(e){!e||e.disabled||this.disabled||(this.multiple&&e.selected?this.unselect(e):this.select(e),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}},{key:"select",value:function(e){e.selected||(this.itemsList.select(e),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(e.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}},{key:"focus",value:function(){this.searchInput.nativeElement.focus()}},{key:"blur",value:function(){this.searchInput.nativeElement.blur()}},{key:"unselect",value:function(e){e&&(this.itemsList.unselect(e),this.focus(),this._updateNgModel(),this.removeEvent.emit(e))}},{key:"selectTag",value:function(){var e,t=this;e=cp(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:_defineProperty({},this.bindLabel,this.searchTerm);var n=function(e){return t._isTypeahead||!t.isOpen?t.itemsList.mapItem(e,null):t.itemsList.addItem(e)};e instanceof Promise?e.then(function(e){return t.select(n(e))}).catch(function(){}):e&&this.select(n(e))}},{key:"showClear",value:function(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}}
1,{key:"showAddTag",get:function(){if(!this._validTerm)return!1;var e=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(function(t){return t.label.toLowerCase()===e})&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(function(t){return t.label.toLowerCase()===e}))&&!this.loading}},{key:"showNoItemsFound",value:function(){var e=0===this.itemsList.filteredItems.length;return(e&&!this._isTypeahead&&!this.loading||e&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}},{key:"showTypeToSearch",value:function(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}},{key:"onCompositionStart",value:function(){this._isComposing=!0}},{key:"onCompositionEnd",value:function(e){this._isComposing=!1,this.searchWhileComposing||this.filter(e)}},{key:"filter",value:function(e){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=e,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(e),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:e,items:this.itemsList.filteredItems.map(function(e){return e.value})}),this.open())}},{key:"onInputFocus",value:function(e){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(e),this.focused=!0)}},{key:"onInputBlur",value:function(e){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(e),this.isOpen||this.disabled||this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}},{key:"onItemHover",value:function(e){e.disabled||this.itemsList.markItem(e)}},{key:"detectChanges",value:function(){this._cd.destroyed||this._cd.detectChanges()}},{key:"_setSearchTermFromItems",value:function(){var e=this.selectedItems&&this.selectedItems[0];this.searchTerm=e&&e.label||null}},{key:"_setItems",value:function(e){var t=e[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=sp(t)?!lp(t):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(e),e.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&sp(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}},{key:"_setItemsFromNgOptions",value:function(){var e=this;this.ngOptions.changes.pipe(ht(this.ngOptions),De(this._destroy$)).subscribe(function(t){var n;e.bindLabel=e._defaultLabel,function(t){e.items=t.map(function(e){return{$ngOptionValue:e.value,$ngOptionLabel:e.elementRef.nativeElement.innerHTML,disabled:e.disabled}}),e.itemsList.setItems(e.items),e.hasValue&&e.itemsList.mapSelectedItems(),e.detectChanges()}(t),n=Object(mo.a)(e.ngOptions.changes,e._destroy$),Object(mo.a).apply(void 0,_toConsumableArray(e.ngOptions.map(function(e){return e.stateChange$}))).pipe(De(n)).subscribe(function(t){var n=e.itemsList.findItem(t.value);n.disabled=t.disabled,n.label=t.label||n.label,e._cd.detectChanges()})})}},{key:"_isValidWriteValue",value:function(e){var t=this;if(!sp(e)||this.multiple&&""===e||Array.isArray(e)&&0===e.length)return!1;var n=function(e){return!(!sp(t.compareWith)&&lp(e)&&t.bindValue&&(t._console.warn("Setting object(".concat(JSON.stringify(e),") as your model with bindValue is not allowed unless [compareWith] is used.")),1))};return this.multiple?Array.isArray(e)?e.every(function(e){return n(e)}):(this._console.warn("Multiple select ngModel should be array."),!1):n(e)}},{key:"_handleWriteValue",value:function(e){var t=this;if(this._isValidWriteValue(e)){var n=function(e){var n=t.itemsList.findItem(e);if(n)t.itemsList.select(n);else{var i,r=lp(e);r||!r&&!t.bindValue?t.itemsList.select(t.itemsList.mapItem(e,null)):t.bindValue&&(_defineProperty(i={},t.bindLabel,null),_defineProperty(i,t.bindValue,e),n=i,t.itemsList.select(t.itemsList.mapItem(n,null)))}};this.multiple?e.forEach(function(e){return n(e)}):n(e)}}},{key:"_handleKeyPresses",value:function(){var e=this;this.searchable||this._keyPress$.pipe(De(this._destroy$),Object(ge.a)(function(t){return e._pressedKeys.push(t)}
1),Object(se.a)(200),Object(ve.a)(function(){return e._pressedKeys.length>0}),Object(ye.a)(function(){return e._pressedKeys.join("")})).subscribe(function(t){var n=e.itemsList.findByLabel(t);n&&(e.isOpen?(e.itemsList.markItem(n),e._scrollToMarked(),e._cd.markForCheck()):e.select(n)),e._pressedKeys=[]})}},{key:"_setInputAttributes",value:function(){for(var e=this.searchInput.nativeElement,t=Object.assign({type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId},this.inputAttrs),n=0,i=Object.keys(t);n<i.length;n++){var r=i[n];e.setAttribute(r,t[r])}}},{key:"_updateNgModel",value:function(){var e,t=[],n=_createForOfIteratorHelper(this.selectedItems);try{for(n.s();!(e=n.n()).done;){var i,r=e.value;if(this.bindValue)i=r.children?r.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(r.value,this.bindValue),t.push(i);else t.push(r.value)}}catch(o){n.e(o)}finally{n.f()}var a=this.selectedItems.map(function(e){return e.value});this.multiple?(this._onChange(t),this.changeEvent.emit(a)):(this._onChange(sp(t[0])?t[0]:null),this.changeEvent.emit(a[0])),this._cd.markForCheck()}},{key:"_clearSearch",value:function(){this.searchTerm&&(this._changeSearch(null),this.itemsList.resetFilteredItems())}},{key:"_changeSearch",value:function(e){this.searchTerm=e,this._isTypeahead&&this.typeahead.next(e)}},{key:"_scrollToMarked",value:function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollTo(this.itemsList.markedItem)}},{key:"_scrollToTag",value:function(){this.isOpen&&this.dropdownPanel&&this.dropdownPanel.scrollToTag()}},{key:"_onSelectionChanged",value:function(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}},{key:"_handleTab",value:function(e){(!1!==this.isOpen||this.addTag)&&(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),e.preventDefault()):this.showAddTag?(this.selectTag(),e.preventDefault()):this.close():this.close())}},{key:"_handleEnter",value:function(e){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}e.preventDefault()}},{key:"_handleSpace",value:function(e){this.isOpen||this._manualOpen||(this.open(),e.preventDefault())}},{key:"_handleArrowDown",value:function(e){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),e.preventDefault()}},{key:"_handleArrowUp",value:function(e){this.isOpen&&(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),e.preventDefault())}},{key:"_nextItemIsTag",value:function(e){var t=this.itemsList.markedIndex+e;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(t<0||t===this.itemsList.filteredItems.length)}},{key:"_handleBackspace",value:function(){!this.searchTerm&&this.clearable&&this.clearOnBackspace&&this.hasValue&&(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}},{key:"_isTypeahead",get:function(){return this.typeahead&&this.typeahead.observers.length>0}},{key:"_validTerm",get:function(){var e=this.searchTerm&&this.searchTerm.trim();return e&&e.length>=this.minTermLength}},{key:"_mergeGlobalConfig",value:function(e){this.placeholder=this.placeholder||e.placeholder,this.notFoundText=this.notFoundText||e.notFoundText,this.typeToSearchText=this.typeToSearchText||e.typeToSearchText,this.addTagText=this.addTagText||e.addTagText,this.loadingText=this.loadingText||e.loadingText,this.clearAllText=this.clearAllText||e.clearAllText,this.virtualScroll=sp(this.virtualScroll)?this.virtualScroll:!!sp(e.disableVirtualScroll)&&!e.disableVirtualScroll,this.openOnEnter=sp(this.openOnEnter)?this.openOnEnter:e.openOnEnter,this.appendTo=this.appendTo||e.appendTo,this.bindValue=this.bindValue||e.bindValue,this.bindLabel=this.bindLabel||e.bindLabel,this.appearance=this.appearance||e.appearance}}]),e}()).\u0275fac=function(e){return new(e||Vp)(c.rc("class"),c.rc("autofocus"),c.dc(Kp),c.dc(Zp),c.dc(c.q),c.dc(c.j),c.dc(Hp))},Vp.\u0275cmp=c.Xb({type:Vp,selectors:[["ng-select"]],contentQueries:function(e,t,n){var i;1&e&&(c.Wb(n,xp,5,c.X),c.Wb(n,Sp,5,c.X),c.Wb(n,Mp,5,c.X),c.Wb(n,Dp,5,c.X),c.Wb(n,Tp,5,c.X),c.Wb(n,Ep,5,c.X),c.Wb(n,Ap,5,c.X),c.Wb(n,Pp,5,c.X),c.Wb(n,Lp,5,c.X),c.Wb(n,Op,5,c.X),c.Wb(n,Ip,5,c.X),c.Wb(n,Qp,5)),2&e&&(c.Mc(i=c.uc())&&(t.optionTemplate=i.first),c.Mc(i=c.uc())&&(t.optgroupTemplate=i.first),c.Mc(i=c.uc())&&(t.labelTemplate=i.first),c.Mc(i=c.uc())&&(t.multiLabelTemplate=i.first),c.Mc(i=c.uc())&&(t.headerTemplate=i.first),c.Mc(i=c.uc())&&(t.footerTemplate=i.first),c.Mc(i=c.uc())&&(t.notFoundTemplate=i.first),c.Mc(i=c.uc())&&(t.typeToSearchTemplate=i.first),c.Mc(i=c.uc())&&(t.loadingTextTemplate=i.first),c.Mc(i=c.uc())&&(t.tagTemplate=i.first),c.Mc(i=c.uc())&&(t.loadingSpinnerTemplate=i.first),c.Mc(i=c.uc())&&(t.ngOptions=i))},viewQuery:function(e,t){var n;1&e&&(c.ed(Xp,5),c.ed(Tf,7)),2&e&&(c.Mc(n=c.uc())&&(t.dropdownPanel=n.first),c.Mc(n=c.uc())&&(t.searchInput=n.first))}
1,hostVars:20,hostBindings:function(e,t){1&e&&c.tc("keydown",function(e){return t.handleKeyDown(e)}),2&e&&c.Vb("ng-select",t.useDefaultClass)("ng-select-single",!t.multiple)("ng-select-multiple",t.multiple)("ng-select-taggable",t.addTag)("ng-select-searchable",t.searchable)("ng-select-clearable",t.clearable)("ng-select-opened",t.isOpen)("ng-select-disabled",t.disabled)("ng-select-filtered",t.filtered)("ng-select-typeahead",t.typeahead)},inputs:{markFirst:"markFirst",dropdownPosition:"dropdownPosition",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",bufferAmount:"bufferAmount",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd",bindLabel:"bindLabel",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",virtualScroll:"virtualScroll",openOnEnter:"openOnEnter",appendTo:"appendTo",bindValue:"bindValue",appearance:"appearance",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",tabIndex:"tabIndex",typeahead:"typeahead"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[c.Ob([{provide:xr,useExisting:Object(c.gb)(function(){return Vp}),multi:!0},qp]),c.Nb],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(e,t){if(1&e){var n=c.kc();c.jc(0,"div",0),c.tc("mousedown",function(e){return t.handleMousedown(e)}),c.jc(1,"div",1),c.jc(2,"div",2),c.ad(3),c.ic(),c.Yc(4,Of,2,2,"ng-container",3),c.Yc(5,jf,1,5,void 0,3),c.jc(6,"div",4),c.jc(7,"input",5,6),c.tc("input",function(){c.Qc(n);var e=c.Nc(8);return t.filter(e.value)})("compositionstart",function(){return t.onCompositionStart()})("compositionend",function(){c.Qc(n);var e=c.Nc(8);return t.onCompositionEnd(e.value)})("focus",function(e){return t.onInputFocus(e)})("blur",function(e){return t.onInputBlur(e)})("change",function(e){return e.stopPropagation()}),c.ic(),c.ic(),c.ic(),c.Yc(9,Nf,4,1,"ng-container",3),c.Yc(10,Bf,3,1,"span",7),c.jc(11,"span",8),c.ec(12,"span",9),c.ic(),c.ic(),c.Yc(13,ip,7,19,"ng-dropdown-panel",10)}2&e&&(c.Vb("ng-appearance-outline","outline"===t.appearance)("ng-has-value",t.hasValue),c.Pb(3),c.bd(t.placeholder),c.Pb(1),c.Dc("ngIf",(!t.multiLabelTemplate||!t.multiple)&&t.selectedItems.length>0),c.Pb(1),c.Dc("ngIf",t.multiple&&t.multiLabelTemplate&&t.selectedValues.length>0),c.Pb(1),c.Qb("aria-expanded",t.isOpen)("aria-owns",t.isOpen?t.dropdownId:null),c.Pb(1),c.Dc("readOnly",!t.searchable||t.itemsList.maxItemsSelected)("disabled",t.disabled)("value",t.searchTerm?t.searchTerm:""),c.Qb("id",t.labelForId)("tabindex",t.tabIndex)("aria-activedescendant",t.isOpen?null==t.itemsList||null==t.itemsList.markedItem?null:t.itemsList.markedItem.htmlId:null)("aria-controls",t.isOpen?t.dropdownId:null),c.Pb(2),c.Dc("ngIf",t.loading),c.Pb(1),c.Dc("ngIf",t.showClear()),c.Pb(3),c.Dc("ngIf",t.isOpen))},directives:[l.m,l.l,l.o,Cp,Xp,l.k],styles:['.ng-select{display:block;position:relative}.ng-select,.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:default;user-select:none}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}
1.ng-select .ng-select-container .ng-value-container .ng-input>input{background:none transparent;border:0;box-shadow:none;box-sizing:content-box;cursor:default;outline:none;padding:0;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;padding:0;user-select:none;width:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{left:0;position:absolute;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;user-select:none;width:17px}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{-webkit-animation:load8 .8s linear infinite;animation:load8 .8s linear infinite;border:2px solid rgba(66,66,66,.2);border-left-color:#424242;border-radius:50%;font-size:10px;height:17px;margin-right:5px;position:relative;text-indent:-9999em;transform:translateZ(0);width:17px}.ng-select .ng-spinner-loader:after{border-radius:50%;height:17px;width:17px}@-webkit-keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes load8{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.ng-select .ng-arrow-wrapper{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none;cursor:pointer;position:relative;text-align:center;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{display:inline-block;height:0;pointer-events:none;position:relative;width:0}.ng-dropdown-panel{-webkit-overflow-scrolling:touch;box-sizing:border-box;opacity:0;position:absolute;width:100%;z-index:1050}.ng-dropdown-panel .ng-dropdown-panel-items{box-sizing:border-box;display:block;height:auto;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup,.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{-webkit-overflow-scrolling:touch;display:block;overflow:hidden;overflow-y:auto;position:relative}.ng-dropdown-panel .scrollable-content{height:100%;left:0;position:absolute;top:0;width:100%}.ng-dropdown-panel .total-padding{opacity:0;width:1px}'],encapsulation:2,changeDetection:0}),Vp),em=function(){function e(){_classCallCheck(this,e),this._selected=[]}return _createClass(e,[{key:"value",get:function(){return this._selected}},{key:"select",value:function(e,t,n){if(e.selected=!0,(!e.children||!t&&n)&&this._selected.push(e),t)if(e.parent){var i=e.parent.children.length,r=e.parent.children.filter(function(e){return e.selected}).length;e.parent.selected=i===r}else e.children&&(this._setChildrenSelectedState(e.children,!0),this._removeChildren(e),this._selected=n&&this._activeChildren(e)?[].concat(_toConsumableArray(this._selected.filter(function(t){return t.parent!==e})),[e]):[].concat(_toConsumableArray(this._selected),_toConsumableArray(e.children.filter(function(e){return!e.disabled}))))}},{key:"unselect",value:function(e,t){if(this._selected=this._selected.filter(function(t){return t!==e}),e.selected=!1,t)if(e.parent&&e.parent.selected){var n,i=e.parent.children;this._removeParent(e.parent),this._removeChildren(e.parent),(n=this._selected).push.apply(n,_toConsumableArray(i.filter(function(t){return t!==e&&!t.disabled}))),e.parent.selected=!1}else e.children&&(this._setChildrenSelectedState(e.children,!1),this._removeChildren(e))}},{key:"clear",value:function(e){this._selected=e?this._selected.filter(function(e){return e.disabled}):[]}},{key:"_setChildrenSelectedState",value:function(e,t){var n,i=_createForOfIteratorHelper(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.disabled||(r.selected=t)}}catch(a){i.e(a)}finally{i.f()}}},{key:"_removeChildren",value:function(e){this._selected=[].concat(_toConsumableArray(this._selected.filter(function(t){return t.parent!==e})),_toConsumableArray(e.children.filter(function(t){return t.parent===e&&t.disabled&&t.selected})))}},{key:"_removeParent",value:function(e){this._selected=this._selected.filter(function(t){return t!==e})}},{key:"_activeChildren",value:function(e){return e.children.every(function(e){return!e.disabled||e.selected})}}]),e}(),tm=function(){return new em},nm=((Up=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Up)},Up.\u0275mod=c.bc({type:Up}),Up.\u0275inj=c.ac({providers:[{provide:Zp,useValue:tm}],imports:[[l.c]]}),Up),im=function(){function e(t,n){_classCallCheck(this,e),this.open=t,this.close=n||t}return _createClass(e,[{key:"isManual",value:function(){return"manual"===this.open||"manual"===this.close}}]),e}(),rm={hover:["mouseover","mouseout"],focus:["focusin","focusout"]};function am(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rm,n=(e||"").trim();if(0===n.length)return[];var i=n.split(/\s+/).map(function(e){return e.split(":")}).map(function(e){var n=t[e[0]]||e;return new im(n[0],n[1])}),r=i.filter(function(e){return e.isManual()});if(r.length>1)throw new Error("Triggers parse error: only one manual trigger is allowed");if(1===r.length&&i.length>1)throw new Error("Triggers parse error: manual trigger can't be mixed with other triggers");return i}var om,sm="undefined"!=typeof window&&window||{},lm=sm.document;function cm(){return void 0===sm||(void 0===sm.__theme?(om||(om=function(){if("undefined"==typeof document)return null;var e=document.createElement("span");e.innerText="test bs version",document.body.appendChild(e),e.classList.add("d-none");var t=e.getBoundingClientRect();return document.body.removeChild(e),t&&0===t.top?"bs4":"bs3"}()),"bs3"===om):"bs4"!==sm.__theme)}var um=function(){function e(){_classCallCheck(this,e),this.length=0,this.asArray=[]}return _createClass(e,[{key:"get",value:function(e){if(!(0===this.length||e<0||e>=this.length)){for(var t=this.head,n=0;n<e;n++)t=t.next;return t.value}}},{key:"add",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;if(t<0||t>this.length)throw new Error("Position is out of the list");var n={value:e,next:void 0,previous:void 0};if(0===this.length)this.head=n,this.tail=n,this.current=n;else if(0===t)n.next=this.head,this.head.previous=n,this.head=n;else if(t===this.length)this.tail.next=n,n.previous=this.tail,this.tail=n;else{var i=this.getNode(t-1),r=i.next;i.next=n,r.previous=n,n.previous=i,n.next=r}this.length++,this.createInternalArrayRepresentation()}},{key:"remove",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(0===this.length||e<0||e>=this.length)throw new Error("Position is out of the list");if(0===e)this.head=this.head.next,this.head?this.head.previous=void 0:this.tail=void 0;else if(e===this.length-1)this.tail=this.tail.previous,this.tail.next=void 0;else{var t=this.getNode(e);
1t.next.previous=t.previous,t.previous.next=t.next}this.length--,this.createInternalArrayRepresentation()}},{key:"set",value:function(e,t){if(0===this.length||e<0||e>=this.length)throw new Error("Position is out of the list");this.getNode(e).value=t,this.createInternalArrayRepresentation()}},{key:"toArray",value:function(){return this.asArray}},{key:"findAll",value:function(e){for(var t=this.head,n=[],i=0;i<this.length;i++)e(t.value,i)&&n.push({index:i,value:t.value}),t=t.next;return n}},{key:"push",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach(function(t){e.add(t)}),this.length}},{key:"pop",value:function(){if(0!==this.length){var e=this.tail;return this.remove(this.length-1),e.value}}},{key:"unshift",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reverse(),n.forEach(function(t){e.add(t,0)}),this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.value;return this.remove(),e}}},{key:"forEach",value:function(e){for(var t=this.head,n=0;n<this.length;n++)e(t.value,n),t=t.next}},{key:"indexOf",value:function(e){for(var t=this.head,n=0,i=0;i<this.length;i++){if(t.value===e){n=i;break}t=t.next}return n}},{key:"some",value:function(e){for(var t=this.head,n=!1;t&&!n;){if(e(t.value)){n=!0;break}t=t.next}return n}},{key:"every",value:function(e){for(var t=this.head,n=!0;t&&n;)e(t.value)||(n=!1),t=t.next;return n}},{key:"toString",value:function(){return"[Linked List]"}},{key:"find",value:function(e){for(var t,n=this.head,i=0;i<this.length;i++){if(e(n.value,i)){t=n.value;break}n=n.next}return t}},{key:"findIndex",value:function(e){for(var t,n=this.head,i=0;i<this.length;i++){if(e(n.value,i)){t=i;break}n=n.next}return t}},{key:"getNode",value:function(e){if(0===this.length||e<0||e>=this.length)throw new Error("Position is out of the list");for(var t=this.head,n=0;n<e;n++)t=t.next;return t}},{key:"createInternalArrayRepresentation",value:function(){for(var e=[],t=this.head;t;)e.push(t.value),t=t.next;this.asArray=e}}]),e}(),dm=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"reflow",value:function(e){}},{key:"getStyles",value:function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=sm),t.getComputedStyle(e)}}]),e}(),hm={},fm="undefined"==typeof console||!("warn"in console);function pm(e){!Object(c.ib)()||fm||e in hm||(hm[e]=!0,console.warn(e))}function mm(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function gm(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function vm(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=mm(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(String(n)+String(r)+String(i))?e:vm(gm(e))}var ym="undefined"!=typeof window&&"undefined"!=typeof document,bm=ym&&!(!window.MSInputMethodContext||!document.documentMode),_m=ym&&!(!window.MSInputMethodContext||!/MSIE 10/.test(navigator.userAgent));function wm(e){return 11===e?bm:10===e?_m:bm||_m}function km(e){if(!e)return document.documentElement;for(var t,n=wm(10)?document.body:null,i=e.offsetParent||null;i===n&&e.nextElementSibling&&t!==e.nextElementSibling;)i=(t=e.nextElementSibling).offsetParent;var r=i&&i.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===mm(i,"position")?km(i):i:t?t.ownerDocument.documentElement:document.documentElement}function Cm(e){return null!==e.parentNode?Cm(e.parentNode):e}function xm(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,a=document.createRange();a.setStart(i,0),a.setEnd(r,0);var o,s,l=a.commonAncestorContainer;if(e!==l&&t!==l||i.contains(r))return"BODY"===(s=(o=l).nodeName)||"HTML"!==s&&km(o.firstElementChild)!==o?km(l):l;var c=Cm(e);return c.host?xm(c.host,t):xm(e,Cm(t).host)}function Sm(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border".concat(n,"Width")])+parseFloat(e["border".concat(i,"Width")])}
1function Mm(e,t,n,i){return Math.max(t["offset".concat(e)],t["scroll".concat(e)],n["client".concat(e)],n["offset".concat(e)],n["scroll".concat(e)],wm(10)?parseInt(n["offset".concat(e)],10)+parseInt(i["margin"+("Height"===e?"Top":"Left")],10)+parseInt(i["margin"+("Height"===e?"Bottom":"Right")],10):0)}function Dm(e){var t=e.body,n=e.documentElement,i=wm(10)&&getComputedStyle(n);return{height:Mm("Height",t,n,i),width:Mm("Width",t,n,i)}}function Tm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;return"BODY"===i||"HTML"===i?(e.ownerDocument.scrollingElement||e.ownerDocument.documentElement)[n]:e[n]}function Em(e){return Object.assign(Object.assign({},e),{right:e.left+e.width,bottom:e.top+e.height})}function Am(e){var t={};try{if(wm(10)){t=e.getBoundingClientRect();var n=Tm(e,"top"),i=Tm(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(c){return}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===e.nodeName?Dm(e.ownerDocument):{},o=e.offsetWidth-(a.width||e.clientWidth||r.right-r.left),s=e.offsetHeight-(a.height||e.clientHeight||r.bottom-r.top);if(o||s){var l=mm(e);o-=Sm(l,"x"),s-=Sm(l,"y"),r.width-=o,r.height-=s}return Em(r)}function Pm(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=wm(10),r="HTML"===t.nodeName,a=Am(e),o=Am(t),s=vm(e),l=mm(t),c=parseFloat(l.borderTopWidth),u=parseFloat(l.borderLeftWidth);n&&r&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var d=Em({top:a.top-o.top-c,left:a.left-o.left-u,width:a.width,height:a.height});if(d.marginTop=0,d.marginLeft=0,!i&&r){var h=parseFloat(l.marginTop),f=parseFloat(l.marginLeft);d.top-=c-h,d.bottom-=c-h,d.left-=u-f,d.right-=u-f,d.marginTop=h,d.marginLeft=f}return(i&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(d=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=Tm(t,"top"),r=Tm(t,"left"),a=n?-1:1;return e.top+=i*a,e.bottom+=i*a,e.left+=r*a,e.right+=r*a,e}(d,t)),d}function Lm(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===mm(e,"position")||Lm(gm(e)))}function Om(e){if(!e||!e.parentElement||wm())return document.documentElement;for(var t=e.parentElement;t&&"none"===mm(t,"transform");)t=t.parentElement;return t||document.documentElement}function Im(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},o=r?Om(e):xm(e,t);if("viewport"===i)a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=Pm(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:Tm(n),s=t?0:Tm(n,"left");return Em({top:o-Number(i.top)+Number(i.marginTop),left:s-Number(i.left)+Number(i.marginLeft),width:r,height:a})}(o,r);else{var s;"scrollParent"===i?"BODY"===(s=vm(gm(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var l=Pm(s,o,r);if("HTML"!==s.nodeName||Lm(o))a=l;else{var c=Dm(e.ownerDocument),u=c.height,d=c.width;a.top+=l.top-l.marginTop,a.bottom=Number(u)+Number(l.top),a.left+=l.left-l.marginLeft,a.right=Number(d)+Number(l.left)}}return a.left+=n,a.top+=n,a.right-=n,a.bottom-=n,a}function Hm(e){return e.width*e.height}function jm(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:["top","bottom","right","left"],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"viewport",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0;if(-1===e.indexOf("auto"))return e;var s=Im(n,i,o,a),l={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},c=Object.keys(l).map(function(e){return Object.assign(Object.assign({key:e},l[e]),{area:Hm(l[e])})}).sort(function(e,t){return t.area-e.area}),u=c.filter(function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight}
1),d=(u=u.filter(function(e){return r.some(function(t){return t===e.key})})).length>0?u[0].key:c[0].key,h=e.split(" ")[1];return n.className=n.className.replace(/bs-tooltip-auto/g,"bs-tooltip-".concat(d)),d+(h?"-".concat(h):"")}function Fm(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:Number(e.offsetWidth)+i,height:Number(e.offsetHeight)+n}}function Rm(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return Pm(t,n?Om(e):xm(e,t),n)}function Nm(e,t,n){var i=n.split(" ")[0],r=Fm(e),a={width:r.width,height:r.height},o=-1!==["right","left"].indexOf(i),s=o?"top":"left",l=o?"left":"top",c=o?"height":"width",u=o?"width":"height";return a[s]=t[s]+t[c]/2-r[c]/2,a[l]=i===l?t[l]-r[u]:t[function(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}(l)],a}function Bm(e,t){return e&&e.modifiers&&e.modifiers[t]&&e.modifiers[t].enabled}function Ym(e,t,n){Object.keys(t).forEach(function(i){var r,a="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&""!==(r=t[i])&&!isNaN(parseFloat(r))&&isFinite(r)&&(a="px"),n?n.setStyle(e,i,"".concat(String(t[i])).concat(a)):e.style[i]=String(t[i])+a})}function zm(e){var t,n=e.offsets.target,i=e.instance.target.querySelector(".arrow");if(!i)return e;var r=-1!==["left","right"].indexOf(e.placement.split(" ")[0]),a=r?"height":"width",o=r?"Top":"Left",s=o.toLowerCase(),l=r?"left":"top",c=r?"bottom":"right",u=Fm(i)[a],d=e.placement.split(" ")[1];e.offsets.host[c]-u<n[s]&&(n[s]-=n[s]-(e.offsets.host[c]-u)),Number(e.offsets.host[s])+Number(u)>n[c]&&(n[s]+=Number(e.offsets.host[s])+Number(u)-Number(n[c])),n=Em(n);var h,f=mm(e.instance.target),p=parseFloat(f["margin".concat(o)]),m=parseFloat(f["border".concat(o,"Width")]);if(d){var g=parseFloat(f.borderRadius),v=Number(p+m+g);h=s===d?Number(e.offsets.host[s])+v:Number(e.offsets.host[s])+Number(e.offsets.host[a]-v)}else h=Number(e.offsets.host[s])+Number(e.offsets.host[a]/2-u/2);var y=h-n[s]-p-m;return y=Math.max(Math.min(n[a]-u,y),0),e.offsets.arrow=(_defineProperty(t={},s,Math.round(y)),_defineProperty(t,l,""),t),e.instance.arrow=i,e}function Vm(e){if(e.offsets.target=Em(e.offsets.target),!Bm(e.options,"flip"))return e.offsets.target=Object.assign(Object.assign({},e.offsets.target),Nm(e.instance.target,e.offsets.host,e.placement)),e;var t=Im(e.instance.target,e.instance.host,0,"viewport",!1),n=e.placement.split(" ")[0],i=e.placement.split(" ")[1]||"",r=jm("auto",e.offsets.host,e.instance.target,e.instance.host,e.options.allowedPositions),a=[n,r];return a.forEach(function(r,o){if(n!==r||a.length===o+1)return e;var s="left"===(n=e.placement.split(" ")[0])&&Math.floor(e.offsets.target.right)>Math.floor(e.offsets.host.left)||"right"===n&&Math.floor(e.offsets.target.left)<Math.floor(e.offsets.host.right)||"top"===n&&Math.floor(e.offsets.target.bottom)>Math.floor(e.offsets.host.top)||"bottom"===n&&Math.floor(e.offsets.target.top)<Math.floor(e.offsets.host.bottom),l=Math.floor(e.offsets.target.left)<Math.floor(t.left),c=Math.floor(e.offsets.target.right)>Math.floor(t.right),u=Math.floor(e.offsets.target.top)<Math.floor(t.top),d=Math.floor(e.offsets.target.bottom)>Math.floor(t.bottom),h="left"===n&&l||"right"===n&&c||"top"===n&&u||"bottom"===n&&d,f=-1!==["top","bottom"].indexOf(n),p=f&&"left"===i&&l||f&&"right"===i&&c||!f&&"left"===i&&u||!f&&"right"===i&&d;(s||h||p)&&((s||h)&&(n=a[o+1]),p&&(i=function(e){return"right"===e?"left":"left"===e?"right":e}(i)),e.placement=n+(i?" ".concat(i):""),e.offsets.target=Object.assign(Object.assign({},e.offsets.target),Nm(e.instance.target,e.offsets.host,e.placement)))}),e}function Um(e){if(!Bm(e.options,"preventOverflow"))return e;var t=e.instance.target.style,n=t.top,i=t.left,r=t.transform;t.top="",t.left="",t.transform="";var a=Im(e.instance.target,e.instance.host,0,"scrollParent",!1);t.top=n,t.left=i,t.transform=r;var o,s={primary:function(t){var n=e.offsets.target[t];return e.offsets.target[t]<a[t]&&(n=Math.max(e.offsets.target[t],a[t])),_defineProperty({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=e.offsets.target[n];return e.offsets.target[t]>a[t]&&(i=Math.min(e.offsets.target[n],a[t]-("right"===t?e.offsets.target.width:e.offsets.target.height))),_defineProperty({},n,i)}};return["left","right","top","bottom"].forEach(function(t){o=-1!==["left","top"].indexOf(t)?"primary":"secondary",e.offsets.target=Object.assign(Object.assign({},e.offsets.target),s[o](t))}),e}function $m(e){var t=e.placement,n=t.split(" ")[0],i=t.split(" ")[1];if(i){var r=e.offsets,a=r.host,o=r.target,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",u={start:_defineProperty({},l,a[l]),end:_defineProperty({},l,a[l]+a[c]-o[c])};e.offsets.target=Object.assign(Object.assign({},o),_defineProperty({},l,l===i?u.start[l]:u.end[l]))}return e}var Wm,qm=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"position",value:function(e,t){return this.offset(e,t,!1)}},{key:"offset",value:function(e,t){return Rm(t,e)}},{key:"positionElements",value:function(e,t,n,i,r){return[Vm,$m,Um,zm].reduce(function(e,t){return t(e)},function(e,t,n,i){var r=Rm(e,t);n.match(/^(auto)*\s*(left|right|top|bottom)*$/)||n.match(/^(left|right|top|bottom)*(?: (left|right|top|bottom))?\s*(start|end)*$/)||(n="auto");var a=!!n.match(/auto/g),o=n.match(/auto\s(left|right|top|bottom)/)?n.split(" ")[1]||"auto":n,s=o.match(/^(left|right|top|bottom)* ?(?!\1)(left|right|top|bottom)?/);return s&&(o=s[1]+(s[2]?" ".concat(s[2]):"")),-1!==["left right","right left","top bottom","bottom top"].indexOf(o)&&(o="auto"),{options:i,instance:{target:e,host:t,arrow:null},offsets:{target:Nm(e,r,o),host:r,arrow:null},positionFixed:!1,placement:o=jm(o,r,e,t,i?i.allowedPositions:void 0),placementAuto:a}}(t,e,n,r))}}]),e}()),Gm=((Wm=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.update$$=new oe.a,this.positionElements=new Map,this.isDisabled=!1,Object(l.z)(i)&&t.runOutsideAngular(function(){r.triggerEvent$=Object(mo.a)(Ho(window,"scroll",{passive:!0}),Ho(window,"resize",{passive:!0}),Object(me.a)(0,hf),r.update$$),r.triggerEvent$.subscribe(function(){r.isDisabled||r.positionElements.forEac
1h(function(e){var t,i,a,o,s,l,c,u;t=Xm(e.target),i=Xm(e.element),a=e.attachment,o=e.appendToBody,s=r.options,l=n.createRenderer(null,null),c=qm.positionElements(t,i,a,o,s),u=function(e){return{width:e.offsets.target.width,height:e.offsets.target.height,left:Math.floor(e.offsets.target.left),top:Math.round(e.offsets.target.top),bottom:Math.round(e.offsets.target.bottom),right:Math.floor(e.offsets.target.right)}}(c),Ym(i,{"will-change":"transform",top:"0px",left:"0px",transform:"translate3d(".concat(u.left,"px, ").concat(u.top,"px, 0px)")},l),c.instance.arrow&&Ym(c.instance.arrow,c.offsets.arrow,l),function(e,t){var n=e.instance.target,i=n.className;e.placementAuto&&(-1!==(i=(i=(i=i.replace(/bs-popover-auto/g,"bs-popover-".concat(e.placement))).replace(/bs-tooltip-auto/g,"bs-tooltip-".concat(e.placement))).replace(/\sauto/g," ".concat(e.placement))).indexOf("popover")&&-1===i.indexOf("popover-auto")&&(i+=" popover-auto"),-1!==i.indexOf("tooltip")&&-1===i.indexOf("tooltip-auto")&&(i+=" tooltip-auto")),i=i.replace(/left|right|top|bottom/g,"".concat(e.placement.split(" ")[0])),t?t.setAttribute(n,"class",i):n.className=i}(c,l)})})})}return _createClass(e,[{key:"position",value:function(e){this.addPositionElement(e)}},{key:"event$",get:function(){return this.triggerEvent$}},{key:"disable",value:function(){this.isDisabled=!0}},{key:"enable",value:function(){this.isDisabled=!1}},{key:"addPositionElement",value:function(e){this.positionElements.set(Xm(e.element),e)}},{key:"calcPosition",value:function(){this.update$$.next()}},{key:"deletePositionElement",value:function(e){this.positionElements.delete(Xm(e))}},{key:"setOptions",value:function(e){this.options=e}}]),e}()).\u0275fac=function(e){return new(e||Wm)(c.qc(c.J),c.qc(c.R),c.qc(c.M))},Wm.\u0275prov=c.Zb({token:Wm,factory:Wm.\u0275fac}),Wm);function Xm(e){return"string"==typeof e?document.querySelector(e):e instanceof c.q?e.nativeElement:e}var Qm,Km,Zm,Jm,eg,tg,ng,ig,rg,ag,og,sg,lg,cg,ug=function e(t,n,i){_classCallCheck(this,e),this.nodes=t,this.viewRef=n,this.componentRef=i},dg=function(){function e(t,n,i,r,a,o,s,l){_classCallCheck(this,e),this._viewContainerRef=t,this._renderer=n,this._elementRef=i,this._injector=r,this._componentFactoryResolver=a,this._ngZone=o,this._applicationRef=s,this._posService=l,this.onBeforeShow=new c.s,this.onShown=new c.s,this.onBeforeHide=new c.s,this.onHidden=new c.s,this._providers=[],this._isHiding=!1,this.containerDefaultSelector="body",this._listenOpts={},this._globalListener=Function.prototype}return _createClass(e,[{key:"isShown",get:function(){return!this._isHiding&&!!this._componentRef}},{key:"attach",value:function(e){return this._componentFactory=this._componentFactoryResolver.resolveComponentFactory(e),this}},{key:"to",value:function(e){return this.container=e||this.container,this}},{key:"position",value:function(e){return this.attachment=e.attachment||this.attachment,this._elementRef=e.target||this._elementRef,this}},{key:"provide",value:function(e){return this._providers.push(e),this}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._subscribePositioning(),this._innerComponent=null,!this._componentRef){this.onBeforeShow.emit(),this._contentRef=this._getContentRef(e.content,e.context,e.initialState);var t=c.z.create({providers:this._providers,parent:this._injector});this._componentRef=this._componentFactory.create(t,this._contentRef.nodes),this._applicationRef.attachView(this._componentRef.hostView),this.instance=this._componentRef.instance,Object.assign(this._componentRef.instance,e),this.container instanceof c.q&&this.container.nativeElement.appendChild(this._componentRef.location.nativeElement),"string"==typeof this.container&&"undefined"!=typeof document&&(document.querySelector(this.container)||document.querySelector(this.containerDefaultSelector)).appendChild(this._componentRef.location.nativeElement),!this.container&&this._elementRef&&this._elementRef.nativeElement.parentElement&&this._elementRef.nativeElement.parentElement.appendChild(this._componentRef.location.nativeElement),this._contentRef.componentRef&&(this._innerComponent=this._contentRef.componentRef.instance,this._contentRef.componentRef.changeDetectorRef.markForCheck(),this._contentRef.componentRef.changeDetectorRef.detectChanges()),this._componentRef.changeDetectorRef.markForCheck(),this._componentRef.changeDetectorRef.detectChanges(),this.onShown.emit(e.id?{id:e.id}:this._componentRef.instance)}return this._registerOutsideClick(),this._componentRef}},{key:"hide",value:function(e){if(!this._componentRef)return this;this._posService.deletePositionElement(this._componentRef.location),this.onBeforeHide.emit(this._componentRef.instance);var t=this._componentRef.location.nativeElement;return t.parentNode.removeChild(t),this._contentRef.componentRef&&this._contentRef.componentRef.destroy(),this._viewContainerRef&&this._contentRef.viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._contentRef.viewRef)),this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._contentRef=null,this._componentRef=null,this._removeGlobalListener(),this.onHidden.emit(e?{id:e}:null),this}},{key:"toggle",value:function(){this.isShown?this.hide():this.show()}},{key:"dispose",value:function(){this.isShown&&this.hide(),this._unsubscribePositioning(),this._unregisterListenersFn&&this._unregisterListenersFn()}},{key:"listen",value:function(e){var t=this;this.triggers=e.triggers||this.triggers,this._listenOpts.outsideClick=e.outsideClick,this._listenOpts.outsideEsc=e.outsideEsc,e.target=e.target||this._elementRef.nativeElement;var n=this._listenOpts.hide=function(){return e.hide?e.hide():void t.hide()}
1,i=this._listenOpts.show=function(n){e.show?e.show(n):t.show(n),n()};return this._unregisterListenersFn=function(e,t){var n=am(t.triggers),i=t.target;if(1===n.length&&n[0].isManual())return Function.prototype;var r=[],a=[],o=function(){a.forEach(function(e){return r.push(e())}),a.length=0};return n.forEach(function(n){var s=n.open===n.close,l=s?t.toggle:t.show;s||a.push(function(){return e.listen(i,n.close,t.hide)}),r.push(e.listen(i,n.open,function(){return l(o)}))}),function(){r.forEach(function(e){return e()})}}(this._renderer,{target:e.target,triggers:e.triggers,show:i,hide:n,toggle:function(e){t.isShown?n():i(e)}}),this}},{key:"_removeGlobalListener",value:function(){this._globalListener&&(this._globalListener(),this._globalListener=null)}},{key:"attachInline",value:function(e,t){return this._inlineViewRef=e.createEmbeddedView(t),this}},{key:"_registerOutsideClick",value:function(){var e=this;if(this._componentRef&&this._componentRef.location){if(this._listenOpts.outsideClick){var t=this._componentRef.location.nativeElement;setTimeout(function(){var n;e._globalListener=(n={targets:[t,e._elementRef.nativeElement],outsideClick:e._listenOpts.outsideClick,hide:function(){return e._listenOpts.hide()}}).outsideClick?e._renderer.listen("document","click",function(e){n.target&&n.target.contains(e.target)||n.targets&&n.targets.some(function(t){return t.contains(e.target)})||n.hide()}):Function.prototype})}var n;this._listenOpts.outsideEsc&&(this._globalListener=(n={targets:[this._componentRef.location.nativeElement,this._elementRef.nativeElement],outsideEsc:this._listenOpts.outsideEsc,hide:function(){return e._listenOpts.hide()}}).outsideEsc?this._renderer.listen("document","keyup.esc",function(e){n.target&&n.target.contains(e.target)||n.targets&&n.targets.some(function(t){return t.contains(e.target)})||n.hide()}):Function.prototype)}}},{key:"getInnerComponent",value:function(){return this._innerComponent}},{key:"_subscribePositioning",value:function(){var e=this;!this._zoneSubscription&&this.attachment&&(this.onShown.subscribe(function(){e._posService.position({element:e._componentRef.location,target:e._elementRef,attachment:e.attachment,appendToBody:"body"===e.container})}),this._zoneSubscription=this._ngZone.onStable.subscribe(function(){e._componentRef&&e._posService.calcPosition()}))}},{key:"_unsubscribePositioning",value:function(){this._zoneSubscription&&(this._zoneSubscription.unsubscribe(),this._zoneSubscription=null)}},{key:"_getContentRef",value:function(e,t,n){if(!e)return new ug([]);if(e instanceof c.X){if(this._viewContainerRef){var i=this._viewContainerRef.createEmbeddedView(e,t);return i.markForCheck(),new ug([i.rootNodes],i)}var r=e.createEmbeddedView({});return this._applicationRef.attachView(r),new ug([r.rootNodes],r)}if("function"==typeof e){var a=this._componentFactoryResolver.resolveComponentFactory(e),o=c.z.create({providers:this._providers,parent:this._injector}),s=a.create(o);return Object.assign(s.instance,n),this._applicationRef.attachView(s.hostView),new ug([[s.location.nativeElement]],s.hostView,s)}return new ug([[this._renderer.createText("".concat(e))]])}}]),e}(),hg=((Qm=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this._componentFactoryResolver=t,this._ngZone=n,this._injector=i,this._posService=r,this._applicationRef=a}return _createClass(e,[{key:"createLoader",value:function(e,t,n){return new dg(t,n,e,this._injector,this._componentFactoryResolver,this._ngZone,this._applicationRef,this._posService)}}]),e}()).\u0275fac=function(e){return new(e||Qm)(c.qc(c.m),c.qc(c.J),c.qc(c.z),c.qc(Gm),c.qc(c.g))},Qm.\u0275prov=c.Zb({token:Qm,factory:Qm.\u0275fac}),Qm),fg=["*"],pg=((Zm=function e(){_classCallCheck(this,e),this.hide=Function,this.setClass=Function}).\u0275fac=function(e){return new(e||Zm)},Zm.\u0275prov=c.Zb({token:Zm,factory:Zm.\u0275fac}),Zm),mg=((Km=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Km)},Km.\u0275prov=c.Zb({token:Km,factory:Km.\u0275fac}),Km),gg={backdrop:!0,keyboard:!0,focus:!0,show:!1,ignoreBackdropClick:!1,class:"",animated:!0,initialState:{}},vg=new c.y("override-default-config"),yg=((ig=function(){function e(t,n,i){_classCallCheck(this,e),this._element=n,this._renderer=i,this.isShown=!1,this.isModalHiding=!1,this.clickStartedInContent=!1,this.config=Object.assign({},t)}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.isAnimated&&this._renderer.addClass(this._element.nativeElement,"fade"),this._renderer.setStyle(this._element.nativeElement,"display","block"),setTimeout(function(){e.isShown=!0,e._renderer.addClass(e._element.nativeElement,cm()?"in":"show")},this.isAnimated?150:0),document&&document.body&&(1===this.bsModalService.getModalsCount()&&(this.bsModalService.checkScrollbar(),this.bsModalService.setScrollbar()),this._renderer.addClass(document.body,"modal-open")),this._element.nativeElement&&this._element.nativeElement.focus()}},{key:"onClickStarted",value:function(e){this.clickStartedInContent=e.target!==this._element.nativeElement}},{key:"onClickStop",value:function(e){this.config.ignoreBackdropClick||"static"===this.config.backdrop||e.target!==this._element.nativeElement||this.clickStartedInContent?this.clickStartedInContent=!1:(this.bsModalService.setDismissReason("backdrop-click"),this.hide())}},{key:"onPopState",value:function(){this.bsModalService.setDismissReason("browser-back-navigation-clicked"),this.hide()}},{key:"onEsc",value:function(e){this.isShown&&(27!==e.keyCode&&"Escape"!==e.key||e.preventDefault(),this.config.keyboard&&this.level===this.bsModalService.getModalsCount()&&(this.bsModalService.setDismissReason("esc"),this.hide()))}},{key:"ngOnDestroy",value:function(){this.isShown&&this.hide()}},{key:"hide",value:function(){var e=this;!this.isModalHiding&&this.isShown&&(this.isModalHiding=!0,this._renderer.removeClass(this._element.nativeElement,cm()?"in":"show"),setTimeout(function(){e.isShown=!1,document&&document.body&&1===e.bsModalService.getModalsCount()&&e._renderer.removeClass(document.body,"modal-open"),e.bsModalService.hide(e.config.id),e.isModalHiding=!1},this.isAnimated?300:0))}}]),e}()).\u0275fac=function(e){return new(e||ig)(c.dc(mg),c.dc(c.q),c.dc(c.Q))}
1,ig.\u0275cmp=c.Xb({type:ig,selectors:[["modal-container"]],hostAttrs:["role","dialog","tabindex","-1",1,"modal"],hostVars:3,hostBindings:function(e,t){1&e&&c.tc("mousedown",function(e){return t.onClickStarted(e)})("mouseup",function(e){return t.onClickStop(e)})("popstate",function(){return t.onPopState()},!1,c.Pc)("keydown.esc",function(e){return t.onEsc(e)},!1,c.Pc),2&e&&c.Qb("aria-modal",!0)("aria-labelledby",t.config.ariaLabelledBy)("aria-describedby",t.config.ariaDescribedby)},ngContentSelectors:fg,decls:3,vars:2,consts:[["role","document"],[1,"modal-content"]],template:function(e,t){1&e&&(c.Cc(),c.jc(0,"div",0),c.jc(1,"div",1),c.Bc(2),c.ic(),c.ic()),2&e&&c.Sb("modal-dialog"+(t.config.class?" "+t.config.class:""))},encapsulation:2}),ig),bg=((ng=function(){function e(t,n){_classCallCheck(this,e),this._isShown=!1,this.element=t,this.renderer=n}return _createClass(e,[{key:"isAnimated",get:function(){return this._isAnimated},set:function(e){this._isAnimated=e}},{key:"isShown",get:function(){return this._isShown},set:function(e){this._isShown=e,e?this.renderer.addClass(this.element.nativeElement,"in"):this.renderer.removeClass(this.element.nativeElement,"in"),cm()||(e?this.renderer.addClass(this.element.nativeElement,"show"):this.renderer.removeClass(this.element.nativeElement,"show"))}},{key:"ngOnInit",value:function(){this.isAnimated&&(this.renderer.addClass(this.element.nativeElement,"fade"),dm.reflow(this.element.nativeElement)),this.isShown=!0}}]),e}()).\u0275fac=function(e){return new(e||ng)(c.dc(c.q),c.dc(c.Q))},ng.\u0275cmp=c.Xb({type:ng,selectors:[["bs-modal-backdrop"]],hostAttrs:[1,"modal-backdrop"],decls:0,vars:0,template:function(e,t){},encapsulation:2}),ng),_g=((tg=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this._element=t,this._renderer=i,this.onShow=new c.s,this.onShown=new c.s,this.onHide=new c.s,this.onHidden=new c.s,this._isShown=!1,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.timerHideModal=0,this.timerRmBackDrop=0,this.isNested=!1,this.clickStartedInContent=!1,this._backdrop=r.createLoader(t,n,i),this._config=a||gg}return _createClass(e,[{key:"config",get:function(){return this._config},set:function(e){this._config=this.getConfig(e)}},{key:"isShown",get:function(){return this._isShown}},{key:"onClickStarted",value:function(e){this.clickStartedInContent=e.target!==this._element.nativeElement}},{key:"onClickStop",value:function(e){this.config.ignoreBackdropClick||"static"===this.config.backdrop||e.target!==this._element.nativeElement||this.clickStartedInContent?this.clickStartedInContent=!1:(this.dismissReason="backdrop-click",this.hide(e))}},{key:"onEsc",value:function(e){this._isShown&&(27!==e.keyCode&&"Escape"!==e.key||e.preventDefault(),this.config.keyboard&&(this.dismissReason="esc",this.hide()))}},{key:"ngOnDestroy",value:function(){this.config=void 0,this._isShown&&(this._isShown=!1,this.hideModal(),this._backdrop.dispose())}},{key:"ngOnInit",value:function(){var e=this;this._config=this._config||this.getConfig(),setTimeout(function(){e._config.show&&e.show()},0)}},{key:"toggle",value:function(){return this._isShown?this.hide():this.show()}},{key:"show",value:function(){var e=this;this.dismissReason=null,this.onShow.emit(this),this._isShown||(clearTimeout(this.timerHideModal),clearTimeout(this.timerRmBackDrop),this._isShown=!0,this.checkScrollbar(),this.setScrollbar(),lm&&lm.body&&(lm.body.classList.contains("modal-open")?this.isNested=!0:this._renderer.addClass(lm.body,"modal-open")),this.showBackdrop(function(){e.showElement()}))}},{key:"hide",value:function(e){var t=this;e&&e.preventDefault(),this.onHide.emit(this),this._isShown&&(sm.clearTimeout(this.timerHideModal),sm.clearTimeout(this.timerRmBackDrop),this._isShown=!1,this._renderer.removeClass(this._element.nativeElement,"in"),cm()||this._renderer.removeClass(this._element.nativeElement,"show"),this._config.animated?this.timerHideModal=sm.setTimeout(function(){return t.hideModal()},300):this.hideModal())}},{key:"getConfig",value:function(e){return Object.assign({},this._config,e)}},{key:"showElement",value:function(){var e=this;this._element.nativeElement.parentNode&&this._element.nativeElement.parentNode.nodeType===Node.ELEMENT_NODE||lm&&lm.body&&lm.body.appendChild(this._element.nativeElement),this._renderer.setAttribute(this._element.nativeElement,"aria-hidden","false"),this._renderer.setAttribute(this._element.nativeElement,"aria-modal","true"),this._renderer.setStyle(this._element.nativeElement,"display","block"),this._renderer.setProperty(this._element.nativeElement,"scrollTop",0),this._config.animated&&dm.reflow(this._element.nativeElement),this._renderer.addClass(this._element.nativeElement,"in"),cm()||this._renderer.addClass(this._element.nativeElement,"show");var t=function(){e._config.focus&&e._element.nativeElement.focus(),e.onShown.emit(e)};this._config.animated?setTimeout(t,300):t()}},{key:"hideModal",value:function(){var e=this;this._renderer.setAttribute(this._element.nativeElement,"aria-hidden","true"),this._renderer.setStyle(this._element.nativeElement,"display","none"),this.showBackdrop(function(){e.isNested||(lm&&lm.body&&e._renderer.removeClass(lm.body,"modal-open"),e.resetScrollbar()),e.resetAdjustments(),e.focusOtherModal(),e.onHidden.emit(e)})}},{key:"showBackdrop",value:function(e){var t=this;if(!this._isShown||!this.config.backdrop||this.backdrop&&this.backdrop.instance.isShown)if(!this._isShown&&this.backdrop){this.backdrop.instance.isShown=!1;var n=function(){t.removeBackdrop(),e&&e()};this.backdrop.instance.isAnimated?this.timerRmBackDrop=sm.setTimeout(n,150):n()}else e&&e();else{if(this.removeBackdrop(),this._backdrop.attach(bg).to("body").show({isAnimated:this._config.animated}),this.backdrop=this._backdrop._componentRef,!e)return;if(!this._config.animated)return void e();setTimeout(e,150)}}},{key:"removeBackdrop",value:function(){this._backdrop.hide()}},{key:"focusOtherModal",value:function(){if(null!=this._element.nativeElement.parentElement){var e=this._element.nativeElement.parentElement.querySelectorAll(".in[bsModal]");e.length&&e[e.length-1].focus()}}},{key:"resetAdjustments",value:function(){this._renderer.setStyle(this._element.nativeElement,"paddingLeft",""),this._renderer.setStyle(this._element.nativeElement,"paddingRight","")}},{key:"checkScrollbar",value:function(){this.isBodyOverflowing=lm.body.clientWidth<sm.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()}},{key:"setScrollbar",value:function(){lm&&(this.originalBodyPadding=parseInt(sm.getComputedStyle(lm.body).getPropertyValue("padding-right")||0,10),this.isBodyOverflowing&&(lm.body.style.paddingRight="".concat(this.originalBodyPadding+this.scrollbarWidth,"px")))}},{key:"resetScrollbar",value:function(){lm.body.style.paddingRight="".concat(this.originalBodyPadding,"px")}},{key:"getScrollbarWidth",value:function(){var e=this._renderer.createElement("div");
1this._renderer.addClass(e,"modal-scrollbar-measure"),this._renderer.appendChild(lm.body,e);var t=e.offsetWidth-e.clientWidth;return this._renderer.removeChild(lm.body,e),t}}]),e}()).\u0275fac=function(e){return new(e||tg)(c.dc(c.q),c.dc(c.cb),c.dc(c.Q),c.dc(hg),c.dc(vg,8))},tg.\u0275dir=c.Yb({type:tg,selectors:[["","bsModal",""]],hostBindings:function(e,t){1&e&&c.tc("mousedown",function(e){return t.onClickStarted(e)})("mouseup",function(e){return t.onClickStop(e)})("keydown.esc",function(e){return t.onEsc(e)})},inputs:{config:"config"},outputs:{onShow:"onShow",onShown:"onShown",onHide:"onHide",onHidden:"onHidden"},exportAs:["bs-modal"]}),tg),wg=((eg=function(){function e(t,n,i){_classCallCheck(this,e),this.clf=n,this.modalDefaultOption=i,this.onShow=new c.s,this.onShown=new c.s,this.onHide=new c.s,this.onHidden=new c.s,this.isBodyOverflowing=!1,this.originalBodyPadding=0,this.scrollbarWidth=0,this.modalsCount=0,this.lastDismissReason=null,this.loaders=[],this._backdropLoader=this.clf.createLoader(null,null,null),this._renderer=t.createRenderer(null,null),this.config=i?Object.assign({},gg,i):gg}return _createClass(e,[{key:"show",value:function(e,t){this.modalsCount++,this._createLoaders();var n=(null==t?void 0:t.id)||(new Date).getUTCMilliseconds();return this.config=this.modalDefaultOption?Object.assign({},gg,this.modalDefaultOption,t):Object.assign({},gg,t),this.config.id=n,this._showBackdrop(),this.lastDismissReason=null,this._showModal(e)}},{key:"hide",value:function(e){var t=this;1!==this.modalsCount&&null!=e||(this._hideBackdrop(),this.resetScrollbar()),this.modalsCount=this.modalsCount>=1&&null!=e?this.modalsCount-1:0,setTimeout(function(){t._hideModal(e),t.removeLoaders(e)},this.config.animated?150:0)}},{key:"_showBackdrop",value:function(){var e=this.config.backdrop||"static"===this.config.backdrop,t=!this.backdropRef||!this.backdropRef.instance.isShown;1===this.modalsCount&&(this.removeBackdrop(),e&&t&&(this._backdropLoader.attach(bg).to("body").show({isAnimated:this.config.animated}),this.backdropRef=this._backdropLoader._componentRef))}},{key:"_hideBackdrop",value:function(){var e=this;this.backdropRef&&(this.backdropRef.instance.isShown=!1,setTimeout(function(){return e.removeBackdrop()},this.config.animated?150:0))}},{key:"_showModal",value:function(e){var t,n=this.loaders[this.loaders.length-1];if(this.config&&this.config.providers){var i,r=_createForOfIteratorHelper(this.config.providers);try{for(r.s();!(i=r.n()).done;){var a=i.value;n.provide(a)}}catch(l){r.e(l)}finally{r.f()}}var o=new pg,s=n.provide({provide:mg,useValue:this.config}).provide({provide:pg,useValue:o}).attach(yg).to("body");return o.hide=function(){return s.instance.hide()},o.setClass=function(e){s.instance.config.class=e},o.onHidden=new c.s,o.onHide=new c.s,this.copyEvent(n.onBeforeHide,o.onHide),this.copyEvent(n.onHidden,o.onHidden),s.show({content:e,isAnimated:this.config.animated,initialState:this.config.initialState,bsModalService:this,id:this.config.id}),s.instance.level=this.getModalsCount(),o.content=n.getInnerComponent()||null,o.id=null===(t=s.instance.config)||void 0===t?void 0:t.id,o}},{key:"_hideModal",value:function(e){if(null!=e){var t=this.loaders.findIndex(function(t){return t.instance.config.id===e}),n=this.loaders[t];n&&n.hide(e)}else this.loaders.forEach(function(e){e.hide(e.instance.config.id)})}},{key:"getModalsCount",value:function(){return this.modalsCount}},{key:"setDismissReason",value:function(e){this.lastDismissReason=e}},{key:"removeBackdrop",value:function(){this._renderer.removeClass(document.body,"modal-open"),this._backdropLoader.hide(),this.backdropRef=null}},{key:"checkScrollbar",value:function(){this.isBodyOverflowing=document.body.clientWidth<window.innerWidth,this.scrollbarWidth=this.getScrollbarWidth()}},{key:"setScrollbar",value:function(){document&&(this.originalBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")||"0",10),this.isBodyOverflowing&&(document.body.style.paddingRight="".concat(this.originalBodyPadding+this.scrollbarWidth,"px")))}},{key:"resetScrollbar",value:function(){document.body.style.paddingRight="".concat(this.originalBodyPadding,"px")}},{key:"getScrollbarWidth",value:function(){var e=this._renderer.createElement("div");
1this._renderer.addClass(e,"modal-scrollbar-measure"),this._renderer.appendChild(document.body,e);var t=e.offsetWidth-e.clientWidth;return this._renderer.removeChild(document.body,e),t}},{key:"_createLoaders",value:function(){var e=this.clf.createLoader(null,null,null);this.copyEvent(e.onBeforeShow,this.onShow),this.copyEvent(e.onShown,this.onShown),this.copyEvent(e.onBeforeHide,this.onHide),this.copyEvent(e.onHidden,this.onHidden),this.loaders.push(e)}},{key:"removeLoaders",value:function(e){if(null!=e){var t=this.loaders.findIndex(function(t){return t.instance.config.id===e});t>=0&&(this.loaders.splice(t,1),this.loaders.forEach(function(e,t){e.instance.level=t+1}))}else this.loaders.splice(0,this.loaders.length)}},{key:"copyEvent",value:function(e,t){var n=this;e.subscribe(function(e){t.emit(n.lastDismissReason||e)})}}]),e}()).\u0275fac=function(e){return new(e||eg)(c.qc(c.R),c.qc(hg),c.qc(vg,8))},eg.\u0275prov=c.Zb({token:eg,factory:eg.\u0275fac}),eg),kg=((Jm=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){return{ngModule:e,providers:[wg,hg,Gm]}}},{key:"forChild",value:function(){return{ngModule:e,providers:[wg,hg,Gm]}}}]),e}()).\u0275fac=function(e){return new(e||Jm)},Jm.\u0275mod=c.bc({type:Jm}),Jm.\u0275inj=c.ac({}),Jm),Cg=["*"],xg=((cg=function e(){_classCallCheck(this,e),this.adaptivePosition=!0,this.placement="top",this.triggers="hover focus",this.delay=0}).\u0275fac=function(e){return new(e||cg)},cg.\u0275prov=Object(c.Zb)({factory:function(){return new cg},token:cg,providedIn:"root"}),cg),Sg=((lg=function(){function e(t){_classCallCheck(this,e),Object.assign(this,t)}return _createClass(e,[{key:"isBs3",get:function(){return cm()}},{key:"ngAfterViewInit",value:function(){this.classMap={in:!1,fade:!1},this.classMap[this.placement]=!0,this.classMap["tooltip-".concat(this.placement)]=!0,this.classMap.in=!0,this.animation&&(this.classMap.fade=!0),this.containerClass&&(this.classMap[this.containerClass]=!0)}}]),e}()).\u0275fac=function(e){return new(e||lg)(c.dc(xg))},lg.\u0275cmp=c.Xb({type:lg,selectors:[["bs-tooltip-container"]],hostAttrs:["role","tooltip"],hostVars:7,hostBindings:function(e,t){2&e&&(c.Qb("id",t.id),c.Sb("tooltip in tooltip-"+t.placement+" bs-tooltip-"+t.placement+" "+t.placement+" "+t.containerClass),c.Vb("show",!t.isBs3)("bs3",t.isBs3))},ngContentSelectors:Cg,decls:3,vars:0,consts:[[1,"tooltip-arrow","arrow"],[1,"tooltip-inner"]],template:function(e,t){1&e&&(c.Cc(),c.ec(0,"div",0),c.jc(1,"div",1),c.Bc(2),c.ic())},styles:[".tooltip[_nghost-%COMP%] {\n display: block;\n pointer-events: none;\n }\n .bs3.tooltip.top[_nghost-%COMP%] > .arrow[_ngcontent-%COMP%] {\n margin-left: -2px;\n }\n .bs3.tooltip.bottom[_nghost-%COMP%] {\n margin-top: 0px;\n }\n .bs3.bs-tooltip-left[_nghost-%COMP%], .bs3.bs-tooltip-right[_nghost-%COMP%]{\n margin: 0px;\n }\n .bs3.bs-tooltip-right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bs3.bs-tooltip-left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%] {\n margin: .3rem 0;\n }"],changeDetection:0}),lg),Mg=0,Dg=((sg=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this._elementRef=r,this._renderer=a,this._positionService=o,this.tooltipId=Mg++,this.tooltipChange=new c.s,this.containerClass="",this.tooltipAnimation=!0,this.tooltipFadeDuration=150,this.tooltipStateChanged=new c.s,this._tooltip=n.createLoader(this._elementRef,t,this._renderer).provide({provide:xg,useValue:i}),Object.assign(this,i),this.onShown=this._tooltip.onShown,this.onHidden=this._tooltip.onHidden}return _createClass(e,[{key:"isOpen",get:function(){return this._tooltip.isShown},set:function(e){e?this.show():this.hide()}},{key:"htmlContent",set:function(e){pm("tooltipHtml was deprecated, please use `tooltip` instead"),this.tooltip=e}},{key:"_placement",set:function(e){pm("tooltipPlacement was deprecated, please use `placement` instead"),this.placement=e}},{key:"_isOpen",get:function(){return pm("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen},set:function(e){pm("tooltipIsOpen was deprecated, please use `isOpen` instead"),this.isOpen=e}},{key:"_enable",get:function(){return pm("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled},set:function(e){pm("tooltipEnable was deprecated, please use `isDisabled` instead"),this.isDisabled=!e}},{key:"_appendToBody",get:function(){return pm('tooltipAppendToBody was deprecated, please use `container="body"` instead'),"body"===this.container},set:function(e){pm('tooltipAppendToBody was deprecated, please use `container="body"` instead'),this.container=e?"body":this.container}}
1,{key:"_popupClass",set:function(e){pm("tooltipClass deprecated")}},{key:"_tooltipContext",set:function(e){pm("tooltipContext deprecated")}},{key:"_tooltipPopupDelay",set:function(e){pm("tooltipPopupDelay is deprecated, use `delay` instead"),this.delay=e}},{key:"_tooltipTrigger",get:function(){return pm("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers},set:function(e){pm("tooltipTrigger was deprecated, please use `triggers` instead"),this.triggers=(e||"").toString()}},{key:"ngOnInit",value:function(){var e=this;this._tooltip.listen({triggers:this.triggers,show:function(){return e.show()}}),this.tooltipChange.subscribe(function(t){t||e._tooltip.hide()}),this.onShown.subscribe(function(){e.setAriaDescribedBy()}),this.onHidden.subscribe(function(){e.setAriaDescribedBy()})}},{key:"setAriaDescribedBy",value:function(){this._ariaDescribedby=this.isOpen?"tooltip-".concat(this.tooltipId):null,this._ariaDescribedby?this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ariaDescribedby):this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby")}},{key:"toggle",value:function(){if(this.isOpen)return this.hide();this.show()}},{key:"show",value:function(){var e=this;if(this._positionService.setOptions({modifiers:{flip:{enabled:this.adaptivePosition},preventOverflow:{enabled:this.adaptivePosition}}}),!(this.isOpen||this.isDisabled||this._delayTimeoutId)&&this.tooltip){var t=function(){e._delayTimeoutId&&(e._delayTimeoutId=void 0),e._tooltip.attach(Sg).to(e.container).position({attachment:e.placement}).show({content:e.tooltip,placement:e.placement,containerClass:e.containerClass,id:"tooltip-".concat(e.tooltipId)})},n=function(){e._tooltipCancelShowFn&&e._tooltipCancelShowFn()};this.delay?(this._delaySubscription&&this._delaySubscription.unsubscribe(),this._delaySubscription=No(this.delay).subscribe(function(){t(),n()}),this.triggers&&am(this.triggers).forEach(function(t){e._tooltipCancelShowFn=e._renderer.listen(e._elementRef.nativeElement,t.close,function(){e._delaySubscription.unsubscribe(),n()})})):t()}}},{key:"hide",value:function(){var e=this;this._delayTimeoutId&&(clearTimeout(this._delayTimeoutId),this._delayTimeoutId=void 0),this._tooltip.isShown&&(this._tooltip.instance.classMap.in=!1,setTimeout(function(){e._tooltip.hide()},this.tooltipFadeDuration))}},{key:"ngOnDestroy",value:function(){this._tooltip.dispose(),this.tooltipChange.unsubscribe(),this._delaySubscription&&this._delaySubscription.unsubscribe(),this.onShown.unsubscribe(),this.onHidden.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||sg)(c.dc(c.cb),c.dc(hg),c.dc(xg),c.dc(c.q),c.dc(c.Q),c.dc(Gm))},sg.\u0275dir=c.Yb({type:sg,selectors:[["","tooltip",""],["","tooltipHtml",""]],inputs:{containerClass:"containerClass",tooltipAnimation:"tooltipAnimation",tooltipFadeDuration:"tooltipFadeDuration",isOpen:"isOpen",htmlContent:["tooltipHtml","htmlContent"],tooltip:"tooltip",_placement:["tooltipPlacement","_placement"],placement:"placement",_isOpen:["tooltipIsOpen","_isOpen"],_enable:["tooltipEnable","_enable"],isDisabled:"isDisabled",_appendToBody:["tooltipAppendToBody","_appendToBody"],container:"container",_popupClass:["tooltipClass","_popupClass"],_tooltipContext:["tooltipContext","_tooltipContext"],_tooltipPopupDelay:["tooltipPopupDelay","_tooltipPopupDelay"],delay:"delay",_tooltipTrigger:["tooltipTrigger","_tooltipTrigger"],triggers:"triggers",adaptivePosition:"adaptivePosition"},outputs:{tooltipChange:"tooltipChange",tooltipStateChanged:"tooltipStateChanged",onShown:"onShown",onHidden:"onHidden"},exportAs:["bs-tooltip"]}),Object(Rc.b)([function(e,t){var n=" __".concat(t,"Value");Object.defineProperty(e,t,{get:function(){return this[n]},set:function(e){var i=this[n];this[n]=e,i!==e&&this[t+"Change"]&&this[t+"Change"].emit(e)}})},Object(Rc.c)("design:type",Object)],sg.prototype,"tooltip",void 0),sg),Tg=((og=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){return{ngModule:e,providers:[hg,Gm]}}}]),e}()).\u0275fac=function(e){return new(e||og)},og.\u0275mod=c.bc({type:og}),og.\u0275inj=c.ac({imports:[[l.c]]}),og),Eg=((ag=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){return{ngModule:e,providers:[hg,Gm]}}}]),e}()).\u0275fac=function(e){return new(e||ag)},ag.\u0275mod=c.bc({type:ag}),ag.\u0275inj=c.ac({imports:[[l.c]]}),ag),Ag=((rg=function e(){var t=this;_classCallCheck(this,e),this.direction="down",this.isOpenChange=new c.s,this.isDisabledChange=new c.s,this.toggleClick=new c.s,this.dropdownMenu=new Promise(function(e){t.resolveDropdownMenu=e})}).\u0275fac=function(e){return new(e||rg)},rg.\u0275prov=c.Zb({token:rg,factory:rg.\u0275fac}),rg);yt({height:0,overflow:"hidden"}),gt("220ms cubic-bezier(0, 0, 0.2, 1)",yt({height:"*",overflow:"hidden"}));var Pg,Lg=((Pg=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t){return{ngModule:e,providers:[hg,Gm,Ag]}}}]),e}()).\u0275fac=function(e){return new(e||Pg)},Pg.\u0275mod=c.bc({type:Pg}),Pg.\u0275inj=c.ac({}),Pg);function Og(e,t){if(1&e){var n=c.kc();c.jc(0,"li",7),c.tc("click",function(){var e=c.Qc(n).index;return c.xc(2).selectSlide(e)}),c.ic()}2&e&&c.Vb("active",!0===t.$implicit.active)}function Ig(e,t){if(1&e&&(c.jc(0,"ol",5),c.Yc(1,Og,1,2,"li",6),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngForOf",n.indicatorsSlides())}}function Hg(e,t){1&e&&(c.jc(0,"span",11),c.ad(1,"Previous"),c.ic())}function jg(e,t){if(1&e){var n=c.kc();c.jc(0,"a",8),c.tc("click",function(){return c.Qc(n),c.xc().previousSlide()}),c.ec(1,"span",9),c.Yc(2,Hg,2,0,"span",10),c.ic()}if(2&e){var i=c.xc();c.Vb("disabled",0===i.activeSlide&&i.noWrap),c.Pb(2),c.Dc("ngIf",i.isBs4)}}function Fg(e,t){if(1&e){var n=c.kc();c.jc(0,"a",12),c.tc("click",function(){return c.Qc(n),c.xc().nextSlide()}),c.ec(1,"span",13),c.jc(2,"span",11),c.ad(3,"Next"),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Vb("disabled",i.isLast(i.activeSlide)&&i.noWrap)}}var Rg,Ng=function(e){return{display:e}},Bg=["*"],Yg=((Rg=function e(){_classCallCheck(this,e),this.interval=5e3,this.noPause=!1,this.noWrap=!1,this.showIndicators=!0,this.pauseOnFocus=!1,this.indicatorsByChunk=!1,this.itemsPerSlide=1,this.singleSlideOffset=!1}).\u0275fac=function(e){return new(e||Rg)},Rg.\u0275prov=Object(c.Zb)({factory:function(){return new Rg},token:Rg,providedIn:"root"}),Rg),zg={UNKNOWN:0,NEXT:1,PREV:2};zg[zg.UNKNOWN]="UNKNOWN",zg[zg.NEXT]="NEXT",zg[zg.PREV]="PREV";var Vg,Ug,$g,Wg=(($g=function(){function e(t,n){_classCallCheck(this,e),this.ngZone=n,this.indicatorsByChunk=!1,this.itemsPerSlide=1,this.singleSlideOffset=!1,this.isAnimated=!1,this.activeSlideChange=new c.s(!1),this.slideRangeChange=new c.s,this.startFromIndex=0,this._slides=new um,this._currentVisibleSlidesIndex=0,this.destroyed=!1,this.getActive=function(e){return e.active},this.makeSlidesConsistent=function(e){e.forEach(function(e,t){return e.item.order=t})},Object.assign(this,t)}return _createClass(e,[{key:"activeSlide",get:function(){return this._currentActiveSlide},set:function(e){this.multilist||this._slides.length&&e!==this._currentActiveSlide&&this._select(e)}},{key:"interval",get:function(){return this._interval},set:function(e){this._interval=e,this.restartTimer()}},{key:"slides",get:function(){return this._slides.toArray()}},{key:"isBs4",get:function(){return!cm()}},{key:"ngAfterViewInit",value:function(){var e=this;setTimeout(function(){e.singleSlideOffset&&(e.indicatorsByChunk=!1),e.multilist&&(e._chunkedSlides=function(e,t){for(var n=[],i=Math.ceil(e.length/t),r=0;r<i;){var a=e.splice(0,r===i-1&&t<e.length?e.length:t);n.push(a),r++}return n}(e.mapSlidesAndIndexes(),e.itemsPerSlide),e.selectInitialSlides())},0)}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}},{key:"addSlide",value:function(e){this._slides.add(e),this.multilist&&this._slides.length<=this.itemsPerSlide&&(e.active=!0),!this.multilist&&this.isAnimated&&(e.isAnimated=!0),this.multilist||1!==this._slides.length||(this._currentActiveSlide=void 0,this.activeSlide=0,this.play()),this.multilist&&this._slides.length>this.itemsPerSlide&&this.play()}},{key:"removeSlide",value:function(e){var t=this,n=this._slides.indexOf(e);if(this._currentActiveSlide===n){var i;this._slides.length>1&&(i=this.isLast(n)?this.noWrap?n-1:0:n),this._slides.remove(n),setTimeout(function(){t._select(i)},0)}else{this._slides.remove(n);var r=this.getCurrentSlideIndex();setTimeout(function(){t._currentActiveSlide=r,t.activeSlideChange.emit(t._currentActiveSlide)},0)}}},{key:"nextSlideFromInterval",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.move(zg.NEXT,e)}},{key:"nextSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isPlaying&&this.restartTimer(),this.move(zg.NEXT,e)}},{key:"previousSlide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isPlaying&&this.restartTimer(),this.move(zg.PREV,e)}},{key:"getFirstVisibleIndex",value:function(){return this.slides.findIndex(this.getActive)}},{key:"getLastVisibleIndex",value:function(){return function(e,t){for(var n=e.length;n--;)if(t(e[n],n,e))return n;return-1}(this.slides,this.getActive)}},{key:"move",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getFirstVisibleIndex(),i=this.getLastVisibleIndex();this.noWrap&&(e===zg.NEXT&&this.isLast(i)||e===zg.PREV&&0===n)||(this.multilist?this.moveMultilist(e):this.activeSlide=this.findNextSlideIndex(e,t))}},{key:"keydownPress",value:function(e){if(13===e.keyCode||"Enter"===e.key||32===e.keyCode||"Space"===e.key)return this.nextSlide(),void e.preventDefault();37!==e.keyCode&&"LeftArrow"!==e.key?39!==e.keyCode&&"RightArrow"!==e.key||this.nextSlide():this.previousSlide()}},{key:"onMouseLeave",value:function(){this.pauseOnFocus||this.play()}},{key:"onMouseUp",value:function(){this.pauseOnFocus||this.play()}},{key:"pauseFocusIn",value:function(){this.pauseOnFocus&&(this.isPlaying=!1,this.resetTimer())}},{key:"pauseFocusOut",value:function(){this.play()}},{key:"selectSlide",value:function(e){this.isPlaying&&this.restartTimer(),this.multilist?this.selectSlideRange(this.indicatorsByChunk?e*this.itemsPerSlide:e):this.activeSlide=this.indicatorsByChunk?e*this.itemsPerSlide:e}},{key:"play",value:function(){this.isPlaying||(this.isPlaying=!0,this.restartTimer())}},{key:"pause",value:function(){this.noPause||(this.isPlaying=!1,this.resetTimer())}},{key:"getCurrentSlideIndex",value:function(){return this._slides.findIndex(this.getActive)}},{key:"isLast",value:function(e){return e+1>=this._slides.length}},{key:"isFirst",value:function(e){return 0===e}},{key:"indicatorsSlides",value:function(){var e=this;return this.slides.filter(function(t,n){return!e.indicatorsByChunk||n%e.itemsPerSlide==0})}},{key:"selectInitialSlides",value:function(){var e=this.startFromIndex<=this._slides.length?this.startFromIndex:0;if(this.hideSlides(),this.singleSlideOffset){if(this._slidesWithIndexes=this.mapSlidesAndIndexes(),this._slides.length-e<this.itemsPerSlide){var t=this._slidesWithIndexes.slice(0,e);this._slidesWithIndexes=[].concat(_toConsumableArray(this._slidesWithIndexes),_toConsumableArray(t)).slice(t.length).slice(0,this.itemsPerSlide)}else this._slidesWithIndexes=this._slidesWithIndexes.slice(e,e+this.itemsPerSlide);
1this._slidesWithIndexes.forEach(function(e){return e.item.active=!0}),this.makeSlidesConsistent(this._slidesWithIndexes)}else this.selectRangeByNestedIndex(e);this.slideRangeChange.emit(this.getVisibleIndexes())}},{key:"findNextSlideIndex",value:function(e,t){var n=0;if(t||!this.isLast(this.activeSlide)||e===zg.PREV||!this.noWrap){switch(e){case zg.NEXT:n=this.isLast(this._currentActiveSlide)?!t&&this.noWrap?this._currentActiveSlide:0:this._currentActiveSlide+1;break;case zg.PREV:n=this._currentActiveSlide>0?this._currentActiveSlide-1:!t&&this.noWrap?this._currentActiveSlide:this._slides.length-1;break;default:throw new Error("Unknown direction")}return n}}},{key:"mapSlidesAndIndexes",value:function(){return this.slides.slice().map(function(e,t){return{index:t,item:e}})}},{key:"selectSlideRange",value:function(e){if(!this.isIndexInRange(e)){if(this.hideSlides(),this.singleSlideOffset){var t=this.isIndexOnTheEdges(e)?e:e-this.itemsPerSlide+1,n=this.isIndexOnTheEdges(e)?e+this.itemsPerSlide:e+1;this._slidesWithIndexes=this.mapSlidesAndIndexes().slice(t,n),this.makeSlidesConsistent(this._slidesWithIndexes),this._slidesWithIndexes.forEach(function(e){return e.item.active=!0})}else this.selectRangeByNestedIndex(e);this.slideRangeChange.emit(this.getVisibleIndexes())}}},{key:"selectRangeByNestedIndex",value:function(e){var t=this._chunkedSlides.map(function(e,t){return{index:t,list:e}}).find(function(t){return void 0!==t.list.find(function(t){return t.index===e})});this._currentVisibleSlidesIndex=t.index,this._chunkedSlides[t.index].forEach(function(e){e.item.active=!0})}},{key:"isIndexOnTheEdges",value:function(e){return e+1-this.itemsPerSlide<=0||e+this.itemsPerSlide<=this._slides.length}},{key:"isIndexInRange",value:function(e){return this.singleSlideOffset?this._slidesWithIndexes.map(function(e){return e.index}).indexOf(e)>=0:e<=this.getLastVisibleIndex()&&e>=this.getFirstVisibleIndex()}},{key:"hideSlides",value:function(){this.slides.forEach(function(e){return e.active=!1})}},{key:"isVisibleSlideListLast",value:function(){return this._currentVisibleSlidesIndex===this._chunkedSlides.length-1}},{key:"isVisibleSlideListFirst",value:function(){return 0===this._currentVisibleSlidesIndex}},{key:"moveSliderByOneItem",value:function(e){var t,n,i,r;if(this.noWrap){t=this.getFirstVisibleIndex(),n=this.getLastVisibleIndex(),i=e===zg.NEXT?t:n,r=e!==zg.NEXT?t-1:this.isLast(n)?0:n+1,this._slides.get(i).active=!1,this._slides.get(r).active=!0;var a=this.mapSlidesAndIndexes().filter(function(e){return e.item.active});this.makeSlidesConsistent(a),this.slideRangeChange.emit(this.getVisibleIndexes())}else{var o;t=this._slidesWithIndexes[0].index,n=this._slidesWithIndexes[this._slidesWithIndexes.length-1].index,e===zg.NEXT?(this._slidesWithIndexes.shift(),o=this.isLast(n)?0:n+1,this._slidesWithIndexes.push({index:o,item:this._slides.get(o)})):(this._slidesWithIndexes.pop(),o=this.isFirst(t)?this._slides.length-1:t-1,this._slidesWithIndexes=[{index:o,item:this._slides.get(o)}].concat(_toConsumableArray(this._slidesWithIndexes))),this.hideSlides(),this._slidesWithIndexes.forEach(function(e){return e.item.active=!0}),this.makeSlidesConsistent(this._slidesWithIndexes),this.slideRangeChange.emit(this._slidesWithIndexes.map(function(e){return e.index}))}}},{key:"moveMultilist",value:function(e){this.singleSlideOffset?this.moveSliderByOneItem(e):(this.hideSlides(),this._currentVisibleSlidesIndex=this.noWrap?e===zg.NEXT?this._currentVisibleSlidesIndex+1:this._currentVisibleSlidesIndex-1:e===zg.NEXT?this.isVisibleSlideListLast()?0:this._currentVisibleSlidesIndex+1:this.isVisibleSlideListFirst()?this._chunkedSlides.length-1:this._currentVisibleSlidesIndex-1,this._chunkedSlides[this._currentVisibleSlidesIndex].forEach(function(e){return e.item.active=!0}),this.slideRangeChange.emit(this.getVisibleIndexes()))}},{key:"getVisibleIndexes",value:function(){return this.singleSlideOffset?this._slidesWithIndexes.map(function(e){return e.index}):this._chunkedSlides[this._currentVisibleSlidesIndex].map(function(e){return e.index})}},{key:"_select",value:function(e){if(isNaN(e))this.pause();else{if(!this.multilist){var t=this._slides.get(this._currentActiveSlide);t&&(t.active=!1)}var n=this._slides.get(e);n&&(this._currentActiveSlide=e,n.active=!0,this.activeSlide=e,this.activeSlideChange.emit(e))}}},{key:"restartTimer",value:function(){var e=this;this.resetTimer();var t=+this.interval;!isNaN(t)&&t>0&&(this.currentInterval=this.ngZone.runOutsideAngular(function(){return setInterval(function(){var t=+e.interval;e.ngZone.run(function(){e.isPlaying&&!isNaN(e.interval)&&t>0&&e.slides.length?e.nextSlideFromInterval():e.pause()})},t)}))}},{key:"multilist",get:function(){return this.itemsPerSlide>1}},{key:"resetTimer",value:function(){this.currentInterval&&(clearInterval(this.currentInterval),this.currentInterval=void 0)}}]),e}()).\u0275fac=function(e){return new(e||$g)(c.dc(Yg),c.dc(c.J))},$g.\u0275cmp=c.Xb({type:$g,selectors:[["carousel"]],inputs:{indicatorsByChunk:"indicatorsByChunk",itemsPerSlide:"itemsPerSlide",singleSlideOffset:"singleSlideOffset",isAnimated:"isAnimated",startFromIndex:"startFromIndex",activeSlide:"activeSlide",interval:"interval",noWrap:"noWrap",noPause:"noPause",showIndicators:"showIndicators",pauseOnFocus:"pauseOnFocus"},outputs:{activeSlideChange:"activeSlideChange",slideRangeChange:"slideRangeChange"},ngContentSelectors:Bg,decls:6,vars:6,consts:[["tabindex","0",1,"carousel","slide",3,"mouseenter","mouseleave","mouseup","keydown","focusin","focusout"],["class","carousel-indicators",4,"ngIf"],[1,"carousel-inner",3,"ngStyle"],["class","left carousel-control carousel-control-prev","tabindex","0","role","button",3,"disabled","click",4,"ngIf"],["class","right carousel-control carousel-control-next","tabindex","0","role","button",3,"disabled","click",4,"ngIf"],[1,"carousel-indicators"],[3,"active","click",4,"ngFor","ngForOf"],[3,"click"],["tabindex","0","role","button",1,"left","carousel-control","carousel-control-prev",3,"click"],["aria-hidden","true",1,"icon-prev","carousel-control-prev-icon"],["class","sr-only",4,"ngIf"],[1,"sr-only"],["tabindex","0","role","button",1,"right","carousel-control","carousel-control-next",3,"click"],["aria-hidden","true",1,"icon-next","carousel-control-next-icon"]],template:function(e,t){1&e&&(c.Cc(),c.jc(0,"div",0),c.tc("mouseenter",function(){return t.pause()})("mouseleave",function(){return t.onMouseLeave()})("mouseup",function(){return t.onMouseUp()})("keydown",function(e){return t.keydownPress(e)})("focusin",function(){return t.pauseFocusIn()})("focusout",function(){return t.pauseFocusOut()}),c.Yc(1,Ig,2,1,"ol",1),c.jc(2,"div",2),c.Bc(3),c.ic(),c.Yc(4,jg,3,3,"a",3),c.Yc(5,Fg,4,2,"a",4),c.ic()),2&e&&(c.Pb(1),c.Dc("ngIf",t.showIndicators&&t.slides.length>1),c.Pb(1),c.Dc("ngStyle",c.Hc(4,Ng,t.multilist?"flex":"block")),c.Pb(2),c.Dc("ngIf",t.slides.length>1),c.Pb(1),c.Dc("ngIf",t.slides.length>1))},directives:[l.m,l.n,l.l],encapsulation:2}),$g),qg=((Ug=function(){function e(t){_classCallCheck(this,e),this.itemWidth="100%",this.order=0,this.addClass=!0,this.carousel=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.carousel.addSlide(this),this.itemWidth=100/this.carousel.itemsPerSlide+"%"}},{key:"ngOnDestroy",value:function(){this.carousel.removeSlide(this)}}]),e}()).\u0275fac=function(e){return new(e||Ug)(c.dc(Wg))},Ug.\u0275cmp=c.Xb({type:Ug,selectors:[["slide"]],hostVars:13,hostBindings:function(e,t){2&e&&(c.Qb("aria-hidden",!t.active),c.Xc("width",t.itemWidth)("order",t.order),c.Vb("item",t.addClass)("carousel-item",t.addClass)("active",t.active)("carousel-animation",t.isAnimated))},inputs:{active:"active"},ngContentSelectors:Bg,decls:2,vars:2,consts:[[1,"item"]],template:function(e,t){1&e&&(c.Cc(),c.jc(0,"div",0),c.Bc(1),c.ic()),2&e&&c.Vb("active",t.active)},styles:[".carousel-animation[_nghost-%COMP%] {\n transition: opacity 0.6s ease, visibility 0.6s ease;\n float: left;\n }\n .carousel-animation.active[_nghost-%COMP%] {\n opacity: 1;\n visibility: visible;\n }\n .carousel-animation[_nghost-%COMP%]:not(.active) {\n display: block;\n position: absolute;\n opacity: 0;\n visibility: hidden;\n }"]}),Ug),Gg=((Vg=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(){return{ngModule:e,providers:[]}}}]),e}()).\u0275fac=function(e){return new(e||Vg)},Vg.\u0275mod=c.bc({type:Vg}),Vg.\u0275inj=c.ac({imports:[[l.c]]}),Vg),Xg=function(e,t){return e===t||e!=e&&t!=t},Qg=function(e,t){for(var n=e.length;n--;)if(Xg(e[n][0],t))return n;return-1},Kg=Array.prototype.splice;function Zg(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Zg.prototype.clear=function(){this.__data__=[],this.size=0},Zg.prototype.delete=function(e){var t=this.__data__,n=Qg(t,e);return!(n<0||(n==t.length-1?t.pop():Kg.call(t,n,1),--this.size,0))},Zg.prototype.get=function(e){var t=this.__data__,n=Qg(t,e);return n<0?void 0:t[n][1]},Zg.prototype.has=function(e){return Qg(this.__data__,e)>-1},Zg.prototype.set=function(e,t){var n=this.__data__,i=Qg(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};var Jg,ev=Zg,tv=n("Ju5/"),nv=tv.a.Symbol,iv=Object.prototype,rv=iv.hasOwnProperty,av=iv.toString,ov=nv?nv.toStringTag:void 0,sv=Object.prototype.toString,lv=nv?nv.toStringTag:void 0,cv=function(e){return null==e?void 0===e?"[object Undef
1ined]":"[object Null]":lv&&lv in Object(e)?function(e){var t=rv.call(e,ov),n=e[ov];try{e[ov]=void 0;var i=!0}catch(a){}var r=av.call(e);return i&&(t?e[ov]=n:delete e[ov]),r}(e):function(e){return sv.call(e)}(e)},uv=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},dv=tv.a["__core-js_shared__"],hv=(Jg=/[^.]+$/.exec(dv&&dv.keys&&dv.keys.IE_PROTO||""))?"Symbol(src)_1."+Jg:"",fv=Function.prototype.toString,pv=function(e){if(null!=e){try{return fv.call(e)}catch(t){}try{return e+""}catch(t){}}return""},mv=/^\[object .+?Constructor\]$/,gv=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),vv=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!uv(e)||(t=e,hv&&hv in t))&&(function(e){if(!uv(e))return!1;var t=cv(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}(e)?gv:mv).test(pv(e));var t}(n)?n:void 0},yv=vv(tv.a,"Map"),bv=vv(Object,"create"),_v=Object.prototype.hasOwnProperty,wv=Object.prototype.hasOwnProperty;function kv(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}kv.prototype.clear=function(){this.__data__=bv?bv(null):{},this.size=0},kv.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},kv.prototype.get=function(e){var t=this.__data__;if(bv){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _v.call(t,e)?t[e]:void 0},kv.prototype.has=function(e){var t=this.__data__;return bv?void 0!==t[e]:wv.call(t,e)},kv.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=bv&&void 0===t?"__lodash_hash_undefined__":t,this};var Cv=kv,xv=function(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map};function Sv(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Sv.prototype.clear=function(){this.size=0,this.__data__={hash:new Cv,map:new(yv||ev),string:new Cv}},Sv.prototype.delete=function(e){var t=xv(this,e).delete(e);return this.size-=t?1:0,t},Sv.prototype.get=function(e){return xv(this,e).get(e)},Sv.prototype.has=function(e){return xv(this,e).has(e)},Sv.prototype.set=function(e,t){var n=xv(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};var Mv,Dv=Sv;function Tv(e){var t=this.__data__=new ev(e);this.size=t.size}Tv.prototype.clear=function(){this.__data__=new ev,this.size=0},Tv.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Tv.prototype.get=function(e){return this.__data__.get(e)},Tv.prototype.has=function(e){return this.__data__.has(e)},Tv.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ev){var i=n.__data__;if(!yv||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Dv(i)}return n.set(e,t),this.size=n.size,this},function(){try{var e=vv(Object,"defineProperty");e({},"",{})}catch(t){}}(),function(e){return null!=e&&"object"==typeof e}(Mv=function(){return arguments}())&&cv(Mv),n("WOAq");var Ev={};Ev["[object Float32Array]"]=Ev["[object Float64Array]"]=Ev["[object Int8Array]"]=Ev["[object Int16Array]"]=Ev["[object Int32Array]"]=Ev["[object Uint8Array]"]=Ev["[object Uint8ClampedArray]"]=Ev["[object Uint16Array]"]=Ev["[object Uint32Array]"]=!0,Ev["[object Arguments]"]=Ev["[object Array]"]=Ev["[object ArrayBuffer]"]=Ev["[object Boolean]"]=Ev["[object DataView]"]=Ev["[object Date]"]=Ev["[object Error]"]=Ev["[object Function]"]=Ev["[object Map]"]=Ev["[object Number]"]=Ev["[object Object]"]=Ev["[object RegExp]"]=Ev["[object Set]"]=Ev["[object String]"]=Ev["[object WeakMap]"]=!1;var Av=function(e){return function(t){return e(t)}},Pv=n("xutz"),Lv=Pv.a&&Pv.a.isTypedArray;Lv&&Av(Lv);var Ov=function(e,t){return function(n){return e(t(n))}};Ov(Object.keys,Object),n("3/ER"),Ov(Object.getPrototypeOf,Object);var Iv=vv(tv.a,"DataView"),Hv=vv(tv.a,"Promise"),jv=vv(tv.a,"Set"),Fv=vv(tv.a,"WeakMap"),Rv=pv(Iv),Nv=pv(yv),Bv=pv(Hv),Yv=pv(jv),zv=pv(Fv),Vv=cv;(Iv&&"[object DataView]"!=Vv(new Iv(new ArrayBuffer(1)))||yv&&"[object Map]"!=Vv(new yv)||Hv&&"[object Promise]"!=Vv(Hv.resolve())||jv&&"[object Set]"!=Vv(new jv)||Fv&&"[object WeakMap]"!=Vv(new Fv))&&(Vv=function(e){var t=cv(e),n="[object Object]"==t?e.constructor:void 0,i=n?pv(n):"";if(i)switch(i){case Rv:return"[object DataView]";case Nv:return"[object Map]";case Bv:return"[object Promise]";case Yv:return"[object Set]";case zv:return"[object WeakMap]"}return t});var Uv=Pv.a&&Pv.a.isMap;Uv&&Av(Uv);var $v=Pv.a&&Pv.a.isSet,Wv=($v&&Av($v),{});Wv["[object Arguments]"]=Wv["[object Array]"]=Wv["[object ArrayBuffer]"]=Wv["[object DataView]"]=Wv["[object Boolean]"]=Wv["[object Date]"]=Wv["[object Float32Array]"]=Wv["[object Float64Array
1]"]=Wv["[object Int8Array]"]=Wv["[object Int16Array]"]=Wv["[object Int32Array]"]=Wv["[object Map]"]=Wv["[object Number]"]=Wv["[object Object]"]=Wv["[object RegExp]"]=Wv["[object Set]"]=Wv["[object String]"]=Wv["[object Symbol]"]=Wv["[object Uint8Array]"]=Wv["[object Uint8ClampedArray]"]=Wv["[object Uint16Array]"]=Wv["[object Uint32Array]"]=!0,Wv["[object Error]"]=Wv["[object Function]"]=Wv["[object WeakMap]"]=!1,n("MO+k");var qv={Default:0,Update:1,Refresh:2};qv[qv.Default]="Default",qv[qv.Update]="Update",qv[qv.Refresh]="Refresh";var Gv,Xv=((Gv=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Gv)},Gv.\u0275mod=c.bc({type:Gv}),Gv.\u0275inj=c.ac({imports:[[]]}),Gv);function Qv(e,t){if(1&e){var n=c.kc();c.jc(0,"a",11),c.tc("keyup.enter",function(){return c.Qc(n),c.xc(3),c.Nc(1).previous()})("click",function(){return c.Qc(n),c.xc(3),c.Nc(1).previous()}),c.ad(1),c.jc(2,"span",12),c.ad(3),c.ic(),c.ic()}if(2&e){var i=c.xc(3);c.Qb("aria-label",i.previousLabel+" "+i.screenReaderPageLabel),c.Pb(1),c.cd(" ",i.previousLabel," "),c.Pb(2),c.bd(i.screenReaderPageLabel)}}function Kv(e,t){if(1&e&&(c.jc(0,"span"),c.ad(1),c.jc(2,"span",12),c.ad(3),c.ic(),c.ic()),2&e){var n=c.xc(3);c.Pb(1),c.cd(" ",n.previousLabel," "),c.Pb(2),c.bd(n.screenReaderPageLabel)}}function Zv(e,t){if(1&e&&(c.jc(0,"li",8),c.Yc(1,Qv,4,3,"a",9),c.Yc(2,Kv,4,2,"span",10),c.ic()),2&e){c.xc(2);var n=c.Nc(1);c.Vb("disabled",n.isFirstPage()),c.Pb(1),c.Dc("ngIf",1<n.getCurrent()),c.Pb(1),c.Dc("ngIf",n.isFirstPage())}}function Jv(e,t){if(1&e){var n=c.kc();c.jc(0,"a",11),c.tc("keyup.enter",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc(2),c.Nc(1).setCurrent(e.value)})("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc(2),c.Nc(1).setCurrent(e.value)}),c.jc(1,"span",12),c.ad(2),c.ic(),c.jc(3,"span"),c.ad(4),c.yc(5,"number"),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc(2);c.Pb(2),c.cd("",r.screenReaderPageLabel," "),c.Pb(2),c.bd("..."===i.label?i.label:c.Ac(5,2,i.label,""))}}function ey(e,t){if(1&e&&(c.hc(0),c.jc(1,"span",12),c.ad(2),c.ic(),c.jc(3,"span"),c.ad(4),c.yc(5,"number"),c.ic(),c.gc()),2&e){var n=c.xc().$implicit,i=c.xc(2);c.Pb(2),c.cd("",i.screenReaderCurrentLabel," "),c.Pb(2),c.bd("..."===n.label?n.label:c.Ac(5,2,n.label,""))}}function ty(e,t){if(1&e&&(c.jc(0,"li"),c.Yc(1,Jv,6,5,"a",9),c.Yc(2,ey,6,5,"ng-container",10),c.ic()),2&e){var n=t.$implicit;c.xc(2);var i=c.Nc(1);c.Vb("current",i.getCurrent()===n.value)("ellipsis","..."===n.label),c.Pb(1),c.Dc("ngIf",i.getCurrent()!==n.value),c.Pb(1),c.Dc("ngIf",i.getCurrent()===n.value)}}function ny(e,t){if(1&e){var n=c.kc();c.jc(0,"a",11),c.tc("keyup.enter",function(){return c.Qc(n),c.xc(3),c.Nc(1).next()})("click",function(){return c.Qc(n),c.xc(3),c.Nc(1).next()}),c.ad(1),c.jc(2,"span",12),c.ad(3),c.ic(),c.ic()}if(2&e){var i=c.xc(3);c.Qb("aria-label",i.nextLabel+" "+i.screenReaderPageLabel),c.Pb(1),c.cd(" ",i.nextLabel," "),c.Pb(2),c.bd(i.screenReaderPageLabel)}}function iy(e,t){if(1&e&&(c.jc(0,"span"),c.ad(1),c.jc(2,"span",12),c.ad(3),c.ic(),c.ic()),2&e){var n=c.xc(3);c.Pb(1),c.cd(" ",n.nextLabel," "),c.Pb(2),c.bd(n.screenReaderPageLabel)}}function ry(e,t){if(1&e&&(c.jc(0,"li",13),c.Yc(1,ny,4,3,"a",9),c.Yc(2,iy,4,2,"span",10),c.ic()),2&e){c.xc(2);var n=c.Nc(1);c.Vb("disabled",n.isLastPage()),c.Pb(1),c.Dc("ngIf",!n.isLastPage()),c.Pb(1),c.Dc("ngIf",n.isLastPage())}}function ay(e,t){if(1&e&&(c.jc(0,"ul",3),c.Yc(1,Zv,3,4,"li",4),c.jc(2,"li",5),c.ad(3),c.ic(),c.Yc(4,ty,3,6,"li",6),c.Yc(5,ry,3,4,"li",7),c.ic()),2&e){var n=c.xc(),i=c.Nc(1);c.Vb("responsive",n.responsive),c.Qb("aria-label",n.screenReaderPaginationLabel),c.Pb(1),c.Dc("ngIf",n.directionLinks),c.Pb(2),c.dd(" ",i.getCurrent()," / ",i.getLastPage()," "),c.Pb(1),c.Dc("ngForOf",i.pages)("ngForTrackBy",n.trackByIndex),c.Pb(1),c.Dc("ngIf",n.directionLinks)}}var oy=function(){function e(){this.change=new c.s,this.instances={},this.DEFAULT_ID="DEFAULT_PAGINATION_ID"}return e.prototype.defaultId=function(){return this.DEFAULT_ID},e.prototype.register=function(e){return null==e.id&&(e.id=this.DEFAULT_ID),this.instances[e.id]?this.updateInstance(e):(this.instances[e.id]=e,!0)},e.prototype.updateInstance=function(e){var t=!1;for(var n in this.instances[e.id])e[n]!==this.instances[e.id][n]&&(this.instances[e.id][n]=e[n],t=!0);return t},e.prototype.getCurrentPage=function(e){if(this.instances[e])return this.instances[e].currentPage},e.prototype.setCurrentPage=function(e,t){if(this.instances[e]){var n=this.instances[e];t<=Math.ceil(n.totalItems/n.itemsPerPage)&&1<=t&&(this.instances[e].currentPage=t,this.change.emit(e))}},e.prototype.setTotalItems=function(e,t){this.instances[e]&&0<=t&&(this.instances[e].totalItems=t,this.change.emit(e))},e.prototype.setItemsPerPage=function(e,t){this.instances[e]&&(this.instances[e].itemsPerPage=t,this.change.emit(e))},e.prototype.getInstance=function(e){return void 0===e&&(e=this.DEFAULT_ID),this.instances[e]?this.clone(this.instances[e]):{}},e.prototype.clone=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=c.Zb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),sy=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},ly=Number.MAX_SAFE_INTEGER,cy=function(){function e(e){this.service=e,this.state={}}return e.prototype.transform=function(e,t){if(!(e instanceof Array)){var n=t.id||this.service.defaultId();return this.state[n]?this.state[n].slice:e}var i,r,a=t.totalItems&&t.totalItems!==e.length,o=this.createInstance(e,t),s=o.id,l=o.itemsPerPage,c=this.service.register(o);if(!a&&e instanceof Array){if(this.stateIsIdentical(s,e,i=(o.currentPage-1)*(l=+l||ly),r=i+l))return this.state[s].slice;var u=e.slice(i,r);return this.saveState(s,e,u,i,r),this.service.change.emit(s),u}return c&&this.service.change.emit(s),this.saveState(s,e,e,i,r),e},e.prototype.createInstance=function(e,t){return this.checkConfig(t),{id:null!=t.id?t.id:this.service.defaultId(),itemsPerPage:+t.itemsPerPage||0,currentPage:+t.currentPage||1,totalItems:+t.totalItems||e.length}},e.prototype.checkConfig=function(e){var t=["itemsPerPage","currentPage"].filter(function(t){return!(t in e)});if(0<t.length)throw new Error("PaginatePipe: Argument is missing the following required properties: "+t.join(", "))},e.prototype.saveState=function(e,t,n,i,r){this.state[e]={collection:t,size:t.length,slice:n,start:i,end:r}},e.prototype.stateIsIdentical=function(e,t,n,i){var r=this.state[e];return!!r&&!(r.size!==t.length||r.start!==n||r.end!==i)&&r.slice.every(function(e,i){return e===t[n+i]})},(e=function(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}([sy("design:paramtypes",[oy])],e)).\u0275fac=function(t){return new(t||e)(c.dc(oy,16))},e.\u0275pipe=c.cc({name:"paginate",type:e,pure:!1}),e}(),uy=function(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},dy=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};function hy(e){return!!e&&"false"!==e}var fy=function(){function e(){this.maxSize=7,this.previousLabel="Previous",this.nextLabel="Next",this.screenReaderPaginationLabel="Pagination",this.screenReaderPageLabel="page",this.screenReaderCurrentLabel="You're on page",this.pageChange=new c.s,this.pageBoundsCorrection=new c.s,this._directionLinks=!0,this._autoHide=!1,this._responsive=!1}return Object.defineProperty(e.prototype,"directionLinks",{get:function(){return this._directionLinks}
1,set:function(e){this._directionLinks=hy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoHide",{get:function(){return this._autoHide},set:function(e){this._autoHide=hy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"responsive",{get:function(){return this._responsive},set:function(e){this._responsive=hy(e)},enumerable:!0,configurable:!0}),e.prototype.trackByIndex=function(e){return e},uy([Object(c.A)(),dy("design:type",String)],e.prototype,"id",void 0),uy([Object(c.A)(),dy("design:type",Number)],e.prototype,"maxSize",void 0),uy([Object(c.A)(),dy("design:type",Boolean),dy("design:paramtypes",[Boolean])],e.prototype,"directionLinks",null),uy([Object(c.A)(),dy("design:type",Boolean),dy("design:paramtypes",[Boolean])],e.prototype,"autoHide",null),uy([Object(c.A)(),dy("design:type",Boolean),dy("design:paramtypes",[Boolean])],e.prototype,"responsive",null),uy([Object(c.A)(),dy("design:type",String)],e.prototype,"previousLabel",void 0),uy([Object(c.A)(),dy("design:type",String)],e.prototype,"nextLabel",void 0),uy([Object(c.A)(),dy("design:type",String)],e.prototype,"screenReaderPaginationLabel",void 0),uy([Object(c.A)(),dy("design:type",String)],e.prototype,"screenReaderPageLabel",void 0),uy([Object(c.A)(),dy("design:type",String)],e.prototype,"screenReaderCurrentLabel",void 0),uy([Object(c.L)(),dy("design:type",c.s)],e.prototype,"pageChange",void 0),uy([Object(c.L)(),dy("design:type",c.s)],e.prototype,"pageBoundsCorrection",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Xb({type:e,selectors:[["pagination-controls"]],inputs:{maxSize:"maxSize",previousLabel:"previousLabel",nextLabel:"nextLabel",screenReaderPaginationLabel:"screenReaderPaginationLabel",screenReaderPageLabel:"screenReaderPageLabel",screenReaderCurrentLabel:"screenReaderCurrentLabel",directionLinks:"directionLinks",autoHide:"autoHide",responsive:"responsive",id:"id"},outputs:{pageChange:"pageChange",pageBoundsCorrection:"pageBoundsCorrection"},decls:3,vars:3,consts:[[3,"id","maxSize","pageChange","pageBoundsCorrection"],["p","paginationApi"],["class","ngx-pagination",3,"responsive",4,"ngIf"],[1,"ngx-pagination"],["class","pagination-previous",3,"disabled",4,"ngIf"],[1,"small-screen"],[3,"current","ellipsis",4,"ngFor","ngForOf","ngForTrackBy"],["class","pagination-next",3,"disabled",4,"ngIf"],[1,"pagination-previous"],["tabindex","0",3,"keyup.enter","click",4,"ngIf"],[4,"ngIf"],["tabindex","0",3,"keyup.enter","click"],[1,"show-for-sr"],[1,"pagination-next"]],template:function(e,t){if(1&e&&(c.jc(0,"pagination-template",0,1),c.tc("pageChange",function(e){return t.pageChange.emit(e)})("pageBoundsCorrection",function(e){return t.pageBoundsCorrection.emit(e)}),c.Yc(2,ay,6,9,"ul",2),c.ic()),2&e){var n=c.Nc(1);c.Dc("id",t.id)("maxSize",t.maxSize),c.Pb(2),c.Dc("ngIf",!(t.autoHide&&n.pages.length<=1))}},directives:function(){return[gy,l.m,l.l]},pipes:function(){return[l.e]},styles:["\n.ngx-pagination {\n margin-left: 0;\n margin-bottom: 1rem; }\n .ngx-pagination::before, .ngx-pagination::after {\n content: ' ';\n display: table; }\n .ngx-pagination::after {\n clear: both; }\n .ngx-pagination li {\n -moz-user-select: none;\n -webkit-user-select: none;\n -ms-user-select: none;\n margin-right: 0.0625rem;\n border-radius: 0; }\n .ngx-pagination li {\n display: inline-block; }\n .ngx-pagination a,\n .ngx-pagination button {\n color: #0a0a0a; \n display: block;\n padding: 0.1875rem 0.625rem;\n border-radius: 0; }\n .ngx-pagination a:hover,\n .ngx-pagination button:hover {\n background: #e6e6e6; }\n .ngx-pagination .current {\n padding: 0.1875rem 0.625rem;\n background: #2199e8;\n color: #fefefe;\n cursor: default; }\n .ngx-pagination .disabled {\n padding: 0.1875rem 0.625rem;\n color: #cacaca;\n cursor: default; } \n .ngx-pagination .disabled:hover {\n background: transparent; }\n .ngx-pagination a, .ngx-pagination button {\n cursor: pointer; }\n\n.ngx-pagination .pagination-previous a::before,\n.ngx-pagination .pagination-previous.disabled::before { \n content: '\xab';\n display: inline-block;\n margin-right: 0.5rem; }\n\n.ngx-pagination .pagination-next a::after,\n.ngx-pagination .pagination-next.disabled::after {\n
1content: '\xbb';\n display: inline-block;\n margin-left: 0.5rem; }\n\n.ngx-pagination .show-for-sr {\n position: absolute !important;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0); }\n.ngx-pagination .small-screen {\n display: none; }\n@media screen and (max-width: 601px) {\n .ngx-pagination.responsive .small-screen {\n display: inline-block; } \n .ngx-pagination.responsive li:not(.small-screen):not(.pagination-previous):not(.pagination-next) {\n display: none; }\n}\n "],encapsulation:2,changeDetection:0}),e}(),py=function(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},my=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},gy=function(){function e(e,t){var n=this;this.service=e,this.changeDetectorRef=t,this.maxSize=7,this.pageChange=new c.s,this.pageBoundsCorrection=new c.s,this.pages=[],this.changeSub=this.service.change.subscribe(function(e){n.id===e&&(n.updatePageLinks(),n.changeDetectorRef.markForCheck(),n.changeDetectorRef.detectChanges())})}return e.prototype.ngOnInit=function(){void 0===this.id&&(this.id=this.service.defaultId()),this.updatePageLinks()},e.prototype.ngOnChanges=function(e){this.updatePageLinks()},e.prototype.ngOnDestroy=function(){this.changeSub.unsubscribe()},e.prototype.previous=function(){this.checkValidId(),this.setCurrent(this.getCurrent()-1)},e.prototype.next=function(){this.checkValidId(),this.setCurrent(this.getCurrent()+1)},e.prototype.isFirstPage=function(){return 1===this.getCurrent()},e.prototype.isLastPage=function(){return this.getLastPage()===this.getCurrent()},e.prototype.setCurrent=function(e){this.pageChange.emit(e)},e.prototype.getCurrent=function(){return this.service.getCurrentPage(this.id)},e.prototype.getLastPage=function(){var e=this.service.getInstance(this.id);return e.totalItems<1?1:Math.ceil(e.totalItems/e.itemsPerPage)},e.prototype.getTotalItems=function(){return this.service.getInstance(this.id).totalItems},e.prototype.checkValidId=function(){null==this.service.getInstance(this.id).id&&console.warn('PaginationControlsDirective: the specified id "'+this.id+'" does not match any registered PaginationInstance')},e.prototype.updatePageLinks=function(){var e=this,t=this.service.getInstance(this.id),n=this.outOfBoundCorrection(t);n!==t.currentPage?setTimeout(function(){e.pageBoundsCorrection.emit(n),e.pages=e.createPageArray(t.currentPage,t.itemsPerPage,t.totalItems,e.maxSize)}):this.pages=this.createPageArray(t.currentPage,t.itemsPerPage,t.totalItems,this.maxSize)},e.prototype.outOfBoundCorrection=function(e){var t=Math.ceil(e.totalItems/e.itemsPerPage);return t<e.currentPage&&0<t?t:e.currentPage<1?1:e.currentPage},e.prototype.createPageArray=function(e,t,n,i){i=+i;for(var r=[],a=Math.max(Math.ceil(n/t),1),o=Math.ceil(i/2),s=e<=o,l=a-o<e,c=!s&&!l,u=i<a,d=1;d<=a&&d<=i;){var h=this.calculatePageNumber(d,e,i,a);
1r.push({label:u&&(2===d&&(c||l)||d===i-1&&(c||s))?"...":h,value:h}),d++}return r},e.prototype.calculatePageNumber=function(e,t,n,i){var r=Math.ceil(n/2);return e===n?i:1===e?e:n<i?i-r<t?i-n+e:r<t?t-r+e:e:e},py([Object(c.A)(),my("design:type",String)],e.prototype,"id",void 0),py([Object(c.A)(),my("design:type",Number)],e.prototype,"maxSize",void 0),py([Object(c.L)(),my("design:type",c.s)],e.prototype,"pageChange",void 0),py([Object(c.L)(),my("design:type",c.s)],e.prototype,"pageBoundsCorrection",void 0),(e=py([my("design:paramtypes",[oy,c.j])],e)).\u0275fac=function(t){return new(t||e)(c.dc(oy),c.dc(c.j))},e.\u0275dir=c.Yb({type:e,selectors:[["pagination-template"],["","pagination-template",""]],inputs:{maxSize:"maxSize",id:"id"},outputs:{pageChange:"pageChange",pageBoundsCorrection:"pageBoundsCorrection"},exportAs:["paginationApi"],features:[c.Nb]}),e}(),vy=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({providers:[oy],imports:[[l.c]]}),e}(),yy=n("sVev"),by=n("EQ5u");function _y(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new wy(e,t,n))}}var wy=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];_classCallCheck(this,e),this.accumulator=t,this.seed=n,this.hasSeed=i}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new ky(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),ky=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e)).accumulator=i,o._seed=r,o.hasSeed=a,o.index=0,o}return _createClass(n,[{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}},{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(i){this.destination.error(i)}this.seed=t,this.destination.next(t)}}]),n}(_e.a),Cy=n("JIr8"),xy=n("4I5i");function Sy(e){return function(t){return 0===e?Object(Oo.b)():t.lift(new My(e))}}var My=function(){function e(t){if(_classCallCheck(this,e),this.total=t,this.total<0)throw new xy.a}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Dy(e,this.total))}}]),e}(),Dy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).total=i,r.ring=new Array,r.count=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,i=this.count++;t.length<n?t.push(e):t[i%n]=e}},{key:"_complete",value:function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r<n;r++){var a=t++%n;e.next(i[a])}e.complete()}}]),n}(_e.a),Ty=n("XDbj"),Ey=n("xbPD"),Ay=n("SpAZ"),Py=n("SxV6"),Ly=n("x+ZX"),Oy=function(){function e(t){_classCallCheck(this,e),this.callback=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Iy(e,this.callback))}}]),e}(),Iy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).add(new he.a(i)),r}return n}(_e.a),Hy=function e(t,n){_classCallCheck(this,e),this.id=t,this.url=n},jy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r,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),(r=t.call(this,e,i)).navigationTrigger=a,r.restoredState=o,r}return _createClass(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Hy),Fy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).urlAfterRedirects=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(Hy),Ry=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).reason=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(Hy),Ny=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,e,i)).error=r,a}return _createClass(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(Hy),By=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,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}(Hy),Yy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,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}(Hy),zy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a,o){var s;return _classCallCheck(this,n),(s=t.call(this,e,i)).urlAfterRedirects=r,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}(Hy),Vy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,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}(Hy),Uy=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r,a){var o;return _classCallCheck(this,n),(o=t.call(this,e,i)).urlAfterRedirects=r,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}(Hy),$y=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Wy=function(){function e(t){_classCallCheck(this,e),this.route=t}return _createClass(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),qy=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Gy=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Xy=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Qy=function(){function e(t){_classCallCheck(this,e),this.snapshot=t}return _createClass(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ky=function(){function e(t,n,i){_classCallCheck(this,e),this.routerEvent=t,this.position=n,this.anchor=i}return _createClass(e,[{key:"toString",value:function(){return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(this.position?"".concat(this.position[0],", ").concat(this.position[1]):null,"')")}}]),e}(),Zy="primary",Jy=function(){function e(t){_classCallCheck(this,e),this.params=t||{}}return _createClass(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function eb(e){return new Jy(e)}function tb(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function nb(e,t,n){var i=n.path.split("/");if(i.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||i.length<e.length))return null;for(var r={},a=0;a<i.length;a++){var o=i[a],s=e[a];if(o.startsWith(":"))r[o.substring(1)]=s;else if(o!==s.path)return null}return{consumed:e.slice(0,i.length),posParams:r}}function ib(e,t){var n,i=e?Object.keys(e):void 0,r=t?Object.keys(t):void 0;if(!i||!r||i.length!=r.length)return!1;for(var a=0;a<i.length;a++)if(!rb(e[n=i[a]],t[n]))return!1;return!0}function rb(e,t){if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;var n=_toConsumableArray(e).sort(),i=_toConsumableArray(t).sort();return n.every(function(e,t){return i[t]===e})}return e===t}function ab(e){return Array.prototype.concat.apply([],e)}function ob(e){return e.length>0?e[e.length-1]:null}
1function sb(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function lb(e){return Object(c.Eb)(e)?e:Object(c.Fb)(e)?Object(dr.a)(Promise.resolve(e)):Object(me.a)(e)}var cb={exact:function e(t,n,i){if(!yb(t.segments,n.segments))return!1;if(!pb(t.segments,n.segments,i))return!1;if(t.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!t.children[r])return!1;if(!e(t.children[r],n.children[r],i))return!1}return!0},subset:hb},ub={exact:function(e,t){return ib(e,t)},subset:function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return rb(e[n],t[n])})},ignored:function(){return!0}};function db(e,t,n){return cb[n.paths](e.root,t.root,n.matrixParams)&&ub[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function hb(e,t,n){return fb(e,t,t.segments,n)}function fb(e,t,n,i){if(e.segments.length>n.length){var r=e.segments.slice(0,n.length);return!!yb(r,n)&&!t.hasChildren()&&!!pb(r,n,i)}if(e.segments.length===n.length){if(!yb(e.segments,n))return!1;if(!pb(e.segments,n,i))return!1;for(var a in t.children){if(!e.children[a])return!1;if(!hb(e.children[a],t.children[a],i))return!1}return!0}var o=n.slice(0,e.segments.length),s=n.slice(e.segments.length);return!!yb(e.segments,o)&&!!pb(e.segments,o,i)&&!!e.children.primary&&fb(e.children.primary,t,s,i)}function pb(e,t,n){return t.every(function(t,i){return ub[n](e[i].parameters,t.parameters)})}var mb=function(){function e(t,n,i){_classCallCheck(this,e),this.root=t,this.queryParams=n,this.fragment=i}return _createClass(e,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=eb(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return wb.serialize(this)}}]),e}(),gb=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.segments=t,this.children=n,this.parent=null,sb(n,function(e,t){return e.parent=i})}return _createClass(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return kb(this)}}]),e}(),vb=function(){function e(t,n){_classCallCheck(this,e),this.path=t,this.parameters=n}return _createClass(e,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=eb(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return Eb(this)}}]),e}();function yb(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var bb=function e(){_classCallCheck(this,e)},_b=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"parse",value:function(e){var t=new Ib(e);return new mb(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,i,r="/".concat(Cb(e.root,!0)),a=(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(Sb(e),"=").concat(Sb(t))}).join("&"):"".concat(Sb(e),"=").concat(Sb(n))}).filter(function(e){return!!e})).length?"?".concat(n.join("&")):"");return"".concat(r).concat(a).concat("string"==typeof e.fragment?"#".concat((i=e.fragment,encodeURI(i))):"")}}]),e}(),wb=new _b;function kb(e){return e.segments.map(function(e){return Eb(e)}).join("/")}function Cb(e,t){if(!e.hasChildren())return kb(e);if(t){var n=e.children.primary?Cb(e.children.primary,!1):"",i=[];return sb(e.children,function(e,t){"primary"!==t&&i.push("".concat(t,":").concat(Cb(e,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(e,t){var n=[];return sb(e.children,function(e,i){"primary"===i&&(n=n.concat(t(e,i)))}),sb(e.children,function(e,i){"primary"!==i&&(n=n.concat(t(e,i)))}),n}(e,function(t,n){return"primary"===n?[Cb(e.children.primary,!1)]:["".concat(n,":").concat(Cb(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(kb(e),"/").concat(r[0]):"".concat(kb(e),"/(").concat(r.join("//"),")")}function xb(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Sb(e){return xb(e).replace(/%3B/gi,";")}function Mb(e){return xb(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Db(e){return decodeURIComponent(e)}function Tb(e){return Db(e.replace(/\+/g,"%20"))}function Eb(e){return"".concat(Mb(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(Mb(e),"=").concat(Mb(t[e]))}).join("")));var t}var Ab=/^[^\/()?;=#]+/;function Pb(e){var t=e.match(Ab);return t?t[0]:""}var Lb=/^[^=?&#]+/,Ob=/^[^?&#]+/,Ib=function(){function e(t){_classCallCheck(this,e),this.url=t,this.remaining=t}return _createClass(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gb([],{}):new gb([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decode
1URIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new gb(e,t)),n}},{key:"parseSegment",value:function(){var e=Pb(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new vb(Db(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=Pb(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=Pb(this.remaining);i&&(n=i,this.capture(n))}e[Db(t)]=Db(n)}}},{key:"parseQueryParam",value:function(e){var t=function(e){var t=e.match(Lb);return t?t[0]:""}(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(Ob);return t?t[0]:""}(this.remaining);i&&(n=i,this.capture(n))}var r=Tb(t),a=Tb(n);if(e.hasOwnProperty(r)){var o=e[r];Array.isArray(o)||(o=[o],e[r]=o),o.push(a)}else e[r]=a}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Pb(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):e&&(r="primary");var a=this.parseChildren();t[r]=1===Object.keys(a).length?a.primary:new gb([],a),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),Hb=function(){function e(t){_classCallCheck(this,e),this._root=t}return _createClass(e,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=jb(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=jb(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=Fb(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return Fb(e,this._root).map(function(e){return e.value})}}]),e}();function jb(e,t){if(e===t.value)return t;var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=jb(e,n.value);if(r)return r}}catch(a){i.e(a)}finally{i.f()}return null}function Fb(e,t){if(e===t.value)return[t];var n,i=_createForOfIteratorHelper(t.children);try{for(i.s();!(n=i.n()).done;){var r=Fb(e,n.value);if(r.length)return r.unshift(t),r}}catch(a){i.e(a)}finally{i.f()}return[]}var Rb=function(){function e(t,n){_classCallCheck(this,e),this.value=t,this.children=n}return _createClass(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function Nb(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var Bb=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).snapshot=i,Wb(_assertThisInitialized(r),e),r}return _createClass(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(Hb);function Yb(e,t){var n=function(e,t){var n=new Ub([],{},{},"",{},"primary",t,null,e.root,-1,{});return new $b("",new Rb(n,[]))}(e,t),i=new pe([new vb("",{})]),r=new pe({}),a=new pe({}),o=new pe({}),s=new pe(""),l=new zb(i,r,o,s,a,"primary",t,n.root);return l.snapshot=n.root,new Bb(new Rb(l,[]),n)}var zb=function(){function e(t,n,i,r,a,o,s,l){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=l}
1return _createClass(e,[{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(ye.a)(function(e){return eb(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(ye.a)(function(e){return eb(e)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),e}();function Vb(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,i=0;if("always"!==t)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var Ub=function(){function e(t,n,i,r,a,o,s,l,c,u,d){_classCallCheck(this,e),this.url=t,this.params=n,this.queryParams=i,this.fragment=r,this.data=a,this.outlet=o,this.component=s,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}return _createClass(e,[{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=eb(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=eb(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return"Route(url:'".concat(this.url.map(function(e){return e.toString()}).join("/"),"', path:'").concat(this.routeConfig?this.routeConfig.path:"","')")}}]),e}(),$b=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,i)).url=e,Wb(_assertThisInitialized(r),i),r}return _createClass(n,[{key:"toString",value:function(){return qb(this._root)}}]),n}(Hb);function Wb(e,t){t.value._routerState=e,t.children.forEach(function(t){return Wb(e,t)})}function qb(e){var t=e.children.length>0?" { ".concat(e.children.map(qb).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Gb(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,ib(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),ib(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!ib(e[n],t[n]))return!1;return!0}(t.url,n.url)||e.url.next(n.url),ib(t.data,n.data)||e.data.next(n.data)}else e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data)}function Xb(e,t){return ib(e.params,t.params)&&function(e,t){return yb(e,t)&&e.every(function(e,n){return ib(e.parameters,t[n].parameters)})}(e.url,t.url)&&!(!e.parent!=!t.parent)&&(!e.parent||Xb(e.parent,t.parent))}function Qb(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){var i=n.value;i._futureSnapshot=t.value;var r=function(e,t,n){return t.children.map(function(t){var i,r=_createForOfIteratorHelper(n.children);try{for(r.s();!(i=r.n()).done;){var a=i.value;if(e.shouldReuseRoute(t.value,a.value.snapshot))return Qb(e,t,a)}}catch(o){r.e(o)}finally{r.f()}return Qb(e,t)})}(e,t,n);return new Rb(i,r)}if(e.shouldAttach(t.value)){var a=e.retrieve(t.value);if(null!==a){var o=a.route;return Kb(t,o),o}}var s,l=new zb(new pe((s=t.value).url),new pe(s.params),new pe(s.queryParams),new pe(s.fragment),new pe(s.data),s.outlet,s.component,s),c=t.children.map(function(t){return Qb(e,t)});return new Rb(l,c)}function Kb(e,t){if(e.value.routeConfig!==t.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");
1if(e.children.length!==t.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");t.value._futureSnapshot=e.value;for(var n=0;n<e.children.length;++n)Kb(e.children[n],t.children[n])}function Zb(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Jb(e){return"object"==typeof e&&null!=e&&e.outlets}function e_(e,t,n,i,r){var a={};return i&&sb(i,function(e,t){a[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new mb(n.root===e?t:t_(n.root,e,t),a,r)}function t_(e,t,n){var i={};return sb(e.children,function(e,r){i[r]=e===t?n:t_(e,t,n)}),new gb(e.segments,i)}var n_=function(){function e(t,n,i){if(_classCallCheck(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=i,t&&i.length>0&&Zb(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(Jb);if(r&&r!==ob(i))throw new Error("{outlets:{}} has to be the last command")}return _createClass(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),i_=function e(t,n,i){_classCallCheck(this,e),this.segmentGroup=t,this.processChildren=n,this.index=i};function r_(e,t,n){if(e||(e=new gb([],{})),0===e.segments.length&&e.hasChildren())return a_(e,t,n);var i=function(e,t,n){for(var i=0,r=t,a={match:!1,pathIndex:0,commandIndex:0};r<e.segments.length;){if(i>=n.length)return a;var o=e.segments[r],s=n[i];if(Jb(s))break;var l="".concat(s),c=i<n.length-1?n[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!c_(l,c,o))return a;i+=2}else{if(!c_(l,{},o))return a;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(e,t,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex<e.segments.length){var a=new gb(e.segments.slice(0,i.pathIndex),{});return a.children.primary=new gb(e.segments.slice(i.pathIndex),e.children),a_(a,0,r)}return i.match&&0===r.length?new gb(e.segments,{}):i.match&&!e.hasChildren()?o_(e,t,n):i.match?a_(e,0,r):o_(e,t,n)}function a_(e,t,n){if(0===n.length)return new gb(e.segments,{});var i=function(e){return Jb(e[0])?e[0].outlets:_defineProperty({},Zy,e)}(n),r={};return sb(i,function(n,i){"string"==typeof n&&(n=[n]),null!==n&&(r[i]=r_(e.children[i],t,n))}),sb(e.children,function(e,t){void 0===i[t]&&(r[t]=e)}),new gb(e.segments,r)}function o_(e,t,n){for(var i=e.segments.slice(0,t),r=0;r<n.length;){var a=n[r];if(Jb(a)){var o=s_(a.outlets);return new gb(i,o)}if(0===r&&Zb(n[0]))i.push(new vb(e.segments[t].path,l_(n[0]))),r++;else{var s=Jb(a)?a.outlets.primary:"".concat(a),l=r<n.length-1?n[r+1]:null;s&&l&&Zb(l)?(i.push(new vb(s,l_(l))),r+=2):(i.push(new vb(s,{})),r++)}}return new gb(i,{})}function s_(e){var t={};return sb(e,function(e,n){"string"==typeof e&&(e=[e]),null!==e&&(t[n]=o_(new gb([],{}),0,e))}),t}function l_(e){var t={};return sb(e,function(e,n){return t[n]="".concat(e)}),t}function c_(e,t,n){return e==n.path&&ib(t,n.parameters)}var u_=function(){function e(t,n,i,r){_classCallCheck(this,e),this.routeReuseStrategy=t,this.futureState=n,this.currState=i,this.forwardEvent=r}return _createClass(e,[{key:"activate",value:function(e){var t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Gb(this.futureState.root),this.activateChildRoutes(t,n,e)}},{key:"deactivateChildRoutes",value:function(e,t,n){var i=this,r=Nb(t);e.children.forEach(function(e){var t=e.value.outlet;i.deactivateRoutes(e,r[t],n),delete r[t]}),sb(r,function(e,t){i.deactivateRouteAndItsChildren(e,n)})}},{key:"deactivateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(i===r)if(i.component){var a=n.getContext(i.outlet);a&&this.deactivateChildRoutes(e,t,a.children)}else this.deactivateChildRoutes(e,t,n);else r&&this.deactivateRouteAndItsChildren(t,n)}},{key:"deactivateRouteAndItsChildren",value:function(e,t){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}},{key:"detachAndStoreRouteSubtree",value:function(e,t){var n=t.getContext(e.value.outlet);if(n&&n.outlet){var i=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:i,route:e,contexts:r})}}},{key:"deactivateRouteAndOutlet",value:function(e,t){for(var n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,r=Nb(e),a=0,o=Object.keys(r);a<o.length;a++){var s=o[a];this.deactivateRouteAndItsChildren(r[s],i)}n&&n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated(),n.attachRef=null,n.resolver=null,n.route=null)}},{key:"activateChildRoutes",value:function(e,t,n){var i=this,r=Nb(t);
1e.children.forEach(function(e){i.activateRoutes(e,r[e.value.outlet],n),i.forwardEvent(new Qy(e.value.snapshot))}),e.children.length&&this.forwardEvent(new Gy(e.value.snapshot))}},{key:"activateRoutes",value:function(e,t,n){var i=e.value,r=t?t.value:null;if(Gb(i),i===r)if(i.component){var a=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,a.children)}else this.activateChildRoutes(e,t,n);else if(i.component){var o=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){var s=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),d_(s.route)}else{var l=function(e){for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),c=l?l.module.componentFactoryResolver:null;o.attachRef=null,o.route=i,o.resolver=c,o.outlet&&o.outlet.activateWith(i,c),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,n)}}]),e}();function d_(e){Gb(e.value),e.children.forEach(d_)}var h_=function e(t,n){_classCallCheck(this,e),this.routes=t,this.module=n};function f_(e){return"function"==typeof e}function p_(e){return e instanceof mb}var m_=Symbol("INITIAL_VALUE");function g_(){return Object(Ko.a)(function(e){return Object(zo.b)(e.map(function(e){return e.pipe(Object(be.a)(1),ht(m_))})).pipe(_y(function(e,t){var n=!1;return t.reduce(function(e,i,r){if(e!==m_)return e;if(i===m_&&(n=!0),!n){if(!1===i)return i;if(r===t.length-1||p_(i))return i}return e},e)},m_),Object(ve.a)(function(e){return e!==m_}),Object(ye.a)(function(e){return p_(e)?e:!0===e}),Object(be.a)(1))})}var v_,y_=((v_=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||v_)},v_.\u0275cmp=c.Xb({type:v_,selectors:[["ng-component"]],decls:1,vars:0,template:function(e,t){1&e&&c.ec(0,"router-outlet")},directives:function(){return[kw]},encapsulation:2}),v_);function b_(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=0;n<e.length;n++){var i=e[n];__(i,w_(t,i))}}function __(e,t){e.children&&b_(e.children,t)}function w_(e,t){return t?e||t.path?e&&!t.path?"".concat(e,"/"):!e&&t.path?t.path:"".concat(e,"/").concat(t.path):"":e}function k_(e){var t=e.children&&e.children.map(k_),n=t?Object.assign(Object.assign({},e),{children:t}):Object.assign({},e);return!n.component&&(t||n.loadChildren)&&n.outlet&&"primary"!==n.outlet&&(n.component=y_),n}function C_(e){return e.outlet||"primary"}function x_(e,t){var n=e.filter(function(e){return C_(e)===t});return n.push.apply(n,_toConsumableArray(e.filter(function(e){return C_(e)!==t}))),n}var S_={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function M_(e,t,n){var i;if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?Object.assign({},S_):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(t.matcher||nb)(n,e,t);if(!r)return Object.assign({},S_);var a={};sb(r.posParams,function(e,t){a[t]=e.path});var o=r.consumed.length>0?Object.assign(Object.assign({},a),r.consumed[r.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function D_(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&function(e,t,n){return n.some(function(n){return T_(e,t,n)&&"primary"!==C_(n)})}(e,n,i)){var a=new gb(t,function(e,t,n,i){var r={};r.primary=i,i._sourceSegment=e,i._segmentIndexShift=t.length;var a,o=_createForOfIteratorHelper(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(""===s.path&&"primary"!==C_(s)){var l=new gb([],{});l._sourceSegment=e,l._segmentIndexShift=t.length,r[C_(s)]=l}}}catch(c){o.e(c)}finally{o.f()}return r}(e,t,i,new gb(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(e,t,n){return n.some(function(n){return T_(e,t,n)})}(e,n,i)){var o=new gb(e.segments,function(e,t,n,i,r,a){var o,s={},l=_createForOfIteratorHelper(i);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(T_(e,n,c)&&!r[C_(c)]){var u=new gb([],{});u._sourceSegment=e,u._segmentIndexShift="legacy"===a?e.segments.length:t.length,s[C_(c)]=u}}}
1catch(d){l.e(d)}finally{l.f()}return Object.assign(Object.assign({},r),s)}(e,t,n,i,e.children,r));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}var s=new gb(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function T_(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function E_(e,t,n,i){return!!(C_(e)===i||"primary"!==i&&T_(t,n,e))&&("**"===e.path||M_(t,e,n).matched)}function A_(e,t,n){return 0===t.length&&!e.children[n]}var P_=function e(t){_classCallCheck(this,e),this.segmentGroup=t||null},L_=function e(t){_classCallCheck(this,e),this.urlTree=t};function O_(e){return new ae.a(function(t){return t.error(new P_(e))})}function I_(e){return new ae.a(function(t){return t.error(new L_(e))})}function H_(e){return new ae.a(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var j_=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(c.H)}return _createClass(e,[{key:"apply",value:function(){var e=this,t=D_(this.urlTree.root,[],[],this.config).segmentGroup,n=new gb(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,"primary").pipe(Object(ye.a)(function(t){return e.createUrlTree(F_(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(Object(Cy.a)(function(t){if(t instanceof L_)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof P_)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,"primary").pipe(Object(ye.a)(function(n){return t.createUrlTree(F_(n),e.queryParams,e.fragment)})).pipe(Object(Cy.a)(function(e){if(e instanceof P_)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new gb([],_defineProperty({},Zy,e)):e;return new mb(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(ye.a)(function(e){return new gb([],e)})):this.expandSegment(e,n,t,n.segments,i,!0)}},{key:"expandChildren",value:function(e,t,n){for(var i=this,r=[],a=0,o=Object.keys(n.children);a<o.length;a++){var s=o[a];"primary"===s?r.unshift(s):r.push(s)}return Object(dr.a)(r).pipe(Object(uc.a)(function(r){var a=n.children[r],o=x_(t,r);return i.expandSegmentGroup(e,o,a,r).pipe(Object(ye.a)(function(e){return{segment:e,outlet:r}}))}),_y(function(e,t){return e[t.outlet]=t.segment,e},{}),function(e,t){var n=arguments.length>=2;return function(i){return i.pipe(e?Object(ve.a)(function(t,n){return e(t,n,i)}):Ay.a,Sy(1),n?Object(Ey.a)(t):Object(Ty.a)(function(){return new yy.a}))}}())}},{key:"expandSegment",value:function(e,t,n,i,r,a){var o=this;return Object(dr.a)(n).pipe(Object(uc.a)(function(s){return o.expandSegmentAgainstRoute(e,t,n,s,i,r,a).pipe(Object(Cy.a)(function(e){if(e instanceof P_)return Object(me.a)(null);throw e}))}),Object(Py.a)(function(e){return!!e}),Object(Cy.a)(function(e,n){if(e instanceof yy.a||"EmptyError"===e.name){if(A_(t,i,r))return Object(me.a)(new gb([],{}));throw new P_(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,i,r,a,o){return E_(i,t,r,a)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,t,i,r,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a):O_(t):O_(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,i,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,i,r,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,i){var r=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?I_(a):this.lineralizeSegments(n,a).pipe(Object(is.a)(function(n){var a=new gb(n,{});return r.expandSegment(e,a,t,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,i,r,a){var o=this,s=M_(t,i,r),l=s.matched,c=s.consumedSegments,u=s.lastChild,d=s.positionalParamSegments;if(!l)return O_(t);var h=this.applyRedirectCommands(c,i.redirectTo,d);return i.redirectTo.startsWith("/")?I_(h):this.lineralizeSegments(i,h).pipe(Object(is.a)(function(i){return o.expandSegment(e,t,n,i.concat(r.slice(u)),a,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,i,r){var a=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Object(me.a)(n._loadedConfig):this.configLoader.load(e.injector,n)).pipe(Object(ye.a)(function(e){return n._loadedConfig=e,new gb(i,{})})):Object(me.a)(new gb(i,{}));var o=M_(t,n,i),s=o.matched,l=o.consumedSegments,c=o.lastChild;if(!s)return O_(t);var u=i.slice(c);return this.getChildConfig(e,n,i).pipe(Object(is.a)(function(e){var i=e.module,o=e.routes,s=D_(t,l,u,o),c=s.segmentGroup,d=s.slicedSegments,h=new gb(c.segments,c.children);if(0===d.length&&h.hasChildren())return a.expandChildren(i,o,h).pipe(Object(ye.a)(function(e){return new gb(l,e)}));if(0===o.length&&0===d.length)return Object(me.a)(new gb(l,{}));var f=C_(n)===r;return a.expandSegment(i,h,o,d,f?"primary":r,!0).pipe(Object(ye.a)(function(e){return new gb(l.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var i=this;return t.children?Object(me.a)(new h_(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(me.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(is.a)(function(n){return n?i.configLoader.load(e.injector,t).pipe(Object(ye.a)(function(e){return t._loadedConfig=e,e})):function(e){return new ae.a(function(t){return t.error(tb("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Object(me.a)(new h_([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var i=this,r=t.canLoad;if(!r||0===r.length)return Object(me.a)(!0);var a=r.map(function(i){var r,a=e.get(i);if(function(e){return e&&f_(e.canLoad)}(a))r=a.canLoad(t,n);else{if(!f_(a))throw new Error("Invalid CanLoad guard");r=a(t,n)}return lb(r)});return Object(me.a)(a).pipe(g_(),Object(ge.a)(function(e){if(p_(e)){var t=tb('Redirecting to "'.concat(i.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Object(ye.a)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],i=t.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Object(me.a)(n);if(i.numberOfChildren>1||!i.children.primary)return H_(e.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,i){var r=this.createSegmentGroup(e,t.root,n,i);return new mb(r,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return sb(e,function(e,i){if("string"==typeof e&&e.startsWith(":")){var r=e.substring(1);n[i]=t[r]}else n[i]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,i){var r=this,a=this.createSegments(e,t.segments,n,i),o={};return sb(t.children,function(t,a){o[a]=r.createSegmentGroup(e,t,n,i)}),new gb(a,o)}},{key:"createSegments",value:function(e,t,n,i){var r=this;return t.map(function(t){return t.path.startsWith(":")?r.findPosParam(e,t,i):r.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var i=n[t.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return i}},{key:"findOrReturn",value:function(e,t){var n,i=0,r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.path===e.path)return t.splice(i),a;i++}}catch(o){r.e(o)}finally{r.f()}return e}}]),e}();function F_(e){for(var t={},n=0,i=Object.keys(e.children);n<i.length;n++){var r=i[n],a=F_(e.children[r]);(a.segments.length>0||a.hasChildren())&&(t[r]=a)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new gb(e.segments.concat(t.segments),t.children)}return e}(new gb(e.segments,t))}var R_=function e(t){_classCallCheck(this,e),this.path=t,this.route=this.path[this.path.length-1]},N_=function e(t,n){_classCallCheck(this,e),this.component=t,this.route=n};function B_(e,t,n){var i=e._root;return z_(i,t?t._root:null,n,[i.value])}function Y_(e,t,n){var i=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(i?i.module.injector:n).get(e)}function z_(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=Nb(t);
1return e.children.forEach(function(e){!function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var l=function(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!yb(e.url,t.url);case"pathParamsOrQueryParamsChange":return!yb(e.url,t.url)||!ib(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Xb(e,t)||!ib(e.queryParams,t.queryParams);default:return!Xb(e,t)}}(o,a,a.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new R_(i)):(a.data=o.data,a._resolvedData=o._resolvedData),z_(e,t,a.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new N_(s.outlet.component,o))}else o&&V_(t,s,r),r.canActivateChecks.push(new R_(i)),z_(e,null,a.component?s?s.children:null:n,i,r)}(e,a[e.value.outlet],n,i.concat([e.value]),r),delete a[e.value.outlet]}),sb(a,function(e,t){return V_(e,n.getContext(t),r)}),r}function V_(e,t,n){var i=Nb(e),r=e.value;sb(i,function(e,i){V_(e,r.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new N_(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}var U_=function e(){_classCallCheck(this,e)};function $_(e){return new ae.a(function(t){return t.error(e)})}var W_=function(){function e(t,n,i,r,a,o){_classCallCheck(this,e),this.rootComponentType=t,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return _createClass(e,[{key:"recognize",value:function(){var e=D_(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,"primary");if(null===t)return null;var n=new Ub([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Rb(n,t),r=new $b(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,i=Vb(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],i=0,r=Object.keys(t.children);i<r.length;i++){var a=r[i],o=t.children[a],s=x_(e,a),l=this.processSegmentGroup(s,o,a);if(null===l)return null;n.push.apply(n,_toConsumableArray(l))}var c=q_(n);return c.sort(function(e,t){return"primary"===e.value.outlet?-1:"primary"===t.value.outlet?1:e.value.outlet.localeCompare(t.value.outlet)}),c}},{key:"processSegment",value:function(e,t,n,i){var r,a=_createForOfIteratorHelper(e);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=this.processSegmentAgainstRoute(o,t,n,i);if(null!==s)return s}}catch(l){a.e(l)}finally{a.f()}return A_(t,n,i)?[]:null}},{key:"processSegmentAgainstRoute",value:function(e,t,n,i){if(e.redirectTo||!E_(e,t,n,i))return null;var r,a=[],o=[];if("**"===e.path){var s=n.length>0?ob(n).parameters:{};r=new Ub(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Q_(e),C_(e),e.component,e,G_(t),X_(t)+n.length,K_(e))}else{var l=M_(t,e,n);if(!l.matched)return null;a=l.consumedSegments,o=n.slice(l.lastChild),r=new Ub(a,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Q_(e),C_(e),e.component,e,G_(t),X_(t)+a.length,K_(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),u=D_(t,a,o,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),d=u.segmentGroup,h=u.slicedSegments;if(0===h.length&&d.hasChildren()){var f=this.processChildren(c,d);return null===f?null:[new Rb(r,f)]}if(0===c.length&&0===h.length)return[new Rb(r,[])];var p=C_(e)===i,m=this.processSegment(c,d,h,p?"primary":i);return null===m?null:[new Rb(r,m)]}}]),e}();function q_(e){var t,n=[],i=new Set,r=_createForOfIteratorHelper(e);try{var a=function(){var e,r=t.value;if(!function(e){var t=e.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}(r))return n.push(r),"continue";var a=n.find(function(e){return r.value.routeConfig===e.value.routeConfig});void 0!==a?((e=a.children).push.apply(e,_toConsumableArray(r.children)),i.add(a)):n.push(r)};for(r.s();!(t=r.n()).done;)a()}catch(u){r.e(u)}finally{r.f()}var o,s=_createForOfIteratorHelper(i);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=q_(l.children);n.push(new Rb(l.value,c))}}catch(u){s.e(u)}finally{s.f()}return n.filter(function(e){return!i.has(e)})}function G_(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function X_(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Q_(e){return e.data||{}}function K_(e){return e.resolve||{}}function Z_(e){return Object(Ko.a)(function(t){var n=e(t);return n?Object(dr.a)(n).pipe(Object(ye.a)(function(){return t})):Object(me.a)(t)})}var J_=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),ew=new c.y("ROUTES"),tw=function(){function e(t,n,i,r){_classCallCheck(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return _createClass(e,[{key:"load",value:function(e,t){var n=this;if(t._loader$)return t._loader$;this.onLoadStartListener&&this.onLoadStartListener(t);var i=this.loadModuleFactory(t.loadChildren).pipe(Object(ye.a)(function(i){n.onLoadEndListener&&n.onLoadEndListener(t);var r=i.create(e);return new h_(ab(r.injector.get(ew,void 0,c.x.Self|c.x.Optional)).map(k_),r)}),Object(Cy.a)(function(e){throw t._loader$=void 0,e}));return t._loader$=new by.a(i,function(){return new oe.a}).pipe(Object(Ly.a)()),t._loader$}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(dr.a)(this.loader.load(e)):lb(e()).pipe(Object(is.a)(function(e){return e instanceof c.F?Object(me.a)(e):Object(dr.a)(t.compiler.compileModuleAsync(e))}))}}]),e}(),nw=function e(){_classCallCheck(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new iw,this.attachRef=null},iw=function(){function e(){_classCallCheck(this,e),this.contexts=new Map}return _createClass(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new nw,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),rw=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function aw(e){throw e}function ow(e,t,n){return t.parse("/")}function sw(e,t){return Object(me.a)(null)}var lw,cw,uw,dw={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hw={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},fw=((uw=function(){function e(t,n,i,r,a,o,s,l){var u=this;_classCallCheck(this,e),this.rootComponentType=t,this.urlSerializer
1=n,this.rootContexts=i,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new oe.a,this.errorHandler=aw,this.malformedUriErrorHandler=ow,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:sw,afterPreactivation:sw},this.urlHandlingStrategy=new rw,this.routeReuseStrategy=new J_,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=a.get(c.H),this.console=a.get(c.lb);var d=a.get(c.J);this.isNgZoneEnabled=d instanceof c.J&&c.J.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new mb(new gb([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new tw(o,s,function(e){return u.triggerEvent(new $y(e))},function(e){return u.triggerEvent(new Wy(e))}),this.routerState=Yb(this.currentUrlTree,this.rootComponentType),this.transitions=new pe({id:0,targetPageId: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(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Object(ve.a)(function(e){return 0!==e.id}),Object(ye.a)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Object(Ko.a)(function(e){var i,r,a,o,s=!1,l=!1;return Object(me.a)(e).pipe(Object(ge.a)(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(Ko.a)(function(e){var i,r,a,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(me.a)(e).pipe(Object(Ko.a)(function(e){var i=t.transitions.getValue();return n.next(new jy(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),i!==t.transitions.getValue()?Oo.a:Promise.resolve(e)}),(i=t.ngModule.injector,r=t.configLoader,a=t.urlSerializer,o=t.config,Object(Ko.a)(function(e){return function(e,t,n,i,r){return new j_(e,t,n,i,r).apply()}(i,r,a,e.extractedUrl,o).pipe(Object(ye.a)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),Object(ge.a)(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,i,r,a){return Object(is.a)(function(i){return function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new W_(e,t,n,i,r,a).recognize();return null===o?$_(new U_):Object(me.a)(o)}catch(s){return $_(s)}}(e,n,i.urlAfterRedirects,(o=i.urlAfterRedirects,t.serializeUrl(o)),r,a).pipe(Object(ye.a)(function(e){return Object.assign(Object.assign({},i),{targetSnapshot:e})}));var o})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),Object(ge.a)(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,e),t.browserUrlTree=e.urlAfterRedirects);var i=new By(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(i)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var l=e.id,c=e.extractedUrl,u=e.source,d=e.restoredState,h=e.extras,f=new jy(l,t.serializeUrl(c),u,d);n.next(f);var p=Yb(c,t.rootComponentType).snapshot;return Object(me.a)(Object.assign(Object.assign({},e),{targetSnapshot:p,urlAfterRedirects:c,extras:Object.assign(Object.assign({},h),{skipLocationChange:!1,replaceUrl:!1})}
1))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),Oo.a}),Z_(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,l=o.replaceUrl;return t.hooks.beforePreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})}),Object(ge.a)(function(e){var n=new Yy(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(ye.a)(function(e){return Object.assign(Object.assign({},e),{guards:B_(e.targetSnapshot,e.currentSnapshot,t.rootContexts)})}),function(e,t){return Object(is.a)(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Object(me.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,i){return Object(dr.a)(e).pipe(Object(is.a)(function(e){return function(e,t,n,i,r){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!a||0===a.length)return Object(me.a)(!0);var o=a.map(function(a){var o,s=Y_(a,t,r);if(function(e){return e&&f_(e.canDeactivate)}(s))o=lb(s.canDeactivate(e,t,n,i));else{if(!f_(s))throw new Error("Invalid CanDeactivate guard");o=lb(s(e,t,n,i))}return o.pipe(Object(Py.a)())});return Object(me.a)(o).pipe(g_())}(e.component,e.route,n,t,i)}),Object(Py.a)(function(e){return!0!==e},!0))}(s,i,r,e).pipe(Object(is.a)(function(n){return n&&"boolean"==typeof n?function(e,t,n,i){return Object(dr.a)(t).pipe(Object(uc.a)(function(t){return ut(function(e,t){return null!==e&&t&&t(new qy(e)),Object(me.a)(!0)}(t.route.parent,i),function(e,t){return null!==e&&t&&t(new Xy(e)),Object(me.a)(!0)}(t.route,i),function(e,t,n){var i=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return Xl(function(){var r=t.guards.map(function(r){var a,o=Y_(r,t.node,n);if(function(e){return e&&f_(e.canActivateChild)}(o))a=lb(o.canActivateChild(i,e));else{if(!f_(o))throw new Error("Invalid CanActivateChild guard");a=lb(o(i,e))}return a.pipe(Object(Py.a)())});return Object(me.a)(r).pipe(g_())})});return Object(me.a)(r).pipe(g_())}(e,t.path,n),function(e,t,n){var i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return Object(me.a)(!0);var r=i.map(function(i){return Xl(function(){var r,a=Y_(i,t,n);if(function(e){return e&&f_(e.canActivate)}(a))r=lb(a.canActivate(t,e));else{if(!f_(a))throw new Error("Invalid CanActivate guard");r=lb(a(t,e))}return r.pipe(Object(Py.a)())})});return Object(me.a)(r).pipe(g_())}(e,t.route,n))}),Object(Py.a)(function(e){return!0!==e},!0))}(i,o,e,t):Object(me.a)(n)}),Object(ye.a)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),Object(ge.a)(function(e){if(p_(e.guardsResult)){var n=tb('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var i=new zy(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(i)}),Object(ve.a)(function(e){return!!e.guardsResult||(t.cancelNavigationTransition(e,""),!1)}),Z_(function(e){if(e.guards.canActivateChecks.length)return Object(me.a)(e).pipe(Object(ge.a)(function(e){var n=new Vy(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(Ko.a)(function(e){var n,i,r=!1;return Object(me.a)(e).pipe((n=t.paramsInheritanceStrategy,i=t.ngModule.injector,Object(is.a)(function(e){var t=e.targetSnapshot,r=e.guards.canActivateChecks;if(!r.length)return Object(me.a)(e);var a=0;return Object(dr.a)(r).pipe(Object(uc.a)(function(e){return function(e,t,n,i){return function(e,t,n,i){var r=Object.keys(e);if(0===r.length)return Object(me.a)({});var a={};return Object(dr.a)(r).pipe(Object(is.a)(function(r){return function(e,t,n,i){var r=Y_(e,t,i);return lb(r.resolve?r.resolve(t,n):r(t,n))}(e[r],t,n,i).pipe(Object(ge.a)(function(e){a[r]=e}))}),Sy(1),Object(is.a)(function(){return Object.keys(a).length===r.length?Object(me.a)(a):Oo.a}))}(e._resolve,e,t,i).pipe(Object(ye.a)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),Vb(e,n).resolve),null}))}(e.route,t,n,i)}),Object(ge.a)(function(){return a++}),Sy(1),Object(is.a)(function(t){return a===r.length?Object(me.a)(e):Oo.a}))}
1)),Object(ge.a)({next:function(){return r=!0},complete:function(){r||t.cancelNavigationTransition(e,"At least one route resolver didn't emit any value.")}}))}),Object(ge.a)(function(e){var n=new Uy(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Z_(function(e){var n=e.targetSnapshot,i=e.id,r=e.extractedUrl,a=e.rawUrl,o=e.extras,s=o.skipLocationChange,l=o.replaceUrl;return t.hooks.afterPreactivation(n,{navigationId:i,appliedUrlTree:r,rawUrlTree:a,skipLocationChange:!!s,replaceUrl:!!l})}),Object(ye.a)(function(e){var n=function(e,t,n){var i=Qb(e,t._root,n?n._root:void 0);return new Bb(i,t)}(t.routeReuseStrategy,e.targetSnapshot,e.currentRouterState);return Object.assign(Object.assign({},e),{targetRouterState:n})}),Object(ge.a)(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,e),t.browserUrlTree=e.urlAfterRedirects)}),(r=t.rootContexts,a=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Object(ye.a)(function(e){return new u_(a,e.targetRouterState,e.currentRouterState,o).activate(r),e})),Object(ge.a)({next:function(){s=!0},complete:function(){s=!0}}),(i=function(){s||l||t.cancelNavigationTransition(e,"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId)),t.currentNavigation=null},function(e){return e.lift(new Oy(i))}),Object(Cy.a)(function(i){if(l=!0,(s=i)&&s.ngNavigationCancelingError){var r=p_(i.url);r||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var a=new Ry(e.id,t.serializeUrl(e.extractedUrl),i.message);n.next(a),r?setTimeout(function(){var n=t.urlHandlingStrategy.merge(i.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new Ny(e.id,t.serializeUrl(e.extractedUrl),i);n.next(o);try{e.resolve(t.errorHandler(i))}catch(c){e.reject(c)}}var s;return Oo.a}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,i=n.state,r=n.urlTree,a={replaceUrl:!0};if(i){var o=Object.assign({},i);delete o.navigationId,delete o.\u0275routerPageId,0!==Object.keys(o).length&&(a.state=o)}e.scheduleNavigation(r,t,i,a)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){b_(e),this.config=e.map(k_),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,i=t.queryParams,r=t.fragment,a=t.queryParamsHandling,o=t.preserveFragment,s=n||this.routerState.root,l=o?this.currentUrlTree.fragment:r,c=null;switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}return null!==c&&(c=this.removeEmptyProps(c)),function(e,t,n,i,r){if(0===n.length)return e_(t.root,t.root,t,i,r);var a=function(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new n_(!0,0,e);var t=0,n=!1,i=e.reduce(function(e,i,r){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return sb(i.outlets,function(e,t){a[t]="string"==typeof e?e.split("/"):e}),[].concat(_toConsumableArray(e),[{outlets:a}])}if(i.segmentPath)return[].concat(_toConsumableArray(e),[i.segmentPath])}return"string"!=typeof i?[].concat(_toConsumableArray(e),[i]):0===r?(i.split("/").forEach(function(i,r){0==r&&"."===i||(0==r&&""===i?n=!0:".."===i?t++:""!=i&&e.push(i))}),e):[].concat(_toConsumableArray(e),[i])},[]);
1return new n_(n,t,i)}(n);if(a.toRoot())return e_(t.root,new gb([],{}),t,i,r);var o=function(e,t,n){if(e.isAbsolute)return new i_(t.root,!0,0);if(-1===n.snapshot._lastPathIndex){var i=n.snapshot._urlSegment;return new i_(i,i===t.root,0)}var r=Zb(e.commands[0])?0:1;return function(e,t,n){for(var i=e,r=t,a=n;a>r;){if(a-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new i_(i,!1,r-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,e.numberOfDoubleDots)}(a,t,e),s=o.processChildren?a_(o.segmentGroup,o.index,a.commands):r_(o.segmentGroup,o.index,a.commands);return e_(o.segmentGroup,s,t,i,r)}(s,this.currentUrlTree,e,c,null!=l?l:null)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=p_(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree),r=null;return"computed"===this.canceledNavigationResolution&&(0===this.currentPageId||t.skipLocationChange||t.replaceUrl)&&(r=this.location.getState()),this.scheduleNavigation(i,"imperative",r,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return function(e){for(var t=0;t<e.length;t++){var n=e[t];if(null==n)throw new Error("The requested path contains ".concat(n," segment at index ").concat(t))}}(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){var n;
1if(n=!0===t?Object.assign({},dw):!1===t?Object.assign({},hw):t,p_(e))return db(this.currentUrlTree,e,n);var i=this.parseUrl(e);return db(this.currentUrlTree,i,n)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var i=e[n];return null!=i&&(t[n]=i),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.currentPageId=t.targetPageId,e.events.next(new Fy(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,i,r){if(this.disposed)return Promise.resolve(!1);var a,o,s,l=this.getTransition(),c="imperative"!==t&&"imperative"===(null==l?void 0:l.source),u=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===e.toString();if(c&&u)return Promise.resolve(!0);r?(a=r.resolve,o=r.reject,s=r.promise):s=new Promise(function(e,t){a=e,o=t});var d,h=++this.navigationId;return d="computed"===this.canceledNavigationResolution?n&&n.\u0275routerPageId?n.\u0275routerPageId:this.currentPageId+1:0,this.setTransition({id:h,targetPageId:d,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:i,resolve:a,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t){var n=this.urlSerializer.serialize(e),i=Object.assign(Object.assign({},t.extras.state),this.generateNgRouterState(t.id,t.targetPageId));this.location.isCurrentPathEqualTo(n)||t.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(e,t){"computed"===this.canceledNavigationResolution?"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-e.targetPageId):this.resetUrlToCurrentUrlTree();var n=new Ry(e.id,this.serializeUrl(e.extractedUrl),t);this.triggerEvent(n),e.resolve(!1)}},{key:"generateNgRouterState",value:function(e,t){return"computed"===this.canceledNavigationResolution?{navigationId:e,"\u0275routerPageId":t}:{navigationId:e}}}]),e}()).\u0275fac=function(e){return new(e||uw)(c.qc(c.Z),c.qc(bb),c.qc(iw),c.qc(l.i),c.qc(c.z),c.qc(c.G),c.qc(c.k),c.qc(void 0))},uw.\u0275prov=c.Zb({token:uw,factory:uw.\u0275fac}),uw),pw=((cw=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.router=t,this.route=n,this.commands=[],this.onChanges=new oe.a,null==i&&r.setAttribute(a.nativeElement,"tabindex","0")}return _createClass(e,[{key:"ngOnChanges",value:function(e){this.onChanges.next(this)}},{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"onClick",value:function(){var e={skipLocationChange:gw(this.skipLocationChange),replaceUrl:gw(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,e),!0}},{key:"urlTree",get:function(){return this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gw(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||cw)(c.dc(fw),c.dc(zb),c.rc("tabindex"),c.dc(c.Q),c.dc(c.q))},cw.\u0275dir=c.Yb({type:cw,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(e,t){1&e&&c.tc("click",function(){return t.onClick()})},inputs:{routerLink:"routerLink",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[c.Nb]}),cw),mw=((lw=function(){function e(t,n,i){var r=this;_classCallCheck(this,e),this.router=t,this.route=n,this.locationStrategy=i,this.commands=[],this.onChanges=new oe.a,this.subscription=t.events.subscribe(function(e){e instanceof Fy&&r.updateTargetUrlAndHref()})}return _createClass(e,[{key:"routerLink",set:function(e){this.commands=null!=e?Array.isArray(e)?e:[e]:[]}},{key:"ngOnChanges",value:function(e){this.updateTargetUrlAndHref(),this.onChanges.next(this)}},{key:"ngOnDestroy",value:function(){this.subscription.unsubscribe()}},{key:"onClick",value:function(e,t,n,i,r){if(0!==e||t||n||i||r)return!0;
1if("string"==typeof this.target&&"_self"!=this.target)return!0;var a={skipLocationChange:gw(this.skipLocationChange),replaceUrl:gw(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!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:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:gw(this.preserveFragment)})}}]),e}()).\u0275fac=function(e){return new(e||lw)(c.dc(fw),c.dc(zb),c.dc(l.j))},lw.\u0275dir=c.Yb({type:lw,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(e,t){1&e&&c.tc("click",function(e){return t.onClick(e.button,e.ctrlKey,e.shiftKey,e.altKey,e.metaKey)}),2&e&&(c.mc("href",t.href,c.Tc),c.Qb("target",t.target))},inputs:{routerLink:"routerLink",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo"},features:[c.Nb]}),lw);function gw(e){return""===e||!!e}var vw,yw,bw,_w,ww=((yw=function(){function e(t,n,i,r,a,o){var s=this;_classCallCheck(this,e),this.router=t,this.element=n,this.renderer=i,this.cdr=r,this.link=a,this.linkWithHref=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(function(e){e instanceof Fy&&s.update()})}return _createClass(e,[{key:"ngAfterContentInit",value:function(){var e=this;Object(me.a)(this.links.changes,this.linksWithHrefs.changes,Object(me.a)(null)).pipe(Object(ct.a)()).subscribe(function(t){e.update(),e.subscribeToEachLinkOnChanges()})}},{key:"subscribeToEachLinkOnChanges",value:function(){var e,t=this;null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe();var n=[].concat(_toConsumableArray(this.links.toArray()),_toConsumableArray(this.linksWithHrefs.toArray()),[this.link,this.linkWithHref]).filter(function(e){return!!e}).map(function(e){return e.onChanges});this.linkInputChangesSubscription=Object(dr.a)(n).pipe(Object(ct.a)()).subscribe(function(e){t.isActive!==t.isLinkActive(t.router)(e)&&t.update()})}},{key:"routerLinkActive",set:function(e){var t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(function(e){return!!e})}},{key:"ngOnChanges",value:function(e){this.update()}},{key:"ngOnDestroy",value:function(){var e;this.routerEventsSubscription.unsubscribe(),null===(e=this.linkInputChangesSubscription)||void 0===e||e.unsubscribe()}},{key:"update",value:function(){var e=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var t=e.hasActiveLinks();e.isActive!==t&&(e.isActive=t,e.cdr.markForCheck(),e.classes.forEach(function(n){t?e.renderer.addClass(e.element.nativeElement,n):e.renderer.removeClass(e.element.nativeElement,n)}))})}},{key:"isLinkActive",value:function(e){var t="paths"in this.routerLinkActiveOptions?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return function(n){return e.isActive(n.urlTree,t)}}},{key:"hasActiveLinks",value:function(){var e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.linkWithHref&&e(this.linkWithHref)||this.links.some(e)||this.linksWithHrefs.some(e)}}]),e}()).\u0275fac=function(e){return new(e||yw)(c.dc(fw),c.dc(c.q),c.dc(c.Q),c.dc(c.j),c.dc(pw,8),c.dc(mw,8))},yw.\u0275dir=c.Yb({type:yw,selectors:[["","routerLinkActive",""]],contentQueries:function(e,t,n){var i;1&e&&(c.Wb(n,pw,5),c.Wb(n,mw,5)),2&e&&(c.Mc(i=c.uc())&&(t.links=i),c.Mc(i=c.uc())&&(t.linksWithHrefs=i))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[c.Nb]}),yw),kw=((vw=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.parentContexts=t,this.location=n,this.resolver=i,this.changeDetector=a,this.activated=null,this._activatedRoute=null,this.activateEvents=new c.s,this.deactivateEvents=new c.s,this.name=r||"primary",t.onChildOutletCreated(this.name,this)}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.parentContexts.onChildOutletDestroyed(this.name)}},{key:"ngOnInit",value:function(){if(!this.activated){var e=this.parentContexts.getContext(this.name);e&&e.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.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 e=this.activated;return this.activated=null,this._activatedRoute=null,e}},{key:"attach",value:function(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView)}},{key:"deactivate",value:function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}},{key:"activateWith",value:function(e,t){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=e;var n=(t=t||this.resolver).resolveComponentFactory(e._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,r=new Cw(e,i,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,r),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}]),e}()).\u0275fac=function(e){return new(e||vw)(c.dc(iw),c.dc(c.cb),c.dc(c.m),c.rc("name"),c.dc(c.j))},vw.\u0275dir=c.Yb({type:vw,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),vw),Cw=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this.childContexts=n,this.parent=i}return _createClass(e,[{key:"get",value:function(e,t){return e===zb?this.route:e===iw?this.childContexts:this.parent.get(e,t)}}]),e}(),xw=function e(){_classCallCheck(this,e)},Sw=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return Object(me.a)(null)}}]),e}(),Mw=((_w=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.router=t,this.injector=r,this.preloadingStrategy=a,this.loader=new tw(n,i,function(e){return t.triggerEvent(new $y(e))},function(e){return t.triggerEvent(new Wy(e))})}return _createClass(e,[{key:"setUpPreloading",value:function(){var e=this;this.subscription=this.router.events.pipe(Object(ve.a)(function(e){return e instanceof Fy}),Object(uc.a)(function(){return e.preload()})).subscribe(function(){})}},{key:"preload",value:function(){var e=this.injector.get(c.H);return this.processRoutes(e,this.router.config)}},{key:"ngOnDestroy",value:function(){this.subscription&&this.subscription.unsubscribe()}},{key:"processRoutes",value:function(e,t){var n,i=[],r=_createForOfIteratorHelper(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var o=a._loadedConfig;i.push(this.processRoutes(o.module,o.routes))}else a.loadChildren&&!a.canLoad?i.push(this.preloadConfig(e,a)):a.children&&i.push(this.processRoutes(e,a.children))}}catch(s){r.e(s)}finally{r.f()}return Object(dr.a)(i).pipe(Object(ct.a)(),Object(ye.a)(function(e){}))}},{key:"preloadConfig",value:function(e,t){var n=this;return this.preloadingStrategy.preload(t,function(){return(t._loadedConfig?Object(me.a)(t._loadedConfig):n.loader.load(e.injector,t)).pipe(Object(is.a)(function(e){return t._loadedConfig=e,n.processRoutes(e.module,e.routes)}))})}}]),e}()).\u0275fac=function(e){return new(e||_w)(c.qc(fw),c.qc(c.G),c.qc(c.k),c.qc(c.z),c.qc(xw))},_w.\u0275prov=c.Zb({token:_w,factory:_w.\u0275fac}),_w),Dw=((bw=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_classCallCheck(this,e),this.router=t,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anch
1orScrolling||"disabled"}return _createClass(e,[{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 e=this;return this.router.events.subscribe(function(t){t instanceof jy?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Fy&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof Ky&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new Ky(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}()).\u0275fac=function(e){return new(e||bw)(c.qc(fw),c.qc(l.t),c.qc(void 0))},bw.\u0275prov=c.Zb({token:bw,factory:bw.\u0275fac}),bw),Tw=new c.y("ROUTER_CONFIGURATION"),Ew=new c.y("ROUTER_FORROOT_GUARD"),Aw=[l.i,{provide:bb,useClass:_b},{provide:fw,useFactory:function(e,t,n,i,r,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,u=new fw(null,e,t,n,i,r,a,ab(o));return l&&(u.urlHandlingStrategy=l),c&&(u.routeReuseStrategy=c),function(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}(s,u),s.enableTracing&&u.events.subscribe(function(e){var t,n;null===(t=console.group)||void 0===t||t.call(console,"Router Event: ".concat(e.constructor.name)),console.log(e.toString()),console.log(e),null===(n=console.groupEnd)||void 0===n||n.call(console)}),u},deps:[bb,iw,l.i,c.z,c.G,c.k,ew,Tw,[function(){return function e(){_classCallCheck(this,e)}}(),new c.K],[function(){return function e(){_classCallCheck(this,e)}}(),new c.K]]},iw,{provide:zb,useFactory:function(e){return e.routerState.root},deps:[fw]},{provide:c.G,useClass:c.W},Mw,Sw,function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"preload",value:function(e,t){return t().pipe(Object(Cy.a)(function(){return Object(me.a)(null)}))}}]),e}(),{provide:Tw,useValue:{enableTracing:!1}}];function Pw(){return new c.I("Router",fw)}var Lw,Ow=((Lw=function(){function e(t,n){_classCallCheck(this,e)}return _createClass(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[Aw,Fw(t),{provide:Ew,useFactory:jw,deps:[[fw,new c.K,new c.V]]},{provide:Tw,useValue:n||{}},{provide:l.j,useFactory:Hw,deps:[l.r,[new c.w(l.a),new c.K],Tw]},{provide:Dw,useFactory:Iw,deps:[fw,l.t,Tw]},{provide:xw,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Sw},{provide:c.I,multi:!0,useFactory:Pw},[Nw,{provide:c.d,multi:!0,useFactory:Bw,deps:[Nw]},{provide:Kw,useFactory:Yw,deps:[Nw]},{provide:c.b,multi:!0,useExisting:Kw}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[Fw(t)]}}}]),e}()).\u0275fac=function(e){return new(e||Lw)(c.qc(Ew,8),c.qc(fw,8))},Lw.\u0275mod=c.bc({type:Lw}),Lw.\u0275inj=c.ac({}),Lw);function Iw(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new Dw(e,t,n)}function Hw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new l.g(e,t):new l.p(e,t)}function jw(e){return"guarded"}function Fw(e){return[{provide:c.a,multi:!0,useValue:e},{provide:ew,multi:!0,useValue:e}]}var Rw,Nw=((Rw=function(){function e(t){_classCallCheck(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new oe.a}return _createClass(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(l.h,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),i=e.injector.get(fw),r=e.injector.get(Tw);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),t(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return e.initNavigation?Object(me.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},i.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(Tw),n=this.injector.get(Mw),i=this.injector.get(Dw),r=this.injector.get(fw),a=this.injector.get(c.g);e===a.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}()).\u0275fac=function(e){return new(e||Rw)(c.qc(c.z))},Rw.\u0275prov=c.Zb({token:Rw,factory:Rw.\u0275fac}),Rw);function Bw(e){return e.appInitializer.bind(e)}function Yw(e){return e.bootstrapListener.bind(e)}var zw,Vw,Uw,$w,Ww,qw,Gw,Xw,Qw,Kw=new c.y("Router Initializer"),Zw=mt("fadeInOut",[wt(":enter",[yt({opacity:0}
1),gt("0.4s ease-in",yt({opacity:1}))]),wt(":leave",[gt("0.4s 10ms ease-out",yt({opacity:0}))])]),Jw=(($w=function e(){_classCallCheck(this,e)}).CURRENT_USER="current_user",$w.USER_PERMISSIONS="user_permissions",$w.ACCESS_TOKEN="access_token",$w.REFRESH_TOKEN="refresh_token",$w.TOKEN_EXPIRES_IN="expires_in",$w.REMEMBER_ME="remember_me",$w.LANGUAGE="language",$w.HOME_URL="home_url",$w.THEME_ID="themeId",$w.SHOW_DASHBOARD_STATISTICS="show_dashboard_statistics",$w.SHOW_DASHBOARD_NOTIFICATIONS="show_dashboard_notifications",$w.SHOW_DASHBOARD_TODO="show_dashboard_todo",$w.SHOW_DASHBOARD_BANNER="show_dashboard_banner",$w.CHART_SAMPLING_INTERVAL="chart_sampling_interval",$w.CHART_ENABLE_ADAPTIVE_SAMPLING="chart_enable_adaptive_sampling",$w.\u0275fac=function(e){return new(e||$w)},$w.\u0275prov=c.Zb({token:$w,factory:$w.\u0275fac}),$w),ek=((Uw=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"getQueryParameter",value:function(e){var t=window.location.href;e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},{key:"getHttpResponseMessages",value:function(e){var t=[];if(e instanceof $l.h){if(this.checkNoNetwork(e))t.push("".concat(this.noNetworkMessageCaption).concat(this.captionAndMessageSeparator," ").concat(this.noNetworkMessageDetail));else{var n=this.getResponseBody(e);if(n&&("object"==typeof n||n instanceof Object))for(var i in n)i?t.push("".concat(i).concat(this.captionAndMessageSeparator," ").concat(n[i])):n[i]&&t.push(n[i].toString())}t.length||(e.body&&t.push("body: ".concat(e.body)),e.error&&t.push("error: ".concat(e.error)))}if(t.length||(this.getResponseBody(e)?t.push(this.getResponseBody(e).toString()):t.push(e.toString())),this.checkAccessDenied(e)&&t.splice(0,0,"".concat(this.accessDeniedMessageCaption).concat(this.captionAndMessageSeparator," ").concat(this.accessDeniedMessageDetail)),this.checkNotFound(e)){var r="".concat(this.notFoundMessageCaption).concat(this.captionAndMessageSeparator," ").concat(this.notFoundMessageDetail);e.url&&(r+=". ".concat(e.url)),t.splice(0,0,r)}return t}},{key:"getHttpResponseMessage",value:function(t){return e.findHttpResponseMessage(e.noNetworkMessageCaption,t)||e.findHttpResponseMessage(e.notFoundMessageCaption,t)||e.findHttpResponseMessage("error_description",t)||e.findHttpResponseMessage("error",t)||e.getHttpResponseMessages(t).join()}},{key:"findHttpResponseMessage",value:function(t,n){var i,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t.toLowerCase(),s=this.getHttpResponseMessages(n),l=_createForOfIteratorHelper(s);try{for(l.s();!(i=l.n()).done;){var c=i.value,u=e.splitInTwo(c,this.captionAndMessageSeparator);if(u.firstPart&&-1!==u.firstPart.toLowerCase().indexOf(o))return a?c:u.secondPart||u.firstPart}}catch(m){l.e(m)}finally{l.f()}if(!r){var d,h=_createForOfIteratorHelper(s);try{for(h.s();!(d=h.n()).done;){var f=d.value;if(-1!==f.toLowerCase().indexOf(o)){if(a)return f;var p=e.splitInTwo(f,this.captionAndMessageSeparator);return p.secondPart||p.firstPart}}}catch(m){h.e(m)}finally{h.f()}}return null}},{key:"getResponseBody",value:function(e){return e instanceof $l.g?e.body:e instanceof $l.d?e.error||e.message||e.statusText:void 0}},{key:"checkNoNetwork",value:function(e){return e instanceof $l.h&&0===e.status}},{key:"checkAccessDenied",value:function(e){return e instanceof $l.h&&403===e.status}},{key:"checkNotFound",value:function(e){return e instanceof $l.h&&404===e.status}},{key:"checkIsLocalHost",value:function(e,t){if(e){var n=new URL(e,t);return"localhost"===n.hostname||"127.0.0.1"===n.hostname}return!1}},{key:"getQueryParamsFromString",value:function(t){if(!t)return null;var n,i={},r=_createForOfIteratorHelper(t.split("&"));try{for(r.s();!(n=r.n()).done;){var a=n.value,o=e.splitInTwo(a,"=");i[o.firstPart]=o.secondPart}}catch(s){r.e(s)}finally{r.f()}return i}},{key:"splitInTwo",value:function(e,t){var n=e.indexOf(t);return-1===n?{firstPart:e,secondPart:null}:{firstPart:e.substr(0,n).trim(),secondPart:e.substr(n+1).trim()}}},{key:"safeStringify",value:function(e){try{return JSON.stringify(e)}catch(i){}var t={};for(var n in e)e.hasOwnProperty(n)&&"object"!=typeof e[n]&&"function"!=typeof e[n]&&(t[n]=e[n]);return"[***Sanitized Object***]: "+JSON.stringify(t)}},{key:"JsonTryParse",value:function(e){try{return JSON.parse(e)}catch(t){if("undefined"===e)return;return e}}},{key:"GetObjectWithLoweredPropertyNames",value:function(e){return Object.keys(e).reduce(function(t,n){return t[n.toLowerCase()]=e[n],t},{})}},{key:"TestIsObjectEmpty",value:function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},{key:"TestIsUndefined",value:function(e){return void 0===e}},{key:"TestIsString",value:function(e){return"string"==typeof e||e instanceof String}},{key:"capitalizeFirstLetter",value:function(e){return e?e.charAt(0).toUpperCase()+e.slice(1):e}},{key:"toTitleCase",value:function(e){return e.replace(/\w\S*/g,function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()})}},{key:"toLowerCase",value:function(e){if(e instanceof Array){for(var t=[],n=0;n<e.length;n++)t[n]=e[n].toLowerCase();return t}if("string"==typeof e||e instanceof String)return e.toLowerCase()}},{key:"uniqueId",value:function(){return this.randomNumber(1e6,9e6).toString()}},{key:"randomNumber",value:function(e,t){return Math.floor(Math.random()*(t-e+1)+e)}},{key:"baseUrl",value:function(){return"https://forexvisible.com".replace(/\/$/,"")}},{key:"printDateOnly",value:function(e){e=new Date(e);var t,n=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"),i=new Array("January","February","March","April","May","June","July","August","September","October","November","December"),r=e.getDay(),a=e.getDate(),o=e.getMonth(),s=e.getFullYear();return t=1===a||21===a||31===a?"st":2===a||22===a?"nd":3===a||23===a?"rd":"th",n[r]+", "+a+t+" "+i[o]+" "+s}},{key:"printTimeOnly",value:function(e){var t,n=(e=new Date(e)).getMinutes().toString(),i=e.getHours();return t=i<12?"AM":"PM",0===i&&(i=12),i>12&&(i-=12),1===n.length&&(n="0"+n),i+":"+n+" "+t}},{key:"printDate",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"at";return"".concat(e.printDateOnly(t)," ").concat(n," ").concat(e.printTimeOnly(t))}},{key:"printFriendlyDate",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",i=new Date;i.setHours(0,0,0,0);var r=new Date(i);r.setDate(r.getDate()-1);var a=new Date(t.getFullYear(),t.getMonth(),t.getDate());return a.toDateString()===i.toDateString()?"Today ".concat(n," ").concat(e.printTimeOnly(t)):a.toDateString()===r.toDateString()?"Yesterday ".concat(n," ").concat(e.printTimeOnly(t)):e.printDate(t,n)}},{key:"printShortDate",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"-",r=t.getDate().toString(),a=(t.getMonth()+1).toString(),o=t.getFullYear();return 1===r.length&&(r="0"+r),1===a.length&&(a="0"+a),"".concat(a).concat(n).concat(r).concat(n).concat(o," ").concat(i," ").concat(e.printTimeOnly(t))}},{key:"parseDate",value:function(e){if(e){if(e instanceof Date)return e;if("string"==typeof e||e instanceof String)return-1===e.search(/[a-su-z+]/i)&&(e+="Z"),new Date(e);if("number"==typeof e||e instanceof Number)return new Date(e)}}},{key:"printDuration",value:function(e,t){e=new Date(e),t=new Date(t);var n=Math.abs(e.valueOf()-t.valueOf())/1e3,i=Math.floor(n/86400);n-=86400*i;var r=Math.floor(n/3600)%24;n-=3600*r;var a=Math.floor(n/60)%60,o=(n-=60*a)%60,s="";return i&&(s="".concat(i," days")),r&&(s+=s?", ".concat(r," hours"):"".concat(r," hours")),a&&(s+=s?", ".concat(a," minutes"):"".concat(a," minutes")),o&&(s+=s?" and ".concat(o," seconds"):"".concat(o," seconds")),s||(s="0"),s}},{key:"getAge",value:function(e,t){e=new Date(e);var n=(t=new Date(t)).getFullYear()-e.getFullYear();return(t.getMonth()<e.getMonth()||t.getMonth()===e.getMonth()&&t.getDate()<e.getDate())&&n--,n}},{key:"searchArray",value:function(e,t){if(!e)return!0;for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var a=e.trim(),o=i.join();return t||(a=a.toLowerCase(),o=o.toLowerCase()),-1!==o.indexOf(a)}},{key:"moveArrayItem",value:function(e,t,n){if(!(t<0)){if(n<0&&(n+=e.length),n>=e.length)for(var i=n-e.length;1+i--;)e.push(void 0);e.splice(n,0,e.splice(t,1)[0])}}},{key:"expandCamelCase",value:function(e){return e?e.replace(/([A-Z][a-z]+)/g," $1").replace(/([A-Z][A-Z]+)/g," $1").replace(/([^A-Za-z ]+)/g," $1"):e}},{key:"testIsAbsoluteUrl",value:function(e){return new RegExp("^(?:[a-z]+:)?//","i").test(e)}},{key:"convertToAbsoluteUrl",value:function(t){return e.testIsAbsoluteUrl(t)?t:"//"+t}},{key:"debounce",value:function(e,t,n){var i;return function(){var r=this,a=arguments,o=n&&!i;clearTimeout(i),i=setTimeout(function(){i=null,n||e.apply(r,a)},t),o&&e.apply(r,a)}}}]),e}()).captionAndMessageSeparator=":",Uw.noNetworkMessageCaption="No Network",Uw.noNetworkMessageDetail="The server cannot be reached",Uw.accessDeniedMessageCaption="Access Denied!",Uw.accessDeniedMessageDetail="",Uw.notFoundMessageCaption="Not Found",Uw.notFoundMessageDetail="The target resource cannot be found",Uw.cookies={getItem:function(e){return decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setItem:function(e,t,n,i,r,a){if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var o="";if(n)switch(n.constructor){case Number:o=n===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:o="; expires="+n;break;case Date:o="; expires="+n.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+o+(r?"; domain="+r:"")+(i?"; path="+i:"")+(a?"; secure":""),!0},removeItem:function(e,t,n){return!!e&&(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:"")+(t?"; path="+t:""),!0)},hasItem:function(e){return new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=0;t<e.length;t++)e[t]=decodeURIComponent(e[t]);return e}},Uw.\u0275fac=function(e){return new(e||Uw)},Uw.\u0275prov=c.Zb({token:Uw,factory:Uw.\u0275fac}),Uw),tk=((Vw=function(){function e(){var t=this;
1_classCallCheck(this,e),this.syncKeys=[],this.initEvent=new oe.a,this.reservedKeys=["sync_keys","addToSyncKeys","removeFromSyncKeys","getSessionStorage","setSessionStorage","addToSessionStorage","removeFromSessionStorage","clearAllSessionsStorage"],this.sessionStorageTransferHandler=function(e){if(e.newValue)if("getSessionStorage"===e.key)sessionStorage.length&&(t.localStorageSetItem("setSessionStorage",sessionStorage),localStorage.removeItem("setSessionStorage"));else if("setSessionStorage"===e.key){t.syncKeys.length||t.loadSyncKeys();var n=JSON.parse(e.newValue);for(var i in n)t.syncKeysContains(i)&&t.sessionStorageSetItem(i,JSON.parse(n[i]));t.onInit()}else if("addToSessionStorage"===e.key){var r=JSON.parse(e.newValue);t.addToSessionStorageHelper(r.data,r.key)}else"removeFromSessionStorage"===e.key?t.removeFromSessionStorageHelper(e.newValue):"clearAllSessionsStorage"===e.key&&sessionStorage.length?t.clearInstanceSessionStorage():"addToSyncKeys"===e.key?t.addToSyncKeysHelper(e.newValue):"removeFromSyncKeys"===e.key&&t.removeFromSyncKeysHelper(e.newValue)}}return _createClass(e,[{key:"initialiseStorageSyncListener",value:function(){!0!==e.syncListenerInitialised&&(e.syncListenerInitialised=!0,window.addEventListener("storage",this.sessionStorageTransferHandler,!1),this.syncSessionStorage())}},{key:"deinitialiseStorageSyncListener",value:function(){window.removeEventListener("storage",this.sessionStorageTransferHandler,!1),e.syncListenerInitialised=!1}},{key:"clearAllStorage",value:function(){this.clearAllSessionsStorage(),this.clearLocalStorage()}},{key:"clearAllSessionsStorage",value:function(){this.clearInstanceSessionStorage(),localStorage.removeItem(e.DBKEY_SYNC_KEYS),localStorage.setItem("clearAllSessionsStorage","_dummy"),localStorage.removeItem("clearAllSessionsStorage")}},{key:"clearInstanceSessionStorage",value:function(){sessionStorage.clear(),this.syncKeys=[]}},{key:"clearLocalStorage",value:function(){localStorage.clear()}},{key:"saveSessionData",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.DBKEY_USER_DATA;this.testForInvalidKeys(n),this.removeFromSyncKeys(n),localStorage.removeItem(n),this.sessionStorageSetItem(n,t)}},{key:"saveSyncedSessionData",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.DBKEY_USER_DATA;this.testForInvalidKeys(n),localStorage.removeItem(n),this.addToSessionStorage(t,n)}},{key:"savePermanentData",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.DBKEY_USER_DATA;this.testForInvalidKeys(n),this.removeFromSessionStorage(n),this.localStorageSetItem(n,t)}},{key:"moveDataToSessionStorage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.DBKEY_USER_DATA;this.testForInvalidKeys(t);var n=this.getData(t);null!=n&&this.saveSessionData(n,t)}},{key:"moveDataToSyncedSessionStorage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.DBKEY_USER_DATA;this.testForInvalidKeys(t);var n=this.getData(t);null!=n&&this.saveSyncedSessionData(n,t)}},{key:"moveDataToPermanentStorage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.DBKEY_USER_DATA;this.testForInvalidKeys(t);var n=this.getData(t);null!=n&&this.savePermanentData(n,t)}},{key:"exists",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.DBKEY_USER_DATA,n=sessionStorage.getItem(t);return null==n&&(n=localStorage.getItem(t)),null!=n}},{key:"getData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.DBKEY_USER_DATA;this.testForInvalidKeys(t);var n=this.sessionStorageGetItem(t);return null==n&&(n=this.localStorageGetItem(t)),n}},{key:"getDataObject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.DBKEY_USER_DATA,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.getData(t);return null!=i?(n&&(i=new Date(i)),i):null}},{key:"deleteData",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.DBKEY_USER_DATA;this.testForInvalidKeys(t),this.removeFromSessionStorage(t),localStorage.removeItem(t)}},{key:"getInitEvent",value:function(){return this.initEvent.asObservable()}},{key:"syncSessionStorage",value:function(){localStorage.setItem("getSessionStorage","_dummy"),localStorage.removeItem("getSessionStorage")}},{key:"addToSessionStorage",value:function(e,t){this.addToSessionStorageHelper(e,t),this.addToSyncKeysBackup(t),this.localStorageSetItem("addToSessionStorage",{key:t,data:e}),localStorage.removeItem("addToSessionStorage")}},{key:"addToSessionStorageHelper",value:function(e,t){this.addToSyncKeysHelper(t),this.sessionStorageSetItem(t,e)}},{key:"removeFromSessionStorage",value:function(e){this.removeFromSessionStorageHelper(e),this.removeFromSyncKeysBackup(e),localStorage.setItem("removeFromSessionStorage",e),localStorage.removeItem("removeFromSessionStorage")}},{key:"removeFromSessionStorageHelper",value:function(e){sessionStorage.removeItem(e),this.removeFromSyncKeysHelper(e)}},{key:"testForInvalidKeys",value:function(e){if(!e)throw new Error("key cannot be empty");if(this.reservedKeys.some(function(t){return t===e}))throw new Error('The storage key "'.concat(e,'" is reserved and cannot be used. Please use a different key'))}},{key:"syncKeysContains",value:function(e){return this.syncKeys.some(function(t){return t===e})}},{key:"loadSyncKeys",value:function(){this.syncKeys.length||(this.syncKeys=this.getSyncKeysFromStorage())}},{key:"getSyncKeysFromStorage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this.localStorageGetItem(e.DBKEY_SYNC_KEYS);return null==n?t:n}},{key:"addToSyncKeys",value:function(e){this.addToSyncKeysHelper(e),this.addToSyncKeysBackup(e),localStorage.setItem("addToSyncKeys",e),localStorage.removeItem("addToSyncKeys")}},{key:"addToSyncKeysBackup",value:function(t){var n=this.getSyncKeysFromStorage();n.some(function(e){return e===t})||(n.push(t),this.localStorageSetItem(e.DBKEY_SYNC_KEYS,n))}},{key:"removeFromSyncKeysBackup",value:function(t){var n=this.getSyncKeysFromStorage(),i=n.indexOf(t);i>-1&&(n.splice(i,1),this.localStorageSetItem(e.DBKEY_SYNC_KEYS,n))}},{key:"addToSyncKeysHelper",value:function(e){this.syncKeysContains(e)||this.syncKeys.push(e)}},{key:"removeFromSyncKeys",value:function(e){this.removeFromSyncKeysHelper(e),this.removeFromSyncKeysBackup(e),localStorage.setItem("removeFromSyncKeys",e),localStorage.removeItem("removeFromSyncKeys")}},{key:"removeFromSyncKeysHelper",value:function(e){var t=this.syncKeys.indexOf(e);t>-1&&this.syncKeys.splice(t,1)}},{key:"localStorageSetItem",value:function(e,t){localStorage.setItem(e,JSON.stringify(t))}},{key:"sessionStorageSetItem",value:function(e,t){sessionStorage.setItem(e,JSON.stringify(t))}},{key:"localStorageGetItem",value:function(e){return ek.JsonTryParse(localStorage.getItem(e))}},{key:"sessionStorageGetItem",value:function(e){return ek.JsonTryParse(sessionStorage.getItem(e))}},{key:"onInit",value:function(){var e=this;setTimeout(function(){e.initEvent.next(),e.initEvent.complete()})}}]),e}()).syncListenerInitialised=!1,Vw.DBKEY_USER_DATA="user_data",Vw.DBKEY_SYNC_KEYS="sync_keys",Vw.\u
10275fac=function(e){return new(e||Vw)},Vw.\u0275prov=c.Zb({token:Vw,factory:Vw.\u0275fac}),Vw),nk=((zw=function(){function e(t){_classCallCheck(this,e),this.translate=t,this.onLanguageChanged=new oe.a,this.languageChanged$=this.onLanguageChanged.asObservable(),this.addLanguages(["en","ru","fr","de","pt","ar","ko"]),this.setDefaultLanguage("en")}return _createClass(e,[{key:"addLanguages",value:function(e){this.translate.addLangs(e)}},{key:"setDefaultLanguage",value:function(e){this.translate.setDefaultLang(e)}},{key:"getDefaultLanguage",value:function(){return this.translate.defaultLang}},{key:"getBrowserLanguage",value:function(){return this.translate.getBrowserLang()}},{key:"getCurrentLanguage",value:function(){var e=localStorage.getItem("language"),t=this.translate.currentLang,n=this.translate.getBrowserLang();return e||t||n||this.getDefaultLanguage()}},{key:"getLoadedLanguages",value:function(){return this.translate.langs}},{key:"useBrowserLanguage",value:function(){var e=this.getBrowserLanguage();if(e.match(/en|ru|fr|de|pt|ar|ko/))return this.changeLanguage(e),e}},{key:"useDefaultLangage",value:function(){return this.changeLanguage(null)}},{key:"changeLanguage",value:function(e){var t=this;return e||(e=this.getDefaultLanguage()),localStorage.setItem("language",e),e!==this.translate.currentLang&&setTimeout(function(){t.translate.use(e),t.onLanguageChanged.next(e)}),e}},{key:"getTranslation",value:function(e,t){return this.translate.instant(e,t)}},{key:"getTranslationAsync",value:function(e,t){return this.translate.get(e,t)}}]),e}()).\u0275fac=function(e){return new(e||zw)(c.qc(Hc))},zw.\u0275prov=c.Zb({token:zw,factory:zw.\u0275fac}),zw),ik=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"getTranslation",value:function(e){switch(e){case"en":return Object(me.a)(n("ihId"));case"ru":return Object(me.a)(n("3hLs"));case"fr":return Object(me.a)(n("7aBd"));case"de":return Object(me.a)(n("hdsI"));case"pt":return Object(me.a)(n("1Ox4"));case"ar":return Object(me.a)(n("ntVh"));case"ko":return Object(me.a)(n("t5iq"))}}}]),e}(),rk=((qw=function(){function e(){_classCallCheck(this,e),this.themes=[{id:1,name:"Default",href:"bootstrap.css",isDefault:!0,background:"#007bff",color:"#fff"},{id:2,name:"Cosmo",href:"cosmo.css",background:"#2780E3",color:"#373a3c"},{id:3,name:"Lumen",href:"lumen.css",background:"#158CBA",color:"#f0f0f0"},{id:4,name:"Cerulean",href:"cerulean.css",background:"#2FA4E7",color:"#e9ecef"},{id:5,name:"Minty",href:"minty.css",background:"#78C2AD",color:"#F3969A"},{id:6,name:"Sketchy",href:"sketchy.css",background:"#333",color:"white"},{id:7,name:"Slate",href:"slate.css",background:"#3A3F44",color:"#7A8288",isDark:!0},{id:8,name:"Flatly",href:"flatly.css",background:"#2C3E50",color:"#18BC9C"},{id:9,name:"Pulse",href:"pulse.css",background:"#593196",color:"#A991D4"},{id:10,name:"Spacelab",href:"spacelab.css",background:"#446E9B",color:"#999"},{id:11,name:"United",href:"united.css",background:"#E95420",color:"#fff"},{id:12,name:"Journal",href:"journal.css",background:"#EB6864",color:"#aaa"},{id:13,name:"Superhero",href:"superhero.css",background:"#DF691A",color:"#2B3E50",isDark:!0},{id:14,name:"Solar",href:"solar.css",background:"#B58900",color:"#002B36",isDark:!0}]}return _createClass(e,[{key:"installTheme",value:function(e){null==e||e.isDefault?this.removeStyle("theme"):this.setStyle("theme","assets/themes/".concat(e.href))}},{key:"getDefaultTheme",value:function(){return this.themes.find(function(e){return e.isDefault})}},{key:"getThemeByID",value:function(e){return this.themes.find(function(t){return t.id===e})}},{key:"setStyle",value:function(e,t){this.getLinkElementForKey(e).setAttribute("href",t)}},{key:"removeStyle",value:function(e){var t=this.getExistingLinkElementByKey(e);t&&document.head.removeChild(t)}},{key:"getLinkElementForKey",value:function(e){return this.getExistingLinkElementByKey(e)||this.createLinkElementWithKey(e)}},{key:"getExistingLinkElementByKey",value:function(e){return document.head.querySelector('link[rel="stylesheet"].'.concat(this.getClassNameForKey(e)))}},{key:"createLinkElementWithKey",value:function(e){var t=document.createElement("link");return t.setAttribute("rel","stylesheet"),t.classList.add(this.getClassNameForKey(e)),document.head.appendChild(t),t}},{key:"getClassNameForKey",value:function(e){return"style-manager-".concat(e)}}]),e}()).\u0275fac=function(e){return new(e||qw)},qw.\u0275prov=c.Zb({token:qw,factory:qw.\u0275fac}),qw),ak=((Ww=function(){function e(t,n,i){_classCallCheck(this,e),this.localStorage=t,this.translationService=n,this.themeManager=i,this.baseUrl=ek.baseUrl(),this.tokenUrl=ek.baseUrl(),this.loginUrl="/",this.fallbackBaseUrl="https://quickapp.ebenmonney.com",this._language=null,this._homeUrl=null,this._themeId=null,this._showDashboardStatistics=null,this._showDashboardNotifications=null,this._showDashboardTodo=null,this._showDashboardBanner=null,this._chartSamplingInterval=null,this._chartEnableAdaptiveSampling=null,this.onConfigurationImported=new oe.a,this.configurationImported$=this.onConfigurationImported.asObservable(),this.loadLocalChanges()}return _createClass(e,[{key:"language",get:function(){return this._language||e.defaultLanguage},set:function(e){this._language=e,this.saveToLocalStore(e,Jw.LANGUAGE),this.translationService.changeLanguage(e)}},{key:"themeId",get:function(){return this._themeId||e.defaultThemeId},set:function(e){this._themeId=e=+e,this.saveToLocalStore(e,Jw.THEME_ID),this.themeManager.installTheme(this.themeManager.getThemeByID(e))}},{key:"homeUrl",get:function(){return this._homeUrl||e.defaultHomeUrl},set:function(e){this._homeUrl=e,this.saveToLocalStore(e,Jw.HOME_URL)}},{key:"showDashboardStatistics",get:function(){return null!=this._showDashboardStatistics?this._showDashboardStatistics:e.defaultShowDashboardStatistics},set:function(e){this._showDashboardStatistics=e,this.saveToLocalStore(e,Jw.SHOW_DASHBOARD_STATISTICS)}},{key:"showDashboardNotifications",get:function(){return null!=this._showDashboardNotifications?this._showDashboardNotifications:e.defaultShowDashboardNotifications}
1,set:function(e){this._showDashboardNotifications=e,this.saveToLocalStore(e,Jw.SHOW_DASHBOARD_NOTIFICATIONS)}},{key:"showDashboardTodo",get:function(){return null!=this._showDashboardTodo?this._showDashboardTodo:e.defaultShowDashboardTodo},set:function(e){this._showDashboardTodo=e,this.saveToLocalStore(e,Jw.SHOW_DASHBOARD_TODO)}},{key:"showDashboardBanner",get:function(){return null!=this._showDashboardBanner?this._showDashboardBanner:e.defaultShowDashboardBanner},set:function(e){this._showDashboardBanner=e,this.saveToLocalStore(e,Jw.SHOW_DASHBOARD_BANNER)}},{key:"chartSamplingInterval",get:function(){return null!=this._chartSamplingInterval?this._chartSamplingInterval:e.defaultChartSamplingInterval},set:function(e){this._chartSamplingInterval=e,this.saveToLocalStore(e,Jw.CHART_SAMPLING_INTERVAL)}},{key:"chartEnableAdaptiveSampling",get:function(){return null!=this._chartEnableAdaptiveSampling?this._chartEnableAdaptiveSampling:e.defaultChartEnableAdaptiveSampling},set:function(e){this._chartEnableAdaptiveSampling=e,this.saveToLocalStore(e,Jw.CHART_ENABLE_ADAPTIVE_SAMPLING)}},{key:"loadLocalChanges",value:function(){this.localStorage.exists(Jw.LANGUAGE)?(this._language=this.localStorage.getDataObject(Jw.LANGUAGE),this.translationService.changeLanguage(this._language)):this.resetLanguage(),this.localStorage.exists(Jw.THEME_ID)?(this._themeId=this.localStorage.getDataObject(Jw.THEME_ID),this.themeManager.installTheme(this.themeManager.getThemeByID(this._themeId))):this.resetTheme(),this.localStorage.exists(Jw.HOME_URL)&&(this._homeUrl=this.localStorage.getDataObject(Jw.HOME_URL)),this.localStorage.exists(Jw.SHOW_DASHBOARD_STATISTICS)&&(this._showDashboardStatistics=this.localStorage.getDataObject(Jw.SHOW_DASHBOARD_STATISTICS)),this.localStorage.exists(Jw.SHOW_DASHBOARD_NOTIFICATIONS)&&(this._showDashboardNotifications=this.localStorage.getDataObject(Jw.SHOW_DASHBOARD_NOTIFICATIONS)),this.localStorage.exists(Jw.SHOW_DASHBOARD_TODO)&&(this._showDashboardTodo=this.localStorage.getDataObject(Jw.SHOW_DASHBOARD_TODO)),this.localStorage.exists(Jw.SHOW_DASHBOARD_BANNER)&&(this._showDashboardBanner=this.localStorage.getDataObject(Jw.SHOW_DASHBOARD_BANNER)),this.localStorage.exists(Jw.CHART_SAMPLING_INTERVAL)&&(this._chartSamplingInterval=this.localStorage.getDataObject(Jw.CHART_SAMPLING_INTERVAL)),this.localStorage.exists(Jw.CHART_ENABLE_ADAPTIVE_SAMPLING)&&(this._chartEnableAdaptiveSampling=this.localStorage.getDataObject(Jw.CHART_ENABLE_ADAPTIVE_SAMPLING))}},{key:"saveToLocalStore",value:function(e,t){var n=this;setTimeout(function(){return n.localStorage.savePermanentData(e,t)})}},{key:"import",value:function(e){if(this.clearLocalChanges(),e){var t=ek.JsonTryParse(e);null!=t.language&&(this.language=t.language),null!=t.themeId&&(this.themeId=+t.themeId),null!=t.homeUrl&&(this.homeUrl=t.homeUrl),null!=t.showDashboardStatistics&&(this.showDashboardStatistics=t.showDashboardStatistics),null!=t.showDashboardNotifications&&(this.showDashboardNotifications=t.showDashboardNotifications),null!=t.showDashboardTodo&&(this.showDashboardTodo=t.showDashboardTodo),null!=t.showDashboardBanner&&(this.showDashboardBanner=t.showDashboardBanner),null!=t.chartSamplingInterval&&(this.chartSamplingInterval=t.chartSamplingInterval),null!=t.chartEnableAdaptiveSampling&&(this.chartEnableAdaptiveSampling=t.chartEnableAdaptiveSampling)}this.onConfigurationImported.next()}},{key:"export",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return JSON.stringify({language:e?this._language:this.language,themeId:e?this._themeId:this.themeId,homeUrl:e?this._homeUrl:this.homeUrl,showDashboardStatistics:e?this._showDashboardStatistics:this.showDashboardStatistics,showDashboardNotifications:e?this._showDashboardNotifications:this.showDashboardNotifications,showDashboardTodo:e?this._showDashboardTodo:this.showDashboardTodo,showDashboardBanner:e?this._showDashboardBanner:this.showDashboardBanner,chartSamplingInterval:e?this._chartSamplingInterval:this.chartSamplingInterval,chartEnableAdaptiveSampling:e?this._chartEnableAdaptiveSampling:this.chartEnableAdaptiveSampling})}},{key:"clearLocalChanges",value:function(){this._language=null,this._themeId=null,this._homeUrl=null,this._showDashboardStatistics=null,this._showDashboardNotifications=null,this._showDashboardTodo=null,this._showDashboardBanner=null,this._chartSamplingInterval=null,this._chartEnableAdaptiveSampling=null,this.localStorage.deleteData(Jw.LANGUAGE),this.localStorage.deleteData(Jw.THEME_ID),this.localStorage.deleteData(Jw.HOME_URL),this.localStorage.deleteData(Jw.SHOW_DASHBOARD_STATISTICS),this.localStorage.deleteData(Jw.SHOW_DASHBOARD_NOTIFICATIONS),this.localStorage.deleteData(Jw.SHOW_DASHBOARD_TODO),this.localStorage.deleteData(Jw.SHOW_DASHBOARD_BANNER),this.localStorage.deleteData(Jw.CHART_SAMPL
1ING_INTERVAL),this.localStorage.deleteData(Jw.CHART_ENABLE_ADAPTIVE_SAMPLING),this.resetLanguage(),this.resetTheme()}},{key:"resetLanguage",value:function(){var e=this.translationService.useBrowserLanguage();this._language=e||this.translationService.useDefaultLangage()}},{key:"resetTheme",value:function(){this.themeManager.installTheme(this.themeManager.getThemeByID(e.defaultThemeId))}}]),e}()).appVersion="5.0.0",Ww.defaultLanguage="en",Ww.defaultHomeUrl="/",Ww.defaultThemeId=10,Ww.defaultShowDashboardStatistics=!0,Ww.defaultShowDashboardNotifications=!1,Ww.defaultShowDashboardTodo=!1,Ww.defaultShowDashboardBanner=!1,Ww.defaultChartSamplingInterval=1,Ww.defaultChartEnableAdaptiveSampling=!0,Ww.\u0275fac=function(e){return new(e||Ww)(c.qc(tk),c.qc(nk),c.qc(rk))},Ww.\u0275prov=c.Zb({token:Ww,factory:Ww.\u0275fac}),Ww),ok={allowDownsampling:!0},sk=function(){function e(e,t){var n=this;this._resolutionMediaQueryList=null,this._resolutionListener=function(e){return n._onResolutionChanged()},this._canvasConfiguredListeners=[],this.canvas=e,this._canvasSize={width:this.canvas.clientWidth,height:this.canvas.clientHeight},this._options=t,this._configureCanvas(),this._installResolutionListener()}return e.prototype.destroy=function(){this._canvasConfiguredListeners.length=0,this._uninstallResolutionListener(),this.canvas=null},Object.defineProperty(e.prototype,"canvasSize",{get:function(){return{width:this._canvasSize.width,height:this._canvasSize.height}},enumerable:!0,configurable:!0}),e.prototype.resizeCanvas=function(e){this._canvasSize={width:e.width,height:e.height},this._configureCanvas()},Object.defineProperty(e.prototype,"pixelRatio",{get:function(){var e=this.canvas.ownerDocument.defaultView;if(null==e)throw new Error("No window is associated with the canvas");return e.devicePixelRatio>1||this._options.allowDownsampling?e.devicePixelRatio:1},enumerable:!0,configurable:!0}),e.prototype.subscribeCanvasConfigured=function(e){this._canvasConfiguredListeners.push(e)},e.prototype.unsubscribeCanvasConfigured=function(e){this._canvasConfiguredListeners=this._canvasConfiguredListeners.filter(function(t){return t!=e})},e.prototype._configureCanvas=function(){var e=this.pixelRatio;this.canvas.style.width=this._canvasSize.width+"px",this.canvas.style.height=this._canvasSize.height+"px",this.canvas.width=this._canvasSize.width*e,this.canvas.height=this._canvasSize.height*e,this._emitCanvasConfigured()},e.prototype._emitCanvasConfigured=function(){var e=this;this._canvasConfiguredListeners.forEach(function(t){return t.call(e)})},e.prototype._installResolutionListener=function(){if(null!==this._resolutionMediaQueryList)throw new Error("Resolution listener is already installed");var e=this.canvas.ownerDocument.defaultView;if(null==e)throw new Error("No window is associated with the canvas");this._resolutionMediaQueryList=e.matchMedia("all and (resolution: "+e.devicePixelRatio+"dppx)"),this._resolutionMediaQueryList.addListener(this._resolutionListener)},e.prototype._uninstallResolutionListener=function(){null!==this._resolutionMediaQueryList&&(this._resolutionMediaQueryList.removeListener(this._resolutionListener),this._resolutionMediaQueryList=null)},e.prototype._reinstallResolutionListener=function(){this._uninstallResolutionListener(),this._installResolutionListener()},e.prototype._onResolutionChanged=function(){this._configureCanvas(),this._reinstallResolutionListener()},e}();function lk(e,t){var n,i=((n={})[0]=[],n[1]=[e.lineWidth,e.lineWidth],n[2]=[2*e.lineWidth,2*e.lineWidth],n[3]=[6*e.lineWidth,6*e.lineWidth],n[4]=[e.lineWidth,4*e.lineWidth],n)[t];e.setLineDash(i)}function ck(e,t,n,i){e.beginPath();var r=e.lineWidth%2?.5:0;e.moveTo(n,t+r),e.lineTo(i,t+r),e.stroke()}(Qw=Gw||(Gw={}))[Qw.Simple=0]="Simple",Qw[Qw.WithSteps=1]="WithSteps",function(e){e[e.Solid=0]="Solid",e[e.Dotted=1]="Dotted",e[e.Dashed=2]="Dashed",e[e.LargeDashed=3]="LargeDashed",e[e.SparseDotted=4]="SparseDotted"}(Xw||(Xw={}));var uk=function(e,t){return(uk=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function dk(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}uk(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}
1var hk=function(){return(hk=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function fk(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r<a;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function pk(e,t){if(!e)throw new Error("Assertion failed"+(t?": "+t:""))}function mk(e){if(void 0===e)throw new Error("Value is undefined");return e}function gk(e){if(null===e)throw new Error("Value is null");return e}function vk(e){return gk(mk(e))}function yk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0,r=t;i<r.length;i++){var a=r[i];for(var o in a)void 0!==a[o]&&("object"!=typeof a[o]||void 0===e[o]?e[o]=a[o]:yk(e[o],a[o]))}return e}function bk(e){return"number"==typeof e&&isFinite(e)}function _k(e){return"number"==typeof e&&e%1==0}function wk(e){return"string"==typeof e}function kk(e){return"boolean"==typeof e}function Ck(e){var t,n,i,r=e;if(!r||"object"!=typeof r)return r;for(n in t=Array.isArray(r)?[]:{},r)r.hasOwnProperty(n)&&(t[n]=(i=r[n])&&"object"==typeof i?Ck(i):i);return t}function xk(e){return null!==e}function Sk(e){return null===e?void 0:e}var Mk=function(){function e(){this.t=[]}return e.prototype.i=function(e){this.t=e},e.prototype.h=function(e,t,n,i){this.t.forEach(function(r){e.save(),r.h(e,t,n,i),e.restore()})},e}(),Dk=function(){function e(){}return e.prototype.h=function(e,t,n,i){e.save(),e.scale(t,t),this.u(e,n,i),e.restore()},e.prototype.o=function(e,t,n,i){e.save(),e.scale(t,t),this.l(e,n,i),e.restore()},e.prototype.l=function(e,t,n){},e}(),Tk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.v=null,t}return dk(t,e),t.prototype._=function(e){this.v=e},t.prototype.u=function(e){if(null!==this.v&&null!==this.v.M){var t=this.v.M,n=this.v,i=function(i){e.beginPath();for(var r=t.to-1;r>=t.from;--r){var a=n.m[r];e.moveTo(a.p,a.g),e.arc(a.p,a.g,i,0,2*Math.PI)}e.fill()};e.fillStyle=n.k,i(n.C+2),e.fillStyle=n.N,i(n.C)}},t}(Dk);function Ek(){return{m:[{p:0,g:0,S:0,D:0}],N:"",k:"",C:0,M:null}}var Ak={from:0,to:1},Pk=function(){function e(e,t){this.A=new Mk,this.T=[],this.B=[],this.L=!0,this.F=e,this.V=t,this.A.i(this.T)}return e.prototype.O=function(e){var t=this.F.W();t.length!==this.T.length&&(this.B=t.map(Ek),this.T=this.B.map(function(e){var t=new Tk;return t._(e),t}),this.A.i(this.T)),this.L=!0},e.prototype.P=function(e,t,n){return this.L&&(this.R(e),this.L=!1),this.A},e.prototype.R=function(e){var t=this,n=this.F.W(),i=this.V.I(),r=this.F.j();n.forEach(function(n,a){var o,s=t.B[a],l=n.q(i);if(null!==l&&n.U()){var c=gk(n.H());s.N=l.Y,s.C=l.C,s.m[0].D=l.D,s.m[0].g=n.$().K(l.D,c.X),s.k=null!==(o=l.Z)&&void 0!==o?o:t.F.J(s.m[0].g/e),s.m[0].S=i,s.m[0].p=r.G(i),s.M=Ak}else s.M=null})},e}(),Lk=function(){function e(e){this.tt=e}return e.prototype.h=function(e,t,n,i){if(null!==this.tt){var r=this.tt.it.U,a=this.tt.nt.U;if(r||a){e.save();var o=Math.round(this.tt.p*t),s=Math.round(this.tt.g*t),l=Math.ceil(this.tt.st*t),c=Math.ceil(this.tt.ht*t);e.lineCap="butt",r&&o>=0&&(e.lineWidth=Math.floor(this.tt.it.rt*t),e.strokeStyle=this.tt.it.et,e.fillStyle=this.tt.it.et,lk(e,this.tt.it.ut),function(e,t,n,i){e.beginPath();var r=e.lineWidth%2?.5:0;e.moveTo(t+r,0),e.lineTo(t+r,i),e.stroke()}(e,o,0,c)),a&&s>=0&&(e.lineWidth=Math.floor(this.tt.nt.rt*t),e.strokeStyle=this.tt.nt.et,e.fillStyle=this.tt.nt.et,lk(e,this.tt.nt.ut),ck(e,s,0,l)),e.restore()}}},e}(),Ok=function(){function e(e){this.L=!0,this.at={it:{rt:1,ut:0,et:"",U:!1},nt:{rt:1,ut:0,et:"",U:!1},st:0,ht:0,p:0,g:0},this.ot=new Lk(this.at),this.lt=e}return e.prototype.O=function(){this.L=!0},e.prototype.P=function(e,t){return this.L&&(this.R(),this.L=!1),this.ot},e.prototype.R=function(){var e=this.lt.U(),t=gk(this.lt.ft()),n=t.vt().ct().crosshair,i=this.at;i.nt.U=e&&this.lt._t(t),i.it.U=e&&this.lt.dt(),i.nt.rt=n.horzLine.width,i.nt.ut=n.horzLine.style,i.nt.et=n.horzLine.color,i.it.rt=n.vertLine.width,i.it.ut=n.vertLine.style,i.it.et=n.vertLine.color,
1i.st=t.wt(),i.ht=t.Mt(),i.p=this.lt.bt(),i.g=this.lt.gt()},e}(),Ik={khaki:"#f0e68c",azure:"#f0ffff",aliceblue:"#f0f8ff",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",gray:"#808080",green:"#008000",honeydew:"#f0fff0",floralwhite:"#fffaf0",lightblue:"#add8e6",lightcoral:"#f08080",lemonchiffon:"#fffacd",hotpink:"#ff69b4",lightyellow:"#ffffe0",greenyellow:"#adff2f",lightgoldenrodyellow:"#fafad2",limegreen:"#32cd32",linen:"#faf0e6",lightcyan:"#e0ffff",magenta:"#f0f",maroon:"#800000",olive:"#808000",orange:"#ffa500",oldlace:"#fdf5e6",mediumblue:"#0000cd",transparent:"#0000",lime:"#0f0",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",midnightblue:"#191970",orchid:"#da70d6",mediumorchid:"#ba55d3",mediumturquoise:"#48d1cc",orangered:"#ff4500",royalblue:"#4169e1",powderblue:"#b0e0e6",red:"#f00",coral:"#ff7f50",turquoise:"#40e0d0",white:"#fff",whitesmoke:"#f5f5f5",wheat:"#f5deb3",teal:"#008080",steelblue:"#4682b4",bisque:"#ffe4c4",aquamarine:"#7fffd4",aqua:"#0ff",sienna:"#a0522d",silver:"#c0c0c0",springgreen:"#00ff7f",antiquewhite:"#faebd7",burlywood:"#deb887",brown:"#a52a2a",beige:"#f5f5dc",chocolate:"#d2691e",chartreuse:"#7fff00",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cadetblue:"#5f9ea0",tomato:"#ff6347",fuchsia:"#f0f",blue:"#00f",salmon:"#fa8072",blanchedalmond:"#ffebcd",slateblue:"#6a5acd",slategray:"#708090",thistle:"#d8bfd8",tan:"#d2b48c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",blueviolet:"#8a2be2",black:"#000",darkmagenta:"#8b008b",darkslateblue:"#483d8b",darkkhaki:"#bdb76b",darkorchid:"#9932cc",darkorange:"#ff8c00",darkgreen:"#006400",darkred:"#8b0000",dodgerblue:"#1e90ff",darkslategray:"#2f4f4f",dimgray:"#696969",deepskyblue:"#00bfff",firebrick:"#b22222",forestgreen:"#228b22",indigo:"#4b0082",ivory:"#fffff0",lavenderblush:"#fff0f5",feldspar:"#d19275",indianred:"#cd5c5c",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightskyblue:"#87cefa",lightslategray:"#789",lightslateblue:"#8470ff",snow:"#fffafa",lightseagreen:"#20b2aa",lightsalmon:"#ffa07a",darksalmon:"#e9967a",darkviolet:"#9400d3",mediumpurple:"#9370d8",mediumaquamarine:"#66cdaa",skyblue:"#87ceeb",lavender:"#e6e6fa",lightsteelblue:"#b0c4de",mediumvioletred:"#c71585",mintcream:"#f5fffa",navajowhite:"#ffdead",navy:"#000080",olivedrab:"#6b8e23",palevioletred:"#d87093",violetred:"#d02090",yellow:"#ff0",yellowgreen:"#9acd32",lawngreen:"#7cfc00",pink:"#ffc0cb",paleturquoise:"#afeeee",palegoldenrod:"#eee8aa",darkolivegreen:"#556b2f",darkseagreen:"#8fbc8f",darkturquoise:"#00ced1",peachpuff:"#ffdab9",deeppink:"#ff1493",violet:"#ee82ee",palegreen:"#98fb98",mediumseagreen:"#3cb371",peru:"#cd853f",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",purple:"#800080",seagreen:"#2e8b57",seashell:"#fff5ee",papayawhip:"#ffefd5",mediumslateblue:"#7b68ee",plum:"#dda0dd",mediumspringgreen:"#00fa9a"};function Hk(e){return e<0?0:e>255?255:Math.round(e)||0}function jk(e){return e<=0||e>0?e<0?0:e>1?1:Math.round(1e4*e)/1e4:0}var Fk=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,Rk=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,Nk=/^rgb\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*\)$/,Bk=/^rgba\(\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?\d{1,10})\s*,\s*(-?[\d]{0,10}(?:\.\d+)?)\s*\)$/;function Yk(e){var t;if((e=e.toLowerCase())in Ik&&(e=Ik[e]),t=Bk.exec(e)||Nk.exec(e))return[Hk(parseInt(t[1],10)),Hk(parseInt(t[2],10)),Hk(parseInt(t[3],10)),jk(t.length<5?1:parseFloat(t[4]))];if(t=Rk.exec(e))return[Hk(parseInt(t[1],16)),Hk(parseInt(t[2],16)),Hk(parseInt(t[3],16)),1];if(t=Fk.exec(e))return[Hk(17*parseInt(t[1],16)),Hk(17*parseInt(t[2],16)),Hk(17*parseInt(t[3],16)),1];throw new Error("Cannot parse color: "+e)}function zk(e){var t,n=Yk(e);return{yt:"rgb("+n[0]+", "+n[1]+", "+n[2]+")",kt:(t=n,.199*t[0]+.687*t[1]+.114*t[2]>160?"black":"white")}}function Vk(e,t,n,i,r,a){e.fillRect(t+a,n,i-2*a,a),e.fillRect(t+a,n+r-a,i-2*a,a),e.fillRect(t,n,a,r),e.fillRect(t+i-a,n,a,r)}function Uk(e,t,n){e.save(),e.scale(t,t),n(),e.restore()}function $k(e,t,n,i,r,a){e.save(),e.globalCompositeOperation="copy",e.fillStyle=a,e.fillRect(t,n,i,r),e.restore(
1)}function Wk(e,t,n,i,r,a,o){e.save(),e.globalCompositeOperation="copy";var s=e.createLinearGradient(0,0,0,r);s.addColorStop(0,a),s.addColorStop(1,o),e.fillStyle=s,e.fillRect(t,n,i,r),e.restore()}var qk,Gk=function(){function e(e,t){this._(e,t)}return e.prototype._=function(e,t){this.tt=e,this.Ct=t},e.prototype.h=function(e,t,n,i,r,a){if(this.tt.U){e.font=t.Nt;var o=this.tt.xt||!this.tt.St?t.Dt:0,s=t.At,l=t.Tt,c=t.Bt,u=t.Lt,d=t.Ft,h=this.tt.Et,f=Math.ceil(n.Vt(e,h)),p=t.Ot,m=t.Wt+l+c,g=Math.ceil(.5*m),v=s+f+u+d+o,y=this.Ct.zt;this.Ct.Pt&&(y=this.Ct.Pt);var b,_,w=(y=Math.round(y))-g,k=w+m,C="right"===r,x=C?i:0,S=Math.ceil(i*a),M=x;if(e.fillStyle=this.Ct.yt,e.lineWidth=1,e.lineCap="butt",h){C?(b=x-o,_=(M=x-v)+d):(M=x+v,b=x+o,_=x+s+o+u);var D=Math.max(1,Math.floor(a)),T=Math.max(1,Math.floor(s*a)),E=C?S:0,A=Math.round(w*a),P=Math.round(M*a),L=Math.round(y*a)-Math.floor(.5*a),O=L+D+(L-A),I=Math.round(b*a);e.save(),e.beginPath(),e.moveTo(E,A),e.lineTo(P,A),e.lineTo(P,O),e.lineTo(E,O),e.fill(),e.fillStyle=this.tt.Z,e.fillRect(C?S-T:0,A,T,O-A),this.tt.xt&&(e.fillStyle=this.Ct.et,e.fillRect(E,L,I-E,D)),e.textAlign="left",e.fillStyle=this.Ct.et,Uk(e,a,function(){e.fillText(h,_,k-c-p)}),e.restore()}}},e.prototype.Mt=function(e,t){return this.tt.U?e.Wt+e.Tt+e.Bt:0},e}(),Xk=function(){function e(e){this.Rt={zt:0,et:"#FFF",yt:"#000"},this.It={Et:"",U:!1,xt:!0,St:!1,Z:""},this.jt={Et:"",U:!1,xt:!1,St:!0,Z:""},this.L=!0,this.qt=new(e||Gk)(this.It,this.Rt),this.Ut=new(e||Gk)(this.jt,this.Rt)}return e.prototype.Et=function(){return this.It.Et},e.prototype.zt=function(){return this.Ht(),this.Rt.zt},e.prototype.O=function(){this.L=!0},e.prototype.Mt=function(e,t){return void 0===t&&(t=!1),Math.max(this.qt.Mt(e,t),this.Ut.Mt(e,t))},e.prototype.Yt=function(){return this.Rt.Pt||0},e.prototype.Kt=function(e){this.Rt.Pt=e},e.prototype.$t=function(){return this.Ht(),this.It.U||this.jt.U},e.prototype.Xt=function(){return this.Ht(),this.It.U},e.prototype.P=function(e){return this.Ht(),this.It.xt=this.It.xt&&e.ct().drawTicks,this.jt.xt=this.jt.xt&&e.ct().drawTicks,this.qt._(this.It,this.Rt),this.Ut._(this.jt,this.Rt),this.qt},e.prototype.Zt=function(){return this.Ht(),this.qt._(this.It,this.Rt),this.Ut._(this.jt,this.Rt),this.Ut},e.prototype.Ht=function(){this.L&&(this.It.xt=!0,this.jt.xt=!1,this.Jt(this.It,this.jt,this.Rt))},e}(),Qk=function(e){function t(t,n,i){var r=e.call(this)||this;return r.lt=t,r.Gt=n,r.Qt=i,r}return dk(t,e),t.prototype.Jt=function(e,t,n){e.U=!1;var i=this.lt.ct().horzLine;if(i.labelVisible){var r=this.Gt.H();if(this.lt.U()&&!this.Gt.ti()&&null!==r){var a=zk(i.labelBackgroundColor);n.yt=a.yt,n.et=a.kt;var o=this.Qt(this.Gt);n.zt=o.zt,e.Et=this.Gt.ii(o.D,r),e.U=!0}}},t}(Xk),Kk=/[1-9]/g,Zk=function(){function e(){this.tt=null}return e.prototype._=function(e){this.tt=e},e.prototype.h=function(e,t,n){var i=this;if(null!==this.tt&&!1!==this.tt.U&&0!==this.tt.Et.length){e.font=t.Nt;var r=Math.round(t.ni.Vt(e,this.tt.Et,Kk));if(!(r<=0)){e.save();var a=t.si,o=r+2*a,s=o/2,l=this.tt.wt,c=this.tt.zt,u=Math.floor(c-s)+.5;u<0?(c+=Math.abs(0-u),u=Math.floor(c-s)+.5):u+o>l&&(c-=Math.abs(l-(u+o)),u=Math.floor(c-s)+.5);var d=u+o,h=0+t.At+t.Tt+t.Wt+t.Bt;e.fillStyle=this.tt.yt;var f=Math.round(u*n),p=Math.round(0*n),m=Math.round(d*n),g=Math.round(h*n);e.fillRect(f,p,m-f,g-p);var v=Math.round(this.tt.zt*n),y=p,b=Math.round((y+t.At+t.Dt)*n);e.fillStyle=this.tt.et;var _=Math.max(1,Math.floor(n)),w=Math.floor(.5*n);e.fillRect(v-w,y,_,b-y);var k=h-t.Ot-t.Bt;e.textAlign="left",e.fillStyle=this.tt.et,Uk(e,n,function(){e.fillText(gk(i.tt).Et,u+a,k)}),e.restore()}}},e}(),Jk=function(){function e(e,t,n){this.L=!0,this.ot=new Zk,this.at={U:!1,yt:"#4c525e",et:"white",Et:"",wt:0,zt:NaN},this.V=e,this.hi=t,this.Qt=n}return e.prototype.O=function(){this.L=!0},e.prototype.P=function(){return this.L&&(this.R(),this.L=!1),this.ot._(this.at),this.ot},e.prototype.R=function(){var e=this.at;e.U=!1;var t=this.V.ct().vertLine;if(t.labelVisible){var n=this.hi.j();if(!n.ti()){var i=n.ri(this.V.I());e.wt=n.wt();var r=this.Qt();if(r.S){e.zt=r.zt,e.Et=n.ei(gk(i)),e.U=!0;
1var a=zk(t.labelBackgroundColor);e.yt=a.yt,e.et=a.kt}}}},e}(),eC=function(){function e(){this.ui=null,this.ai=0}return e.prototype.oi=function(){return this.ai},e.prototype.li=function(e){this.ai=e},e.prototype.$=function(){return this.ui},e.prototype.fi=function(e){this.ui=e},e.prototype.ci=function(){return[]},e.prototype.U=function(){return!0},e}();!function(e){e[e.Normal=0]="Normal",e[e.Magnet=1]="Magnet"}(qk||(qk={}));var tC=function(e){function t(t,n){var i,r,a=e.call(this)||this;return a.vi=null,a._i=NaN,a.di=0,a.wi=!0,a.Mi=new Map,a.bi=!1,a.mi=NaN,a.pi=NaN,a.gi=NaN,a.yi=NaN,a.hi=t,a.ki=n,a.Ci=new Pk(t,a),a.Ni=(i=function(){return a._i},r=function(){return a.pi},function(e){var t=r(),n=i();if(e===gk(a.vi).xi())return{D:n,zt:t};var o=gk(e.H());return{D:e.Si(t,o),zt:t}}),a.Di=new Jk(a,t,function(){return{S:a.hi.j().ri(a.di),zt:a.bt()}}),a.Ai=new Ok(a),a}return dk(t,e),t.prototype.ct=function(){return this.ki},t.prototype.Ti=function(e,t){this.gi=e,this.yi=t},t.prototype.Bi=function(){this.gi=NaN,this.yi=NaN},t.prototype.Li=function(){return this.gi},t.prototype.Fi=function(){return this.yi},t.prototype.Ei=function(e,t,n){this.bi||(this.bi=!0),this.wi=!0,this.Vi(e,t,n)},t.prototype.I=function(){return this.di},t.prototype.bt=function(){return this.mi},t.prototype.gt=function(){return this.pi},t.prototype.U=function(){return this.wi},t.prototype.Oi=function(){this.wi=!1,this.Wi(),this._i=NaN,this.mi=NaN,this.pi=NaN,this.vi=null,this.Bi()},t.prototype.zi=function(e){return null!==this.vi?[this.Ai,this.Ci]:[]},t.prototype._t=function(e){return e===this.vi&&this.ki.horzLine.visible},t.prototype.dt=function(){return this.ki.vertLine.visible},t.prototype.Pi=function(e,t){this.wi&&this.vi===e||this.Mi.clear();var n=[];return this.vi===e&&n.push(this.Ri(this.Mi,t,this.Ni)),n},t.prototype.ci=function(){return this.wi?[this.Di]:[]},t.prototype.ft=function(){return this.vi},t.prototype.Ii=function(){this.Ai.O(),this.Mi.forEach(function(e){return e.O()}),this.Di.O(),this.Ci.O()},t.prototype.ji=function(e){return e&&!e.xi().ti()?e.xi():null},t.prototype.Vi=function(e,t,n){this.qi(e,t,n)&&this.Ii()},t.prototype.qi=function(e,t,n){var i=this.mi,r=this.pi,a=this._i,o=this.di,s=this.vi,l=this.ji(n);this.di=e,this.mi=isNaN(e)?NaN:this.hi.j().G(e),this.vi=n;var c=null!==l?l.H():null;return null!==l&&null!==c?(this._i=t,this.pi=l.K(t,c)):(this._i=NaN,this.pi=NaN),i!==this.mi||r!==this.pi||o!==this.di||a!==this._i||s!==this.vi},t.prototype.Wi=function(){var e=this.hi.W().map(function(e){return e.Hi().Ui()}).filter(xk),t=0===e.length?null:Math.max.apply(Math,e);this.di=null!==t?t:NaN},t.prototype.Ri=function(e,t,n){var i=e.get(t);return void 0===i&&(i=new Qk(this,t,n),e.set(t,i)),i},t}(eC);function nC(e,t){if(!bk(e))return"n/a";if(!_k(t))throw new TypeError("invalid length");if(t<0||t>16)throw new TypeError("invalid length");return 0===t?e.toString():("0000000000000000"+e.toString()).slice(-t)}var iC=function(){function e(e,t){if(t||(t=1),bk(e)&&_k(e)||(e=100),e<0)throw new TypeError("invalid base");this.Gt=e,this.Yi=t,this.Ki()}return e.prototype.format=function(e){var t=e<0?"\u2212":"";return e=Math.abs(e),t+this.$i(e)},e.prototype.Ki=function(){if(this.Xi=0,this.Gt>0&&this.Yi>0)for(var e=this.Gt;e>1;)e/=10,this.Xi++},e.prototype.$i=function(e){var t=this.Gt/this.Yi,n=Math.floor(e),i="",r=void 0!==this.Xi?this.Xi:NaN;if(t>1){var a=+(Math.round(e*t)-n*t).toFixed(this.Xi);a>=t&&(a-=t,n+=1),i="."+nC(+a.toFixed(this.Xi)*this.Yi,r)}else n=Math.round(n*t)/t,r>0&&(i="."+nC(0,r));return n.toFixed(0)+i},e}(),rC=function(e){function t(t){return void 0===t&&(t=100),e.call(this,t)||this}return dk(t,e),t.prototype.format=function(t){return e.prototype.format.call(this,t)+"%"},t}(iC),aC=function(){function e(){this.Zi=[]}return e.prototype.Ji=function(e,t,n){this.Zi.push({Gi:e,Qi:t,tn:!0===n})},e.prototype.nn=function(e){var t=this.Zi.findIndex(function(t){return e===t.Gi});t>-1&&this.Zi.splice(t,1)},e.prototype.sn=function(e){this.Zi=this.Zi.filter(function(t){return t.Qi===e})},e.prototype.hn=function(e,t){var n=fk([],this.Zi,!0);this.Zi=this.Zi.filter(function(e){return!e.tn}
1),n.forEach(function(n){return n.Gi(e,t)})},e.prototype.rn=function(){return this.Zi.length>0},e.prototype.en=function(){this.Zi=[]},e}(),oC=function(){function e(e,t){this.un=e,this.an=t}return e.prototype.on=function(e){return null!==e&&this.un===e.un&&this.an===e.an},e.prototype.ln=function(){return new e(this.un,this.an)},e.prototype.fn=function(){return this.un},e.prototype.cn=function(){return this.an},e.prototype.vn=function(){return this.an-this.un},e.prototype.ti=function(){return this.an===this.un||Number.isNaN(this.an)||Number.isNaN(this.un)},e.prototype._n=function(t){return null===t?this:new e(Math.min(this.fn(),t.fn()),Math.max(this.cn(),t.cn()))},e.prototype.dn=function(e){if(bk(e)&&0!=this.an-this.un){var t=.5*(this.an+this.un),n=this.an-t,i=this.un-t;i*=e,this.an=t+(n*=e),this.un=t+i}},e.prototype.wn=function(e){bk(e)&&(this.an+=e,this.un+=e)},e.prototype.Mn=function(){return{minValue:this.un,maxValue:this.an}},e.bn=function(t){return null===t?null:new e(t.minValue,t.maxValue)},e}();function sC(e,t,n){return Math.min(Math.max(e,t),n)}function lC(e,t,n){return t-e<=n}function cC(e){return e<=0?NaN:Math.log(e)/Math.log(10)}function uC(e){var t=Math.ceil(e);return t%2!=0?t-1:t}function dC(e){var t=Math.ceil(e);return t%2==0?t-1:t}function hC(e,t){var n=100*(e-t)/t;return t<0?-n:n}function fC(e,t){var n=hC(e.fn(),t),i=hC(e.cn(),t);return new oC(n,i)}function pC(e,t){var n=100*(e-t)/t+100;return t<0?-n:n}function mC(e,t){var n=pC(e.fn(),t),i=pC(e.cn(),t);return new oC(n,i)}function gC(e){var t=Math.abs(e);if(t<1e-8)return 0;var n=cC(t+1e-4)+4;return e<0?-n:n}function vC(e){var t=Math.abs(e);if(t<1e-8)return 0;var n=Math.pow(10,t-4)-1e-4;return e<0?-n:n}function yC(e){if(null===e)return null;var t=gC(e.fn()),n=gC(e.cn());return new oC(t,n)}var bC,_C=function(){function e(e,t){if(this.mn=e,this.pn=t,function(e){if(e<0)return!1;for(var t=e;t>1;t/=10)if(t%10!=0)return!1;return!0}(this.mn))this.gn=[2,2.5,2];else{this.gn=[];for(var n=this.mn;1!==n;){if(n%2==0)this.gn.push(2),n/=2;else{if(n%5!=0)throw new Error("unexpected base");this.gn.push(2,2.5),n/=5}if(this.gn.length>100)throw new Error("something wrong with base")}}}return e.prototype.yn=function(e,t,n){for(var i=0===this.mn?0:1/this.mn,r=Math.pow(10,Math.max(0,Math.ceil(cC(e-t)))),a=0,o=this.pn[0];;){var s=lC(r,i,1e-14)&&r>i+1e-14,l=lC(r,n*o,1e-14),c=lC(r,1,1e-14);if(!(s&&l&&c))break;r/=o,o=this.pn[++a%this.pn.length]}if(r<=i+1e-14&&(r=i),r=Math.max(1,r),this.gn.length>0&&Math.abs(r-1)<1e-14)for(a=0,o=this.gn[0];lC(r,n*o,1e-14)&&r>i+1e-14;)r/=o,o=this.gn[++a%this.gn.length];return r},e}(),wC=function(){function e(e,t,n,i){this.kn=[],this.Gt=e,this.mn=t,this.Cn=n,this.Nn=i}return e.prototype.yn=function(e,t){if(e<t)throw new Error("high < low");var n=this.Gt.Mt(),i=(e-t)*this.xn()/n,r=new _C(this.mn,[2,2.5,2]),a=new _C(this.mn,[2,2,2.5]),o=new _C(this.mn,[2.5,2,2]),s=[];return s.push(r.yn(e,t,i),a.yn(e,t,i),o.yn(e,t,i)),function(e){if(e.length<1)throw Error("array is empty");for(var t=e[0],n=1;n<e.length;++n)e[n]<t&&(t=e[n]);return t}(s)},e.prototype.Sn=function(){var e=this.Gt,t=e.H();if(null!==t){var n=e.Mt(),i=this.Cn(n-1,t),r=this.Cn(0,t),a=this.Gt.ct().entireTextOnly?this.Dn()/2:0,o=a,s=n-1-a,l=Math.max(i,r),c=Math.min(i,r);if(l!==c){for(var u=this.yn(l,c),d=l%u,h=l>=c?1:-1,f=null,p=0,m=l-(d+=d<0?u:0);m>c;m-=u){var g=this.Nn(m,t,!0);null!==f&&Math.abs(g-f)<this.xn()||g<o||g>s||(p<this.kn.length?(this.kn[p].An=g,this.kn[p].Tn=e.Bn(m)):this.kn.push({An:g,Tn:e.Bn(m)}),p++,f=g,e.Ln()&&(u=this.yn(m*h,c)))}this.kn.length=p}else this.kn=[]}else this.kn=[]},e.prototype.Fn=function(){return this.kn},e.prototype.Dn=function(){return this.Gt.Wt()},e.prototype.xn=function(){return Math.ceil(2.5*this.Dn())},e}();function kC(e){return e.slice().sort(function(e,t){return gk(e.oi())-gk(t.oi())})}!function(e){e[e.Normal=0]="Normal",e[e.Logarithmic=1]="Logarithmic",e[e.Percentage=2]="Percentage",e[e.IndexedTo100=3]="IndexedTo100"}(bC||(bC={}));var CC,xC,SC=new rC,MC=new iC(100,1),DC=function(){function e(e,t,n,i){this.En=0,this.Vn=null,this.On=null,this.Wn=null,this.zn={Pn:!1,Rn:null},this.In=0,this.jn=0,this.qn=new aC,this.Un=new aC,this.Hn=[],this.Yn=null,this.Kn=null,this.$n=null,this.Xn=null,this.Zn=MC,this.Jn=e,this.ki=t,this.Gn=n,this.Qn=i,this.ts=new wC(this,100,this.ns.bind(this),this.ss.bind(this))}return e.prototype.hs=function(){return this.Jn},e.prototype.ct=function(){return this.ki},e.prototype.rs=function(e){if(yk(this.ki,e),this.es(),void 0!==e.mode&&this.us({os:e.mode}),void 0!==e.scaleMargins){var t=mk(e.scaleMargins.top),n=mk(e.scaleMargins.bottom);if(t<0||t>1)throw new Error("Invalid top margin - expect value between 0 and 1, given="+t);if(n<0||n>1||t+n>1)throw new Error("Invalid bottom margin - expect value between 0 and 1, given="+n);if(t+n>1)throw new Error("Invalid margins - sum of margins must be less than 1, given="+(t+n));this.ls(),this.Kn=null}},e.prototype.fs=function(){return this.ki.autoScale},e.prototype.Ln=function(){return 1===this.ki.mode},e.prototype.cs=function(){return 2===this.ki.mode},e.prototype.vs=function(){return 3===this.ki.mode},e.prototype.os=function(){return{_s:this.ki.autoScale,ds:this.ki.invertScale,os:this.ki.mode}},e.prototype.us=function(e){var t=this.os(),n=null;void 0!==e._s&&(this.ki.autoScale=e._s),void 0!==e.os&&(this.ki.mode=e.os,2!==e.os&&3!==e.os||(this.ki.autoScale=!0),this.zn.Pn=!1),1===t.os&&e.os!==t.os&&(function(e){if(null===e)return!1;var t=vC(e.fn()),n=vC(e.cn());return isFinite(t)&&isFinite(n)}(this.On)?null!==(n=function(e){if(null===e)return null;var t=vC(e.fn()),n=vC(e.cn());return new oC(t,n)}(this.On))&&this.ws(n):this.ki.autoScale=!0),1===e.os&&e.os!==t.os&&null!==(n=yC(this.On))&&this.ws(n);var i=t.os!==this.ki.mode;i&&(2===t.os||this.cs())&&this.es(),i&&(3===t.os||this.vs())&&this.es(),void 0!==e.ds&&t.ds!==e.ds&&(this.ki.invertScale=e.ds,this.Ms()),this.Un.hn(t,this.os())},e.prototype.bs=function(){return this.Un},e.prototype.Wt=function(){return this.Gn.fontSize},e.prototype.Mt=function(){return this.En},e.prototype.ps=function(e){this.En!==e&&(this.En=e,this.ls(),this.Kn=null)},e.prototype.gs=function(){if(this.Vn)return this.Vn;var e=this.Mt()-this.ys()-this.ks();return this.Vn=e,e},e.prototype.Cs=function(){return this.Ns(),this.On},e.prototype.ws=function(e,t){var n=this.On;(t||null===n&&null!==e||null!==n&&!n.on(e))&&(this.Kn=null,this.On=e)},e.prototype.ti=function(){return this.Ns(),0===this.En||!this.On||this.On.ti()},e.prototype.xs=function(e){return this.ds()?e:this.Mt()-1-e},e.prototype.K=function(e,t){return this.cs()?e=hC(e,t):this.vs()&&(e=pC(e,t)),this.ss(e,t)},e.prototype.Ss=function(e,t,n){this.Ns();for(var i=this.ks(),r=gk(this.Cs()),a=r.fn(),o=r.cn(),s=this.gs()-1,l=this.ds(),c=s/(o-a),u=void 0===n?0:n.from,d=void 0===n?e.length:n.to,h=this.Ds(),f=u;f<d;f++){var p=e[f],m=p.D;if(!isNaN(m)){var g=m;null!==h&&(g=h(p.D,t));var v=i+c*(g-a);p.g=l?v:this.En-1-v}}},e.prototype.As=function(e,t,n){this.Ns();for(var i=this.ks(),r=gk(this.Cs()),a=r.fn(),o=r.cn(),s=this.gs()-1,l=this.ds(),c=s/(o-a),u=void 0===n?0:n.from,d=void 0===n?e.length:n.to,h=this.Ds(),f=u;f<d;f++){var p=e[f],m=p.open,g=p.high,v=p.low,y=p.close;null!==h&&(m=h(p.open,t),g=h(p.high,t),v=h(p.low,t),y=h(p.close,t));var b=i+c*(m-a),_=l?b:this.En-1-b;
1p.Ts=_,b=i+c*(g-a),p.Bs=_=l?b:this.En-1-b,b=i+c*(v-a),p.Ls=_=l?b:this.En-1-b,b=i+c*(y-a),p.Fs=_=l?b:this.En-1-b}},e.prototype.Si=function(e,t){var n=this.ns(e,t);return this.Es(n,t)},e.prototype.Es=function(e,t){var n=e;return this.cs()?n=function(e,t){return t<0&&(e=-e),e/100*t+t}(n,t):this.vs()&&(n=function(e,t){return e-=100,t<0&&(e=-e),e/100*t+t}(n,t)),n},e.prototype.Vs=function(){return this.Hn},e.prototype.Os=function(){if(this.Yn)return this.Yn;for(var e=[],t=0;t<this.Hn.length;t++){var n=this.Hn[t];null===n.oi()&&n.li(t+1),e.push(n)}return e=kC(e),this.Yn=e,this.Yn},e.prototype.Ws=function(e){-1===this.Hn.indexOf(e)&&(this.Hn.push(e),this.es(),this.zs())},e.prototype.Ps=function(e){var t=this.Hn.indexOf(e);if(-1===t)throw new Error("source is not attached to scale");this.Hn.splice(t,1),0===this.Hn.length&&(this.us({_s:!0}),this.ws(null)),this.es(),this.zs()},e.prototype.H=function(){for(var e=null,t=0,n=this.Hn;t<n.length;t++){var i=n[t].H();null!==i&&(null===e||i.Rs<e.Rs)&&(e=i)}return null===e?null:e.X},e.prototype.ds=function(){return this.ki.invertScale},e.prototype.Fn=function(){return this.Kn||(this.ts.Sn(),this.Kn=this.ts.Fn(),this.qn.hn()),this.Kn},e.prototype.Is=function(){return this.qn},e.prototype.js=function(e){this.cs()||this.vs()||null===this.$n&&null===this.Wn&&(this.ti()||(this.$n=this.En-e,this.Wn=gk(this.Cs()).ln()))},e.prototype.qs=function(e){if(!this.cs()&&!this.vs()&&null!==this.$n){this.us({_s:!1}),(e=this.En-e)<0&&(e=0);var t=(this.$n+.2*(this.En-1))/(e+.2*(this.En-1)),n=gk(this.Wn).ln();t=Math.max(t,.1),n.dn(t),this.ws(n)}},e.prototype.Us=function(){this.cs()||this.vs()||(this.$n=null,this.Wn=null)},e.prototype.Hs=function(e){this.fs()||null===this.Xn&&null===this.Wn&&(this.ti()||(this.Xn=e,this.Wn=gk(this.Cs()).ln()))},e.prototype.Ys=function(e){if(!this.fs()&&null!==this.Xn){var t=gk(this.Cs()).vn()/(this.gs()-1),n=e-this.Xn;this.ds()&&(n*=-1);var i=n*t,r=gk(this.Wn).ln();r.wn(i),this.ws(r,!0),this.Kn=null}},e.prototype.Ks=function(){this.fs()||null!==this.Xn&&(this.Xn=null,this.Wn=null)},e.prototype.$s=function(){return this.Zn||this.es(),this.Zn},e.prototype.ii=function(e,t){switch(this.ki.mode){case 2:return this.$s().format(hC(e,t));case 3:return this.$s().format(pC(e,t));default:return this.Xs(e)}},e.prototype.Bn=function(e){switch(this.ki.mode){case 2:case 3:return this.$s().format(e);default:return this.Xs(e)}},e.prototype.Zs=function(e){return this.Xs(e,gk(this.Js()).$s())},e.prototype.Gs=function(e,t){return e=hC(e,t),SC.format(e)},e.prototype.Qs=function(){return this.Hn},e.prototype.th=function(e){this.zn={Rn:e,Pn:!1}},e.prototype.Ii=function(){this.Hn.forEach(function(e){return e.Ii()})},e.prototype.es=function(){this.Kn=null;var e=this.Js(),t=100;null!==e&&(t=Math.round(1/e.ih())),this.Zn=MC,this.cs()?(this.Zn=SC,t=100):this.vs()?(this.Zn=new iC(100,1),t=100):null!==e&&(this.Zn=e.$s()),this.ts=new wC(this,t,this.ns.bind(this),this.ss.bind(this)),this.ts.Sn()},e.prototype.zs=function(){this.Yn=null},e.prototype.Js=function(){return this.Hn[0]||null},e.prototype.ys=function(){return this.ds()?this.ki.scaleMargins.bottom*this.Mt()+this.jn:this.ki.scaleMargins.top*this.Mt()+this.In},e.prototype.ks=function(){return this.ds()?this.ki.scaleMargins.top*this.Mt()+this.In:this.ki.scaleMargins.bottom*this.Mt()+this.jn},e.prototype.Ns=function(){this.zn.Pn||(this.zn.Pn=!0,this.nh())},e.prototype.ls=function(){this.Vn=null},e.prototype.ss=function(e,t){if(this.Ns(),this.ti())return 0;e=this.Ln()&&e?gC(e):e;var n=gk(this.Cs()),i=this.ks()+(this.gs()-1)*(e-n.fn())/n.vn();return this.xs(i)},e.prototype.ns=function(e,t){if(this.Ns(),this.ti())return 0;var n=this.xs(e),i=gk(this.Cs()),r=i.fn()+i.vn()*((n-this.ks())/(this.gs()-1));return this.Ln()?vC(r):r},e.prototype.Ms=function(){this.Kn=null,this.ts.Sn()},e.prototype.nh=function(){var e=this.zn.Rn;if(null!==e){for(var t=null,n=0,i=0,r=0,a=this.Qs();r<a.length;r++){var o=a[r];if(o.U()){var s=o.H();if(null!==s){var l=o.sh(e.hh(),e.rh()),c=l&&l.Cs();if(null!==c){switch(this.ki.mode){case 1:c=yC(c);break;case 2:c=fC(c,s.X);break;case 3:c=mC(c,s.X)}if(t=null===t?c:t._n(gk(c)),null!==l){var u=l.eh();null!==u&&(n=Math.max(n,u.above),i=Math.max(n,u.below))}}}}}if(n===this.In&&i===this.jn||(this.In=n,this.jn=i,this.Kn=null,this.ls()),null!==t){if(t.fn()===t.cn()){var d=this.Js(),h=5*(null===d||this.cs()||this.vs()?1:d.ih());t=new oC(t.fn()-h,t.cn()+h)}this.ws(t)}else null===this.On&&this.ws(new oC(-.5,.5));this.zn.Pn=!0}},e.prototype.Ds=function(){return this.cs()?hC:this.vs()?pC:this.Ln()?gC:null},e.prototype.Xs=function(e,t){return void 0===this.Qn.priceFormatter?(void 0===t&&(t=this.$s()),t.format(e)):this.Qn.priceFormatter(e)},e}();function TC(e){void 0!==e.borderColor&&(e.borderUpColor=e.borderColor,e.borderDownColor=e.borderColor),void 0!==e.wickColor&&(e.wickUpColor=e.wickColor,e.wickDownColor=e.wickColor)}!function(e){e[e.Disabled=0]="Disabled",e[e.Continuous=1]="Continuous",e[e.OnDataU
1pdate=2]="OnDataUpdate"}(CC||(CC={})),function(e){e[e.LastBar=0]="LastBar",e[e.LastVisible=1]="LastVisible"}(xC||(xC={}));var EC=function(e){return e.getUTCFullYear()},AC=function(){function e(e,t){void 0===e&&(e="yyyy-MM-dd"),void 0===t&&(t="default"),this.uh=e,this.ah=t}return e.prototype.oh=function(e){return function(e,t,n){return t.replace(/yyyy/g,function(e){return nC(EC(e),4)}(e)).replace(/yy/g,function(e){return nC(EC(e)%100,2)}(e)).replace(/MMMM/g,function(e,t){return new Date(e.getUTCFullYear(),e.getUTCMonth(),1).toLocaleString(t,{month:"long"})}(e,n)).replace(/MMM/g,function(e,t){return new Date(e.getUTCFullYear(),e.getUTCMonth(),1).toLocaleString(t,{month:"short"})}(e,n)).replace(/MM/g,function(e){return nC(function(e){return e.getUTCMonth()+1}(e),2)}(e)).replace(/dd/g,function(e){return nC(function(e){return e.getUTCDate()}(e),2)}(e))}(e,this.uh,this.ah)},e}(),PC=function(){function e(e){this.lh=e||"%h:%m:%s"}return e.prototype.oh=function(e){return this.lh.replace("%h",nC(e.getUTCHours(),2)).replace("%m",nC(e.getUTCMinutes(),2)).replace("%s",nC(e.getUTCSeconds(),2))},e}(),LC={fh:"yyyy-MM-dd",_h:"%h:%m:%s",dh:" ",wh:"default"},OC=function(){function e(e){void 0===e&&(e={});var t=hk(hk({},LC),e);this.Mh=new AC(t.fh,t.wh),this.bh=new PC(t._h),this.mh=t.dh}return e.prototype.oh=function(e){return""+this.Mh.oh(e)+this.mh+this.bh.oh(e)},e}();function IC(e,t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=e.length);for(var a=r-i;0<a;){var o=a>>1,s=i+o;n(e[s],t)?(i=s+1,a-=o+1):a=o}return i}function HC(e,t,n,i,r){void 0===i&&(i=0),void 0===r&&(r=e.length);for(var a=r-i;0<a;){var o=a>>1,s=i+o;n(t,e[s])?a=o:(i=s+1,a-=o+1)}return i}var jC=function(){function e(e,t){void 0===t&&(t=50),this.ph=0,this.gh=1,this.yh=1,this.kh=new Map,this.Ch=new Map,this.Nh=e,this.xh=t}return e.prototype.oh=function(e){var t=void 0===e.Sh?new Date(1e3*e.Dh).getTime():new Date(Date.UTC(e.Sh.year,e.Sh.month-1,e.Sh.day)).getTime(),n=this.kh.get(t);if(void 0!==n)return n.Ah;if(this.ph===this.xh){var i=this.Ch.get(this.yh);this.Ch.delete(this.yh),this.kh.delete(mk(i)),this.yh++,this.ph--}var r=this.Nh(e);return this.kh.set(t,{Ah:r,Th:this.gh}),this.Ch.set(this.gh,t),this.ph++,this.gh++,r},e}(),FC=function(){function e(e,t){pk(e<=t,"right should be >= left"),this.Bh=e,this.Lh=t}return e.prototype.hh=function(){return this.Bh},e.prototype.rh=function(){return this.Lh},e.prototype.Fh=function(){return this.Lh-this.Bh+1},e.prototype.Eh=function(e){return this.Bh<=e&&e<=this.Lh},e.prototype.on=function(e){return this.Bh===e.hh()&&this.Lh===e.rh()},e}();function RC(e,t){return null===e||null===t?e===t:e.on(t)}var NC,BC=function(){function e(){this.Vh=new Map,this.kh=null}return e.prototype.Oh=function(e,t){this.Wh(t),this.kh=null;for(var n=t;n<e.length;++n){var i=e[n],r=this.Vh.get(i.zh);void 0===r&&this.Vh.set(i.zh,r=[]),r.push({Ph:n,S:i.S,Rh:i.zh})}},e.prototype.Ih=function(e,t){var n=Math.ceil(t/e);return null!==this.kh&&this.kh.jh===n||(this.kh={Fn:this.qh(n),jh:n}),this.kh.Fn},e.prototype.Wh=function(e){if(0!==e){var t=[];this.Vh.forEach(function(n,i){e<=n[0].Ph?t.push(i):n.splice(IC(n,e,function(t){return t.Ph<e}),1/0)});for(var n=0,i=t;n<i.length;n++)this.Vh.delete(i[n])}else this.Vh.clear()},e.prototype.qh=function(e){for(var t=[],n=0,i=Array.from(this.Vh.keys()).sort(function(e,t){return t-e});n<i.length;n++){var r=i[n];if(this.Vh.get(r)){var a=t;t=[];for(var o=a.length,s=0,l=mk(this.Vh.get(r)),c=l.length,u=1/0,d=-1/0,h=0;h<c;h++){for(var f=l[h],p=f.Ph;s<o;){var m=a[s],g=m.Ph;if(!(g<p)){u=g;break}s++,t.push(m),d=g,u=1/0}u-p>=e&&p-d>=e&&(t.push(f),d=p)}for(;s<o;s++)t.push(a[s])}}return t},e}(),YC=function(){function e(e){this.Uh=e}return e.prototype.Hh=function(){return null===this.Uh?null:new FC(Math.floor(this.Uh.hh()),Math.ceil(this.Uh.rh()))},e.prototype.Yh=function(){return this.Uh},e.Kh=function(){return new e(null)},e}();!function(e){e[e.Year=0]="Year",e[e.Month=1]="Month",e[e.DayOfMonth=2]="DayOfMonth",e[e.Time=3]="Time",e[e.TimeWithSeconds=4]="TimeWithSeconds"}(NC||(NC={}));var zC,VC=function(){function e(e,t,n){this.$h=0,this.Xh=null,this.Zh=[],this.Xn=null,this.$n=null,this.Jh=new BC,this.Gh=new Map,this.Qh=YC.Kh(),this.tr=!0,this.ir=new aC,this.nr=new aC,this.sr=new aC,this.hr=null,this.rr=null,this.er=[],this.ki=t,this.Qn=n,this.ur=t.rightOffset,this.ar=t.barSpacing,this.hi=e,this.lr()}return e.prototype.ct=function(){return this.ki},e.prototype.cr=function(e){yk(this.Qn,e),this.vr(),this.lr()},e.prototype.rs=function(e,t){var n;yk(this.ki,e),this.ki.fixLeftEdge&&this._r(),this.ki.fixRightEdge&&this.dr(),void 0!==e.barSpacing&&this.hi.wr(e.barSpacing),void 0!==e.rightOffset&&this.hi.Mr(e.rightOffset),void 0!==e.minBarSpacing&&this.hi.wr(null!==(n=e.barSpacing)&&void 0!==n?n:this.ar),this.vr(),this.lr(),this.sr.hn()},e.prototype.ri=function(e){var t;return(null===(t=this.Zh[e])||void 0===t?void 0:t.S)||null},e.prototype.br=function(e,t){if(this.Zh.length<1)return null;if(e.Dh>this.Zh[this.Zh.length-1].S.Dh)return t?this.Zh.length-1:null;var n=IC(this.Zh,e.Dh,function(e,t){return e.S.Dh<t});return e.Dh<this.Zh[n].S.Dh?t?n:null:n},e.prototype.ti=function(){return 0===this.$h||0===this.Zh.length},e.prototype.mr=function(){return this.pr(),this.Qh.Hh()},e.prototype.gr=function(){return this.pr(),this.Qh.Yh()},e.prototype.yr=function(){var e=this.mr();if(null===e)return null;var t={from:e.hh(),to:e.rh()};return this.kr(t)},e.prototype.kr=function(e){var t=Math.round(e.from),n=Math.round(e.to),i=gk(this.Cr()),r=gk(this.Nr());return{from:gk(this.ri(Math.max(i,t))),to:gk(this.ri(Math.min(r,n)))}},e.prototype.Sr=function(e){return{from:gk(this.br(e.from,!0)),to:gk(this.br(e.to,
1!0))}},e.prototype.wt=function(){return this.$h},e.prototype.Dr=function(e){if(isFinite(e)&&!(e<=0)&&this.$h!==e){if(this.ki.lockVisibleTimeRangeOnResize&&this.$h&&(this.ar=this.ar*e/this.$h),this.ki.fixLeftEdge){var t=this.mr();null!==t&&t.hh()<=0&&(this.ur-=Math.round((this.$h-e)/this.ar)+1)}this.$h=e,this.tr=!0,this.Ar(),this.Tr()}},e.prototype.G=function(e){if(this.ti()||!_k(e))return 0;var t=this.Br()+this.ur-e;return this.$h-(t+.5)*this.ar-1},e.prototype.Lr=function(e,t){for(var n=this.Br(),i=void 0===t?e.length:t.to,r=void 0===t?0:t.from;r<i;r++)e[r].p=this.$h-(n+this.ur-e[r].S+.5)*this.ar-1},e.prototype.Fr=function(e){return Math.ceil(this.Er(e))},e.prototype.Mr=function(e){this.tr=!0,this.ur=e,this.Tr(),this.hi.Vr(),this.hi.Or()},e.prototype.Wr=function(){return this.ar},e.prototype.wr=function(e){this.zr(e),this.Tr(),this.hi.Vr(),this.hi.Or()},e.prototype.Pr=function(){return this.ur},e.prototype.Fn=function(){if(this.ti())return null;if(null!==this.rr)return this.rr;for(var e=this.ar,t=5*(this.hi.ct().layout.fontSize+4),n=Math.round(t/e),i=gk(this.mr()),r=Math.max(i.hh(),i.hh()-n),a=Math.max(i.rh(),i.rh()-n),o=this.Jh.Ih(e,t),s=this.Cr()+n,l=this.Nr()-n,c=0,u=0,d=o;u<d.length;u++){var h=d[u];if(r<=h.Ph&&h.Ph<=a){var f=void 0;c<this.er.length?((f=this.er[c]).An=this.G(h.Ph),f.Tn=this.Rr(h.S,h.Rh),f.Rh=h.Rh):(f={Ir:!1,An:this.G(h.Ph),Tn:this.Rr(h.S,h.Rh),Rh:h.Rh},this.er.push(f)),f.Ir=!(this.ar>t/2)&&(this.ki.fixLeftEdge&&h.Ph<=s||this.ki.fixRightEdge&&h.Ph>=l),c++}}return this.er.length=c,this.rr=this.er,this.er},e.prototype.jr=function(){this.tr=!0,this.wr(this.ki.barSpacing),this.Mr(this.ki.rightOffset)},e.prototype.qr=function(e){this.tr=!0,this.Xh=e,this.Tr(),this._r()},e.prototype.Ur=function(e,t){var n=this.Er(e),i=this.Wr();this.wr(i+t*(i/10)),this.ki.rightBarStaysOnScroll||this.Mr(this.Pr()+(n-this.Er(e)))},e.prototype.js=function(e){this.Xn&&this.Ks(),null===this.$n&&null===this.hr&&(this.ti()||(this.$n=e,this.Hr()))},e.prototype.qs=function(e){if(null!==this.hr){var t=sC(this.$h-e,0,this.$h),n=sC(this.$h-gk(this.$n),0,this.$h);0!==t&&0!==n&&this.wr(this.hr.Wr*t/n)}},e.prototype.Us=function(){null!==this.$n&&(this.$n=null,this.Yr())},e.prototype.Hs=function(e){null===this.Xn&&null===this.hr&&(this.ti()||(this.Xn=e,this.Hr()))},e.prototype.Ys=function(e){if(null!==this.Xn){var t=(this.Xn-e)/this.Wr();this.ur=gk(this.hr).Pr+t,this.tr=!0,this.Tr()}},e.prototype.Ks=function(){null!==this.Xn&&(this.Xn=null,this.Yr())},e.prototype.Kr=function(){this.$r(this.ki.rightOffset)},e.prototype.$r=function(e,t){var n=this;if(void 0===t&&(t=400),!isFinite(e))throw new RangeError("offset is required and must be finite number");if(!isFinite(t)||t<=0)throw new RangeError("animationDuration (optional) must be finite positive number");var i=this.ur,r=performance.now();!function a(){var o=(performance.now()-r)/t,s=o>=1;n.Mr(s?e:i+(e-i)*o),s||setTimeout(a,20)}()},e.prototype.O=function(e,t){this.tr=!0,this.Zh=e,this.Jh.Oh(e,t),this.Tr()},e.prototype.Xr=function(){return this.ir},e.prototype.Zr=function(){return this.nr},e.prototype.Jr=function(){return this.sr},e.prototype.Br=function(){return this.Xh||0},e.prototype.Gr=function(e){var t=e.Fh();this.zr(this.$h/t),this.ur=e.rh()-this.Br(),this.Tr(),this.tr=!0,this.hi.Vr(),this.hi.Or()},e.prototype.Qr=function(){var e=this.Cr(),t=this.Nr();null!==e&&null!==t&&this.Gr(new FC(e,t+this.ki.rightOffset))},e.prototype.te=function(e){var t=new FC(e.from,e.to);this.Gr(t)},e.prototype.ei=function(e){return void 0!==this.Qn.timeFormatter?this.Qn.timeFormatter(e.Sh||e.Dh):this.ie.oh(new Date(1e3*e.Dh))},e.prototype.Cr=function(){return 0===this.Zh.length?null:0},e.prototype.Nr=function(){return 0===this.Zh.length?null:this.Zh.length-1},e.prototype.ne=function(e){return(this.$h-1-e)/this.ar},e.prototype.Er=function(e){var t=this.ne(e),n=this.Br()+this.ur-t;return Math.round(1e6*n)/1e6},e.prototype.zr=function(e){var t=this.ar;this.ar=e,this.Ar(),t!==this.ar&&(this.tr=!0,this.se())},e.prototype.pr=function(){if(this.tr)if(this.tr=!1,this.ti())this.he(YC.Kh());else{var e=this.Br(),t=this.ur+e,n=new FC(t-this.$h/this.ar+1,t);this.he(new YC(n))}},e.prototype.Ar=function(){var e=this.re();if(this.ar<e&&(this.ar=e,this.tr=!0),0!==this.$h){var t=.5*this.$h;this.ar>t&&(this.ar=t,this.tr=!0)}},e.prototype.re=function(){return this.ki.fixLeftEdge&&this.ki.fixRightEdge&&0!==this.Zh.length?this.$h/this.Zh.length:this.ki.minBarSpacing},e.prototype.Tr=function(){var e=this.ee();this.ur>e&&(this.ur=e,this.tr=!0);var t=this.ue();null!==t&&this.ur<t&&(this.ur=t,this.tr=!0)},e.prototype.ue=function(){var e=this.Cr(),t=this.Xh;return null===e||null===t?null:e-t-1+(this.ki.fixLeftEdge?this.$h/this.ar:Math.min(2,this.Zh.length))},e.prototype.ee=function(){return this.ki.fixRightEdge?0:this.$h/this.ar-Math.min(2,this.Zh.length)},e.prototype.Hr=function(){this.hr={Wr:this.Wr(),Pr:this.Pr()}},e.prototype.Yr=function(){this.hr=null},e.prototype.Rr=function(e,t){var n=this,i=this.Gh.get(t);return void 0===i&&(i=new jC(function(e){return n.ae(e,t)}),this.Gh.set(t,i)),i.oh(e)},e.prototype.ae=function(e,t){var n,i=function(e,t,n){switch(e){case 0:case 10:return t?n?4:3:2;case 20:case 21:case 22:case 30:case 31:case 32:case 33:return t?3:2;case 50:return 2;case 60:return 1;case 70:return 0}}(t,this.ki.timeVisible,this.ki.secondsVisible);return void 0!==this.ki.tickMarkFormatter?this.ki.tickMarkFormatter(null!==(n=e.Sh)&&void 0!==n?n:e.Dh,i,this.Qn.locale):function(e,t,n){var i={};switch(t){case 0:i.year="numeric";break;case 1:i.month="short";break;case 2:i.day="numeric";break;case 3:i.hour12=!1,i.hour="2-digit",i.minute="2-digit";break;case 4:i.hour12=!1,i.hour="2-digit",i.minute="2-digit",i.second="2-digit"}var r=void 0===e.Sh?new Date(1e3*e.Dh):new Date(Date.UTC(e.Sh.year,e.Sh.month-1,e.Sh.day));return new Date(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.getUTCMilliseconds()).toLocaleStr
1ing(n,i)}(e,i,this.Qn.locale)},e.prototype.he=function(e){var t=this.Qh;this.Qh=e,RC(t.Hh(),this.Qh.Hh())||this.ir.hn(),RC(t.Yh(),this.Qh.Yh())||this.nr.hn(),this.se()},e.prototype.se=function(){this.rr=null},e.prototype.vr=function(){this.se(),this.Gh.clear()},e.prototype.lr=function(){var e=this.Qn.dateFormat;this.ie=this.ki.timeVisible?new OC({fh:e,_h:this.ki.secondsVisible?"%h:%m:%s":"%h:%m",dh:" ",wh:this.Qn.locale}):new AC(e,this.Qn.locale)},e.prototype._r=function(){if(this.ki.fixLeftEdge){var e=this.Cr();if(null!==e){var t=this.mr();if(null!==t){var n=t.hh()-e;n<0&&this.Mr(this.ur-n-1),this.Ar()}}}},e.prototype.dr=function(){this.Tr(),this.Ar()},e}();function UC(e){return!bk(e)&&!wk(e)}function $C(e){return bk(e)}!function(e){e.Solid="solid",e.VerticalGradient="gradient"}(zC||(zC={}));var WC="'Trebuchet MS', Roboto, Ubuntu, sans-serif";function qC(e,t,n){return void 0!==n?n+=" ":n="",void 0===t&&(t=WC),""+n+e+"px "+t}var GC=function(){function e(e){this.oe={At:1,Dt:4,Wt:NaN,Nt:"",le:"",et:"",Bt:0,Lt:0,Ft:0,Tt:0,Ot:0},this.F=e}return e.prototype.ct=function(){var e=this.oe,t=this.fe(),n=this.ce();return e.Wt===t&&e.le===n||(e.Wt=t,e.le=n,e.Nt=qC(t,n),e.Tt=Math.floor(t/3.5),e.Bt=e.Tt,e.Lt=Math.max(Math.ceil(t/2-e.Dt/2),0),e.Ft=Math.ceil(t/2+e.Dt/2),e.Ot=Math.round(t/10)),e.et=this.ve(),this.oe},e.prototype.ve=function(){return this.F.ct().layout.textColor},e.prototype.fe=function(){return this.F.ct().layout.fontSize},e.prototype.ce=function(){return this.F.ct().layout.fontFamily},e}();function XC(e){return"left"===e||"right"===e}var QC=function(){function e(e){this._e=new Map,this.de=!1,this.we=[],this.Me=e}return e.prototype.be=function(e,t){var n=function(e,t){return void 0===e?t:{me:Math.max(e.me,t.me),_s:e._s||t._s}}(this._e.get(e),t);this._e.set(e,n)},e.prototype.pe=function(){return this.Me},e.prototype.ge=function(e){var t=this._e.get(e);return void 0===t?{me:this.Me}:{me:Math.max(this.Me,t.me),_s:t._s}},e.prototype.ye=function(){this.we=[{ke:0}]},e.prototype.Ce=function(e){this.we=[{ke:1,X:e}]},e.prototype.Ne=function(){this.we=[{ke:4}]},e.prototype.wr=function(e){this.we.push({ke:2,X:e})},e.prototype.Mr=function(e){this.we.push({ke:3,X:e})},e.prototype.xe=function(){return this.we},e.prototype._n=function(e){var t=this;this.de=this.de||e.de,this.we=this.we.concat(e.we);for(var n=0,i=e.we;n<i.length;n++)this.Se(i[n]);this.Me=Math.max(this.Me,e.Me),e._e.forEach(function(e,n){t.be(n,e)})},e.prototype.Se=function(e){switch(e.ke){case 0:this.ye();break;case 1:this.Ce(e.X);break;case 2:this.wr(e.X);break;case 3:this.Mr(e.X);break;case 4:this.Ne()}},e}(),KC=function(){function e(e){this.De=e}return e.prototype.format=function(e){var t="";return e<0&&(t="-",e=-e),e<995?t+this.Ae(e):e<999995?t+this.Ae(e/1e3)+"K":e<999999995?(e=1e3*Math.round(e/1e3),t+this.Ae(e/1e6)+"M"):(e=1e6*Math.round(e/1e6),t+this.Ae(e/1e9)+"B")},e.prototype.Ae=function(e){var t=Math.pow(10,this.De);return((e=Math.round(e*t)/t)>=1e-15&&e<1?e.toFixed(this.De).replace(/\.?0+$/,""):String(e)).replace(/(\.[1-9]*)0+$/,function(e,t){return t})},e}();function ZC(e,t,n,i){if(0!==t.length){e.moveTo(t[i.from].p,t[i.from].g);for(var r=i.from+1;r<i.to;++r){var a=t[r];1===n&&e.lineTo(a.p,t[r-1].g),e.lineTo(a.p,a.g)}}}var JC=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.v=null,t}return dk(t,e),t.prototype._=function(e){this.v=e},t.prototype.u=function(e){if(null!==this.v&&0!==this.v.m.length&&null!==this.v.M){if(e.lineCap="butt",e.lineJoin="round",e.lineWidth=this.v.rt,lk(e,this.v.ut),e.lineWidth=1,e.beginPath(),1===this.v.m.length){var t=this.v.m[0],n=this.v.Te/2;e.moveTo(t.p-n,this.v.Be),e.lineTo(t.p-n,t.g),e.lineTo(t.p+n,t.g),e.lineTo(t.p+n,this.v.Be)}else e.moveTo(this.v.m[this.v.M.from].p,this.v.Be),e.lineTo(this.v.m[this.v.M.from].p,this.v.m[this.v.M.from].g),ZC(e,this.v.m,this.v.Le,this.v.M),this.v.M.to>this.v.M.from&&(e.lineTo(this.v.m[this.v.M.to-1].p,this.v.Be),e.lineTo(this.v.m[this.v.M.from].p,this.v.Be));e.closePath(),e.fillStyle=this.Fe(e),e.fill()}},t}(Dk),ex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dk(t,e),t.prototype.Fe=function(e){var t=this.v,n=e.createLinearGradient(0,0,0,t.Ee);return n.addColorStop(0,t.Ve),n.addColorStop(1,t.Oe),n},t}(JC),tx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.v=null,t}return dk(t,e),t.prototype._=function(e){this.v=e},t.prototype.u=function(e){if(null!==this.v&&0!==this.v.m.length&&null!==this.v.M){if(e.lineCap="butt",e.lineWidth=this.v.rt,lk(e,this.v.ut),e.strokeStyle=this.We(e),e.lineJoin="round",e.beginPath(),1===this.v.m.length){var t=this.v.m[0];e.moveTo(t.p-this.v.Te/2,t.g),e.lineTo(t.p+this.v.Te/2,t.g)}else ZC(e,this.v.m,this.v.Le,this.v.M);e.stroke()}},t}(Dk),nx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dk(t,e),t.prototype.We=function(){return this.v.N},t}(tx);function ix(e,t){return e.S<t}function rx(e,t){return e<t.S}
1function ax(e,t,n){var i=t.hh(),r=t.rh(),a=IC(e,i,ix),o=HC(e,r,rx);if(!n)return{from:a,to:o};var s=a,l=o;return a>0&&a<e.length&&e[a].S>=i&&(s=a-1),o>0&&o<e.length&&e[o-1].S<=r&&(l=o+1),{from:s,to:l}}var ox=function(){function e(e,t,n){this.ze=!0,this.Pe=!0,this.Re=!0,this.Ie=[],this.je=null,this.qe=e,this.Ue=t,this.He=n}return e.prototype.O=function(e){this.ze=!0,"data"===e&&(this.Pe=!0),"options"===e&&(this.Re=!0)},e.prototype.Ye=function(){this.Pe&&(this.Ke(),this.Pe=!1),this.ze&&(this.$e(),this.ze=!1),this.Re&&(this.Xe(),this.Re=!1)},e.prototype.Ze=function(){this.je=null},e.prototype.$e=function(){var e=this.qe.$(),t=this.Ue.j();if(this.Ze(),!t.ti()&&!e.ti()){var n=t.mr();if(null!==n&&0!==this.qe.Hi().Je()){var i=this.qe.H();null!==i&&(this.je=ax(this.Ie,n,this.He),this.Ge(e,t,i.X))}}},e}(),sx=function(e){function t(t,n){return e.call(this,t,n,!0)||this}return dk(t,e),t.prototype.Ge=function(e,t,n){t.Lr(this.Ie,Sk(this.je)),e.Ss(this.Ie,n,Sk(this.je))},t.prototype.Qe=function(e,t){return{S:e,D:t,p:NaN,g:NaN}},t.prototype.Xe=function(){},t.prototype.Ke=function(){var e=this,t=this.qe.tu();this.Ie=this.qe.Hi().iu().map(function(n){return e.nu(n.Ph,n.X[3],t)})},t}(ox),lx=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.ot=new Mk,i.su=new ex,i.hu=new nx,i.ot.i([i.su,i.hu]),i}return dk(t,e),t.prototype.P=function(e,t){if(!this.qe.U())return null;var n=this.qe.ct();return this.Ye(),this.su._({Le:n.lineType,m:this.Ie,ut:n.lineStyle,rt:n.lineWidth,Ve:n.topColor,Oe:n.bottomColor,Be:e,Ee:e,M:this.je,Te:this.Ue.j().Wr()}),this.hu._({Le:n.lineType,m:this.Ie,N:n.lineColor,ut:n.lineStyle,rt:n.lineWidth,M:this.je,Te:this.Ue.j().Wr()}),this.ot},t.prototype.nu=function(e,t){return this.Qe(e,t)},t}(sx),cx=function(){function e(){this.tt=null,this.ru=0,this.eu=0}return e.prototype._=function(e){this.tt=e},e.prototype.h=function(e,t,n,i){if(null!==this.tt&&0!==this.tt.Hi.length&&null!==this.tt.M){this.ru=this.uu(t),this.ru>=2&&Math.max(1,Math.floor(t))%2!=this.ru%2&&this.ru--,this.eu=this.tt.au?Math.min(this.ru,Math.floor(t)):this.ru;for(var r=null,a=this.eu<=this.ru&&this.tt.Wr>=Math.floor(1.5*t),o=this.tt.M.from;o<this.tt.M.to;++o){var s=this.tt.Hi[o];r!==s.et&&(e.fillStyle=s.et,r=s.et);var l=Math.floor(.5*this.eu),c=Math.round(s.p*t),u=c-l,d=this.eu,h=u+d-1,f=Math.min(s.Bs,s.Ls),p=Math.max(s.Bs,s.Ls),m=Math.round(f*t)-l,g=Math.round(p*t)+l,v=Math.max(g-m,this.eu);e.fillRect(u,m,d,v);var y=Math.ceil(1.5*this.ru);if(a){if(this.tt.ou){var b=c-y,_=Math.max(m,Math.round(s.Ts*t)-l),w=_+d-1;w>m+v-1&&(_=(w=m+v-1)-d+1),e.fillRect(b,_,u-b,w-_+1)}var k=c+y,C=Math.max(m,Math.round(s.Fs*t)-l),x=C+d-1;x>m+v-1&&(C=(x=m+v-1)-d+1),e.fillRect(h+1,C,k-h,x-C+1)}}}},e.prototype.uu=function(e){var t=Math.floor(e);return Math.max(t,Math.floor(function(e,t){return Math.floor(.3*e*t)}(gk(this.tt).Wr,e)))},e}(),ux=function(e){function t(t,n){return e.call(this,t,n,!1)||this}return dk(t,e),t.prototype.Ge=function(e,t,n){t.Lr(this.Ie,Sk(this.je)),e.As(this.Ie,n,Sk(this.je))},t.prototype.lu=function(e,t,n){return{S:e,open:t.X[0],high:t.X[1],low:t.X[2],close:t.X[3],p:NaN,Ts:NaN,Bs:NaN,Ls:NaN,Fs:NaN}},t.prototype.Ke=function(){var e=this,t=this.qe.tu();this.Ie=this.qe.Hi().iu().map(function(n){return e.nu(n.Ph,n,t)})},t}(ox),dx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ot=new cx,t}return dk(t,e),t.prototype.P=function(e,t){if(!this.qe.U())return null;var n=this.qe.ct();this.Ye();var i={Hi:this.Ie,Wr:this.Ue.j().Wr(),ou:n.openVisible,au:n.thinBars,M:this.je};return this.ot._(i),this.ot},t.prototype.Xe=function(){var e=this;this.Ie.forEach(function(t){t.et=e.qe.tu().cu(t.S).fu})},t.prototype.nu=function(e,t,n){return hk(hk({},this.lu(e,t,n)),{et:n.cu(e).fu})},t}(ux),hx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dk(t,e),t.prototype.Fe=function(e){var t=this.v,n=e.createLinearGradient(0,0,0,t.Ee),i=sC(t.Be/t.Ee,0,1);return n.addColorStop(0,t.vu),n.addColorStop(i,t._u),n.addColorStop(i,t.du),n.addColorStop(1,t.wu),n},t}(JC),fx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dk(t,e),t.prototype.We=function(e){var t=this.v,n=e.createLinearGradient(0,0,0,t.Ee),i=sC(t.Be/t.Ee,0,1);return n.addColorStop(0,t.Ve),n.addColorStop(i,t.Ve),n.addColorStop(i,t.Oe),n.addColorStop(1,t.Oe),n},t}(tx),px=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.Mu=new hx,i.bu=new fx,i.A=new Mk,i.A.i([i.Mu,i.bu]),i}return dk(t,e),t.prototype.P=function(e,t){if(!this.qe.U())return null;var n=this.qe.H();if(null===n)return null;var i=this.qe.ct();this.Ye();var r=this.qe.$().K(i.baseValue.price,n.X),a=this.Ue.j().Wr();return this.Mu._({m:this.Ie,vu:i.topFillColor1,_u:i.topFillColor2,du:i.bottomFillColor1,wu:i.bottomFillColor2,rt:i.lineWidth,ut:i.lineStyle,Le:0,Be:r,Ee:e,M:this.je,Te:a}
1),this.bu._({m:this.Ie,Ve:i.topLineColor,Oe:i.bottomLineColor,rt:i.lineWidth,ut:i.lineStyle,Le:0,Be:r,Ee:e,M:this.je,Te:a}),this.A},t.prototype.nu=function(e,t){return this.Qe(e,t)},t}(sx),mx=function(){function e(){this.tt=null,this.ru=0}return e.prototype._=function(e){this.tt=e},e.prototype.h=function(e,t,n,i){if(null!==this.tt&&0!==this.tt.Hi.length&&null!==this.tt.M){this.ru=function(e,t){if(e>=2.5&&e<=4)return Math.floor(3*t);var n=1-.2*Math.atan(Math.max(4,e)-4)/(.5*Math.PI),i=Math.floor(e*n*t),r=Math.floor(e*t),a=Math.min(i,r);return Math.max(Math.floor(t),a)}(this.tt.Wr,t),this.ru>=2&&Math.floor(t)%2!=this.ru%2&&this.ru--;var r=this.tt.Hi;this.tt.mu&&this.pu(e,r,this.tt.M,t),this.tt.gu&&this.yu(e,r,this.tt.M,this.tt.Wr,t);var a=this.ku(t);(!this.tt.gu||this.ru>2*a)&&this.Cu(e,r,this.tt.M,t)}},e.prototype.pu=function(e,t,n,i){if(null!==this.tt){var r="",a=Math.min(Math.floor(i),Math.floor(this.tt.Wr*i));a=Math.max(Math.floor(i),Math.min(a,this.ru));for(var o=Math.floor(.5*a),s=null,l=n.from;l<n.to;l++){var c=t[l];c.Nu!==r&&(e.fillStyle=c.Nu,r=c.Nu);var u=Math.round(Math.min(c.Ts,c.Fs)*i),d=Math.round(Math.max(c.Ts,c.Fs)*i),h=Math.round(c.Bs*i),f=Math.round(c.Ls*i),p=Math.round(i*c.p)-o,m=p+a-1;null!==s&&(p=Math.max(s+1,p),p=Math.min(p,m));var g=m-p+1;e.fillRect(p,h,g,u-h),e.fillRect(p,d+1,g,f-d),s=m}}},e.prototype.ku=function(e){var t=Math.floor(1*e);this.ru<=2*t&&(t=Math.floor(.5*(this.ru-1)));var n=Math.max(Math.floor(e),t);return this.ru<=2*n?Math.max(Math.floor(e),Math.floor(1*e)):n},e.prototype.yu=function(e,t,n,i,r){if(null!==this.tt)for(var a="",o=this.ku(r),s=null,l=n.from;l<n.to;l++){var c=t[l];c.Z!==a&&(e.fillStyle=c.Z,a=c.Z);var u=Math.round(c.p*r)-Math.floor(.5*this.ru),d=u+this.ru-1,h=Math.round(Math.min(c.Ts,c.Fs)*r),f=Math.round(Math.max(c.Ts,c.Fs)*r);null!==s&&(u=Math.max(s+1,u),u=Math.min(u,d)),this.tt.Wr*r>2*o?Vk(e,u,h,d-u+1,f-h+1,o):e.fillRect(u,h,d-u+1,f-h+1),s=d}},e.prototype.Cu=function(e,t,n,i){if(null!==this.tt)for(var r="",a=this.ku(i),o=n.from;o<n.to;o++){var s=t[o],l=Math.round(Math.min(s.Ts,s.Fs)*i),c=Math.round(Math.max(s.Ts,s.Fs)*i),u=Math.round(s.p*i)-Math.floor(.5*this.ru),d=u+this.ru-1;if(s.et!==r){var h=s.et;e.fillStyle=h,r=h}this.tt.gu&&(u+=a,l+=a,d-=a,c-=a),l>c||e.fillRect(u,l,d-u+1,c-l+1)}},e}(),gx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ot=new mx,t}return dk(t,e),t.prototype.P=function(e,t){if(!this.qe.U())return null;var n=this.qe.ct();this.Ye();var i={Hi:this.Ie,Wr:this.Ue.j().Wr(),mu:n.wickVisible,gu:n.borderVisible,M:this.je};return this.ot._(i),this.ot},t.prototype.Xe=function(){var e=this;this.Ie.forEach(function(t){var n=e.qe.tu().cu(t.S);t.et=n.fu,t.Nu=n.xu,t.Z=n.Su})},t.prototype.nu=function(e,t,n){var i=n.cu(e);return hk(hk({},this.lu(e,t,n)),{et:i.fu,Nu:i.xu,Z:i.Su})},t}(ux),vx=function(){function e(){this.tt=null,this.Du=[]}return e.prototype._=function(e){this.tt=e,this.Du=[]},e.prototype.h=function(e,t,n,i){if(null!==this.tt&&0!==this.tt.m.length&&null!==this.tt.M){this.Du.length||this.Au(t);for(var r=Math.max(1,Math.floor(t)),a=Math.round(this.tt.Tu*t)-Math.floor(r/2),o=a+r,s=this.tt.M.from;s<this.tt.M.to;s++){var l=this.tt.m[s],c=this.Du[s-this.tt.M.from],u=Math.round(l.g*t);e.fillStyle=l.et;var d=void 0,h=void 0;u<=a?(d=u,h=o):(d=a,h=u-Math.floor(r/2)+r),e.fillRect(c.hh,d,c.rh-c.hh+1,h-d)}}},e.prototype.Au=function(e){if(null!==this.tt&&0!==this.tt.m.length&&null!==this.tt.M){var t=Math.ceil(this.tt.Wr*e)<=1?0:Math.max(1,Math.floor(e)),n=Math.round(this.tt.Wr*e)-t;this.Du=new Array(this.tt.M.to-this.tt.M.from);for(var i=this.tt.M.from;i<this.tt.M.to;i++){var r,a=this.tt.m[i],o=Math.round(a.p*e),s=void 0,l=void 0;n%2?(s=o-(r=(n-1)/2),l=o+r):(s=o-(r=n/2),l=o+r-1),this.Du[i-this.tt.M.from]={hh:s,rh:l,Bu:o,Lu:a.p*e,S:a.S}}for(i=this.tt.M.from+1;i<this.tt.M.to;i++){var c=this.Du[i-this.tt.M.from],u=this.Du[i-this.tt.M.from-1];c.S===u.S+1&&c.hh-u.rh!==t+1&&(u.Bu>u.Lu?u.rh=c.hh-t-1:c.hh=u.rh+t+1)}var d=Math.ceil(this.tt.Wr*e);for(i=this.tt.M.from;i<this.tt.M.to;i++){(c=this.Du[i-this.tt.M.from]).rh<c.hh&&(c.rh=c.hh);var h=c.rh-c.hh+1;d=Math.min(h,d)}if(t>0&&d<4)for(i=this.tt.M.from;i<this.tt.M.to;i++)(h=(c=this.Du[i-this.tt.M.from]).rh-c.hh+1)>d&&(c.Bu>
1c.Lu?c.rh-=1:c.hh+=1)}else this.Du=[]},e}();function yx(e){return{m:[],Wr:e,Tu:NaN,M:null}}function bx(e,t,n){return{S:e,D:t,p:NaN,g:NaN,et:n}}var _x=function(e){function t(t,n){var i=e.call(this,t,n,!1)||this;return i.A=new Mk,i.Fu=yx(0),i.ot=new vx,i}return dk(t,e),t.prototype.P=function(e,t){return this.qe.U()?(this.Ye(),this.A):null},t.prototype.Ke=function(){var e=this.Ue.j().Wr();this.Fu=yx(e);for(var t=0,n=0,i=this.qe.ct().color,r=0,a=this.qe.Hi().iu();r<a.length;r++){var o=a[r],s=bx(o.Ph,o.X[3],void 0!==o.et?o.et:i);++t<this.Fu.m.length?this.Fu.m[t]=s:this.Fu.m.push(s),this.Ie[n++]={S:o.Ph,p:0}}this.ot._(this.Fu),this.A.i([this.ot])},t.prototype.Xe=function(){},t.prototype.Ze=function(){e.prototype.Ze.call(this),this.Fu.M=null},t.prototype.Ge=function(e,t,n){if(null!==this.je){var i=t.Wr(),r=gk(t.mr()),a=e.K(this.qe.ct().base,n);t.Lr(this.Fu.m),e.Ss(this.Fu.m,n),this.Fu.Tu=a,this.Fu.M=ax(this.Fu.m,r,!1),this.Fu.Wr=i,this.ot._(this.Fu)}},t}(ox),wx=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.hu=new nx,i}return dk(t,e),t.prototype.P=function(e,t){if(!this.qe.U())return null;var n=this.qe.ct();this.Ye();var i={m:this.Ie,N:n.color,ut:n.lineStyle,Le:n.lineType,rt:n.lineWidth,M:this.je,Te:this.Ue.j().Wr()};return this.hu._(i),this.hu},t.prototype.nu=function(e,t){return this.Qe(e,t)},t}(sx),kx=/[2-9]/g,Cx=function(){function e(e){void 0===e&&(e=50),this.kh=new Map,this.Eu=0,this.Vu=Array.from(new Array(e))}return e.prototype.Ou=function(){this.kh.clear(),this.Vu.fill(void 0)},e.prototype.Vt=function(e,t,n){var i=n||kx,r=String(t).replace(i,"0"),a=this.kh.get(r);if(void 0===a){if(0===(a=e.measureText(r).width)&&0!==t.length)return 0;var o=this.Vu[this.Eu];void 0!==o&&this.kh.delete(o),this.Vu[this.Eu]=r,this.Eu=(this.Eu+1)%this.Vu.length,this.kh.set(r,a)}return a},e}(),xx=function(){function e(e){this.Wu=null,this.oe=null,this.zu="right",this.$h=0,this.Pu=e}return e.prototype.Ru=function(e,t,n,i){this.Wu=e,this.oe=t,this.$h=n,this.zu=i},e.prototype.h=function(e,t){null!==this.oe&&null!==this.Wu&&this.Wu.h(e,this.oe,this.Pu,this.$h,this.zu,t)},e}(),Sx=function(){function e(e,t,n){this.Iu=e,this.Pu=new Cx(50),this.ju=t,this.F=n,this.fe=-1,this.ot=new xx(this.Pu)}return e.prototype.P=function(e,t){var n=this.F.qu(this.ju);if(null===n)return null;var i=n.Uu(this.ju)?n.xi():this.ju.$();if(null===i)return null;var r=n.Hu(i);if("overlay"===r)return null;var a=this.F.Yu();return a.Wt!==this.fe&&(this.fe=a.Wt,this.Pu.Ou()),this.ot.Ru(this.Iu.Zt(),a,t,r),this.ot},e}(),Mx=function(){function e(){this.tt=null}return e.prototype._=function(e){this.tt=e},e.prototype.h=function(e,t,n,i){if(null!==this.tt&&!1!==this.tt.U){var r=Math.round(this.tt.g*t);if(!(r<0||r>Math.ceil(this.tt.Mt*t))){var a=Math.ceil(this.tt.wt*t);e.lineCap="butt",e.strokeStyle=this.tt.et,e.lineWidth=Math.floor(this.tt.rt*t),lk(e,this.tt.ut),ck(e,r,0,a)}}},e}(),Dx=function(){function e(e){this.Ku={wt:0,Mt:0,g:0,et:"rgba(0, 0, 0, 0)",rt:1,ut:0,U:!1},this.$u=new Mx,this.L=!0,this.qe=e,this.Ue=e.vt(),this.$u._(this.Ku)}return e.prototype.O=function(){this.L=!0},e.prototype.P=function(e,t){return this.qe.U()?(this.L&&(this.Xu(e,t),this.L=!1),this.$u):null},e}(),Tx=function(e){function t(t){return e.call(this,t)||this}return dk(t,e),t.prototype.Xu=function(e,t){this.Ku.U=!1;var n=this.qe.$(),i=n.os().os;if(2===i||3===i){var r=this.qe.ct();if(r.baseLineVisible&&this.qe.U()){var a=this.qe.H();null!==a&&(this.Ku.U=!0,this.Ku.g=n.K(a.X,a.X),this.Ku.wt=t,this.Ku.Mt=e,this.Ku.et=r.baseLineColor,this.Ku.rt=r.baseLineWidth,this.Ku.ut=r.baseLineStyle)}}},t}(Dx),Ex=function(){function e(){this.tt=null}return e.prototype._=function(e){this.tt=e},e.prototype.Zu=function(){return this.tt},e.prototype.h=function(e,t,n,i){var r=this.tt;if(null!==r){e.save();var a=Math.max(1,Math.floor(t)),o=a%2/2,s=Math.round(r.Lu.x*t)+o,l=r.Lu.y*t;e.fillStyle=r.Ju,e.beginPath();var c=Math.max(2,1.5*r.Gu)*t;e.arc(s,l,c,0,2*Math.PI,!1),e.fill(),e.fillStyle=r.Qu,e.beginPath(),e.arc(s,l,r.C*t,0,2*Math.PI,!1),e.fill(),e.lineWidth=a,e.strokeStyle=r.ta,e.beginPath(),e.arc(s,l,r.C*t+a/2,0,2*Math.PI,!1),e.stroke(),e.restore(
1)}},e}(),Ax=[{ia:0,na:.25,sa:4,ha:10,ra:.25,ea:0,ua:.4,aa:.8},{ia:.25,na:.525,sa:10,ha:14,ra:0,ea:0,ua:.8,aa:0},{ia:.525,na:1,sa:14,ha:14,ra:0,ea:0,ua:0,aa:0}];function Px(e,t,n,i){return function(e,t){if("transparent"===e)return e;var n=Yk(e);return"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+t*n[3]+")"}(e,n+(i-n)*t)}function Lx(e,t){for(var n,i=e%2600/2600,r=0,a=Ax;r<a.length;r++){var o=a[r];if(i>=o.ia&&i<=o.na){n=o;break}}pk(void 0!==n,"Last price animation internal logic error");var s,l,c,u=(i-n.ia)/(n.na-n.ia);return{Qu:Px(t,u,n.ra,n.ea),ta:Px(t,u,n.ua,n.aa),C:(s=u,l=n.sa,c=n.ha,l+(c-l)*s)}}var Ox=function(){function e(e){this.ot=new Ex,this.L=!0,this.oa=!0,this.la=performance.now(),this.fa=this.la-1,this.ca=e}return e.prototype.O=function(e){if(this.L=!0,"data"===e&&2===this.ca.ct().lastPriceAnimation){var t=performance.now(),n=this.fa-t;if(n>0)return void(n<650&&(this.fa+=2600));this.la=t,this.fa=t+2600}},e.prototype.va=function(){this.oa=!0},e.prototype.U=function(){return 0!==this.ca.ct().lastPriceAnimation},e.prototype._a=function(){switch(this.ca.ct().lastPriceAnimation){case 0:return!1;case 1:return!0;case 2:return performance.now()<=this.fa}},e.prototype.P=function(e,t){return this.L?(this.R(e,t),this.L=!1,this.oa=!1):this.oa&&(this.da(),this.oa=!1),this.ot},e.prototype.R=function(e,t){this.ot._(null);var n=this.ca.vt().j(),i=n.mr(),r=this.ca.H();if(null!==i&&null!==r){var a=this.ca.wa(!0);if(!a.Ma&&i.Eh(a.Ph)){var o={x:n.G(a.Ph),y:this.ca.$().K(a.D,r.X)},s=a.et,l=this.ca.ct().lineWidth,c=Lx(this.ba(),s);this.ot._({Ju:s,Gu:l,Qu:c.Qu,ta:c.ta,C:c.C,Lu:o})}}},e.prototype.da=function(){var e=this.ot.Zu();if(null!==e){var t=Lx(this.ba(),e.Ju);e.Qu=t.Qu,e.ta=t.ta,e.C=t.C}},e.prototype.ba=function(){return this._a()?performance.now()-this.la:2599},e}();function Ix(e,t){return dC(Math.min(Math.max(e,12),30)*t)}function Hx(e,t){switch(e){case"arrowDown":case"arrowUp":return Ix(t,1);case"circle":return Ix(t,.8);case"square":return Ix(t,.7)}}function jx(e){return uC(Ix(e,1))}function Fx(e){return Math.max(Ix(e,.1),3)}function Rx(e,t,n,i,r){var a=Hx("square",n),o=(a-1)/2,s=e-o,l=t-o;return i>=s&&i<=s+a&&r>=l&&r<=l+a}function Nx(e,t,n,i,r){var a=(Hx("arrowUp",r)-1)/2,o=(dC(r/2)-1)/2;t.beginPath(),e?(t.moveTo(n-a,i),t.lineTo(n,i-a),t.lineTo(n+a,i),t.lineTo(n+o,i),t.lineTo(n+o,i+a),t.lineTo(n-o,i+a),t.lineTo(n-o,i)):(t.moveTo(n-a,i),t.lineTo(n,i+a),t.lineTo(n+a,i),t.lineTo(n+o,i),t.lineTo(n+o,i-a),t.lineTo(n-o,i-a),t.lineTo(n-o,i)),t.fill()}var Bx=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tt=null,t.Pu=new Cx,t.fe=-1,t.ce="",t.ma="",t}return dk(t,e),t.prototype._=function(e){this.tt=e},t.prototype.Ru=function(e,t){this.fe===e&&this.ce===t||(this.fe=e,this.ce=t,this.ma=qC(e,t),this.Pu.Ou())},t.prototype.pa=function(e,t){if(null===this.tt||null===this.tt.M)return null;for(var n=this.tt.M.from;n<this.tt.M.to;n++){var i=this.tt.m[n];if(zx(i,e,t))return{ga:i.ya,ka:i.ka}}return null},t.prototype.u=function(e,t,n){if(null!==this.tt&&null!==this.tt.M){e.textBaseline="middle",e.font=this.ma;for(var i=this.tt.M.from;i<this.tt.M.to;i++){var r=this.tt.m[i];void 0!==r.Et&&(r.Et.wt=this.Pu.Vt(e,r.Et.Ca),r.Et.Mt=this.fe),Yx(r,e)}}},t}(Dk);function Yx(e,t){t.fillStyle=e.et,void 0!==e.Et&&function(e,t,n,i){e.fillText(t,n,i)}(t,e.Et.Ca,e.p-e.Et.wt/2,e.Et.g),function(e,t){if(0!==e.Je)switch(e.Na){case"arrowDown":return void Nx(!1,t,e.p,e.g,e.Je);case"arrowUp":return void Nx(!0,t,e.p,e.g,e.Je);case"circle":return void function(e,t,n,i){var r=(Hx("circle",i)-1)/2;e.beginPath(),e.arc(t,n,r,0,2*Math.PI,!1),e.fill()}(t,e.p,e.g,e.Je);case"square":!function(e,t,n,i){var r=Hx("square",i),a=(r-1)/2;e.fillRect(t-a,n-a,r,r)}(t,e.p,e.g,e.Je)}}(e,t)}function zx(e,t,n){return!(void 0===e.Et||!function(e,t,n,i,r,a){var o=i/2;return r>=e&&r<=e+n&&a>=t-o&&a<=t+o}(e.p,e.Et.g,e.Et.wt,e.Et.Mt,t,n))||function(e,t,n){if(0===e.Je)return!1;switch(e.Na){case"arrowDown":case"arrowUp":return function(e,t,n,i,r,a){return Rx(t,n,i,r,a)}(0,e.p,e.g,e.Je,t,n);case"circle":return function(e,t,n,i,r){var a=2+Hx("circle",n)/2,o=e-i,s=t-r;return Math.sqrt(o*o+s*s)<=a}(e.p,e.g,e.Je,t,n);case"square":return Rx(e.p,e.g,e.Je,t,n)}}
1(e,t,n)}function Vx(e,t,n,i,r,a,o,s,l){var c=bk(n)?n:n.close,u=bk(n)?n:n.high,d=bk(n)?n:n.low,h=bk(t.size)?Math.max(t.size,0):1,f=jx(s.Wr())*h,p=f/2;switch(e.Je=f,t.position){case"inBar":return e.g=o.K(c,l),void(void 0!==e.Et&&(e.Et.g=e.g+p+a+.6*r));case"aboveBar":return e.g=o.K(u,l)-p-i.xa,void 0!==e.Et&&(e.Et.g=e.g-p-.6*r,i.xa+=1.2*r),void(i.xa+=f+a);case"belowBar":return e.g=o.K(d,l)+p+i.Sa,void 0!==e.Et&&(e.Et.g=e.g+p+a+.6*r,i.Sa+=1.2*r),void(i.Sa+=f+a)}}var Ux=function(){function e(e,t){this.L=!0,this.Da=!0,this.Aa=!0,this.Ta=null,this.ot=new Bx,this.ca=e,this.hi=t,this.tt={m:[],M:null}}return e.prototype.O=function(e){this.L=!0,this.Aa=!0,"data"===e&&(this.Da=!0)},e.prototype.P=function(e,t,n){if(!this.ca.U())return null;this.L&&this.Ye();var i=this.hi.ct().layout;return this.ot.Ru(i.fontSize,i.fontFamily),this.ot._(this.tt),this.ot},e.prototype.Ba=function(){if(this.Aa){if(this.ca.La().length>0){var e=this.hi.j().Wr(),t=Fx(e),n=1.5*jx(e)+2*t;this.Ta={above:n,below:n}}else this.Ta=null;this.Aa=!1}return this.Ta},e.prototype.Ye=function(){var e=this.ca.$(),t=this.hi.j(),n=this.ca.La();this.Da&&(this.tt.m=n.map(function(e){return{S:e.time,p:0,g:0,Je:0,Na:e.shape,et:e.color,ya:e.ya,ka:e.id,Et:void 0}}),this.Da=!1);var i=this.hi.ct().layout;this.tt.M=null;var r=t.mr();if(null!==r){var a=this.ca.H();if(null!==a&&0!==this.tt.m.length){var o=NaN,s=Fx(t.Wr()),l={xa:s,Sa:s};this.tt.M=ax(this.tt.m,r,!0);for(var c=this.tt.M.from;c<this.tt.M.to;c++){var u=n[c];u.time!==o&&(l.xa=s,l.Sa=s,o=u.time);var d=this.tt.m[c];d.p=t.G(u.time),void 0!==u.text&&u.text.length>0&&(d.Et={Ca:u.text,g:0,wt:0,Mt:0});var h=this.ca.Fa(u.time);null!==h&&Vx(d,u,h,l,i.fontSize,s,e,t,a.X)}this.L=!1}}},e}(),$x=function(e){function t(t){return e.call(this,t)||this}return dk(t,e),t.prototype.Xu=function(e,t){var n=this.Ku;n.U=!1;var i=this.qe.ct();if(i.priceLineVisible&&this.qe.U()){var r=this.qe.wa(0===i.priceLineSource);r.Ma||(n.U=!0,n.g=r.zt,n.et=this.qe.Ea(r.et),n.wt=t,n.Mt=e,n.rt=i.priceLineWidth,n.ut=i.priceLineStyle)}},t}(Dx),Wx=function(e){function t(t){var n=e.call(this)||this;return n.lt=t,n}return dk(t,e),t.prototype.Jt=function(e,t,n){e.U=!1,t.U=!1;var i=this.lt;if(i.U()){var r=i.ct(),a=r.lastValueVisible,o=""!==i.Va(),s=0===r.seriesLastValueMode,l=i.wa(!1);if(!l.Ma){a&&(e.Et=this.Oa(l,a,s),e.U=0!==e.Et.length),(o||s)&&(t.Et=this.Wa(l,a,o,s),t.U=t.Et.length>0);var c=i.Ea(l.et),u=zk(c);n.yt=u.yt,n.et=u.kt,n.zt=l.zt,t.Z=i.vt().J(l.zt/i.$().Mt()),e.Z=c}}},t.prototype.Wa=function(e,t,n,i){var r="",a=this.lt.Va();return n&&0!==a.length&&(r+=a+" "),t&&i&&(r+=this.lt.$().cs()?e.za:e.Pa),r.trim()},t.prototype.Oa=function(e,t,n){return t?n?this.lt.$().cs()?e.Pa:e.za:e.Et:""},t}(Xk),qx=function(){function e(e,t){this.On=e,this.Ra=t||null}return e.prototype.Cs=function(){return this.On},e.prototype.eh=function(){return this.Ra},e.prototype.Mn=function(){return null===this.On?null:{priceRange:this.On.Mn(),margins:this.Ra||void 0}},e.bn=function(t){return null===t?null:new e(oC.bn(t.priceRange),t.margins)},e}(),Gx=function(e){function t(t,n){var i=e.call(this,t)||this;return i.Ia=n,i}return dk(t,e),t.prototype.Xu=function(e,t){var n=this.Ku;if(n.U=!1,this.qe.U()){var i=this.Ia.ja();if(null!==i){var r=this.Ia.ct();n.U=!0,n.g=i,n.et=r.color,n.wt=t,n.Mt=e,n.rt=r.lineWidth,n.ut=r.lineStyle}}},t}(Dx),Xx=function(e){function t(t,n){var i=e.call(this)||this;return i.ca=t,i.Ia=n,i}return dk(t,e),t.prototype.Jt=function(e,t,n){e.U=!1,t.U=!1;var i=this.Ia.ct(),r=""!==i.title,a=this.ca;if(i.axisLabelVisible&&a.U()){var o=this.Ia.ja();if(null!==o){r&&(t.Et=i.title,t.U=!0),t.Z=a.vt().J(o/a.$().Mt()),e.Et=a.$().Zs(i.price),e.U=!0;var s=zk(i.color);n.yt=s.yt,n.et=s.kt,n.zt=o}}},t}(Xk),Qx=function(){function e(e,t){this.ca=e,this.ki=t,this.qa=new Gx(e,this),this.Iu=new Xx(e,this),this.Ua=new Sx(this.Iu,e,e.vt())}return e.prototype.rs=function(e){yk(this.ki,e),this.O(),this.ca.vt().Or()},e.prototype.ct=function(){return this.ki},e.prototype.zi=function(){return[this.qa,this.Ua]},e.prototype.Ha=function(){return this.Iu},e.prototype.O=function(){this.qa.O(),this.Iu.O()},e.prototype.ja=function(){var e=this.ca,t=e.$();if(e.vt().j().ti()||t.ti())return null;var n=e.H();return null===n?null:t.K(this.ki.price,n.X)},e}(),Kx=function(e){function t(t){var n=e.call(this)||this;return n.hi=t,n}return dk(t,e),t.prototype.vt=function(){return this.hi},t}(eC),Zx={fu:"",Su:"",xu:""},Jx=function(){function e(e){this.ca=e}return e.prototype.cu=function(e,t){var n=this.ca.Ya(),i=this.ca.ct();switch(n){case"Line":return this.Ka(i);case"Area":return this.$a(i);case"Baseline":return this.Xa(i,e,t);case"Bar":return this.Za(i,e,t);case"Candlestick":return this.Ja(i,e,t);case"Histogram":return this.Ga(i,e,t)}throw new Error("Unknown chart style")},e.prototype.Za=function(e,t,n){var i=hk({},Zx),r=e.upColor,a=e.downColor,o=r,s=a,l=gk(this.Qa(t,n)),c=vk(l.X[0])<=vk(l.X[3]);return i.fu=c?r:a,i.Su=c?o:s,i},e.prototype.Ja=function(e,t,n){var i=hk({},Zx),r=e.upColor,a=e.downColor,o=e.borderUpColor,s=e.borderDownColor,l=e.wickUpColor,c=e.wickDownColor,u=gk(this.Qa(t,n)),d=vk(u.X[0])<=vk(u.X[3]);return i.fu=d?r:a,i.Su=d?o:s,i.xu=d?l:c,i},e.prototype.$a=function(e){return hk(hk({},Zx),{fu:e.lineColor})},e.prototype.Xa=function(e,t,n){var i=gk(this.Qa(t,n)).X[3]>=e.baseValue.price;return hk(hk({},Zx),{fu:i?e.topLineColor:e.bottomLineColor})},e.prototype.Ka=function(e){return hk(hk({},Zx),{fu:e.color})},e.prototype.Ga=function(e,t,n){var i=hk({},Zx),r=gk(this.Qa(t,n));
1return i.fu=void 0!==r.et?r.et:e.color,i},e.prototype.Qa=function(e,t){return void 0!==t?t.X:this.ca.Hi().io(e)},e}(),eS=function(){function e(){this.no=[],this.so=new Map,this.ho=new Map}return e.prototype.ro=function(){return this.Je()>0?this.no[this.no.length-1]:null},e.prototype.eo=function(){return this.Je()>0?this.uo(0):null},e.prototype.Ui=function(){return this.Je()>0?this.uo(this.no.length-1):null},e.prototype.Je=function(){return this.no.length},e.prototype.ti=function(){return 0===this.Je()},e.prototype.Eh=function(e){return null!==this.ao(e,0)},e.prototype.io=function(e){return this.oo(e)},e.prototype.oo=function(e,t){void 0===t&&(t=0);var n=this.ao(e,t);return null===n?null:hk(hk({},this.lo(n)),{Ph:this.uo(n)})},e.prototype.iu=function(){return this.no},e.prototype.fo=function(e,t,n){if(this.ti())return null;for(var i=null,r=0,a=n;r<a.length;r++)i=tS(i,this.co(e,t,a[r]));return i},e.prototype._=function(e){this.ho.clear(),this.so.clear(),this.no=e},e.prototype.uo=function(e){return this.no[e].Ph},e.prototype.lo=function(e){return this.no[e]},e.prototype.ao=function(e,t){var n=this.vo(e);if(null===n&&0!==t)switch(t){case-1:return this._o(e);case 1:return this.do(e);default:throw new TypeError("Unknown search mode")}return n},e.prototype._o=function(e){var t=this.wo(e);return t>0&&(t-=1),t!==this.no.length&&this.uo(t)<e?t:null},e.prototype.do=function(e){var t=this.Mo(e);return t!==this.no.length&&e<this.uo(t)?t:null},e.prototype.vo=function(e){var t=this.wo(e);return t===this.no.length||e<this.no[t].Ph?null:t},e.prototype.wo=function(e){return IC(this.no,e,function(e,t){return e.Ph<t})},e.prototype.Mo=function(e){return HC(this.no,e,function(e,t){return t.Ph>e})},e.prototype.bo=function(e,t,n){for(var i=null,r=e;r<t;r++){var a=this.no[r].X[n];Number.isNaN(a)||(null===i?i={mo:a,po:a}:(a<i.mo&&(i.mo=a),a>i.po&&(i.po=a)))}return i},e.prototype.co=function(e,t,n){if(this.ti())return null;var i=null,r=gk(this.eo()),a=gk(this.Ui()),o=Math.max(e,r),s=Math.min(t,a),l=30*Math.ceil(o/30),c=Math.max(l,30*Math.floor(s/30)),u=this.wo(o),d=this.Mo(Math.min(s,l,t));i=tS(i,this.bo(u,d,n));var h=this.so.get(n);void 0===h&&(h=new Map,this.so.set(n,h));for(var f=Math.max(l+1,o);f<c;f+=30){var p=Math.floor(f/30),m=h.get(p);if(void 0===m){var g=this.wo(30*p),v=this.Mo(30*(p+1)-1);m=this.bo(g,v,n),h.set(p,m)}i=tS(i,m)}return u=this.wo(c),d=this.Mo(s),tS(i,this.bo(u,d,n))},e}();function tS(e,t){return null===e?t:null===t?e:{mo:Math.min(e.mo,t.mo),po:Math.max(e.po,t.po)}}var nS=function(e){function t(t,n,i){var r=e.call(this,t)||this;r.tt=new eS,r.qa=new $x(r),r.yo=[],r.ko=new Tx(r),r.Co=null,r.No=null,r.xo=[],r.So=[],r.Do=null,r.ki=n,r.Ao=i;var a=new Wx(r);return r.Mi=[a],r.Ua=new Sx(a,r,t),"Area"!==i&&"Line"!==i&&"Baseline"!==i||(r.Co=new Ox(r)),r.To(),r.Bo(),r}return dk(t,e),t.prototype.en=function(){null!==this.Do&&clearTimeout(this.Do)},t.prototype.Ea=function(e){return this.ki.priceLineColor||e},t.prototype.wa=function(e){var t={Ma:!0},n=this.$();if(this.vt().j().ti()||n.ti()||this.tt.ti())return t;var i,r,a=this.vt().j().mr(),o=this.H();if(null===a||null===o)return t;if(e){var s=this.tt.ro();if(null===s)return t;i=s,r=s.Ph}else{var l=this.tt.oo(a.rh(),-1);if(null===l)return t;if(null===(i=this.tt.io(l.Ph)))return t;r=l.Ph}var c=i.X[3],u=this.tu().cu(r,{X:i}),d=n.K(c,o.X);return{Ma:!1,D:c,Et:n.ii(c,o.X),za:n.Zs(c),Pa:n.Gs(c,o.X),et:u.fu,zt:d,Ph:r}},t.prototype.tu=function(){return null!==this.No||(this.No=new Jx(this)),this.No},t.prototype.ct=function(){return this.ki},t.prototype.rs=function(e){var t=e.priceScaleId;void 0!==t&&t!==this.ki.priceScaleId&&this.vt().Lo(this,t),yk(this.ki,e),null!==this.ui&&void 0!==e.scaleMargins&&this.ui.rs({scaleMargins:e.scaleMargins}),void 0!==e.priceFormat&&this.To(),this.vt().Fo(this),this.vt().Eo(),this.Ai.O("options")},t.prototype._=function(e){var t;this.tt._(e),this.Vo(),this.Ai.O("data"),this.Ci.O("data"),null===(t=this.Co)||void 0===t||t.O("data");var n=this.vt().qu(this);this.vt().Oo(n),this.vt().Fo(this),this.vt().Eo(),this.vt().Or()},t.prototype.Wo=function(e){this.xo=e.map(function(e){return hk({},e)}),this.Vo();var t=this.vt().qu(this);this.Ci.O("data"),this.vt().Oo(t),this.vt().Fo(this),this.vt().Eo(),this.vt().Or()},t.prototype.La=function(){return this.So},t.prototype.zo=function(e){var t=new Qx(this,e);return this.yo.push(t),this.vt().Fo(this),t},t.prototype.Po=function(e){var t=this.yo.indexOf(e);-1!==t&&this.yo.splice(t,1),this.vt().Fo(this)},t.prototype.Ya=function(){return this.Ao},t.prototype.H=function(){var e=this.Ro();
1return null===e?null:{X:e.X[3],Rs:e.S}},t.prototype.Ro=function(){var e=this.vt().j().mr();if(null===e)return null;var t=e.hh();return this.tt.oo(t,1)},t.prototype.Hi=function(){return this.tt},t.prototype.Fa=function(e){var t=this.tt.io(e);return null===t?null:"Bar"===this.Ao||"Candlestick"===this.Ao?{open:t.X[0],high:t.X[1],low:t.X[2],close:t.X[3]}:t.X[3]},t.prototype.Io=function(e){var t=this,n=this.Co;return null!==n&&n.U()?(null===this.Do&&n._a()&&(this.Do=setTimeout(function(){t.Do=null,t.vt().jo()},0)),n.va(),[n]):[]},t.prototype.zi=function(){var e=[];this.qo()||e.push(this.ko);for(var t=0,n=this.yo;t<n.length;t++)e.push.apply(e,n[t].zi());return e.push(this.Ai,this.qa,this.Ua,this.Ci),e},t.prototype.Pi=function(e,t){if(t!==this.ui&&!this.qo())return[];for(var n=fk([],this.Mi,!0),i=0,r=this.yo;i<r.length;i++)n.push(r[i].Ha());return n},t.prototype.sh=function(e,t){var n=this;if(void 0!==this.ki.autoscaleInfoProvider){var i=this.ki.autoscaleInfoProvider(function(){var i=n.Uo(e,t);return null===i?null:i.Mn()});return qx.bn(i)}return this.Uo(e,t)},t.prototype.ih=function(){return this.ki.priceFormat.minMove},t.prototype.$s=function(){return this.Zn},t.prototype.Ii=function(){var e;this.Ai.O(),this.Ci.O();for(var t=0,n=this.Mi;t<n.length;t++)n[t].O();for(var i=0,r=this.yo;i<r.length;i++)r[i].O();this.qa.O(),this.ko.O(),null===(e=this.Co)||void 0===e||e.O()},t.prototype.$=function(){return gk(e.prototype.$.call(this))},t.prototype.q=function(e){if("Line"!==this.Ao&&"Area"!==this.Ao&&"Baseline"!==this.Ao||!this.ki.crosshairMarkerVisible)return null;var t=this.tt.io(e);return null===t?null:{D:t.X[3],C:this.Ho(),Z:this.Yo(),Y:this.Ko(e)}},t.prototype.Va=function(){return this.ki.title},t.prototype.U=function(){return this.ki.visible},t.prototype.qo=function(){return!XC(this.$().hs())},t.prototype.Uo=function(e,t){if(!_k(e)||!_k(t)||this.tt.ti())return null;var n=this.tt.fo(e,t,"Line"===this.Ao||"Area"===this.Ao||"Baseline"===this.Ao||"Histogram"===this.Ao?[3]:[2,1]),i=null!==n?new oC(n.mo,n.po):null;if("Histogram"===this.Ya()){var r=this.ki.base,a=new oC(r,r);i=null!==i?i._n(a):a}return new qx(i,this.Ci.Ba())},t.prototype.Ho=function(){switch(this.Ao){case"Line":case"Area":case"Baseline":return this.ki.crosshairMarkerRadius}return 0},t.prototype.Yo=function(){switch(this.Ao){case"Line":case"Area":case"Baseline":var e=this.ki.crosshairMarkerBorderColor;if(0!==e.length)return e}return null},t.prototype.Ko=function(e){switch(this.Ao){case"Line":case"Area":case"Baseline":var t=this.ki.crosshairMarkerBackgroundColor;if(0!==t.length)return t}return this.tu().cu(e).fu},t.prototype.To=function(){switch(this.ki.priceFormat.type){case"custom":this.Zn={format:this.ki.priceFormat.formatter};break;case"volume":this.Zn=new KC(this.ki.priceFormat.precision);break;case"percent":this.Zn=new rC(this.ki.priceFormat.precision);break;default:var e=Math.pow(10,this.ki.priceFormat.precision);this.Zn=new iC(e,this.ki.priceFormat.minMove*e)}null!==this.ui&&this.ui.es()},t.prototype.Vo=function(){var e=this,t=this.vt().j();if(t.ti()||0===this.tt.Je())this.So=[];else{var n=gk(this.tt.eo());this.So=this.xo.map(function(i,r){var a=gk(t.br(i.time,!0));return{time:gk(e.tt.oo(a,a<n?1:-1)).Ph,position:i.position,shape:i.shape,color:i.color,id:i.id,ya:r,text:i.text,size:i.size}})}},t.prototype.Bo=function(){switch(this.Ci=new Ux(this,this.vt()),this.Ao){case"Bar":this.Ai=new dx(this,this.vt());break;case"Candlestick":this.Ai=new gx(this,this.vt());break;case"Line":this.Ai=new wx(this,this.vt());break;case"Area":this.Ai=new lx(this,this.vt());break;case"Baseline":this.Ai=new px(this,this.vt());break;case"Histogram":this.Ai=new _x(this,this.vt());break;default:throw Error("Unknown chart style assigned: "+this.Ao)}},t}(Kx),iS=function(){function e(e){this.ki=e}return e.prototype.$o=function(e,t,n){var i=e;if(0===this.ki.mode)return i;var r=n.xi(),a=r.H();if(null===a)return i;var o=r.K(e,a),s=n.Vs().filter(function(e){return e instanceof nS}).reduce(function(e,i){if(n.Uu(i)||!i.U())return e;var r=i.$(),a=i.Hi();if(r.ti()||!a.Eh(t))return e;var o=a.io(t);if(null===o)return e;var s=vk(i.H());return e.concat([r.K(o.X[3],s.X)])},[]);return 0===s.length?i:(s.sort(function(e,t){return Math.abs(e-o)-Math.abs(t-o)}),r.Si(s[0],a))},e}(),rS=function(){function e(){this.tt=null}return e.prototype._=function(e){this.tt=e},e.prototype.h=function(e,t,n,i){var r=this;if(null!==this.tt){var a=Math.max(1,Math.floor(t));e.lineWidth=a;var o=Math.ceil(this.tt.ht*t),s=Math.ceil(this.tt.st*t);!function(e,t){e.save(),e.lineWidth%2&&e.translate(.5,.5),t(),e.restore(
1)}(e,function(){var n=gk(r.tt);if(n.Xo){e.strokeStyle=n.Zo,lk(e,n.Jo),e.beginPath();for(var i=0,l=n.Go;i<l.length;i++){var c=Math.round(l[i].An*t);e.moveTo(c,-a),e.lineTo(c,o+a)}e.stroke()}if(n.Qo){e.strokeStyle=n.tl,lk(e,n.il),e.beginPath();for(var u=0,d=n.nl;u<d.length;u++){var h=Math.round(d[u].An*t);e.moveTo(-a,h),e.lineTo(s+a,h)}e.stroke()}})}},e}(),aS=function(){function e(e){this.ot=new rS,this.L=!0,this.vi=e}return e.prototype.O=function(){this.L=!0},e.prototype.P=function(e,t){if(this.L){var n=this.vi.vt().ct().grid,i={ht:e,st:t,Qo:n.horzLines.visible,Xo:n.vertLines.visible,tl:n.horzLines.color,Zo:n.vertLines.color,il:n.horzLines.style,Jo:n.vertLines.style,nl:this.vi.xi().Fn(),Go:this.vi.vt().j().Fn()||[]};this.ot._(i),this.L=!1}return this.ot},e}(),oS=function(){function e(e){this.Ai=new aS(e)}return e.prototype.sl=function(){return this.Ai},e}(),sS=function(){function e(e,t){this.Hn=[],this.hl=new Map,this.En=0,this.$h=0,this.rl=1e3,this.Yn=null,this.el=new aC,this.ul=e,this.hi=t,this.al=new oS(this);var n=t.ct();this.ol=this.ll("left",n.leftPriceScale),this.fl=this.ll("right",n.rightPriceScale),this.ol.bs().Ji(this.cl.bind(this,this.ol),this),this.fl.bs().Ji(this.cl.bind(this,this.ol),this),this.vl(n)}return e.prototype.vl=function(e){if(e.leftPriceScale&&this.ol.rs(e.leftPriceScale),e.rightPriceScale&&this.fl.rs(e.rightPriceScale),e.localization&&(this.ol.es(),this.fl.es()),e.overlayPriceScales)for(var t=0,n=Array.from(this.hl.values());t<n.length;t++){var i=gk(n[t][0].$());i.rs(e.overlayPriceScales),e.localization&&i.es()}},e.prototype._l=function(e){switch(e){case"left":return this.ol;case"right":return this.fl}return this.hl.has(e)?mk(this.hl.get(e))[0].$():null},e.prototype.en=function(){this.vt().dl().sn(this),this.ol.bs().sn(this),this.fl.bs().sn(this),this.Hn.forEach(function(e){e.en&&e.en()}),this.el.hn()},e.prototype.wl=function(){return this.rl},e.prototype.Ml=function(e){this.rl=e},e.prototype.vt=function(){return this.hi},e.prototype.wt=function(){return this.$h},e.prototype.Mt=function(){return this.En},e.prototype.Dr=function(e){this.$h=e,this.bl()},e.prototype.ps=function(e){var t=this;this.En=e,this.ol.ps(e),this.fl.ps(e),this.Hn.forEach(function(n){if(t.Uu(n)){var i=n.$();null!==i&&i.ps(e)}}),this.bl()},e.prototype.Vs=function(){return this.Hn},e.prototype.Uu=function(e){var t=e.$();return null===t||this.ol!==t&&this.fl!==t},e.prototype.Ws=function(e,t,n){var i=void 0!==n?n:this.pl().ml+1;this.gl(e,t,i)},e.prototype.Ps=function(e){var t=this.Hn.indexOf(e);pk(-1!==t,"removeDataSource: invalid data source"),this.Hn.splice(t,1);var n=gk(e.$()).hs();if(this.hl.has(n)){var i=mk(this.hl.get(n)),r=i.indexOf(e);-1!==r&&(i.splice(r,1),0===i.length&&this.hl.delete(n))}var a=e.$();a&&a.Vs().indexOf(e)>=0&&a.Ps(e),null!==a&&(a.zs(),this.yl(a)),this.Yn=null},e.prototype.Hu=function(e){return e===this.ol?"left":e===this.fl?"right":"overlay"},e.prototype.kl=function(){return this.ol},e.prototype.Cl=function(){return this.fl},e.prototype.Nl=function(e,t){e.js(t)},e.prototype.xl=function(e,t){e.qs(t),this.bl()},e.prototype.Sl=function(e){e.Us()},e.prototype.Dl=function(e,t){e.Hs(t)},e.prototype.Al=function(e,t){e.Ys(t),this.bl()},e.prototype.Tl=function(e){e.Ks()},e.prototype.bl=function(){this.Hn.forEach(function(e){e.Ii()})},e.prototype.xi=function(){var e=null;return this.hi.ct().rightPriceScale.visible&&0!==this.fl.Vs().length?e=this.fl:this.hi.ct().leftPriceScale.visible&&0!==this.ol.Vs().length?e=this.ol:0!==this.Hn.length&&(e=this.Hn[0].$()),null===e&&(e=this.fl),e},e.prototype.yl=function(e){null!==e&&e.fs()&&this.Bl(e)},e.prototype.Ll=function(e){var t=this.ul.mr();e.us({_s:!0}),null!==t&&e.th(t),this.bl()},e.prototype.Fl=function(){this.Bl(this.ol),this.Bl(this.fl)},e.prototype.El=function(){var e=this;this.yl(this.ol),this.yl(this.fl),this.Hn.forEach(function(t){e.Uu(t)&&e.yl(t.$())}),this.bl(),this.hi.Or()},e.prototype.Os=function(){return null===this.Yn&&(this.Yn=kC(this.Hn)),this.Yn},e.prototype.Vl=function(){return this.el},e.prototype.Ol=function(){return this.al},e.prototype.Bl=function(e){var t=e.Qs();if(t&&t.length>0&&!this.ul.ti()){var n=this.ul.mr();null!==n&&e.th(n)}e.Ii()},e.prototype.pl=function(){var e=this.Os();if(0===e.length)return{Wl:0,ml:0};for(var t=0,n=0,i=0;i<e.length;i++){var r=e[i].oi();null!==r&&(r<t&&(t=r),r>n&&(n=r))}return{Wl:t,ml:n}},e.prototype.gl=function(e,t,n){var i=this._l(t);if(null===i&&(i=this.ll(t,this.hi.ct().overlayPriceScales)),this.Hn.push(e),!XC(t)){var r=this.hl.get(t)||[];r.push(e),this.hl.set(t,r)}i.Ws(e),e.fi(i),e.li(n),this.yl(i),this.Yn=null},e.prototype.cl=function(e,t,n){t.os!==n.os&&this.Bl(e)},e.prototype.ll=function(e,t){var n=hk({visible:!0,autoScale:!0},Ck(t)),i=new DC(e,n,this.hi.ct().layout,this.hi.ct().localization);return i.ps(this.Mt()),i},e}(),lS=function(e){function t(t){var n=e.call(this)||this;return n.zl=new Map,n.tt=t,n}return dk(t,e),t.prototype.u=function(e){},t.prototype.l=function(e){if(this.tt.U){e.save();for(var t=0,n=0,i=this.tt.Pl;n<i.length;n++)if(0!==(l=i[n]).Et.length){e.font=l.Nt;var r=this.Rl(e,l.Et);l.Ur=r>this.tt.wt?this.tt.wt/r:1,t+=l.Il*l.Ur}var a=0;switch(this.tt.jl){case"top":a=0;break;case"center":a=Math.max((this.tt.Mt-t)/2,0);break;case"bottom":a=Math.max(this.tt.Mt-t,0)}e.fillStyle=this.tt.et;for(var o=0,s=this.tt.Pl;o<s.length;o++){var l=s[o];e.save();var c=0;switch(this.tt.ql){case"left":e.textAlign="left",c=l.Il/2;break;case"center":e.textAlign="center",c=this.tt.wt/2;break;case"right":e.textAlign="right",c=this.tt.wt-1-l.Il/2}e.translate(c,a),e.textBaseline="top",e.font=l.Nt,e.scale(l.Ur,l.Ur),e.fillText(l.Et,0,l.Ul),e.restore(
1),a+=l.Il*l.Ur}e.restore()}},t.prototype.Rl=function(e,t){var n=this.Hl(e.font),i=n.get(t);return void 0===i&&(i=e.measureText(t).width,n.set(t,i)),i},t.prototype.Hl=function(e){var t=this.zl.get(e);return void 0===t&&(t=new Map,this.zl.set(e,t)),t},t}(Dk),cS=function(){function e(e){this.L=!0,this.at={U:!1,et:"",Mt:0,wt:0,Pl:[],jl:"center",ql:"center"},this.ot=new lS(this.at),this.lt=e}return e.prototype.O=function(){this.L=!0},e.prototype.P=function(e,t){return this.L&&(this.R(e,t),this.L=!1),this.ot},e.prototype.R=function(e,t){var n=this.lt.ct(),i=this.at;i.U=n.visible,i.U&&(i.et=n.color,i.wt=t,i.Mt=e,i.ql=n.horzAlign,i.jl=n.vertAlign,i.Pl=[{Et:n.text,Nt:qC(n.fontSize,n.fontFamily,n.fontStyle),Il:1.2*n.fontSize,Ul:0,Ur:0}])},e}(),uS=function(e){function t(t,n){var i=e.call(this)||this;return i.ki=n,i.Ai=new cS(i),i}return dk(t,e),t.prototype.Pi=function(){return[]},t.prototype.zi=function(){return[this.Ai]},t.prototype.ct=function(){return this.ki},t.prototype.Ii=function(){this.Ai.O()},t}(eC),dS=function(){function e(e,t){this.Yl=[],this.Kl=[],this.$h=0,this.$l=null,this.Xl=null,this.Zl=new aC,this.Jl=new aC,this.Gl=null,this.Ql=e,this.ki=t,this.tf=new GC(this),this.ul=new VC(this,t.timeScale,this.ki.localization),this.V=new tC(this,t.crosshair),this.if=new iS(t.crosshair),this.nf=new uS(this,t.watermark),this.sf(),this.Yl[0].Ml(2e3),this.hf=this.rf(0),this.ef=this.rf(1)}return e.prototype.uf=function(){this.af(new QC(3))},e.prototype.Or=function(){this.af(new QC(2))},e.prototype.jo=function(){this.af(new QC(1))},e.prototype.Fo=function(e){var t=this.lf(e);this.af(t)},e.prototype.ff=function(){return this.Xl},e.prototype.cf=function(e){var t=this.Xl;this.Xl=e,null!==t&&this.Fo(t.vf),null!==e&&this.Fo(e.vf)},e.prototype.ct=function(){return this.ki},e.prototype.rs=function(e){yk(this.ki,e),this.Yl.forEach(function(t){return t.vl(e)}),void 0!==e.timeScale&&this.ul.rs(e.timeScale),void 0!==e.localization&&this.ul.cr(e.localization),(e.leftPriceScale||e.rightPriceScale)&&this.Zl.hn(),this.hf=this.rf(0),this.ef=this.rf(1),this.uf()},e.prototype._f=function(e,t){var n=this.df(e);null!==n&&(n.$.rs(t),this.Zl.hn())},e.prototype.df=function(e){for(var t=0,n=this.Yl;t<n.length;t++){var i=n[t],r=i._l(e);if(null!==r)return{ft:i,$:r}}return null},e.prototype.j=function(){return this.ul},e.prototype.wf=function(){return this.Yl},e.prototype.Mf=function(){return this.nf},e.prototype.bf=function(){return this.V},e.prototype.mf=function(){return this.Jl},e.prototype.pf=function(e,t){e.ps(t),this.Vr()},e.prototype.Dr=function(e){this.$h=e,this.ul.Dr(this.$h),this.Yl.forEach(function(t){return t.Dr(e)}),this.Vr()},e.prototype.sf=function(e){var t=new sS(this.ul,this);void 0!==e?this.Yl.splice(e,0,t):this.Yl.push(t);var n=void 0===e?this.Yl.length-1:e,i=new QC(3);return i.be(n,{me:0,_s:!0}),this.af(i),t},e.prototype.Nl=function(e,t,n){e.Nl(t,n)},e.prototype.xl=function(e,t,n){e.xl(t,n),this.Eo(),this.af(this.gf(e,2))},e.prototype.Sl=function(e,t){e.Sl(t),this.af(this.gf(e,2))},e.prototype.Dl=function(e,t,n){t.fs()||e.Dl(t,n)},e.prototype.Al=function(e,t,n){t.fs()||(e.Al(t,n),this.Eo(),this.af(this.gf(e,2)))},e.prototype.Tl=function(e,t){t.fs()||(e.Tl(t),this.af(this.gf(e,2)))},e.prototype.Ll=function(e,t){e.Ll(t),this.af(this.gf(e,2))},e.prototype.yf=function(e){this.ul.js(e)},e.prototype.kf=function(e,t){var n=this.j();if(!n.ti()&&0!==t){var i=n.wt();e=Math.max(1,Math.min(e,i)),n.Ur(e,t),this.Vr()}},e.prototype.Cf=function(e){this.Nf(0),this.xf(e),this.Sf()},e.prototype.Df=function(e){this.ul.qs(e),this.Vr()},e.prototype.Af=function(){this.ul.Us(),this.Or()},e.prototype.Nf=function(e){this.$l=e,this.ul.Hs(e)},e.prototype.xf=function(e){var t=!1;return null!==this.$l&&Math.abs(e-this.$l)>20&&(this.$l=null,t=!0),this.ul.Ys(e),this.Vr(),t},e.prototype.Sf=function(){this.ul.Ks(),this.Or(),this.$l=null},e.prototype.W=function(){return this.Kl},e.prototype.Tf=function(e,t,n){this.V.Ti(e,t);var i=NaN,r=this.ul.Fr(e),a=this.ul.mr();null!==a&&(r=Math.min(Math.max(a.hh(),r),a.rh()));var o=n.xi(),s=o.H();null!==s&&(i=o.Si(t,s)),i=this.if.$o(i,r,n),this.V.Ei(r,i,n),this.jo(),this.Jl.hn(this.V.I(),{x:e,y:t})},e.prototype.Bf=function(){this.bf().Oi(),this.jo(),this.Jl.hn(null,null)},e.prototype.Eo=function(){var e=this.V.ft();if(null!==e){var t=this.V.Li(),n=this.V.Fi();this.Tf(t,n,e)}this.V.Ii()},e.prototype.Lf=function(e,t,n){var i=this.ul.ri(0);void 0!==t&&void 0!==n&&this.ul.O(t,n);var r=this.ul.ri(0),a=this.ul.Br(),o=this.ul.mr();if(null!==o&&null!==i&&null!==r){var s=o.Eh(a),l=null!==e&&e>a&&!(i.Dh>r.Dh),c=s&&this.ul.ct().shiftVisibleRangeOnNewBar;if(l&&!c){var u=e-a;this.ul.Mr(this.ul.Pr()-u)}}this.ul.qr(e)},e.prototype.Oo=function(e){null!==e&&e.El()},e.prototype.qu=function(e){var t=this.Yl.find(function(t){return t.Os().includes(e)});return void 0===t?null:t},e.prototype.Vr=function(){this.nf.Ii(),this.Yl.forEach(function(e){return e.El()}),this.Eo()},e.prototype.en=function(){this.Yl.forEach(function(e){return e.en()}),this.Yl.length=0,this.ki.localization.priceFormatter=void 0,this.ki.localization.timeFormatter=void 0},e.prototype.Ff=function(){return this.tf},e.prototype.Yu=function(){return this.tf.ct()},e.prototype.dl=function(){return this.Zl},e.prototype.Ef=function(e,t){var n=this.Vf(t,e,this.Yl[0]);return this.Kl.push(n),1===this.Kl.length?this.uf():this.Or(),n},e.prototype.Of=function(e){var t=this.qu(e),n=this.Kl.indexOf(e);pk(-1!==n,"Series not found"),this.Kl.splice(n,1),gk(t).Ps(e),e.en&&e.en()},e.prototype.Lo=function(e,t){var n=gk(this.qu(e));n.Ps(e);var i=this.df(t);if(null===i){var r=e.oi();n.Ws(e,t,r)}else r=i.ft===n?e.oi():void 0,i.ft.Ws(e,t,r)},e.prototype.Qr=function(){var e=new QC(2);e.ye(),this.af(e)},e.prototype.Wf=function(e){var t=new QC(2);t.Ce(e),this.af(t)},e.prototype.Ne=function(){var e=new QC(2);e.Ne(),this.af(e)},e.prototype.wr=function(e){var t=new QC(2);t.wr(e),this.af(t)},e.prototype.Mr=function(e){var t=new QC(2);t.Mr(e),this.af(t)},e.prototype.zf=function(){return this.ki.rightPriceScale.visible?"right":"left"},e.prototype.Pf=function(){return this.ef},e.prototype.Rf=function(){return this.hf},e.prototype.J=function(e){var t=this.ef,n=this.hf;if(t===n)return t;if(e=Math.max(0,Math.min(100,Math.round(100*e))),null===this.Gl||this.Gl.Ve!==n||this.Gl.Oe!==t)this.Gl={Ve:n,Oe:t,If:new Map};else{var i=this.Gl.If.get(e);if(void 0!==i)return i}var r=function(e,t,n){var i=Yk(e),r=i[0],a=i[1],o=i[2],s=i[3],l=Yk(t),c=l[1],u=l[2],d=l[3],h=[Hk(r+n*(l[0]-r)),Hk(a+n*(c-a)),Hk(o+n*(u-o)),jk(s+n*(d-s))];return"rgba("+h[0]+", "+h[1]+", "+h[2]+", "+h[3]+")"}(n,t,e/100);return this.Gl.If.set(e,r),r},e.prototype.gf=function(e,t){var n=new QC(t);if(null!==e){var i=this.Yl.indexOf(e);n.be(i,{me:t})}return n},e.prototype.lf=function(e,t){return void 0===t&&(t=2),this.gf(this.qu(e),t)},e.prototype.af=function(e){this.Ql&&this.Ql(e),this.Yl.forEach(function(e){return e.Ol().sl().O()})},e.prototype.Vf=function(e,t,n){var i=new nS(this,e,t),r=void 0!==e.priceScaleId?e.priceScaleId:this.zf();return n.Ws(i,r),XC(r)||i.rs(e),i},e.prototype.rf=function(e){var t=this.ki.layout;
1return"gradient"===t.background.type?0===e?t.background.topColor:t.background.bottomColor:t.background.color},e}(),hS=function(){function e(e,t){this.st=e,this.ht=t}return e.prototype.on=function(e){return this.st===e.st&&this.ht===e.ht},e}();function fS(e){return e.ownerDocument&&e.ownerDocument.defaultView&&e.ownerDocument.defaultView.devicePixelRatio||1}function pS(e){var t=gk(e.getContext("2d"));return t.setTransform(1,0,0,1,0,0),t}function mS(e,t){var n=e.createElement("canvas"),i=fS(n);return n.style.width=t.st+"px",n.style.height=t.ht+"px",n.width=t.st*i,n.height=t.ht*i,n}function gS(e,t){var n=gk(e.ownerDocument).createElement("canvas");e.appendChild(n);var i,r=(void 0===i&&(i=ok),new sk(n,i));return r.resizeCanvas({width:t.st,height:t.ht}),r}function vS(e,t){return e.jf-t.jf}function yS(e,t,n){var i=(e.jf-t.jf)/(e.S-t.S);return Math.sign(i)*Math.min(Math.abs(i),n)}var bS=function(){function e(e,t,n,i){this.qf=null,this.Uf=null,this.Hf=null,this.Yf=null,this.Kf=null,this.$f=0,this.Xf=0,this.Zf=!1,this.Jf=e,this.Gf=t,this.Qf=n,this.Yi=i}return e.prototype.tc=function(e,t){if(null!==this.qf){if(this.qf.S===t)return void(this.qf.jf=e);if(Math.abs(this.qf.jf-e)<this.Yi)return}this.Yf=this.Hf,this.Hf=this.Uf,this.Uf=this.qf,this.qf={S:t,jf:e}},e.prototype.ia=function(e,t){if(null!==this.qf&&null!==this.Uf&&!(t-this.qf.S>50)){var n=0,i=yS(this.qf,this.Uf,this.Gf),r=vS(this.qf,this.Uf),a=[i],o=[r];if(n+=r,null!==this.Hf){var s=yS(this.Uf,this.Hf,this.Gf);if(Math.sign(s)===Math.sign(i)){var l=vS(this.Uf,this.Hf);if(a.push(s),o.push(l),n+=l,null!==this.Yf){var c=yS(this.Hf,this.Yf,this.Gf);if(Math.sign(c)===Math.sign(i)){var u=vS(this.Hf,this.Yf);a.push(c),o.push(u),n+=u}}}}for(var d,h,f=0,p=0;p<a.length;++p)f+=o[p]/n*a[p];Math.abs(f)<this.Jf||(this.Kf={jf:e,S:t},this.Xf=f,this.$f=(d=Math.abs(f),h=Math.log(this.Qf),Math.log(1*h/-d)/h))}},e.prototype.ic=function(e){var t=gk(this.Kf);return t.jf+this.Xf*(Math.pow(this.Qf,e-t.S)-1)/Math.log(this.Qf)},e.prototype.nc=function(e){return null===this.Kf||this.sc(e)===this.$f},e.prototype.hc=function(){return this.Zf},e.prototype.rc=function(){this.Zf=!0},e.prototype.sc=function(e){var t=e-gk(this.Kf).S;return Math.min(t,this.$f)},e}(),_S="undefined"!=typeof window,wS=function(){if(!_S)return!1;var e=!!navigator.maxTouchPoints||!!navigator.msMaxTouchPoints||!!_S&&("ontouchstart"in window||Boolean(window.DocumentTouch&&document instanceof window.DocumentTouch));return"onorientationchange"in window&&e}(),kS=function(){if(!_S)return!1;var e=/Android/i.test(navigator.userAgent),t=/iPhone|iPad|iPod|AppleWebKit.+Mobile/i.test(navigator.userAgent);return e||t}(),CS=function(){function e(e,t,n){this.ec=0,this.uc=null,this.ac=null,this.oc=!1,this.lc=null,this.fc=!1,this.cc=!1,this.vc=null,this._c=null,this.dc=null,this.wc=null,this.Mc=0,this.bc=!1,this.mc=!1,this.gc=!1,this.yc=e,this.kc=t,this.ki=n,this.Cc()}return e.prototype.en=function(){null!==this.vc&&(this.vc(),this.vc=null),null!==this._c&&(this._c(),this._c=null),null!==this.dc&&(this.dc(),this.dc=null),this.Nc(),this.xc()},e.prototype.Sc=function(e){var t=this;this._c&&this._c();var n=this.Dc.bind(this);this._c=function(){t.yc.removeEventListener("mousemove",n)},this.yc.addEventListener("mousemove",n),MS(e)&&this.Dc(e);var i=this.Ac(e);this.Tc(i,this.kc.Bc)},e.prototype.xc=function(){null!==this.uc&&clearTimeout(this.uc),this.ec=0,this.uc=null},e.prototype.Dc=function(e){if(!this.gc||MS(e)){var t=this.Ac(e);this.Tc(t,this.kc.Lc)}},e.prototype.Fc=function(e){if((!("button"in e)||0===e.button)&&null===this.wc){var t=MS(e);if(!this.mc||!t){this.bc=!0;var n=this.Ac(e),i=vk(this.lc),r=Math.abs(i.p-n.Ec),a=Math.abs(i.g-n.Vc),o=r+a>5;if(o||!t){if(o&&!this.fc&&t){var s=.5*r;a>=s&&!this.ki.Oc||s>a&&!this.ki.Wc||(this.mc=!0)}o&&(this.fc=!0,this.cc=!0,t&&this.Nc()),this.mc||(this.Tc(n,this.kc.zc),t&&DS(e))}}}},e.prototype.Pc=function(e){if(!("button"in e)||0===e.button){var t=this.Ac(e);this.Nc(),this.lc=null,this.gc=!1,this.dc&&(this.dc(),this.dc=null),MS(e)&&this.Rc(e),this.Tc(t,this.kc.Ic),++this.ec,this.uc&&this.ec>1?(this.Tc(t,this.kc.jc),this.xc()):this.cc||this.Tc(t,this.kc.qc),MS(e)&&(DS(e),this.Rc(e),0===e.touches.length&&(this.oc=!1))}},e.prototype.Nc=function(){null!==this.ac&&(clearTimeout(this.ac),this.ac=null)},e.prototype.Uc=function(e){if(!("button"in e)||0===e.button){var t=this.Ac(e);this.cc=!1,this.fc=!1,this.mc=!1,MS(e)&&this.Sc(e),this.lc={p:t.Ec,g:t.Vc},this.dc&&(this.dc(),this.dc=null);var n=this.Fc.bind(this),i=this.Pc.bind(this),r=this.yc.ownerDocument.documentElement;this.dc=function(){r.removeEventListener("touchmove",n),r.removeEventListener("touchend",i),r.removeEventListener("mousemove",n),r.removeEventListener("mouseup",i)},r.addEventListener("touchmove",n,{passive:!1}),r.addEventListener("touchend",i,{passive:!1}),this.Nc(),MS(e)&&1===e.touches.length?this.ac=setTimeout(this.Hc.bind(this,e),240):(r.addEventListener("mousemove",n),r.addEventListener("mouseup",i)),this.gc=!0,this.Tc(t,this.kc.Yc),this.uc||(this.ec=0,this.uc=setTimeout(this.xc.bind(this),500))}},e.prototype.Cc=function(){var e=this;this.yc.addEventListener("mouseenter",this.Sc.bind(this)),this.yc.addEventListener("touchcancel",this.Nc.bind(this));var t=this.yc.ownerDocument,n=function(t){e.kc.Kc&&(t.composed&&e.yc.contains(t.composedPath()[0])||t.target&&e.yc.contains(t.target)||e.kc.Kc())};this.vc=function(){t.removeEventListener("mousedown",n),t.removeEventListener("touchstart",n)},t.addEventListener("mousedown",n),t.addEventListener("touchstart",n,{passive:!0}),this.yc.addEventListener("mouseleave",this.Rc.bind(this)),this.yc.addEventListener("touchstart",this.Uc.bind(this),{passive:!0}),wS||this.yc.addEventListener("mousedown",this.Uc.bind(this)),this.$c(),this.yc.addEventListener("touchmove",function(){},{passive:!1})},e.prototype.$c=function(){var e=this;void 0===this.kc.Xc&&void 0===this.kc.Zc&&void 0===this.kc.Jc||(this.yc.addEventListener("touchstart",function(t){return e.Gc(t.touches)},{passive:!0}),this.yc.addEventListener("touchmove",function(t){if(2===t.touches.length&&null!==e.wc&&void 0!==e.kc.Zc){var n=SS(t.touches[0],t.touches[1])/e.Mc;e.kc.Zc(e.wc,n),DS(t)}},{passive:!1}),this.yc.addEventListener("touchend",function(t){e.Gc(t.touches)}))},e.prototype.Gc=function(e){1===e.length&&(this.bc=!1),2!==e.length||this.bc||this.oc?this.Qc():this.tv(e)},e.prototype.tv=function(e){var t=xS(this.yc);this.wc={p:(e[0].clientX-t.left+(e[1].clientX-t.left))/2,g:(e[0].clientY-t.top+(e[1].clientY-t.top))/2},this.Mc=SS(e[0],e[1]),void 0!==this.kc.Xc&&this.kc.Xc(),this.Nc()},e.prototype.Qc=function(){null!==this.wc&&(this.wc=null,void 0!==this.kc.Jc&&this.kc.Jc())},e.prototype.Rc=function(e){this._c&&this._c();var t=this.Ac(e);this.Tc(t,this.kc.iv)},e.prototype.Hc=function(e){var t=this.Ac(e);this.Tc(t,this.kc.nv),this.cc=!0,this.oc=!0}
1,e.prototype.Tc=function(e,t){t&&t.call(this.kc,e)},e.prototype.Ac=function(e){var t;t="touches"in e&&e.touches.length?e.touches[0]:"changedTouches"in e&&e.changedTouches.length?e.changedTouches[0]:e;var n=xS(this.yc);return{sv:t.clientX,hv:t.clientY,Ec:t.pageX,Vc:t.pageY,rv:t.screenX,ev:t.screenY,uv:t.clientX-n.left,av:t.clientY-n.top,ov:e.ctrlKey,lv:e.altKey,fv:e.shiftKey,cv:e.metaKey,ke:e.type.startsWith("mouse")?"mouse":"touch",vv:e.view}},e}();function xS(e){return e.getBoundingClientRect()||{left:0,top:0}}function SS(e,t){var n=e.clientX-t.clientX,i=e.clientY-t.clientY;return Math.sqrt(n*n+i*i)}function MS(e){return Boolean(e.touches)}function DS(e){e.cancelable&&e.preventDefault()}var TS=function(){function e(e,t,n,i){this.Pu=new Cx(200),this.fe=0,this._v="",this.ma="",this.Vu=[],this.dv=new Map,this.fe=e,this._v=t,this.ma=qC(e,n,i)}return e.prototype.en=function(){this.Pu.Ou(),this.Vu=[],this.dv.clear()},e.prototype.wv=function(e,t,n,i,r){var a=this.Mv(e,t);if("left"!==r){var o=fS(e.canvas);n-=Math.floor(a.bv*o)}i-=Math.floor(a.Mt/2),e.drawImage(a.mv,n,i,a.wt,a.Mt)},e.prototype.Mv=function(e,t){var n,i=this;if(this.dv.has(t))n=mk(this.dv.get(t));else{if(this.Vu.length>=200){var r=mk(this.Vu.shift());this.dv.delete(r)}var a=fS(e.canvas),o=Math.ceil(this.fe/4.5),s=Math.round(this.fe/10),l=Math.ceil(this.Pu.Vt(e,t)),c=uC(Math.round(l+2*o)),u=uC(this.fe+2*o),d=mS(document,new hS(c,u));n={Et:t,bv:Math.round(Math.max(1,l)),wt:Math.ceil(c*a),Mt:Math.ceil(u*a),mv:d},0!==l&&(this.Vu.push(n.Et),this.dv.set(n.Et,n)),Uk(e=pS(n.mv),a,function(){e.font=i.ma,e.fillStyle=i._v,e.fillText(t,0,u-o-s)})}return n},e}(),ES=function(){function e(e,t,n,i){var r=this;this.Gt=null,this.pv=null,this.gv=null,this.yv=!1,this.kv=new Cx(50),this.Cv=new TS(11,"#000"),this._v=null,this.ma=null,this.Nv=0,this.xv=function(){r.Sv(r.tf.ct()),r.vi.Dv().vt().Or()},this.Av=function(){r.vi.Dv().vt().Or()}
1,this.vi=e,this.ki=t,this.tf=n,this.Tv="left"===i,this.Bv=document.createElement("div"),this.Bv.style.height="100%",this.Bv.style.overflow="hidden",this.Bv.style.width="25px",this.Bv.style.left="0",this.Bv.style.position="relative",this.Lv=gS(this.Bv,new hS(16,16)),this.Lv.subscribeCanvasConfigured(this.xv);var a=this.Lv.canvas;a.style.position="absolute",a.style.zIndex="1",a.style.left="0",a.style.top="0",this.Fv=gS(this.Bv,new hS(16,16)),this.Fv.subscribeCanvasConfigured(this.Av);var o=this.Fv.canvas;o.style.position="absolute",o.style.zIndex="2",o.style.left="0",o.style.top="0";var s={Yc:this.Ev.bind(this),zc:this.Vv.bind(this),Kc:this.Ov.bind(this),Ic:this.Wv.bind(this),jc:this.zv.bind(this),Bc:this.Pv.bind(this),iv:this.Rv.bind(this)};this.Iv=new CS(this.Fv.canvas,s,{Oc:!1,Wc:!0})}return e.prototype.en=function(){this.Iv.en(),this.Fv.unsubscribeCanvasConfigured(this.Av),this.Fv.destroy(),this.Lv.unsubscribeCanvasConfigured(this.xv),this.Lv.destroy(),null!==this.Gt&&this.Gt.Is().sn(this),this.Gt=null,null!==this.gv&&(clearTimeout(this.gv),this.gv=null),this.Cv.en()},e.prototype.jv=function(){return this.Bv},e.prototype.N=function(){return gk(this.Gt).ct().borderColor},e.prototype.qv=function(){return this.ki.textColor},e.prototype.Wt=function(){return this.ki.fontSize},e.prototype.Uv=function(){return qC(this.Wt(),this.ki.fontFamily)},e.prototype.Hv=function(){var e=this.tf.ct(),t=this.ma!==e.Nt;return(this._v!==e.et||t)&&(this.Sv(e),this._v=e.et),t&&(this.kv.Ou(),this.ma=e.Nt),e},e.prototype.Yv=function(){if(null===this.Gt)return 0;var e=34,t=this.Hv(),n=pS(this.Lv.canvas),i=this.Gt.Fn();n.font=this.Uv(),i.length>0&&(e=Math.max(this.kv.Vt(n,i[0].Tn),this.kv.Vt(n,i[i.length-1].Tn)));for(var r=this.Kv(),a=r.length;a--;){var o=this.kv.Vt(n,r[a].Et());o>e&&(e=o)}var s=this.Gt.H();if(null!==s&&null!==this.pv){var l=this.Gt.Si(1,s),c=this.Gt.Si(this.pv.ht-2,s);e=Math.max(e,this.kv.Vt(n,this.Gt.ii(Math.floor(Math.min(l,c))+.11111111111111,s)),this.kv.Vt(n,this.Gt.ii(Math.ceil(Math.max(l,c))-.11111111111111,s)))}var u=Math.ceil(t.At+t.Dt+t.Lt+t.Ft+e);return u+u%2},e.prototype.$v=function(e){if(e.st<0||e.ht<0)throw new Error("Try to set invalid size to PriceAxisWidget "+JSON.stringify(e));null!==this.pv&&this.pv.on(e)||(this.pv=e,this.Lv.resizeCanvas({width:e.st,height:e.ht}),this.Fv.resizeCanvas({width:e.st,height:e.ht}),this.Bv.style.width=e.st+"px",this.Bv.style.height=e.ht+"px",this.Bv.style.minWidth=e.st+"px")},e.prototype.Xv=function(){return gk(this.pv).st},e.prototype.fi=function(e){this.Gt!==e&&(null!==this.Gt&&this.Gt.Is().sn(this),this.Gt=e,e.Is().Ji(this.qn.bind(this),this))},e.prototype.$=function(){return this.Gt},e.prototype.Ou=function(){var e=this.vi.Zv();this.vi.Dv().vt().Ll(e,gk(this.$()))},e.prototype.Jv=function(e){if(null!==this.pv){if(1!==e){var t=pS(this.Lv.canvas);this.Gv(),this.Qv(t,this.Lv.pixelRatio),this.yu(t,this.Lv.pixelRatio),this.t_(t,this.Lv.pixelRatio),this.i_(t,this.Lv.pixelRatio)}var n=pS(this.Fv.canvas),i=this.pv.st,r=this.pv.ht;Uk(n,this.Fv.pixelRatio,function(){n.clearRect(0,0,i,r)}),this.n_(n,this.Fv.pixelRatio)}},e.prototype.s_=function(){return this.Lv.canvas},e.prototype.Ev=function(e){if(null!==this.Gt&&!this.Gt.ti()&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var t=this.vi.Dv().vt(),n=this.vi.Zv();this.yv=!0,t.Nl(n,this.Gt,e.av)}},e.prototype.Vv=function(e){if(null!==this.Gt&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var t=this.vi.Dv().vt(),n=this.vi.Zv();t.xl(n,this.Gt,e.av)}},e.prototype.Ov=function(){if(null!==this.Gt&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var e=this.vi.Dv().vt(),t=this.vi.Zv(),n=this.Gt;this.yv&&(this.yv=!1,e.Sl(t,n))}},e.prototype.Wv=function(e){if(null!==this.Gt&&this.vi.Dv().ct().handleScale.axisPressedMouseMove.price){var t=this.vi.Dv().vt(),n=this.vi.Zv();this.yv=!1,t.Sl(n,this.Gt)}},e.prototype.zv=function(e){this.vi.Dv().ct().handleScale.axisDoubleClickReset&&this.Ou()},e.prototype.Pv=function(e){null!==this.Gt&&(!this.vi.Dv().vt().ct().handleScale.axisPressedMouseMove.price||this.Gt.cs()||this.Gt.vs()||this.h_(1))},e.prototype.Rv=function(e){this.h_(0)},e.prototype.Kv=function(){var e=this,t=[],n=null===this.Gt?void 0:this.Gt;return function(i){for(var r=0;r<i.length;++r)for(var a=i[r].Pi(e.vi.Zv(),n),o=0;o<a.length;o++)t.push(a[o])}(this.vi.Zv().Os()),t},e.prototype.Qv=function(e,t){var n=this;if(null!==this.pv){var i=this.pv.st,r=this.pv.ht;Uk(e,t,function(){var t=n.vi.Zv().vt(),a=t.Rf(),o=t.Pf();a===o?$k(e,0,0,i,r,a):Wk(e,0,0,i,r,a,o)})}},e.prototype.yu=function(e,t){if(null!==this.pv&&null!==this.Gt&&this.Gt.ct().borderVisible){e.save(),e.fillStyle=this.N();var n,i=Math.max(1,Math.floor(this.Hv().At*t));n=this.Tv?Math.floor(this.pv.st*t)-i:0,e.fillRect(n,0,i,Math.ceil(this.pv.ht*t)),e.restore(
1)}},e.prototype.t_=function(e,t){if(null!==this.pv&&null!==this.Gt){var n=this.Gt.Fn();e.save(),e.strokeStyle=this.N(),e.font=this.Uv(),e.fillStyle=this.N();var i=this.Hv(),r=this.Gt.ct().borderVisible&&this.Gt.ct().drawTicks,a=this.Tv?Math.floor((this.pv.st-i.Dt)*t-i.At*t):Math.floor(i.At*t),o=this.Tv?Math.round(a-i.Lt*t):Math.round(a+i.Dt*t+i.Lt*t),s=this.Tv?"right":"left",l=Math.max(1,Math.floor(t)),c=Math.floor(.5*t);if(r){var u=Math.round(i.Dt*t);e.beginPath();for(var d=0,h=n;d<h.length;d++){var f=h[d];e.rect(a,Math.round(f.An*t)-c,u,l)}e.fill()}e.fillStyle=this.qv();for(var p=0,m=n;p<m.length;p++)this.Cv.wv(e,(f=m[p]).Tn,o,Math.round(f.An*t),s);e.restore()}},e.prototype.Gv=function(){if(null!==this.pv&&null!==this.Gt){var e=this.pv.ht/2,t=[],n=this.Gt.Os().slice(),i=this.vi.Zv(),r=this.Hv();this.Gt===i.xi()&&this.vi.Zv().Os().forEach(function(e){i.Uu(e)&&n.push(e)});var a=this.Gt.Vs()[0],o=this.Gt;n.forEach(function(n){var r=n.Pi(i,o);r.forEach(function(e){e.Kt(null),e.$t()&&t.push(e)}),a===n&&r.length>0&&(e=r[0].zt())});var s=t.filter(function(t){return t.zt()<=e}),l=t.filter(function(t){return t.zt()>e});if(s.sort(function(e,t){return t.zt()-e.zt()}),s.length&&l.length&&l.push(s[0]),l.sort(function(e,t){return e.zt()-t.zt()}),t.forEach(function(e){return e.Kt(e.zt())}),this.Gt.ct().alignLabels){for(var c=1;c<s.length;c++){var u=s[c],d=(f=s[c-1]).Mt(r,!1);u.zt()>(p=f.Yt())-d&&u.Kt(p-d)}for(var h=1;h<l.length;h++){var f,p;u=l[h],d=(f=l[h-1]).Mt(r,!0),u.zt()<(p=f.Yt())+d&&u.Kt(p+d)}}}},e.prototype.i_=function(e,t){var n=this;if(null!==this.pv){e.save();var i=this.pv,r=this.Kv(),a=this.Hv(),o=this.Tv?"right":"left";r.forEach(function(r){if(r.Xt()){var s=r.P(gk(n.Gt));e.save(),s.h(e,a,n.kv,i.st,o,t),e.restore()}}),e.restore()}},e.prototype.n_=function(e,t){var n=this;if(null!==this.pv&&null!==this.Gt){e.save();var i=this.pv,r=this.vi.Dv().vt(),a=[],o=this.vi.Zv(),s=r.bf().Pi(o,this.Gt);s.length&&a.push(s);var l=this.Hv(),c=this.Tv?"right":"left";a.forEach(function(r){r.forEach(function(r){e.save(),r.P(gk(n.Gt)).h(e,l,n.kv,i.st,c,t),e.restore()})}),e.restore()}},e.prototype.h_=function(e){this.Bv.style.cursor=1===e?"ns-resize":"default"},e.prototype.qn=function(){var e=this,t=this.Yv();if(this.Nv<t){var n=this.vi.Dv();null===this.gv&&(this.gv=setTimeout(function(){n&&n.vt().uf(),e.gv=null},100))}this.Nv=t},e.prototype.Sv=function(e){this.Cv.en(),this.Cv=new TS(e.Wt,e.et,e.le)},e}(),AS=kS;function PS(e,t,n,i,r){e.o&&e.o(t,n,i,r)}function LS(e,t,n,i,r){e.h(t,n,i,r)}function OS(e,t){return e.zi(t)}function IS(e,t){return void 0!==e.Io?e.Io(t):[]}var HS=function(){function e(e,t){var n=this;this.pv=new hS(0,0),this.r_=null,this.e_=null,this.u_=null,this.a_=!1,this.o_=new aC,this.l_=0,this.f_=!1,this.c_=null,this.v_=!1,this.__=null,this.d_=null,this.xv=function(){return n.w_&&n.hi().Or()},this.Av=function(){return n.w_&&n.hi().Or()},this.M_=e,this.w_=t,this.w_.Vl().Ji(this.b_.bind(this),this,!0),this.m_=document.createElement("td"),this.m_.style.padding="0",this.m_.style.position="relative";var i=document.createElement("div");i.style.width="100%",i.style.height="100%",i.style.position="relative",i.style.overflow="hidden",this.p_=document.createElement("td"),this.p_.style.padding="0",this.g_=document.createElement("td"),this.g_.style.padding="0",this.m_.appendChild(i),this.Lv=gS(i,new hS(16,16)),this.Lv.subscribeCanvasConfigured(this.xv);var r=this.Lv.canvas;r.style.position="absolute",r.style.zIndex="1",r.style.left="0",r.style.top="0",this.Fv=gS(i,new hS(16,16)),this.Fv.subscribeCanvasConfigured(this.Av);var a=this.Fv.canvas;a.style.position="absolute",a.style.zIndex="2",a.style.left="0",a.style.top="0",this.y_=document.createElement("tr"),this.y_.appendChild(this.p_),this.y_.appendChild(this.m_),this.y_.appendChild(this.g_),this.k_();var o=this.Dv().ct().handleScroll;this.Iv=new CS(this.Fv.canvas,this,{Oc:!o.vertTouchDrag,Wc:!o.horzTouchDrag})}return e.prototype.en=function(){null!==this.r_&&this.r_.en(),null!==this.e_&&this.e_.en(),this.Fv.unsubscribeCanvasConfigured(this.Av),this.Fv.destroy(),this.Lv.unsubscribeCanvasConfigured(this.xv),this.Lv.destroy(),null!==this.w_&&this.w_.Vl().sn(this),this.Iv.en()},e.prototype.Zv=function(){return gk(this.w_)},e.prototype.C_=function(t){null!==this.w_&&this.w_.Vl().sn(this),this.w_=t,null!==this.w_&&this.w_.Vl().Ji(e.prototype.b_.bind(this),this,!0),this.k_()},e.prototype.Dv=function(){return this.M_},e.prototype.jv=function(){return this.y_},e.prototype.k_=function(){if(null!==this.w_&&(this.N_(),0!==this.hi().W().length)){if(null!==this.r_){var e=this.w_.kl();this.r_.fi(gk(e))}if(null!==this.e_){var t=this.w_.Cl();this.e_.fi(gk(t))}}},e.prototype.wl=function(){return null!==this.w_?this.w_.wl():0},e.prototype.Ml=function(e){this.w_&&this.w_.Ml(e)},e.prototype.Bc=function(e){this.w_&&(wS||this.x_(e.uv,e.av))},e.prototype.Yc=function(e){if(this.f_=!1,this.v_=null!==this.c_,this.w_){if(this.S_(),document.activeElement!==document.body&&document.activeElement!==document.documentElement)gk(document.activeElement).blur();else{var t=document.getSelection();null!==t&&t.removeAllRanges()}var n=this.hi();if(!this.w_.xi().ti()&&!n.j().ti()){if(null!==this.c_){var i=n.bf();this.__={x:i.bt(),y:i.gt()},this.c_={x:e.uv,y:e.av}}wS||this.x_(e.uv,e.av)}}},e.prototype.Lc=function(e){if(this.w_){var t=e.uv,n=e.av;if(this.D_()&&this.A_(),!wS){this.x_(t,n);var i=this.pa(t,n);this.hi().cf(i&&{vf:i.vf,T_:i.T_})}}},e.prototype.qc=function(e){if(null!==this.w_){var t=e.uv,n=e.av;if(this.o_.rn()){var i=this.hi().bf().I();this.o_.hn(i,{x:t,y:n})}this.B_()}},e.prototype.zc=function(e){if(null!==this.w_){var t=this.hi(),n=e.uv,i=e.av;if(null!==this.c_){this.v_=!1;var r=gk(this.__);this.x_(r.x+(n-this.c_.x),r.y+(i-this.c_.y))}else this.D_()||this.x_(n,i);if(!t.j().ti()){var a=this.M_.ct(),o=a.handleScroll,s=a.kineticScroll;if(o.pressedMouseMove&&"touch"!==e.ke||(o.horzTouchDrag||o.vertTouchDrag)&&"mouse"!==e.ke){var l=this.w_.xi(),c=performance.now();null!==this.u_||this.L_()||(this.u_={x:e.sv,y:e.hv,Dh:c,uv:e.uv,av:e.av}),null!==this.d_&&this.d_.tc(e.uv,c),null===this.u_||this.a_||this.u_.x===e.sv&&this.u_.y===e.hv||(null===this.d_&&("touch"===e.ke&&s.touch||"mouse"===e.ke&&s.mouse)&&(this.d_=new bS(.2,7,.997,15),this.d_.tc(this.u_.uv,this.u_.Dh),this.d_.tc(e.uv,c)),l.ti()||t.Dl(this.w_,l,e.av),t.Nf(e.uv),this.a_=!0),this.a_&&(l.ti()||t.Al(this.w_,l,e.av),t.xf(e.uv))}}}},e.prototype.Ic=function(e){null!==this.w_&&(this.f_=!1,this.F_(e))},e.prototype.nv=function(e){if(this.f_=!0,null===this.c_&&AS){var t={x:e.uv,y:e.av};this.E_(t,t)}},e.prototype.iv=function(e){null!==this.w_&&(this.w_.vt().cf(null),kS||this.A_())},e.prototype.V_=function(){return this.o_},e.prototype.Xc=function(){this.l_=1,this.S_()},e.prototype.Zc=function(e,t){if(this.M_.ct().handleScale.pinch){var n=5*(t-this.l_);this.l_=t,this.hi().kf(e.p,n)}},e.prototype.pa=function(e,t){var n=this.w_;if(null===n)return null;for(var i=0,r=n.Os();i<r.length;i++){var a=r[i],o=this.O_(a.zi(n),e,t);if(null!==o)return{vf:a,vv:o.vv,T_:o.T_}}return null},e.prototype.W_=function(e,t){gk("left"===t?this.r_:this.e_).$v(new hS(e,this.pv.ht))},e.prototype.z_=function(){return this.pv},e.prototype.$v=function(e){if(e.st<0||e.ht<0)throw new Error("Try to set invalid size to PaneWidget "+JSON.stringify(e));this.pv.on(e)||(this.pv=e,this.Lv.resizeCanvas({width:e.st,height:e.ht}),this.Fv.resizeCanvas({width:e.st,height:e.ht}
1),this.m_.style.width=e.st+"px",this.m_.style.height=e.ht+"px")},e.prototype.P_=function(){var e=gk(this.w_);e.yl(e.kl()),e.yl(e.Cl());for(var t=0,n=e.Vs();t<n.length;t++){var i=n[t];if(e.Uu(i)){var r=i.$();null!==r&&e.yl(r),i.Ii()}}},e.prototype.s_=function(){return this.Lv.canvas},e.prototype.Jv=function(e){if(0!==e&&null!==this.w_){if(e>1&&this.P_(),null!==this.r_&&this.r_.Jv(e),null!==this.e_&&this.e_.Jv(e),1!==e){var t=pS(this.Lv.canvas);t.save(),this.Qv(t,this.Lv.pixelRatio),this.w_&&(this.R_(t,this.Lv.pixelRatio),this.I_(t,this.Lv.pixelRatio),this.j_(t,this.Lv.pixelRatio,OS)),t.restore()}var n=pS(this.Fv.canvas);n.clearRect(0,0,Math.ceil(this.pv.st*this.Fv.pixelRatio),Math.ceil(this.pv.ht*this.Fv.pixelRatio)),this.j_(n,this.Lv.pixelRatio,IS),this.q_(n,this.Fv.pixelRatio)}},e.prototype.U_=function(){return this.r_},e.prototype.H_=function(){return this.e_},e.prototype.b_=function(){null!==this.w_&&this.w_.Vl().sn(this),this.w_=null},e.prototype.Qv=function(e,t){var n=this;Uk(e,t,function(){var t=n.hi(),i=t.Rf(),r=t.Pf();i===r?$k(e,0,0,n.pv.st,n.pv.ht,r):Wk(e,0,0,n.pv.st,n.pv.ht,i,r)})},e.prototype.R_=function(e,t){var n=gk(this.w_),i=n.Ol().sl().P(n.Mt(),n.wt());null!==i&&(e.save(),i.h(e,t,!1),e.restore())},e.prototype.I_=function(e,t){var n=this.hi().Mf();this.Y_(e,t,OS,PS,n),this.Y_(e,t,OS,LS,n)},e.prototype.q_=function(e,t){this.Y_(e,t,OS,LS,this.hi().bf())},e.prototype.j_=function(e,t,n){for(var i=gk(this.w_).Os(),r=0,a=i;r<a.length;r++){var o=a[r];this.Y_(e,t,n,PS,o)}for(var s=0,l=i;s<l.length;s++)this.Y_(e,t,n,LS,o=l[s])},e.prototype.Y_=function(e,t,n,i,r){for(var a=gk(this.w_),o=n(r,a),s=a.Mt(),l=a.wt(),c=a.vt().ff(),u=null!==c&&c.vf===r,d=null!==c&&u&&void 0!==c.T_?c.T_.ga:void 0,h=0,f=o;h<f.length;h++){var p=f[h].P(s,l);null!==p&&(e.save(),i(p,e,t,u,d),e.restore())}},e.prototype.O_=function(e,t,n){for(var i=0,r=e;i<r.length;i++){var a=r[i],o=a.P(this.pv.ht,this.pv.st);if(null!==o&&o.pa){var s=o.pa(t,n);if(null!==s)return{vv:a,T_:s}}}return null},e.prototype.N_=function(){if(null!==this.w_){var e=this.M_,t=this.w_.kl().ct().visible,n=this.w_.Cl().ct().visible;t||null===this.r_||(this.p_.removeChild(this.r_.jv()),this.r_.en(),this.r_=null),n||null===this.e_||(this.g_.removeChild(this.e_.jv()),this.e_.en(),this.e_=null);var i=e.vt().Ff();t&&null===this.r_&&(this.r_=new ES(this,e.ct().layout,i,"left"),this.p_.appendChild(this.r_.jv())),n&&null===this.e_&&(this.e_=new ES(this,e.ct().layout,i,"right"),this.g_.appendChild(this.e_.jv()))}},e.prototype.D_=function(){return AS&&null===this.c_},e.prototype.L_=function(){return AS&&this.f_||null!==this.c_},e.prototype.K_=function(e){return Math.max(0,Math.min(e,this.pv.st-1))},e.prototype.X_=function(e){return Math.max(0,Math.min(e,this.pv.ht-1))},e.prototype.x_=function(e,t){this.hi().Tf(this.K_(e),this.X_(t),gk(this.w_))},e.prototype.A_=function(){this.hi().Bf()},e.prototype.B_=function(){this.v_&&(this.c_=null,this.A_())},e.prototype.E_=function(e,t){this.c_=e,this.v_=!1,this.x_(t.x,t.y);var n=this.hi().bf();this.__={x:n.bt(),y:n.gt()}},e.prototype.hi=function(){return this.M_.vt()},e.prototype.Z_=function(){var e=this.hi(),t=this.Zv(),n=t.xi();e.Tl(t,n),e.Sf(),this.u_=null,this.a_=!1},e.prototype.F_=function(e){var t=this;if(this.a_){var n=performance.now();if(null!==this.d_&&this.d_.ia(e.uv,n),null===this.d_||this.d_.nc(n))this.Z_();else{var i=this.hi(),r=i.j(),a=this.d_;requestAnimationFrame(function e(){if(!a.hc()){var n=performance.now(),o=a.nc(n);if(!a.hc()){var s=r.Pr();i.xf(a.ic(n)),s===r.Pr()&&(o=!0,t.d_=null)}o?t.Z_():requestAnimationFrame(e)}})}}},e.prototype.S_=function(){var e=performance.now(),t=null===this.d_||this.d_.nc(e);null!==this.d_&&(t||this.Z_()),null!==this.d_&&(this.d_.rc(),this.d_=null)},e}(),jS=function(){function e(e,t,n,i,r){var a=this;this.L=!0,this.pv=new hS(0,0),this.xv=function(){return a.Jv(3)}
1,this.Tv="left"===e,this.tf=n.Ff,this.ki=t,this.J_=i,this.G_=r,this.Bv=document.createElement("div"),this.Bv.style.width="25px",this.Bv.style.height="100%",this.Bv.style.overflow="hidden",this.Lv=gS(this.Bv,new hS(16,16)),this.Lv.subscribeCanvasConfigured(this.xv)}return e.prototype.en=function(){this.Lv.unsubscribeCanvasConfigured(this.xv),this.Lv.destroy()},e.prototype.jv=function(){return this.Bv},e.prototype.z_=function(){return this.pv},e.prototype.$v=function(e){if(e.st<0||e.ht<0)throw new Error("Try to set invalid size to PriceAxisStub "+JSON.stringify(e));this.pv.on(e)||(this.pv=e,this.Lv.resizeCanvas({width:e.st,height:e.ht}),this.Bv.style.width=e.st+"px",this.Bv.style.minWidth=e.st+"px",this.Bv.style.height=e.ht+"px",this.L=!0)},e.prototype.Jv=function(e){if((!(e<3)||this.L)&&0!==this.pv.st&&0!==this.pv.ht){this.L=!1;var t=pS(this.Lv.canvas);this.Qv(t,this.Lv.pixelRatio),this.yu(t,this.Lv.pixelRatio)}},e.prototype.s_=function(){return this.Lv.canvas},e.prototype.yu=function(e,t){if(this.J_()){var n=this.pv.st;e.save(),e.fillStyle=this.ki.timeScale.borderColor;var i=Math.floor(this.tf.ct().At*t),r=this.Tv?Math.round(n*t)-i:0;e.fillRect(r,0,i,i),e.restore()}},e.prototype.Qv=function(e,t){var n=this;Uk(e,t,function(){$k(e,0,0,n.pv.st,n.pv.ht,n.G_())})},e}();function FS(e,t){return e.Rh>t.Rh?e:t}var RS=function(){function e(e){var t=this;this.Q_=null,this.td=null,this.oe=null,this.nd=!1,this.pv=new hS(0,0),this.sd=new aC,this.kv=new Cx(5),this.xv=function(){return t.M_.vt().Or()},this.Av=function(){return t.M_.vt().Or()},this.M_=e,this.ki=e.ct().layout,this.hd=document.createElement("tr"),this.rd=document.createElement("td"),this.rd.style.padding="0",this.ed=document.createElement("td"),this.ed.style.padding="0",this.Bv=document.createElement("td"),this.Bv.style.height="25px",this.Bv.style.padding="0",this.ud=document.createElement("div"),this.ud.style.width="100%",this.ud.style.height="100%",this.ud.style.position="relative",this.ud.style.overflow="hidden",this.Bv.appendChild(this.ud),this.Lv=gS(this.ud,new hS(16,16)),this.Lv.subscribeCanvasConfigured(this.xv);var n=this.Lv.canvas;n.style.position="absolute",n.style.zIndex="1",n.style.left="0",n.style.top="0",this.Fv=gS(this.ud,new hS(16,16)),this.Fv.subscribeCanvasConfigured(this.Av);var i=this.Fv.canvas;i.style.position="absolute",i.style.zIndex="2",i.style.left="0",i.style.top="0",this.hd.appendChild(this.rd),this.hd.appendChild(this.Bv),this.hd.appendChild(this.ed),this.ad(),this.M_.vt().dl().Ji(this.ad.bind(this),this),this.Iv=new CS(this.Fv.canvas,this,{Oc:!0,Wc:!1})}return e.prototype.en=function(){this.Iv.en(),null!==this.Q_&&this.Q_.en(),null!==this.td&&this.td.en(),this.Fv.unsubscribeCanvasConfigured(this.Av),this.Fv.destroy(),this.Lv.unsubscribeCanvasConfigured(this.xv),this.Lv.destroy()},e.prototype.jv=function(){return this.hd},e.prototype.od=function(){return this.Q_},e.prototype.ld=function(){return this.td},e.prototype.Yc=function(e){if(!this.nd){this.nd=!0;var t=this.M_.vt();!t.j().ti()&&this.M_.ct().handleScale.axisPressedMouseMove.time&&t.yf(e.uv)}},e.prototype.Kc=function(){var e=this.M_.vt();!e.j().ti()&&this.nd&&(this.nd=!1,this.M_.ct().handleScale.axisPressedMouseMove.time&&e.Af())},e.prototype.zc=function(e){var t=this.M_.vt();!t.j().ti()&&this.M_.ct().handleScale.axisPressedMouseMove.time&&t.Df(e.uv)},e.prototype.Ic=function(e){this.nd=!1;var t=this.M_.vt();t.j().ti()&&!this.M_.ct().handleScale.axisPressedMouseMove.time||t.Af()},e.prototype.jc=function(){this.M_.ct().handleScale.axisDoubleClickReset&&this.M_.vt().Ne()},e.prototype.Bc=function(e){this.M_.vt().ct().handleScale.axisPressedMouseMove.time&&this.h_(1)},e.prototype.iv=function(e){this.h_(0)},e.prototype.z_=function(){return this.pv},e.prototype.fd=function(){return this.sd},e.prototype.vd=function(e,t,n){this.pv&&this.pv.on(e)||(this.pv=e,this.Lv.resizeCanvas({width:e.st,height:e.ht}),this.Fv.resizeCanvas({width:e.st,height:e.ht}),this.Bv.style.width=e.st+"px",this.Bv.style.height=e.ht+"px",this.sd.hn(e)),null!==this.Q_&&this.Q_.$v(new hS(t,e.ht)),null!==this.td&&this.td.$v(new hS(n,e.ht))},e.prototype._d=function(){var e=this.dd();return Math.ceil(e.At+e.Dt+e.Wt+e.Tt+e.Bt)},e.prototype.O=function(){this.M_.vt().j().Fn()},e.prototype.s_=function(){return this.Lv.canvas},e.prototype.Jv=function(e){if(0!==e){if(1!==e){var t=pS(this.Lv.canvas);this.Qv(t,this.Lv.pixelRatio),this.yu(t,this.Lv.pixelRatio),this.t_(t,this.Lv.pixelRatio),null!==this.Q_&&this.Q_.Jv(e),null!==this.td&&this.td.Jv(e)}var n=pS(this.Fv.canvas),i=this.Fv.pixelRatio;n.clearRect(0,0,Math.ceil(this.pv.st*i),Math.ceil(this.pv.ht*i)),this.wd([this.M_.vt().bf()],n,i)}},e.prototype.Qv=function(e,t){var n=this;Uk(e,t,function(){$k(e,0,0,n.pv.st,n.pv.ht,n.M_.vt().Pf())})},e.prototype.yu=function(e,t){if(this.M_.ct().timeScale.borderVisible){e.save(),e.fillStyle=this.Md();var n=Math.max(1,Math.floor(this.dd().At*t));
1e.fillRect(0,0,Math.ceil(this.pv.st*t),n),e.restore()}},e.prototype.t_=function(e,t){var n=this,i=this.M_.vt().j().Fn();if(i&&0!==i.length){var r=i.reduce(FS,i[0]).Rh;r>30&&r<50&&(r=30),e.save(),e.strokeStyle=this.Md();var a=this.dd(),o=a.At+a.Dt+a.Tt+a.Wt-a.Ot;e.textAlign="center",e.fillStyle=this.Md();var s=Math.floor(this.dd().At*t),l=Math.max(1,Math.floor(t)),c=Math.floor(.5*t);if(this.M_.vt().j().ct().borderVisible){e.beginPath();for(var u=Math.round(a.Dt*t),d=i.length;d--;){var h=Math.round(i[d].An*t);e.rect(h-c,s,l,u)}e.fill()}e.fillStyle=this.ve(),Uk(e,t,function(){e.font=n.bd();for(var t=0,a=i;t<a.length;t++)if((u=a[t]).Rh<r){var s=u.Ir?n.md(e,u.An,u.Tn):u.An;e.fillText(u.Tn,s,o)}e.font=n.pd();for(var l=0,c=i;l<c.length;l++){var u;(u=c[l]).Rh>=r&&(s=u.Ir?n.md(e,u.An,u.Tn):u.An,e.fillText(u.Tn,s,o))}})}},e.prototype.md=function(e,t,n){var i=this.kv.Vt(e,n),r=Math.floor(t-i/2)+.5;return r<0?t+=Math.abs(0-r):r+i>this.pv.st&&(t-=Math.abs(this.pv.st-(r+i))),t},e.prototype.wd=function(e,t,n){for(var i=this.dd(),r=0,a=e;r<a.length;r++)for(var o=0,s=a[r].ci();o<s.length;o++){var l=s[o];t.save(),l.P().h(t,i,n),t.restore()}},e.prototype.Md=function(){return this.M_.ct().timeScale.borderColor},e.prototype.ve=function(){return this.ki.textColor},e.prototype.fe=function(){return this.ki.fontSize},e.prototype.bd=function(){return qC(this.fe(),this.ki.fontFamily)},e.prototype.pd=function(){return qC(this.fe(),this.ki.fontFamily,"bold")},e.prototype.dd=function(){null===this.oe&&(this.oe={At:1,Ot:NaN,Tt:NaN,Bt:NaN,si:NaN,Dt:3,Wt:NaN,Nt:"",ni:new Cx});var e=this.oe,t=this.bd();if(e.Nt!==t){var n=this.fe();e.Wt=n,e.Nt=t,e.Tt=Math.ceil(n/2.5),e.Bt=e.Tt,e.si=Math.ceil(n/2),e.Ot=Math.round(this.fe()/5),e.ni.Ou()}return this.oe},e.prototype.h_=function(e){this.Bv.style.cursor=1===e?"ew-resize":"default"},e.prototype.ad=function(){var e=this.M_.vt(),t=e.ct();t.leftPriceScale.visible||null===this.Q_||(this.rd.removeChild(this.Q_.jv()),this.Q_.en(),this.Q_=null),t.rightPriceScale.visible||null===this.td||(this.ed.removeChild(this.td.jv()),this.td.en(),this.td=null);var n={Ff:this.M_.vt().Ff()},i=function(){return t.leftPriceScale.borderVisible&&e.j().ct().borderVisible},r=function(){return e.Pf()};t.leftPriceScale.visible&&null===this.Q_&&(this.Q_=new jS("left",t,n,i,r),this.rd.appendChild(this.Q_.jv())),t.rightPriceScale.visible&&null===this.td&&(this.td=new jS("right",t,n,i,r),this.ed.appendChild(this.td.jv()))},e}(),NS=function(){function e(e,t){var n;this.gd=[],this.yd=0,this.En=0,this.$h=0,this.kd=0,this.Cd=0,this.Nd=null,this.xd=!1,this.o_=new aC,this.Jl=new aC,this.ki=t,this.hd=document.createElement("div"),this.hd.classList.add("tv-lightweight-charts"),this.hd.style.overflow="hidden",this.hd.style.width="100%",this.hd.style.height="100%",(n=this.hd).style.userSelect="none",n.style.webkitUserSelect="none",n.style.msUserSelect="none",n.style.MozUserSelect="none",n.style.webkitTapHighlightColor="transparent",this.Sd=document.createElement("table"),this.Sd.setAttribute("cellspacing","0"),this.hd.appendChild(this.Sd),this.Dd=this.Ad.bind(this),this.hd.addEventListener("wheel",this.Dd,{passive:!1}),this.hi=new dS(this.Ql.bind(this),this.ki),this.vt().mf().Ji(this.Td.bind(this),this),this.Bd=new RS(this),this.Sd.appendChild(this.Bd.jv());var i=this.ki.width,r=this.ki.height;if(0===i||0===r){var a=e.getBoundingClientRect();0===i&&(i=Math.floor(a.width),i-=i%2),0===r&&(r=Math.floor(a.height),r-=r%2)}this.Ld(i,r),this.Fd(),e.appendChild(this.hd),this.Ed(),this.hi.j().Jr().Ji(this.hi.uf.bind(this.hi),this),this.hi.dl().Ji(this.hi.uf.bind(this.hi),this)}return e.prototype.vt=function(){return this.hi},e.prototype.ct=function(){return this.ki},e.prototype.Vd=function(){return this.gd},e.prototype.Od=function(){return this.Bd},e.prototype.en=function(){this.hd.removeEventListener("wheel",this.Dd),0!==this.yd&&window.cancelAnimationFrame(this.yd),this.hi.mf().sn(this),this.hi.j().Jr().sn(this),this.hi.dl().sn(this),this.hi.en();for(var e=0,t=this.gd;e<t.length;e++){var n=t[e];this.Sd.removeChild(n.jv()),n.V_().sn(this),n.en()}this.gd=[],gk(this.Bd).en(),null!==this.hd.parentElement&&this.hd.parentElement.removeChild(this.hd),this.Jl.en(),this.o_.en()},e.prototype.Ld=function(e,t,n){if(void 0===n&&(n=!1),this.En!==t||this.$h!==e){this.En=t,this.$h=e;var i=t+"px",r=e+"px";gk(this.hd).style.height=i,gk(this.hd).style.width=r,this.Sd.style.height=i,this.Sd.style.width=r,n?this.Wd(new QC(3)):this.hi.uf()}},e.prototype.Jv=function(e){void 0===e&&(e=new QC(3));for(var t=0;t<this.gd.length;t++)this.gd[t].Jv(e.ge(t).me);this.ki.timeScale.visible&&this.Bd.Jv(e.pe())},e.prototype.rs=function(e){this.hi.rs(e),this.Ed(),this.Ld(e.width||this.$h,e.height||this.En)},e.prototype.V_=function(){return this.o_},e.prototype.mf=function(){return this.Jl},e.prototype.zd=function(){var e=this;null!==this.Nd&&(this.Wd(this.Nd),this.Nd=null);var t=this.gd[0],n=mS(document,new hS(this.$h,this.En)),i=pS(n),r=fS(n);return Uk(i,r,function(){var n=0,r=0,a=function(t){for(var a=0;a<e.gd.length;a++){var o=e.gd[a],s=o.z_().ht,l=gk("left"===t?o.U_():o.H_()),c=l.s_();i.drawImage(c,n,r,l.Xv(),s),r+=s}};e.Pd()&&(a("left"),n=gk(t.U_()).Xv()),r=0;for(var o=0;o<e.gd.length;o++){var s=e.gd[o],l=s.z_(),c=s.s_();i.drawImage(c,n,r,l.st,l.ht),r+=l.ht}n+=t.z_().st,e.Rd()&&(r=0,a("right"));var u=function(t){var a=gk("left"===t?e.Bd.od():e.Bd.ld()),o=a.z_(),s=a.s_();i.drawImage(s,n,r,o.st,o.ht)};if(e.ki.timeScale.visible){n=0,e.Pd()&&(u("left"),n=gk(t.U_()).Xv());var d=e.Bd.z_();c=e.Bd.s_(),i.drawImage(c,n,r,d.st,d.ht),e.Rd()&&(n+=t.z_().st,u("right"),i.restore(
1))}}),n},e.prototype.Id=function(e){return"none"===e||"left"===e&&!this.Pd()||"right"===e&&!this.Rd()||0===this.gd.length?0:gk("left"===e?this.gd[0].U_():this.gd[0].H_()).Xv()},e.prototype.jd=function(){for(var e=0,t=0,n=0,i=0,r=this.gd;i<r.length;i++){var a=r[i];this.Pd()&&(t=Math.max(t,gk(a.U_()).Yv())),this.Rd()&&(n=Math.max(n,gk(a.H_()).Yv())),e+=a.wl()}var o=this.En,s=Math.max(this.$h-t-n,0),l=this.ki.timeScale.visible,c=l?this.Bd._d():0;c%2&&(c+=1);for(var u=0+c,d=o<u?0:o-u,h=d/e,f=0,p=0;p<this.gd.length;++p){var m,g;(a=this.gd[p]).C_(this.hi.wf()[p]),g=p===this.gd.length-1?d-f:Math.round(a.wl()*h),f+=m=Math.max(g,2),a.$v(new hS(s,m)),this.Pd()&&a.W_(t,"left"),this.Rd()&&a.W_(n,"right"),a.Zv()&&this.hi.pf(a.Zv(),m)}this.Bd.vd(new hS(l?s:0,c),l?t:0,l?n:0),this.hi.Dr(s),this.kd!==t&&(this.kd=t),this.Cd!==n&&(this.Cd=n)},e.prototype.Ad=function(e){var t=e.deltaX/100,n=-e.deltaY/100;if(0!==t&&this.ki.handleScroll.mouseWheel||0!==n&&this.ki.handleScale.mouseWheel){switch(e.cancelable&&e.preventDefault(),e.deltaMode){case e.DOM_DELTA_PAGE:t*=120,n*=120;break;case e.DOM_DELTA_LINE:t*=32,n*=32}if(0!==n&&this.ki.handleScale.mouseWheel){var i=Math.sign(n)*Math.min(1,Math.abs(n)),r=e.clientX-this.hd.getBoundingClientRect().left;this.vt().kf(r,i)}0!==t&&this.ki.handleScroll.mouseWheel&&this.vt().Cf(-80*t)}},e.prototype.Wd=function(e){var t=e.pe();if(3===t&&this.qd(),3===t||2===t){for(var n=this.hi.wf(),i=0;i<n.length;i++)e.ge(i)._s&&n[i].Fl();for(var r=e.xe(),a=0,o=r;a<o.length;a++)this.Se(o[a]);r.length>0&&(this.hi.Vr(),this.hi.Eo(),this.hi.Or()),this.Bd.O()}this.Jv(e)},e.prototype.Se=function(e){var t=this.hi.j();switch(e.ke){case 0:t.Qr();break;case 1:t.te(e.X);break;case 2:t.wr(e.X);break;case 3:t.Mr(e.X);break;case 4:t.jr()}},e.prototype.Ql=function(e){var t=this;null!==this.Nd?this.Nd._n(e):this.Nd=e,this.xd||(this.xd=!0,this.yd=window.requestAnimationFrame(function(){t.xd=!1,t.yd=0,null!==t.Nd&&(t.Wd(t.Nd),t.Nd=null)}))},e.prototype.qd=function(){this.Fd()},e.prototype.Fd=function(){for(var e=this.hi.wf(),t=e.length,n=this.gd.length,i=t;i<n;i++){var r=mk(this.gd.pop());this.Sd.removeChild(r.jv()),r.V_().sn(this),r.en()}for(i=n;i<t;i++)(r=new HS(this,e[i])).V_().Ji(this.Ud.bind(this),this),this.gd.push(r),this.Sd.insertBefore(r.jv(),this.Bd.jv());for(i=0;i<t;i++){var a=e[i];(r=this.gd[i]).Zv()!==a?r.C_(a):r.k_()}this.Ed(),this.jd()},e.prototype.Hd=function(e,t){var n,i=new Map;if(null!==e&&this.hi.W().forEach(function(t){var n=t.Fa(e);null!==n&&i.set(t,n)}),null!==e){var r=this.hi.j().ri(e);null!==r&&(n=r)}var a=this.vt().ff();return{S:n,Yd:t||void 0,Kd:null!==a&&a.vf instanceof nS?a.vf:void 0,$d:i,Xd:null!==a&&void 0!==a.T_?a.T_.ka:void 0}},e.prototype.Ud=function(e,t){var n=this;this.o_.hn(function(){return n.Hd(e,t)})},e.prototype.Td=function(e,t){var n=this;this.Jl.hn(function(){return n.Hd(e,t)})},e.prototype.Ed=function(){var e=this.ki.timeScale.visible?"":"none";this.Bd.jv().style.display=e},e.prototype.Pd=function(){return this.gd[0].Zv().kl().ct().visible},e.prototype.Rd=function(){return this.gd[0].Zv().Cl().ct().visible},e}();function BS(e,t,n){var i=n.value,r={Ph:t,S:e,X:[i,i,i,i]};return"color"in n&&void 0!==n.color&&(r.et=n.color),r}function YS(e,t,n){return{Ph:t,S:e,X:[n.open,n.high,n.low,n.close]}}function zS(e){return void 0!==e.X}function VS(e){return function(t,n,i){return void 0===(r=i).open&&void 0===r.value?{S:t,Ph:n}:e(t,n,i);var r}}var US={Candlestick:VS(YS),Bar:VS(YS),Area:VS(BS),Baseline:VS(BS),Histogram:VS(BS),Line:VS(BS)};function $S(e){return US[e]}function WS(e){return 60*e*60*1e3}function qS(e){return 60*e*1e3}var GS=[{Zd:1e3,Rh:10},{Zd:qS(1),Rh:20},{Zd:qS(5),Rh:21},{Zd:qS(30),Rh:22},{Zd:WS(1),Rh:30},{Zd:WS(3),Rh:31},{Zd:WS(6),Rh:32},{Zd:WS(12),Rh:33}];function XS(e,t){if(e.getUTCFullYear()!==t.getUTCFullYear())return 70;if(e.getUTCMonth()!==t.getUTCMonth())return 60;if(e.getUTCDate()!==t.getUTCDate())return 50;for(var n=GS.length-1;n>=0;--n)if(Math.floor(t.getTime()/GS[n].Zd)!==Math.floor(e.getTime()/GS[n].Zd))return GS[n].Rh;return 0}function QS(e,t){if(void 0===t&&(t=0),0!==e.length){for(var n=0===t?null:e[t-1].S.Dh,i=null!==n?new Date(1e3*n):null,r=0,a=t;a<e.length;++a){var o=e[a],s=new Date(1e3*o.S.Dh);null!==i&&(o.zh=XS(s,i)),r+=o.S.Dh-(n||o.S.Dh),n=o.S.Dh,i=s}if(0===t&&e.length>1){var l=Math.ceil(r/(e.length-1)),c=new Date(1e3*(e[0].S.Dh-l));e[0].zh=XS(new Date(1e3*e[0].S.Dh),c)}}}function KS(e){if(!UC(e))throw new Error("time must be of type BusinessDay");var t=new Date(Date.UTC(e.year,e.month-1,e.day,0,0,0,0));return{Dh:Math.round(t.getTime()/1e3),Sh:e}}function ZS(e){if(!$C(e))throw new Error("time must be of type isUTCTimestamp");return{Dh:e}}function JS(e){return 0===e.length?null:UC(e[0].time)?KS:ZS}function eM(e){return $C(e)?ZS(e):UC(e)?KS(e):KS(tM(e))}function tM(e){var t=new Date(e);if(isNaN(t.getTime()))throw new Error("Invalid date string="+e+", expected format=yyyy-mm-dd");return{day:t.getUTCDate(),month:t.getUTCMonth()+1,year:t.getUTCFullYear()}}function nM(e){wk(e.time)&&(e.time=tM(e.time))}function iM(e){return{Ph:0,Jd:new Map,Rs:e}}var rM=function(){function e(){this.Gd=new Map,this.Qd=new Map,this.tw=new Map,this.iw=[]}return e.prototype.en=function(){this.Gd.clear(),this.Qd.clear(),this.tw.clear(),this.iw=[]},e.prototype.nw=function(e,t){var n=this,i=0!==this.Gd.size,r=!1;if(this.Qd.has(e))if(1===this.Qd.size)i=!1,r=!0,this.Gd.clear();else for(var a=0,o=this.iw;a<o.length;a++)o[a].pointData.Jd.delete(e)&&(r=!0);var s=[];if(0!==t.length){!function(e){e.forEach(nM)}(t);var l=gk(JS(t)),c=$S(e.Ya());s=t.map(function(t){var i=l(t.time),a=n.Gd.get(i.Dh);void 0===a&&(a=iM(i),n.Gd.set(i.Dh,a),r=!0);var o=c(i,a.Ph,t);return a.Jd.set(e,o),o})}i&&this.sw(),this.hw(e,s);var u=-1;if(r){var d=[];this.Gd.forEach(function(e){d.push({zh:0,S:e.Rs,pointData:e})}),d.sort(function(e,t){return e.S.Dh-t.S.Dh}),u=this.rw(d)}return this.ew(e,u)},e.prototype.Of=function(e){return this.nw(e,[])},e.prototype.uw=function(e,t){nM(t);var n=gk(JS([t]))(t.time),i=this.tw.get(e);if(void 0!==i&&n.Dh<i.Dh)throw new Error("Cannot update oldest data, last time="+i.Dh+", new time="+n.Dh);var r=this.Gd.get(n.Dh),a=void 0===r;void 0===r&&(r=iM(n),this.Gd.set(n.Dh,r));var o=$S(e.Ya())(n,r.Ph,t);if(r.Jd.set(e,o),this.aw(e,o),!a)return this.ew(e,-1);var s={zh:0,S:r.Rs,pointData:r},l=IC(this.iw,s.S.Dh,function(e,t){return e.S.Dh<t});this.iw.splice(l,0,s);for(var c=l;c<this.iw.length;++c)aM(this.iw[c].pointData,c);return QS(this.iw,l),this.ew(e,l)},e.prototype.aw=function(e,t){var n=this.Qd.get(e);void 0===n&&this.Qd.set(e,n=[]);var i=0!==n.length?n[n.length-1]:null;null===i||t.S.Dh>i.S.Dh?zS(t)&&n.push(t):zS(t)?n[n.length-1]=t:n.splice(-1,1),this.tw.set(e,t.S)},e.prototype.hw=function(e,t){0!==t.length?(this.Qd.set(e,t.filter(zS)),this.tw.set(e,t[t.length-1].S)):(this.Qd.delete(e),this.tw.delete(e))},e.prototype.sw=function(){for(var e=0,t=this.iw;e<t.length;e++){var n=t[e];0===n.pointData.Jd.size&&this.Gd.delete(n.S.Dh)}},e.prototype.rw=function(e){for(var t=-1,n=0;n<this.iw.length&&n<e.length;++n){var i=this.iw[n],r=e[n];if(i.S.Dh!==r.S.Dh){t=n;break}r.zh=i.zh,aM(r.pointData,n)}if(-1===t&&this.iw.length!==e.length&&(t=Math.min(this.iw.length,e.length)),-1===t)return-1;for(n=t;n<e.length;++n)aM(e[n].pointData,n);return QS(e,t),this.iw=e,t},e.prototype.ow=function(){if(0===this.Qd.size)return null;var e=0;
1return this.Qd.forEach(function(t){0!==t.length&&(e=Math.max(e,t[t.length-1].Ph))}),e},e.prototype.ew=function(e,t){var n={lw:new Map,j:{Br:this.ow()}};if(-1!==t)this.Qd.forEach(function(e,t){n.lw.set(t,{Zu:e})}),this.Qd.has(e)||n.lw.set(e,{Zu:[]}),n.j.fw=this.iw,n.j.cw=t;else{var i=this.Qd.get(e);n.lw.set(e,{Zu:i||[]})}return n},e}();function aM(e,t){e.Ph=t,e.Jd.forEach(function(e){e.Ph=t})}var oM={color:"#FF0000",price:0,lineStyle:2,lineWidth:1,axisLabelVisible:!0,title:""},sM=function(){function e(e){this.Ia=e}return e.prototype.applyOptions=function(e){this.Ia.rs(e)},e.prototype.options=function(){return this.Ia.ct()},e.prototype._w=function(){return this.Ia},e}();function lM(e){var t=e.overlay,n=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}(e,["overlay"]);return t&&(n.priceScaleId=""),n}var cM=function(){function e(e,t,n){this.qe=e,this.dw=t,this.ww=n}return e.prototype.priceFormatter=function(){return this.qe.$s()},e.prototype.priceToCoordinate=function(e){var t=this.qe.H();return null===t?null:this.qe.$().K(e,t.X)},e.prototype.coordinateToPrice=function(e){var t=this.qe.H();return null===t?null:this.qe.$().Si(e,t.X)},e.prototype.barsInLogicalRange=function(e){if(null===e)return null;var t=new YC(new FC(e.from,e.to)).Hh(),n=this.qe.Hi();if(n.ti())return null;var i=n.oo(t.hh(),1),r=n.oo(t.rh(),-1),a=gk(n.eo()),o=gk(n.Ui());if(null!==i&&null!==r&&i.Ph>r.Ph)return{barsBefore:e.from-a,barsAfter:o-e.to};var s={barsBefore:null===i||i.Ph===a?e.from-a:i.Ph-a,barsAfter:null===r||r.Ph===o?o-e.to:o-r.Ph};return null!==i&&null!==r&&(s.from=i.S.Sh||i.S.Dh,s.to=r.S.Sh||r.S.Dh),s},e.prototype.setData=function(e){this.qe.Ya(),this.dw.Mw(this.qe,e)},e.prototype.update=function(e){this.qe.Ya(),this.dw.bw(this.qe,e)},e.prototype.setMarkers=function(e){var t=e.map(function(e){return hk(hk({},e),{time:eM(e.time)})});this.qe.Wo(t)},e.prototype.applyOptions=function(e){var t=lM(e);this.qe.rs(t)},e.prototype.options=function(){return Ck(this.qe.ct())},e.prototype.priceScale=function(){return this.ww.priceScale(this.qe.$().hs())}
1,e.prototype.createPriceLine=function(e){var t=yk(Ck(oM),e),n=this.qe.zo(t);return new sM(n)},e.prototype.removePriceLine=function(e){this.qe.Po(e._w())},e.prototype.seriesType=function(){return this.qe.Ya()},e}(),uM=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return dk(t,e),t.prototype.applyOptions=function(t){TC(t),e.prototype.applyOptions.call(this,t)},t}(cM),dM={autoScale:!0,mode:0,invertScale:!1,alignLabels:!0,borderVisible:!0,borderColor:"#2B2B43",entireTextOnly:!1,visible:!1,drawTicks:!0,scaleMargins:{bottom:.1,top:.2}},hM={color:"rgba(0, 0, 0, 0)",visible:!1,fontSize:48,fontFamily:WC,fontStyle:"",text:"",horzAlign:"center",vertAlign:"center"},fM={width:0,height:0,layout:{background:{type:"solid",color:"#FFFFFF"},textColor:"#191919",fontSize:11,fontFamily:WC},crosshair:{vertLine:{color:"#758696",width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:"#4c525e"},horzLine:{color:"#758696",width:1,style:3,visible:!0,labelVisible:!0,labelBackgroundColor:"#4c525e"},mode:1},grid:{vertLines:{color:"#D6DCDE",style:0,visible:!0},horzLines:{color:"#D6DCDE",style:0,visible:!0}},overlayPriceScales:hk({},dM),leftPriceScale:hk(hk({},dM),{visible:!1}),rightPriceScale:hk(hk({},dM),{visible:!0}),timeScale:{rightOffset:0,barSpacing:6,minBarSpacing:.5,fixLeftEdge:!1,fixRightEdge:!1,lockVisibleTimeRangeOnResize:!1,rightBarStaysOnScroll:!1,borderVisible:!0,borderColor:"#2B2B43",visible:!0,timeVisible:!1,secondsVisible:!0,shiftVisibleRangeOnNewBar:!0},watermark:hM,localization:{locale:_S?navigator.language:"",dateFormat:"dd MMM 'yy"},handleScroll:{mouseWheel:!0,pressedMouseMove:!0,horzTouchDrag:!0,vertTouchDrag:!0},handleScale:{axisPressedMouseMove:{time:!0,price:!0},axisDoubleClickReset:!0,mouseWheel:!0,pinch:!0},kineticScroll:{mouse:!1,touch:!0}},pM={upColor:"#26a69a",downColor:"#ef5350",wickVisible:!0,borderVisible:!0,borderColor:"#378658",borderUpColor:"#26a69a",borderDownColor:"#ef5350",wickColor:"#737375",wickUpColor:"#26a69a",wickDownColor:"#ef5350"},mM={upColor:"#26a69a",downColor:"#ef5350",openVisible:!0,thinBars:!0},gM={color:"#2196f3",lineStyle:0,lineWidth:3,lineType:0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBackgroundColor:"",lastPriceAnimation:0},vM={topColor:"rgba( 46, 220, 135, 0.4)",bottomColor:"rgba( 40, 221, 100, 0)",lineColor:"#33D778",lineStyle:0,lineWidth:3,lineType:0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBackgroundColor:"",lastPriceAnimation:0},yM={baseValue:{type:"price",price:0},topFillColor1:"rgba(38, 166, 154, 0.28)",topFillColor2:"rgba(38, 166, 154, 0.05)",topLineColor:"rgba(38, 166, 154, 1)",bottomFillColor1:"rgba(239, 83, 80, 0.05)",bottomFillColor2:"rgba(239, 83, 80, 0.28)",bottomLineColor:"rgba(239, 83, 80, 1)",lineWidth:3,lineStyle:0,crosshairMarkerVisible:!0,crosshairMarkerRadius:4,crosshairMarkerBorderColor:"",crosshairMarkerBackgroundColor:"",lastPriceAnimation:0},bM={color:"#26a69a",base:0},_M={title:"",visible:!0,lastValueVisible:!0,priceLineVisible:!0,priceLineSource:0,priceLineWidth:1,priceLineColor:"",priceLineStyle:2,baseLineVisible:!0,baseLineWidth:1,baseLineColor:"#B2B5BE",baseLineStyle:0,priceFormat:{type:"price",precision:2,minMove:.01}},wM=function(){function e(e,t){this.mw=e,this.pw=t}return e.prototype.applyOptions=function(e){this.mw.vt()._f(this.pw,e)},e.prototype.options=function(){return this.Gt().ct()},e.prototype.width=function(){return XC(this.pw)?this.mw.Id("left"===this.pw?"left":"right"):0},e.prototype.Gt=function(){return gk(this.mw.vt().df(this.pw)).$},e}(),kM=function(){function e(e,t){this.gw=new aC,this.nr=new aC,this.sd=new aC,this.hi=e,this.ul=e.j(),this.Bd=t,this.ul.Xr().Ji(this.yw.bind(this)),this.ul.Zr().Ji(this.kw.bind(this)),this.Bd.fd().Ji(this.Cw.bind(this))}return e.prototype.en=function(){this.ul.Xr().sn(this),this.ul.Zr().sn(this),this.Bd.fd().sn(this),this.gw.en(),this.nr.en(),this.sd.en()},e.prototype.scrollPosition=function(){return this.ul.Pr()},e.prototype.scrollToPosition=function(e,t){t?this.ul.$r(e,1e3):this.hi.Mr(e)},e.prototype.scrollToRealTime=function(){this.ul.Kr()},e.prototype.getVisibleRange=function(){var e,t,n=this.ul.yr();return null===n?null:{from:null!==(e=n.from.Sh)&&void 0!==e?e:n.from.Dh,to:null!==(t=n.to.Sh)&&void 0!==t?t:n.to.Dh}},e.prototype.setVisibleRange=function(e){var t={from:eM(e.from),to:eM(e.to)},n=this.ul.Sr(t);this.hi.Wf(n)},e.prototype.getVisibleLogicalRange=function(){var e=this.ul.gr();return null===e?null:{from:e.hh(),to:e.rh()}},e.prototype.setVisibleLogicalRange=function(e){pk(e.from<=e.to,"The from index cannot be after the to index."),this.hi.Wf(e)},e.prototype.resetTimeScale=function(){this.hi.Ne()},e.prototype.fitContent=function(){this.hi.Qr()},e.prototype.logicalToCoordinate=function(e){var t=this.hi.j();return t.ti()?null:t.G(e)},e.prototype.coordinateToLogical=function(e){return this.ul.ti()?null:this.ul.Fr(e)},e.prototype.timeToCoordinate=function(e){var t=eM(e),n=this.ul.br(t,!1);return null===n?null:this.ul.G(n)},e.prototype.coordinateToTime=function(e){var t,n=this.hi.j(),i=n.Fr(e),r=n.ri(i);return null===r?null:null!==(t=r.Sh)&&void 0!==t?t:r.Dh},e.prototype.width=function(){return this.Bd.z_().st},e.prototype.height=function(){return this.Bd.z_().ht},e.prototype.subscribeVisibleTimeRangeChange=function(e){this.gw.Ji(e)},e.prototype.unsubscribeVisibleTimeRangeChange=function(e){this.gw.nn(e)},e.prototype.subscribeVisibleLogicalRangeChange=function(e){this.nr.Ji(e)},e.prototype.unsubscribeVisibleLogicalRangeChange=function(e){this.nr.nn(e)},e.prototype.subscribeSizeChange=function(e){this.sd.Ji(e)},e.prototype.unsubscribeSizeChange=function(e){this.sd.nn(e)},e.prototype.applyOptions=function(e){this.ul.rs(e)},e.prototype.options=function(){return Ck(this.ul.ct())},e.prototype.yw=function(){this.gw.rn()&&this.gw.hn(this.getVisibleRange())},e.prototype.kw=function(){this.nr.rn()&&this.nr.hn(this.getVisibleLogicalRange())},e.prototype.Cw=function(e){this.sd.hn(e.st,e.ht)},e}();function CM(e){void 0!==e&&"custom"!==e.type&&void 0!==e.minMove&&void 0===e.precision&&(e.precision=function(e){if(e>=1)return 0;for(var t=0;t<8;t++){var n=Math.round(e);if(Math.abs(n-e)<1e-8)return t;e*=10}return t}(e.minMove))}function xM(e){return function(e){if(kk(e.handleScale)){var t=e.handleScale;e.handleScale={axisDoubleClickReset:t,axisPressedMouseMove:{time:t,price:t},mouseWheel:t,pinch:t}}else if(void 0!==e.handleScale&&kk(e.handleScale.axisPressedMouseMove)){var n=e.handleScale.axisPressedMouseMove;e.handleScale.axisPressedMouseMove={time:n,price:n}}var i=e.handleScroll;
1kk(i)&&(e.handleScroll={horzTouchDrag:i,vertTouchDrag:i,mouseWheel:i,pressedMouseMove:i})}(e),function(e){if(e.priceScale){e.leftPriceScale=e.leftPriceScale||{},e.rightPriceScale=e.rightPriceScale||{};var t=e.priceScale.position;delete e.priceScale.position,e.leftPriceScale=yk(e.leftPriceScale,e.priceScale),e.rightPriceScale=yk(e.rightPriceScale,e.priceScale),"left"===t&&(e.leftPriceScale.visible=!0,e.rightPriceScale.visible=!1),"right"===t&&(e.leftPriceScale.visible=!1,e.rightPriceScale.visible=!0),"none"===t&&(e.leftPriceScale.visible=!1,e.rightPriceScale.visible=!1),e.overlayPriceScales=e.overlayPriceScales||{},void 0!==e.priceScale.invertScale&&(e.overlayPriceScales.invertScale=e.priceScale.invertScale),void 0!==e.priceScale.scaleMargins&&(e.overlayPriceScales.scaleMargins=e.priceScale.scaleMargins)}}(e),function(e){e.layout&&e.layout.backgroundColor&&!e.layout.background&&(e.layout.background={type:"solid",color:e.layout.backgroundColor})}(e),e}var SM=function(){function e(e,t){var n=this;this.Nw=new rM,this.xw=new Map,this.Sw=new Map,this.Dw=new aC,this.Aw=new aC;var i=void 0===t?Ck(fM):yk(Ck(fM),xM(t));this.mw=new NS(e,i),this.mw.V_().Ji(function(e){n.Dw.rn()&&n.Dw.hn(n.Tw(e()))},this),this.mw.mf().Ji(function(e){n.Aw.rn()&&n.Aw.hn(n.Tw(e()))},this);var r=this.mw.vt();this.Bw=new kM(r,this.mw.Od())}return e.prototype.remove=function(){this.mw.V_().sn(this),this.mw.mf().sn(this),this.Bw.en(),this.mw.en(),this.xw.clear(),this.Sw.clear(),this.Dw.en(),this.Aw.en(),this.Nw.en()},e.prototype.resize=function(e,t,n){this.mw.Ld(e,t,n)},e.prototype.addAreaSeries=function(e){void 0===e&&(e={}),CM((e=lM(e)).priceFormat);var t=yk(Ck(_M),vM,e),n=this.mw.vt().Ef("Area",t),i=new cM(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},e.prototype.addBaselineSeries=function(e){void 0===e&&(e={}),CM((e=lM(e)).priceFormat);var t=yk(Ck(_M),yM,e),n=this.mw.vt().Ef("Baseline",t),i=new cM(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},e.prototype.addBarSeries=function(e){void 0===e&&(e={}),CM((e=lM(e)).priceFormat);var t=yk(Ck(_M),mM,e),n=this.mw.vt().Ef("Bar",t),i=new cM(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},e.prototype.addCandlestickSeries=function(e){void 0===e&&(e={}),TC(e=lM(e)),CM(e.priceFormat);var t=yk(Ck(_M),pM,e),n=this.mw.vt().Ef("Candlestick",t),i=new uM(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},e.prototype.addHistogramSeries=function(e){void 0===e&&(e={}),CM((e=lM(e)).priceFormat);var t=yk(Ck(_M),bM,e),n=this.mw.vt().Ef("Histogram",t),i=new cM(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},e.prototype.addLineSeries=function(e){void 0===e&&(e={}),CM((e=lM(e)).priceFormat);var t=yk(Ck(_M),gM,e),n=this.mw.vt().Ef("Line",t),i=new cM(n,this,this);return this.xw.set(i,n),this.Sw.set(n,i),i},e.prototype.removeSeries=function(e){var t=mk(this.xw.get(e)),n=this.Nw.Of(t);this.mw.vt().Of(t),this.Lw(n),this.xw.delete(e),this.Sw.delete(t)},e.prototype.Mw=function(e,t){this.Lw(this.Nw.nw(e,t))},e.prototype.bw=function(e,t){this.Lw(this.Nw.uw(e,t))},e.prototype.subscribeClick=function(e){this.Dw.Ji(e)},e.prototype.unsubscribeClick=function(e){this.Dw.nn(e)},e.prototype.subscribeCrosshairMove=function(e){this.Aw.Ji(e)},e.prototype.unsubscribeCrosshairMove=function(e){this.Aw.nn(e)},e.prototype.priceScale=function(e){return void 0===e&&(e=this.mw.vt().zf()),new wM(this.mw,e)},e.prototype.timeScale=function(){return this.Bw},e.prototype.applyOptions=function(e){this.mw.rs(xM(e))},e.prototype.options=function(){return this.mw.ct()},e.prototype.takeScreenshot=function(){return this.mw.zd()},e.prototype.Lw=function(e){var t=this.mw.vt();t.Lf(e.j.Br,e.j.fw,e.j.cw),e.lw.forEach(function(e,t){return t._(e.Zu)}),t.Vr()},e.prototype.Fw=function(e){return mk(this.Sw.get(e))},e.prototype.Tw=function(e){var t=this,n=new Map;e.$d.forEach(function(e,i){n.set(t.Fw(i),e)});var i=void 0===e.Kd?void 0:this.Fw(e.Kd);return{time:e.S&&(e.S.Sh||e.S.Dh),point:e.Yd,hoveredSeries:i,hoveredMarkerId:e.Xd,seriesPrices:n}},e}();function MM(e,t){var n;if(wk(e)){var i=document.getElementById(e);pk(null!==i,"Cannot find element in DOM with id="+e),n=i}else n=e;return new SM(n,t)}var DM,TM,EM,AM=function e(){_classCallCheck(this,e)},PM=((DM=function(){function e(){_classCallCheck(this,e),this.messages=new oe.a,this.dialogs=new oe.a}return _createClass(e,[{key:"showDialog",value:function(e,t,n,i,r,a,o){t||(t=LM.alert),this.dialogs.next({message:e,type:t,okCallback:n,cancelCallback:i,okLabel:r,cancelLabel:a,defaultValue:o})}},{key:"showMessage",value:function(e,t,n){if(n||(n=OM.default),e instanceof $l.h&&(e=ek.getHttpResponseMessages(e),t=ek.captionAndMessageSeparator),e instanceof Array){var i,r=_createForOfIteratorHelper(e);try{for(r.s();!(i=r.n()).done;){var a=i.value,o=ek.splitInTwo(a,t);this.showMessageHelper(o.firstPart,o.secondPart,n,!1)}}catch(s){r.e(s)}finally{r.f()}}else this.showMessageHelper(e,t,n,!1)}},{key:"showStickyMessage",value:function(e,t,n,i,r){if(n||(n=OM.default),e instanceof $l.h&&(e=ek.getHttpResponseMessages(e),t=ek.captionAndMessageSeparator),e instanceof Array){var a,o=_createForOfIteratorHelper(e);try{for(o.s();!(a=o.n()).done;){var s=a.value,l=ek.splitInTwo(s,t);this.showMessageHelper(l.firstPart,l.secondPart,n,!0)}}catch(u){o.e(u)}finally{o.f()}}else{if(i){var c='Severity: "'.concat(OM[n],'", Summary: "').concat(e,'", Detail: "').concat(t,'", Error: "').concat(ek.safeStringify(i),'"');switch(n){case OM.default:case OM.info:this.logInfo(c);break;case OM.success:this.logMessage(c);break;case OM.error:this.logError(c);break;case OM.warn:this.logWarning(c);break;case OM.wait:this.logTrace(c)}}this.showMessageHelper(e,t,n,!0,r)}}},{key:"showMessageHelper",value:function(e,t,n,i,r){this.messages.next({operation:i?"add_sticky":"add",message:{severity:n,summary:e,detail:t},onRemove:r})}},{key:"resetStickyMessage",value:function(){this.messages.next({operation:"clear"})}},{key:"startLoadingMessage",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Loading...",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";clearTimeout(this.loadingMessageTimeoutId),this.loadingMessageTimeoutId=setTimeout(function(){e.showStickyMessage(n,t,OM.wait)},1e3)}},{key:"stopLoadingMessage",value:function(){clearTimeout(this.loadingMessageTimeoutId),this.resetStickyMessage()}},{key:"logDebug",value:function(e){console.debug(e)}},{key:"logError",value:function(e){console.error(e)}},{key:"logInfo",value:function(e){console.info(e)}},{key:"logMessage",value:function(e){console.log(e)}},{key:"logTrace",value:function(e){console.trace(e)}},{key:"logWarning",value:function(e){console.warn(e)}},{key:"getDialogEvent",value:function(){return this.dialogs.asObservable()}},{key:"getMessageEvent",value:function(){return this.messages.asObservable()}}]),e}()).\u0275fac=function(e){return new(e||DM)},DM.\u0275prov=c.Zb({token:DM,factory:DM.\u0275fac}),DM),LM=function(e){return e[e.alert=0]="alert",e[e.confirm=1]="confirm",e[e.prompt=2]="prompt",e}({}),OM=function(e){return e[e.default=0]="default",e[e.info=1]="info",e[e.success=2]="success",e[e.error=3]="error",e[e.warn=4]="warn",e[e.wait=5]="wait",e}({}),IM=function e(){_classCallCheck(this,e)},HM=function e(){_classCallCheck(this,e),this.depositSeries=[],this.withdrawalSeries=[]},jM=function e(){_classCallCheck(this,e)},FM=((TM=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"getSymbol",value:function(e){return-1!=e.indexOf(".")&&(e=e.substring(0,e.indexOf("."))),-1!=e.indexOf("_")&&(e=e.substring(0,e.indexOf("_"))),e.substring(0,6)}},{key:"show",value:function(e,t,n){var i=this,r=t.map(function(e){return i.getSymbol(e.name)}
1);e=this.getSymbol(e),this.trade=new TradingView.widget({width:"100%",height:"450",symbol:e,interval:"60",timezone:"Etc/UTC",theme:"light",style:"1",toolbar_bg:"#f1f3f6",enable_publishing:!1,hide_legend:!0,save_image:!1,watchlist:r,container_id:n}),this.symbolMem=e,this.symbolsMem=r,this.idMem=n}},{key:"update",value:function(){}},{key:"ngAfterViewInit",value:function(){}},{key:"ngAfterContentInit",value:function(){}},{key:"ngOnDestroy",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||TM)},TM.\u0275cmp=c.Xb({type:TM,selectors:[["app-trading"]],inputs:{id:"id"},decls:1,vars:1,consts:[[3,"id"]],template:function(e,t){1&e&&c.ec(0,"div",0),2&e&&c.Ec("id",t.id)},styles:["table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#00f}"]}),TM),RM={UKNOWN:"Unknown"},NM={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:RM.UKNOWN},BM={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n GT-B3210|GT-B33
110|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|
1SGH-X630|\n SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLI
1M|CINK SLIM 2|CINK +|\n CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},YM={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n SM-T719|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|M
1Z608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\b
1Nabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")}
1,zM={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:RM.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},VM=[zM.PS4,zM.CHROME_BOOK,zM.MAC,zM.DELL,zM.ASUS,zM.UNKNOWN],UM={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:RM.UKNOWN},$M={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:RM.UKNOWN.toLowerCase()},WM={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},qM=Object.assign(Object.assign(Object.assign(Object.assign({},BM),YM),WM),{FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}}),GM={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},XM={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},QM=function(e,t){return e[t]=GM[t],e},KM=Object.keys(GM).reduce(QM,{}),ZM=function(e,t){return e[NM[t]]=XM[t],e},JM=Object.keys(XM).reduce(ZM,{}),eD=Object.freeze({__proto__:null,GENERAL:RM,BROWSERS:NM,MOBILES_RE:BM,TABLETS_RE:YM,DEVICES:zM,DESKTOP_DEVICES:VM,OS:UM,OS_VERSIONS:$M,OS_RE:WM,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},DEVICES_RE:qM,OS_VERSIONS_RE_MAP:GM,BROWSER_VERSIONS_RE_MAP:XM,OS_VERSIONS_RE:KM,BROWSER_VERSIONS_RE:JM,"\u02750":QM,"\u02751":ZM}),tD=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"test",value:function(e,t){var n=this;return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.test(e):t&&Array.isArray(t.and)?t.and.every(function(t){return n.test(e,t)}):t&&Array.isArray(t.or)?t.or.some(function(t){return n.test(e,t)}):!(!t||!t.not||this.test(e,t.not))}},{key:"exec",value:function(e,t){var n=this;return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.exec(e):t&&Array.isArray(t)?t.reduce(function(t,i){return t||n.exec(e,i)},null):null}}]),e}(),nD=function(e){return e.Mobile="mobile",e.Tablet="tablet",e.Desktop="desktop",e.Unknown="unknown",e}({}),iD=function(e){return e.Portrait="portrait",e.Landscape="landscape",e}({}),rD=((EM=function(){function e(t){_classCallCheck(this,e),this.platformId=t,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new tD,this.deviceType="",this.orientation="",Object(l.z)(this.platformId)&&"undefined"!=typeof window&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}return _createClass(e,[{key:"setDeviceInfo",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;t!==this.userAgent&&(this.userAgent=t);var n=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(n.forEach(function(n){e[n.prop]=Object.keys(eD[n.const]).reduce(function(i,r){return"device"===eD[n.const][r]&&Object(l.z)(e.platformId)&&(e.reTree.test(e.userAgent,YM.iPad)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(i[eD[n.const][r]]="iPad",Object):(i[eD[n.const][r]]=e.reTree.test(t,eD["".concat(n.const,"_RE")][r]),i)},{})}
1),n.forEach(function(t){e[t.prop]=Object.keys(eD[t.const]).map(function(e){return eD[t.const][e]}).reduce(function(n,i){return"device"===t.prop&&n===eD[t.const].ANDROID?e[t.prop][i]?i:n:n===eD[t.const].UNKNOWN&&e[t.prop][i]?i:n},eD[t.const].UNKNOWN)}),this.browser_version="0",this.browser!==NM.UNKNOWN){var i=this.reTree.exec(t,JM[this.browser]);i&&(this.browser_version=i[1])}this.orientation="undefined"!=typeof window&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?iD.Landscape:iD.Portrait:RM.UKNOWN,this.deviceType=this.isTablet()?nD.Tablet:this.isMobile(this.userAgent)?nD.Mobile:this.isDesktop(this.userAgent)?nD.Desktop:nD.Unknown}},{key:"getDeviceInfo",value:function(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}},{key:"isMobile",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return!this.isTablet(t)&&!!Object.keys(BM).find(function(n){return e.reTree.test(t,BM[n])})}},{key:"isTablet",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return!(!Object(l.z)(this.platformId)||!(this.reTree.test(this.userAgent,YM.iPad)||"undefined"!=typeof navigator&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(YM).find(function(n){return!!e.reTree.test(t,YM[n])})}},{key:"isDesktop",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.userAgent;return(this.device!==zM.UNKNOWN||!this.isMobile(e)&&!this.isTablet(e))&&VM.indexOf(this.device)>-1}}]),e}()).\u0275fac=function(e){return new(e||EM)(c.qc(c.M))},EM.\u0275prov=Object(c.Zb)({factory:function(){return new EM(Object(c.qc)(c.M))},token:EM,providedIn:"root"}),EM);function aD(e,t){if(1&e&&(c.jc(0,"tr"),c.jc(1,"td"),c.ad(2),c.ic(),c.jc(3,"td"),c.ad(4),c.ic(),c.jc(5,"td"),c.ad(6),c.ic(),c.jc(7,"td"),c.ad(8),c.ic(),c.jc(9,"td"),c.ad(10),c.ic(),c.jc(11,"td"),c.ad(12),c.ic(),c.jc(13,"td"),c.ad(14),c.ic(),c.jc(15,"td"),c.ad(16),c.ic(),c.jc(17,"td"),c.ad(18),c.ic(),c.jc(19,"td"),c.ad(20),c.ic(),c.jc(21,"td"),c.ad(22),c.ic(),c.jc(23,"td"),c.ad(24),c.ic(),c.jc(25,"td"),c.ad(26),c.ic(),c.jc(27,"td"),c.ad(28),c.ic(),c.ic()),2&e){var n=t.$implicit;c.Pb(2),c.bd(n.year),c.Pb(1),c.Xc("color",n.month[0]>0?"green":n.month[0]<0?"red":"black"),c.Pb(1),c.bd(n.month[0].toFixed(2)),c.Pb(1),c.Xc("color",n.month[1]>0?"green":n.month[1]<0?"red":"black"),c.Pb(1),c.bd(n.month[1].toFixed(2)),c.Pb(1),c.Xc("color",n.month[2]>0?"green":n.month[2]<0?"red":"black"),c.Pb(1),c.bd(n.month[2].toFixed(2)),c.Pb(1),c.Xc("color",n.month[3]>0?"green":n.month[3]<0?"red":"black"),c.Pb(1),c.bd(n.month[3].toFixed(2)),c.Pb(1),c.Xc("color",n.month[4]>0?"green":n.month[4]<0?"red":"black"),c.Pb(1),c.bd(n.month[4].toFixed(2)),c.Pb(1),c.Xc("color",n.month[5]>0?"green":n.month[5]<0?"red":"black"),c.Pb(1),c.bd(n.month[5].toFixed(2)),c.Pb(1),c.Xc("color",n.month[6]>0?"green":n.month[6]<0?"red":"black"),c.Pb(1),c.bd(n.month[6].toFixed(2)),c.Pb(1),c.Xc("color",n.month[7]>0?"green":n.month[7]<0?"red":"black"),c.Pb(1),c.bd(n.month[7].toFixed(2)),c.Pb(1),c.Xc("color",n.month[8]>0?"green":n.month[8]<0?"red":"black"),c.Pb(1),c.bd(n.month[8].toFixed(2)),c.Pb(1),c.Xc("color",n.month[9]>0?"green":n.month[9]<0?"red":"black"),c.Pb(1),c.bd(n.month[9].toFixed(2)),c.Pb(1),c.Xc("color",n.month[10]>0?"green":n.month[10]<0?"red":"black"),c.Pb(1),c.bd(n.month[10].toFixed(2)),c.Pb(1),c.Xc("color",n.month[11]>0?"green":n.month[11]<0?"red":"black"),c.Pb(1),c.bd(n.month[11].toFixed(2)),c.Pb(1),c.Xc("color",n.month[12]>0?"green":n.month[12]<0?"red":"black"),c.Pb(1),c.bd(n.month[12].toFixed(2))}}var oD,sD=((oD=function(){function e(t){_classCallCheck(this,e),this.changeDetection=t}return _createClass(e,[{key:"ngOnInit",value:function(){this.gains=this.gainsIn}},{key:"Update",value:function(e){this.gains=null,this.changeDetection.detectChanges(),this.gains=e,this.changeDetection.detectChanges()}},{key:"ngAfterViewInit",value:function(){}},{key:"ngOnDestroy",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||oD)(c.dc(c.j))},oD.\u0275cmp=c.Xb({type:oD,selectors:[["app-gains"]],inputs:{gainsIn:"gainsIn"},decls:48,vars:1,consts:[[1,"container"],[2,"border-right","2px solid"],[2,"color","black"],[4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"table"),c.jc(2,"colgroup"),c.ec(3,"col",1),c.ec(4,"col"),c.ec(5,"col"),c.ec(6,"col"),c.ec(7,"col"),c.ec(8,"col"),c.ec(9,"col"),c.ec(10,"col"),c.ec(11,"col"),c.ec(12,"col"),c.ec(13,"col"),c.ec(14,"col"),c.ec(15,"col",1),c.ic(),c.jc(16,"thead"),c.jc(17,"tr"),c.jc(18,"th",2),c.ad(19,"Year"),c.ic(),c.jc(20,"th"),c.ad(21,"Jan"),c.ic(),c.jc(22,"th"),c.ad(23,"Feb"),c.ic(),c.jc(24,"th"),c.ad(25,"Mar"),c.ic(),c.jc(26,"th"),c.ad(27,"Apr"),c.ic(),c.jc(28,"th"),c.ad(29,"May"),c.ic(),c.jc(30,"th"),c.ad(31,"Jun"),c.ic(),c.jc(32,"th"),c.ad(33,"Jul"),c.ic(),c.jc(34,"th"),c.ad(35,"Aug"),c.ic(),c.jc(36,"th"),c.ad(37,"Sep"),c.ic(),c.jc(38,"th"),c.ad(39,"Oct"),c.ic(),c.jc(40,"th"),c.ad(41,"Nov"),c.ic(),c.jc(42,"th"),c.ad(43,"Dec"),c.ic(),c.jc(44,"th",2),c.ad(45,"Sum"),c.ic(),c.ic(),c.ic(),c.jc(46,"tbody"),c.Yc(47,aD,29,40,"tr",3),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(47),c.Dc("ngForOf",t.gains))},directives:[l.l],styles:["table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#00f}table[_ngcontent-%COMP%]{width:100%}@media only screen and (min-width:700px){table[_ngcontent-%COMP%]{font-size:15px}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding-right:5px;padding-left:5px}}@media only screen and (max-width:700px){table[_ngcontent-%COMP%]{font-size:8px}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding-right:1px;padding-left:1px}}"],data:{animation:[Zw]},changeDetection:0}),oD);function lD(e,t){if(1&e){var n=c.kc();c.jc(0,"tr",2),c.tc("click",function(){var e=c.Qc(n).$implicit;return c.xc().ClickRow(e)}),c.jc(1,"td"),c.ad(2),c.ic(),c.jc(3,"td"),c.ad(4),c.ic(),c.jc(5,"td"),c.ad(6),c.ic(),c.jc(7,"td"),c.ad(8),c.ic(),c.jc(9,"td"),c.ad(10),c.ic(),c.jc(11,"td"),c.ad(12),c.ic(),c.ic()}
1if(2&e){var i=t.$implicit;c.Pb(2),c.bd(i.symbol),c.Pb(2),c.bd(i.priceOpen.toFixed(5)),c.Pb(2),c.bd(i.time.toLocaleString()),c.Pb(2),c.bd(i.profit.toFixed(2)),c.Pb(2),c.bd(i.volume.toFixed(2)),c.Pb(2),c.bd(0==i.type?"Buy":1==i.type?"Sell":"")}}var cD,uD,dD,hD,fD=((cD=function(){function e(){_classCallCheck(this,e),this.myEvent=new c.s,this.isVisible=!1,this.dtOptions={},this.dtTrigger=new oe.a,this.isShowTrading=!0}return _createClass(e,[{key:"ngOnInit",value:function(){this.dtOptions={pagingType:"full_numbers",pageLength:10,autoWidth:!0,order:[[2,"desc"]],ordering:!0},this.deals=this.dealsIn}},{key:"ngAfterViewInit",value:function(){this.dtTrigger.next()}},{key:"ngAfterContentInit",value:function(){var e=this;setTimeout(function(){e.isShowTrading=!1},100)}},{key:"ClickRow",value:function(e){this.myEvent.emit(e.symbol)}},{key:"ngOnDestroy",value:function(){this.dtTrigger.unsubscribe()}},{key:"save",value:function(){this.dtElement.dtInstance.then(function(e){e.state.save()})}},{key:"load",value:function(){this.dtElement.dtInstance.then(function(e){e.state.loaded()})}},{key:"rerender",value:function(){var e=this;this.dtElement.dtInstance.then(function(t){t.destroy(),e.dtTrigger.next()})}}]),e}()).\u0275fac=function(e){return new(e||cD)},cD.\u0275cmp=c.Xb({type:cD,selectors:[["app-details"]],viewQuery:function(e,t){var n;1&e&&c.ed(Wl,5),2&e&&c.Mc(n=c.uc())&&(t.dtElement=n.first)},inputs:{dealsIn:"dealsIn"},outputs:{myEvent:"myEvent"},decls:17,vars:2,consts:[["datatable","",1,"row-border","hover",2,"width","100%","border","1px solid",3,"dtOptions"],[3,"click",4,"ngFor","ngForOf"],[3,"click"]],template:function(e,t){1&e&&(c.jc(0,"table",0),c.jc(1,"thead"),c.jc(2,"tr"),c.jc(3,"th"),c.ad(4,"Symbol"),c.ic(),c.jc(5,"th"),c.ad(6,"Price"),c.ic(),c.jc(7,"th"),c.ad(8,"Time"),c.ic(),c.jc(9,"th"),c.ad(10,"Profit"),c.ic(),c.jc(11,"th"),c.ad(12,"Volume"),c.ic(),c.jc(13,"th"),c.ad(14,"Type"),c.ic(),c.ic(),c.ic(),c.jc(15,"tbody"),c.Yc(16,lD,13,6,"tr",1),c.ic(),c.ic()),2&e&&(c.Dc("dtOptions",t.dtOptions),c.Pb(16),c.Dc("ngForOf",t.deals))},directives:[Wl,l.l],styles:["td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding:5px!important;border:1px solid}@media only screen and (min-width:700px){table[_ngcontent-%COMP%]{font-size:12px}}@media only screen and (max-width:700px){table[_ngcontent-%COMP%]{font-size:7px}}"],data:{animation:[Zw]}}),cD),pD=function(){var e=function e(t,n,i,r){_classCallCheck(this,e),this.name=t,this.value=n,this.groupName=i,this.description=r};return e.viewUsersPermission="users.view",e.manageUsersPermission="users.manage",e.viewRolesPermission="roles.view",e.manageRolesPermission="roles.manage",e.assignRolesPermission="roles.assign",e}(),mD=function e(t,n,i){_classCallCheck(this,e),this.userName=t,this.password=n,this.rememberMe=i},gD=((uD=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"urlBase64Decode",value:function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(t)}},{key:"b64DecodeUnicode",value:function(e){return decodeURIComponent(Array.prototype.map.call(atob(e),function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}},{key:"decodeToken",value:function(e){var t=e.split(".");if(3!==t.length)throw new Error("JWT must have 3 parts");var n=this.urlBase64Decode(t[1]);if(!n)throw new Error("Cannot decode the token");return JSON.parse(n)}},{key:"getTokenExpirationDate",value:function(e){var t;if(!(t=this.decodeToken(e)).hasOwnProperty("exp"))return null;var n=new Date(0);return n.setUTCSeconds(t.exp),n}},{key:"isTokenExpired",value:function(e,t){var n=this.getTokenExpirationDate(e);return t=t||0,null!=n&&!(n.valueOf()>(new Date).valueOf()+1e3*t)}}]),e}()).\u0275fac=function(e){return new(e||uD)},uD.\u0275prov=c.Zb({token:uD,factory:uD.\u0275fac}),uD),vD=function(){function e(t,n,i,r,a,o,s){_classCallCheck(this,e),this.id=t,this.userName=n,this.fullName=i,this.email=r,this.jobTitle=a,this.phoneNumber=o,this.roles=s}return _createClass(e,[{key:"friendlyName",get:function(){var e=this.fullName||this.userName;return this.jobTitle&&(e=this.jobTitle+" "+e),e}}]),e}(),yD=((hD=function(){function e(t,n,i,r){_classCallCheck(this,e),this.http=t,this.oauthService=n,this.configurations=i,this.localStorage=r,this.clientId="quickapp_spa",this.scope="openid email phone profile offline_access roles quickapp_api"}return _createClass(e,[{key:"baseUrl",get:function(){return this.configurations.baseUrl}},{key:"loginWithPassword",value:function(e,t){var n=this,i=new $l.e({"Content-Type":"application/x-www-form-urlencoded"}),r=(new $l.f).append("username",e).append("password",t).append("client_id",this.clientId).append("grant_type","password").append("scope",this.scope);return this.oauthService.issuer=this.baseUrl,Object(dr.a)(this.oauthService.loadDiscoveryDocument()).pipe(Object(is.a)(function(){return n.http.post(n.oauthService.tokenEndpoint,r,{headers:i})}))}},{key:"refreshLogin",value:function(){var e=this,t=new $l.e({"Content-Type":"application/x-www-form-urlencoded"}),n=(new $l.f).append("refresh_token",this.refreshToken).append("client_id",this.clientId).append("grant_type","refresh_token");return this.oauthService.issuer=this.baseUrl,Object(dr.a)(this.oauthService.loadDiscoveryDocument()).pipe(Object(is.a)(function(){return e.http.post(e.oauthService.tokenEndpoint,n,{headers:t})}))}},{key:"accessToken",get:function(){return this.localStorage.getData(Jw.ACCESS_TOKEN)}},{key:"accessTokenExpiryDate",get:function(){return this.localStorage.getDataObject(Jw.TOKEN_EXPIRES_IN,!0)}},{key:"refreshToken",get:function(){return this.localStorage.getData(Jw.REFRESH_TOKEN)}},{key:"isSessionExpired",get:function(){return null==this.accessTokenExpiryDate||this.accessTokenExpiryDate.valueOf()<=(new Date).valueOf()}}]),e}()).\u0275fac=function(e){return new(e||hD)(c.qc($l.b),c.qc(jh.b),c.qc(ak),c.qc(tk))},hD.\u0275prov=c.Zb({token:hD,factory:hD.\u0275fac}),hD),bD=((dD=function(){function e(t,n,i,r){_classCallCheck(this,e),this.router=t,this.oidcHelperService=n,this.configurations=i,this.localStorage=r,this.previousIsLoggedInCheck=!1,this.loginStatus=new oe.a,this.initializeLoginStatus()}return _createClass(e,[{key:"loginUrl",get:function(){return this.configurations.loginUrl}},{key:"homeUrl",get:function(){return this.configurations.homeUrl}},{key:"initializeLoginStatus",value:function(){var e=this;this.localStorage.getInitEvent().subscribe(function(){e.reevaluateLoginStatus()})}},{key:"gotoPage",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.router.navigate([e],{queryParamsHandling:t?"merge":"",preserveFragment:t})}},{key:"gotoHomePage",value:function(){this.router.navigate([this.homeUrl])}},{key:"redirectLoginUser",value:function(){var e=this.loginRedirectUrl&&"/"!==this.loginRedirectUrl&&this.loginRedirectUrl!==ak.defaultHomeUrl?this.loginRedirectUrl:this.homeUrl;this.loginRedirectUrl=null;var t=ek.splitInTwo(e,"#"),n=ek.splitInTwo(t.firstPart,"?"),i={fragment:t.secondPart,queryParams:ek.getQueryParamsFromString(n.secondPart),queryParamsHandling:"merge"};this.router.navigate([n.firstPart],i)}},{key:"redirectLogoutUser",value:function(){var e=this.logoutRedirectUrl?this.logoutRedirectUrl:this.loginUrl;this.logoutRedirectUrl=null,this.router.navigate([e])}},{key:"redirectForLogin",value:function(){this.loginRedirectUrl=this.router.url,this.router.navigate([this.loginUrl])}},{key:"reLogin",value:function(){this.reLoginDelegate?this.reLoginDelegate():this.redirectForLogin()}},{key:"refreshLogin",value:function(){var e=this;return this.oidcHelperService.refreshLogin().pipe(Object(ye.a)(function(t){return e.processLoginResponse(t,e.rememberMe)}))}},{key:"loginWithPassword",value:function(e,t,n){var i=this;return this.isLoggedIn&&this.logout(),this.oidcHelperService.loginWithPassword(e,t).pipe(Object(ye.a)(function(e){return i.processLoginResponse(e,n)}))}},{key:"processLoginResponse",value:function(e,t){var n=e.access_token;if(null==n)throw new Error("accessToken cannot be null");t=t||this.rememberMe;var i=e.refresh_token||this.refreshToken,r=e.expires_in,a=new Date;a.setSeconds(a.getSeconds()+r);var o=a,s=(new gD).decodeToken(n),l=s.permission?Array.isArray(s.permission)?s.permission:[s.permission]:[];this.isLoggedIn||this.configurations.import(s.configuration);var c=new vD(s.sub,s.name,s.fullname,s.email,s.jobtitle,s.phone_number,s.role?Array.isArray(s.role)?s.role:[s.role]:[]);
1return c.isEnabled=!0,this.saveUserDetails(c,l,n,i,o,t),this.reevaluateLoginStatus(c),c}},{key:"saveUserDetails",value:function(e,t,n,i,r,a){a?(this.localStorage.savePermanentData(n,Jw.ACCESS_TOKEN),this.localStorage.savePermanentData(i,Jw.REFRESH_TOKEN),this.localStorage.savePermanentData(r,Jw.TOKEN_EXPIRES_IN),this.localStorage.savePermanentData(t,Jw.USER_PERMISSIONS),this.localStorage.savePermanentData(e,Jw.CURRENT_USER)):(this.localStorage.saveSyncedSessionData(n,Jw.ACCESS_TOKEN),this.localStorage.saveSyncedSessionData(i,Jw.REFRESH_TOKEN),this.localStorage.saveSyncedSessionData(r,Jw.TOKEN_EXPIRES_IN),this.localStorage.saveSyncedSessionData(t,Jw.USER_PERMISSIONS),this.localStorage.saveSyncedSessionData(e,Jw.CURRENT_USER)),this.localStorage.savePermanentData(a,Jw.REMEMBER_ME)}},{key:"logout",value:function(){this.localStorage.deleteData(Jw.ACCESS_TOKEN),this.localStorage.deleteData(Jw.REFRESH_TOKEN),this.localStorage.deleteData(Jw.TOKEN_EXPIRES_IN),this.localStorage.deleteData(Jw.USER_PERMISSIONS),this.localStorage.deleteData(Jw.CURRENT_USER),this.configurations.clearLocalChanges(),this.reevaluateLoginStatus()}},{key:"reevaluateLoginStatus",value:function(e){var t=this,n=null!=(e||this.localStorage.getDataObject(Jw.CURRENT_USER));this.previousIsLoggedInCheck!==n&&setTimeout(function(){t.loginStatus.next(n)}),this.previousIsLoggedInCheck=n}},{key:"getLoginStatusEvent",value:function(){return this.loginStatus.asObservable()}},{key:"currentUser",get:function(){var e=this.localStorage.getDataObject(Jw.CURRENT_USER);return this.reevaluateLoginStatus(e),e}},{key:"userPermissions",get:function(){return this.localStorage.getDataObject(Jw.USER_PERMISSIONS)||[]}},{key:"accessToken",get:function(){return this.oidcHelperService.accessToken}},{key:"accessTokenExpiryDate",get:function(){return this.oidcHelperService.accessTokenExpiryDate}},{key:"refreshToken",get:function(){return this.oidcHelperService.refreshToken}},{key:"isSessionExpired",get:function(){return this.oidcHelperService.isSessionExpired}},{key:"isLoggedIn",get:function(){return null!=this.currentUser}},{key:"rememberMe",get:function(){return!0===this.localStorage.getDataObject(Jw.REMEMBER_ME)}},{key:"loginWithGoogle",value:function(){this.loginRedirectUrl=this.router.url,window.location.href="/api/auth/google-login"}}]),e}()).\u0275fac=function(e){return new(e||dD)(c.qc(fw),c.qc(yD),c.qc(ak),c.qc(tk))},dD.\u0275prov=c.Zb({token:dD,factory:dD.\u0275fac}),dD);function _D(e,t){if(1&e){var n=c.kc();c.jc(0,"button",9),c.tc("click",function(){return c.Qc(n),c.xc().closeModal()}),c.jc(1,"span",10),c.ad(2,"\xd7"),c.ic(),c.ic()}}function wD(e,t){1&e&&(c.jc(0,"span",29),c.ad(1," Username is required "),c.ic())}function kD(e,t){1&e&&(c.jc(0,"span",29),c.ad(1," Password is required "),c.ic())}function CD(e,t){1&e&&c.ec(0,"i",30)}var xD=function(e,t){return{"is-valid":e,"is-invalid":t}};function SD(e,t){if(1&e){var n=c.kc();c.jc(0,"form",11,12),c.tc("ngSubmit",function(){c.Qc(n);var e=c.Nc(1),t=c.Nc(7),i=c.Nc(14),r=c.xc();return e.form.valid?r.login():!t.valid&&r.showErrorAlert("Username is required","Please enter a valid username"),!i.valid&&r.showErrorAlert("Password is required","Please enter a valid password")}),c.jc(2,"div",13),c.jc(3,"label",14),c.ad(4,"Username:"),c.ic(),c.jc(5,"div",15),c.jc(6,"input",16,17),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().userLogin.userName=e}),c.ic(),c.Yc(8,wD,2,0,"span",18),c.ic(),c.ic(),c.jc(9,"div",13),c.jc(10,"label",19),c.ad(11,"Password:"),c.ic(),c.jc(12,"div",15),c.jc(13,"input",20,21),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().userLogin.password=e}),c.ic(),c.Yc(15,kD,2,0,"span",18),c.ic(),c.ic(),c.jc(16,"div",13),c.jc(17,"div",22),c.jc(18,"div",23),c.jc(19,"input",24),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().userLogin.rememberMe=e}),c.ic(),c.jc(20,"label",25),c.ad(21,"Remember me"),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(22,"div",13),c.jc(23,"div",22),c.jc(24,"button",26),c.Yc(25,CD,1,0,"i",27),c.ad(26),c.ic(),c.ic(),c.ic(),c.jc(27,"div",13),c.jc(28,"div",22),c.jc(29,"a",28),c.tc("click",function(){return c.Qc(n),c.xc().onForgotPassword()}),c.ad(30,"Forgot Password"),c.ic(),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.Nc(1),r=c.Nc(7),a=c.Nc(14),o=c.xc();c.Pb(6),c.Dc("ngClass",c.Ic(10,xD,i.submitted&&r.valid,i.submitted&&!r.valid))("ngModel",o.userLogin.userName),c.Pb(2),c.Dc("ngIf",i.submitted&&!r.valid),c.Pb(5),c.Dc("ngClass",c.Ic(13,xD,i.submitted&&a.valid,i.submitted&&!a.valid))("ngModel",o.userLogin.password),c.Pb(2),c.Dc("ngIf",i.submitted&&!a.valid),c.Pb(4),c.Dc("ngModel",o.userLogin.rememberMe),c.Pb(5),c.Dc("disabled",o.isLoading),c.Pb(1),c.Dc("ngIf",o.isLoading),c.Pb(1),c.cd(" ",o.isLoading?"Logging in...":"Login"," ")}}var MD,DD,TD,ED,AD=((MD=function(){function e(t,n,i,r){_classCallCheck(this,e),this.router=t,this.alertService=n,this.authService=i,this.configurations=r,this.myeventForgotPassword=new c.s,this.userLogin=new mD,this.isLoading=!1,this.isShow=!1,this.formResetToggle=!0,this.isModal=!0}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;
1this.userLogin.rememberMe=this.authService.rememberMe,this.getShouldRedirect()?this.authService.redirectLoginUser():this.loginStatusSubscription=this.authService.getLoginStatusEvent().subscribe(function(t){e.getShouldRedirect()&&e.authService.redirectLoginUser()})}},{key:"showLogin",value:function(){this.isShow=!0}},{key:"ngOnDestroy",value:function(){this.loginStatusSubscription&&this.loginStatusSubscription.unsubscribe()}},{key:"getShouldRedirect",value:function(){return!this.isModal&&this.authService.isLoggedIn&&!this.authService.isSessionExpired}},{key:"showErrorAlert",value:function(e,t){this.alertService.showMessage(e,t,OM.error)}},{key:"closeModal",value:function(){this.modalClosedCallback&&this.modalClosedCallback(),this.isShow=!1}},{key:"login",value:function(){var e=this;this.isLoading=!0,this.alertService.startLoadingMessage("","Attempting login..."),this.authService.loginWithPassword(this.userLogin.userName,this.userLogin.password,this.userLogin.rememberMe).subscribe(function(t){setTimeout(function(){e.alertService.stopLoadingMessage(),e.isLoading=!1,e.reset(),e.isModal?(e.alertService.showMessage("Login","Session for ".concat(t.userName," restored!"),OM.success),e.closeModal()):e.alertService.showMessage("Login","Welcome ".concat(t.userName,"!"),OM.success)},500)},function(t){if(e.alertService.stopLoadingMessage(),ek.checkNoNetwork(t))e.alertService.showStickyMessage(ek.noNetworkMessageCaption,ek.noNetworkMessageDetail,OM.error,t),e.offerAlternateHost();else{var n=ek.getHttpResponseMessage(t);e.alertService.showStickyMessage("Unable to login",n?e.mapLoginErrorMessage(n):"An error occured whilst logging in, please try again later.\nError: "+ek.getResponseBody(t),OM.error,t)}setTimeout(function(){e.isLoading=!1},500)})}},{key:"offerAlternateHost",value:function(){var e=this;ek.checkIsLocalHost(location.origin)&&ek.checkIsLocalHost(this.configurations.baseUrl)&&this.alertService.showDialog("Dear Developer!\nIt appears your backend Web API service is not running...\nWould you want to temporarily switch to the online Demo API below?(Or specify another)",LM.prompt,function(t){e.configurations.baseUrl=t,e.configurations.tokenUrl=t,e.alertService.showStickyMessage("API Changed!","The target Web API has been changed to: "+t,OM.warn)},null,null,null,this.configurations.fallbackBaseUrl)}},{key:"mapLoginErrorMessage",value:function(e){return"invalid_username_or_password"===e?"Invalid username or password":"invalid_grant"===e?"This account has been disabled":e}},{key:"onForgotPassword",value:function(){this.myeventForgotPassword.emit()}},{key:"reset",value:function(){var e=this;this.formResetToggle=!1,setTimeout(function(){e.formResetToggle=!0})}}]),e}()).\u0275fac=function(e){return new(e||MD)(c.dc(fw),c.dc(PM),c.dc(bD),c.dc(ak))},MD.\u0275cmp=c.Xb({type:MD,selectors:[["app-login"]],inputs:{isModal:"isModal"},outputs:{myeventForgotPassword:"myeventForgotPassword"},decls:10,vars:2,consts:[[1,"d-flex","h-90"],[1,"login-container","m-auto"],[1,"card","boxshadow"],[1,"card-header","bg-primary","dark","text-white","clearfix"],["aria-hidden","true",1,"fa","fa-lock"],["type","button","class","close float-right text-light","aria-label","Close",3,"click",4,"ngIf"],[1,"card-body"],[1,"col-md-8","offset-md-2"],["class","login","name","loginForm","novalidate","",3,"ngSubmit",4,"ngIf"],["type","button","aria-label","Close",1,"close","float-right","text-light",3,"click"],["aria-hidden","true"],["name","loginForm","novalidate","",1,"login",3,"ngSubmit"],["f","ngForm"],[1,"form-group","row"],["for","login-username",1,"col-form-label","col-md-3"],[1,"col-md-9"],["type","text","id","login-username","name","username","placeholder","Enter username","autocomplete","username","required","",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["username","ngModel"],["class","invalid-feedback",4,"ngIf"],["for","login-password",1,"col-form-label","col-md-3"],["type","password","id","login-password","name","password","placeholder","Enter password","autocomplete","current-password","required","",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["password","ngModel"],[1,"offset-md-3","col-md-9"],[1,"form-check"],["type","checkbox","id","login-rememberme","name","rememberMe",1,"form-check-input",3,"ngModel","ngModelChange"],["for","login-rememberme",1,"form-check-label"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","fa fa-circle-o-notch fa-spin",4,"ngIf"],[3,"routerLink","click"],[1,"invalid-feedback"],[1,"fa","fa-circle-o-notch","fa-spin"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"div",1),c.jc(2,"div",2),c.jc(3,"div",3),c.ec(4,"i",4),c.ad(5," Login "),c.Yc(6,_D,3,0,"button",5),c.ic(),c.jc(7,"div",6),c.jc(8,"div",7),c.Yc(9,SD,31,16,"form",8),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(6),c.Dc("ngIf",t.isModal),c.Pb(3),c.Dc("ngIf",t.formResetToggle))},directives:[l.m,Ra,Jr,Ia,Er,Wa,l.k,Zr,Fa,Mr,mw],styles:['.boxshadow[_ngcontent-%COMP%]{position:relative;box-shadow:1px 2px 4px rgba(0,0,0,.5);padding:10px;background:#fff}.boxshadow[_ngcontent-%COMP%]:after{content:"";position:absolute;z-index:-1;box-shadow:0 15px 20px rgba(0,0,0,.3);width:70%;left:15%;height:100px;bottom:0}.cardshadow[_ngcontent-%COMP%]{box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19)}.last-control-group[_ngcontent-%COMP%]{margin-bottom:-.75rem}.h-90[_ngcontent-%COMP%]{height:90%}@media (min-width:768px){.login-container[_ngcontent-%COMP%]{width:700px}}@media (min-width:1200px){.login-container[_ngcontent-%COMP%]{width:730px}}']}),MD),PD=function e(){_classCallCheck(this,e)},LD=n("z6cu"),OD=((ED=function(){function e(t,n){_classCallCheck(this,e),this.http=t,this.authService=n}return _createClass(e,[{key:"requestHeaders",get:function(){return{headers:new $l.e({Authorization:"Bearer "+this.authService.accessToken,"Content-Type":"application/json","Content-Encoding":"gzip, identity",Accept:"application/json, text/plain, */*"})}}},{key:"refreshLogin",value:function(){var e=this;return this.authService.refreshLogin().pipe(Object(Cy.a)(function(t){return e.handleError(t,function(){return e.refreshLogin()})}))}},{key:"handleError",value:function(e,t){var n=this;return 401===e.status?this.isRefreshingLogin?this.pauseTask(t):(this.isRefreshingLogin=!0,Object(dr.a)(this.authService.refreshLogin()).pipe(Object(is.a)(function(){return n.isRefreshingLogin=!1,n.resumeTasks(!0),t()}),Object(Cy.a)(function(e){return n.isRefreshingLogin=!1,n.resumeTasks(!1),n.authService.reLogin(),401===e.status||e.error&&"invalid_grant"===e.error.error?Object(LD.a)("session expired"):Object(LD.a)(e||"server error")}))):e.error&&"invalid_grant"===e.error.error?(this.authService.reLogin(),Object(LD.a)(e.error&&e.error.error_description?"session expired (".concat(e.error.error_description,")"):"session expired")):Object(LD.a)(e)}}
1,{key:"pauseTask",value:function(e){return this.taskPauser||(this.taskPauser=new oe.a),this.taskPauser.pipe(Object(Ko.a)(function(t){return t?e():Object(LD.a)("session expired")}))}},{key:"resumeTasks",value:function(e){var t=this;setTimeout(function(){t.taskPauser&&(t.taskPauser.next(e),t.taskPauser.complete(),t.taskPauser=null)})}}]),e}()).\u0275fac=function(e){return new(e||ED)(c.qc($l.b),c.qc(bD))},ED.\u0275prov=c.Zb({token:ED,factory:ED.\u0275fac}),ED),ID=((TD=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,i,r)).configurations=e,a}return _createClass(n,[{key:"usersUrl",get:function(){return this.configurations.baseUrl+"/api/account/users"}},{key:"registerUrl",get:function(){return this.configurations.baseUrl+"/api/account/register"}},{key:"resetUrl",get:function(){return this.configurations.baseUrl+"/api/account/reset"}},{key:"forgotPasswordUrl",get:function(){return this.configurations.baseUrl+"/api/account/forgotPassword"}},{key:"userByUserNameUrl",get:function(){return this.configurations.baseUrl+"/api/account/users/username"}},{key:"currentUserUrl",get:function(){return this.configurations.baseUrl+"/api/account/users/me"}},{key:"currentUserPreferencesUrl",get:function(){return this.configurations.baseUrl+"/api/account/users/me/preferences"}},{key:"unblockUserUrl",get:function(){return this.configurations.baseUrl+"/api/account/users/unblock"}},{key:"rolesUrl",get:function(){return this.configurations.baseUrl+"/api/account/roles"}},{key:"roleByRoleNameUrl",get:function(){return this.configurations.baseUrl+"/api/account/roles/name"}},{key:"permissionsUrl",get:function(){return this.configurations.baseUrl+"/api/account/permissions"}},{key:"resetPasswordUrl",get:function(){return this.configurations.baseUrl+""}},{key:"getUserEndpoint",value:function(e){var t=this;return this.http.get(e?"".concat(this.usersUrl,"/").concat(e):this.currentUserUrl,this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getUserEndpoint(e)})}))}},{key:"getUserByUserNameEndpoint",value:function(e){var t=this;return this.http.get("".concat(this.userByUserNameUrl,"/").concat(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getUserByUserNameEndpoint(e)})}))}},{key:"getUsersEndpoint",value:function(e,t){var n=this;return this.http.get(e&&t?"".concat(this.usersUrl,"/").concat(e,"/").concat(t):this.usersUrl,this.requestHeaders).pipe(Object(Cy.a)(function(i){return n.handleError(i,function(){return n.getUsersEndpoint(e,t)})}))}},{key:"getNewUserEndpoint",value:function(e){var t=this;return this.http.post(this.usersUrl,JSON.stringify(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getNewUserEndpoint(e)})}))}},{key:"resetPasswordEndpoint",value:function(e){var t=this;return this.http.post(this.resetUrl,JSON.stringify(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.resetPasswordEndpoint(e)})}))}},{key:"getRegisterUserEndpoint",value:function(e){var t=this;return this.http.post(this.registerUrl,JSON.stringify(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getNewUserEndpoint(e)})}))}},{key:"getForgotPasswordEndpoint",value:function(e){var t=this,n=this.forgotPasswordUrl;return e.clientURI=this.resetPasswordUrl,this.http.post(n,JSON.stringify(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getForgotPasswordEndpoint(e)})}))}},{key:"getUpdateUserEndpoint",value:function(e,t){var n=this;return this.http.put(t?"".concat(this.usersUrl,"/").concat(t):this.currentUserUrl,JSON.stringify(e),this.requestHeaders).pipe(Object(Cy.a)(function(i){return n.handleError(i,function(){return n.getUpdateUserEndpoint(e,t)})}))}},{key:"getPatchUpdateUserEndpoint",value:function(e,t,n,i,r){var a,o,s=this;return n?(a=r?"".concat(this.usersUrl,"/").concat(r):this.currentUserUrl,o=i?[{value:e,path:n,op:t,from:i}]:[{value:e,path:n,op:t}]):(a=t?"".concat(this.usersUrl,"/").concat(t):this.currentUserUrl,o=e),this.http.patch(a,JSON.stringify(o),this.requestHeaders).pipe(Object(Cy.a)(function(a){return s.handleError(a,function(){return s.getPatchUpdateUserEndpoint(e,t,n,i,r)})}))}},{key:"getUserPreferencesEndpoint",value:function(){var e=this;return this.http.get(this.currentUserPreferencesUrl,this.requestHeaders).pipe(Object(Cy.a)(function(t){return e.handleError(t,function(){return e.getUserPreferencesEndpoint()})}))}}
1,{key:"getUpdateUserPreferencesEndpoint",value:function(e){var t=this;return this.http.put(this.currentUserPreferencesUrl,JSON.stringify(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getUpdateUserPreferencesEndpoint(e)})}))}},{key:"getUnblockUserEndpoint",value:function(e){var t=this;return this.http.put("".concat(this.unblockUserUrl,"/").concat(e),null,this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getUnblockUserEndpoint(e)})}))}},{key:"getDeleteUserEndpoint",value:function(e){var t=this;return this.http.delete("".concat(this.usersUrl,"/").concat(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getDeleteUserEndpoint(e)})}))}},{key:"getRoleEndpoint",value:function(e){var t=this;return this.http.get("".concat(this.rolesUrl,"/").concat(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getRoleEndpoint(e)})}))}},{key:"getRoleByRoleNameEndpoint",value:function(e){var t=this;return this.http.get("".concat(this.roleByRoleNameUrl,"/").concat(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getRoleByRoleNameEndpoint(e)})}))}},{key:"getRolesEndpoint",value:function(e,t){var n=this;return this.http.get(e&&t?"".concat(this.rolesUrl,"/").concat(e,"/").concat(t):this.rolesUrl,this.requestHeaders).pipe(Object(Cy.a)(function(i){return n.handleError(i,function(){return n.getRolesEndpoint(e,t)})}))}},{key:"getNewRoleEndpoint",value:function(e){var t=this;return this.http.post(this.rolesUrl,JSON.stringify(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getNewRoleEndpoint(e)})}))}},{key:"getUpdateRoleEndpoint",value:function(e,t){var n=this;return this.http.put("".concat(this.rolesUrl,"/").concat(t),JSON.stringify(e),this.requestHeaders).pipe(Object(Cy.a)(function(i){return n.handleError(i,function(){return n.getUpdateRoleEndpoint(e,t)})}))}},{key:"getDeleteRoleEndpoint",value:function(e){var t=this;return this.http.delete("".concat(this.rolesUrl,"/").concat(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.getDeleteRoleEndpoint(e)})}))}},{key:"getPermissionsEndpoint",value:function(){var e=this;return this.http.get(this.permissionsUrl,this.requestHeaders).pipe(Object(Cy.a)(function(t){return e.handleError(t,function(){return e.getPermissionsEndpoint()})}))}},{key:"refreshLogin",value:function(){return _get(_getPrototypeOf(n.prototype),"refreshLogin",this).call(this)}}]),n}(OD)).\u0275fac=function(e){return new(e||TD)(c.qc(ak),c.qc($l.b),c.qc(bD))},TD.\u0275prov=c.Zb({token:TD,factory:TD.\u0275fac}),TD),HD=((DD=function(){function e(t,n){_classCallCheck(this,e),this.authService=t,this.accountEndpoint=n,this.rolesChanged=new oe.a}return _createClass(e,[{key:"getUser",value:function(e){return this.accountEndpoint.getUserEndpoint(e)}},{key:"getUserAndRoles",value:function(e){return pr([this.accountEndpoint.getUserEndpoint(e),this.accountEndpoint.getRolesEndpoint()])}},{key:"getUsers",value:function(e,t){return this.accountEndpoint.getUsersEndpoint(e,t)}},{key:"getUsersAndRoles",value:function(e,t){return pr([this.accountEndpoint.getUsersEndpoint(e,t),this.accountEndpoint.getRolesEndpoint()])}},{key:"updateUser",value:function(e){var t=this;return e.id?this.accountEndpoint.getUpdateUserEndpoint(e,e.id):this.accountEndpoint.getUserByUserNameEndpoint(e.userName).pipe(Object(is.a)(function(n){return e.id=n.id,t.accountEndpoint.getUpdateUserEndpoint(e,e.id)}))}},{key:"forgotPassword",value:function(e){return this.accountEndpoint.getForgotPasswordEndpoint(e)}},{key:"newUser",value:function(e){return this.accountEndpoint.getNewUserEndpoint(e)}},{key:"resetPassword",value:function(e){return this.accountEndpoint.resetPasswordEndpoint(e)}},{key:"registerUser",value:function(e){return this.accountEndpoint.getRegisterUserEndpoint(e)}},{key:"getUserPreferences",value:function(){return this.accountEndpoint.getUserPreferencesEndpoint()}},{key:"updateUserPreferences",value:function(e){return this.accountEndpoint.getUpdateUserPreferencesEndpoint(e)}},{key:"deleteUser",value:function(e){var t=this;return"string"==typeof e||e instanceof String?this.accountEndpoint.getDeleteUserEndpoint(e).pi
1pe(Object(ge.a)(function(e){return t.onRolesUserCountChanged(e.roles)})):e.id?this.deleteUser(e.id):this.accountEndpoint.getUserByUserNameEndpoint(e.userName).pipe(Object(is.a)(function(e){return t.deleteUser(e.id)}))}},{key:"unblockUser",value:function(e){return this.accountEndpoint.getUnblockUserEndpoint(e)}},{key:"userHasPermission",value:function(e){return this.permissions.some(function(t){return t===e})}},{key:"refreshLoggedInUser",value:function(){return this.accountEndpoint.refreshLogin()}},{key:"getRoles",value:function(e,t){return this.accountEndpoint.getRolesEndpoint(e,t)}},{key:"getRolesAndPermissions",value:function(e,t){return pr([this.accountEndpoint.getRolesEndpoint(e,t),this.accountEndpoint.getPermissionsEndpoint()])}},{key:"updateRole",value:function(t){var n=this;return t.id?this.accountEndpoint.getUpdateRoleEndpoint(t,t.id).pipe(Object(ge.a)(function(i){return n.onRolesChanged([t],e.roleModifiedOperation)})):this.accountEndpoint.getRoleByRoleNameEndpoint(t.name).pipe(Object(is.a)(function(e){return t.id=e.id,n.accountEndpoint.getUpdateRoleEndpoint(t,t.id)}),Object(ge.a)(function(i){return n.onRolesChanged([t],e.roleModifiedOperation)}))}},{key:"newRole",value:function(t){var n=this;return this.accountEndpoint.getNewRoleEndpoint(t).pipe(Object(ge.a)(function(i){return n.onRolesChanged([t],e.roleAddedOperation)}))}},{key:"deleteRole",value:function(t){var n=this;return"string"==typeof t||t instanceof String?this.accountEndpoint.getDeleteRoleEndpoint(t).pipe(Object(ge.a)(function(t){return n.onRolesChanged([t],e.roleDeletedOperation)})):t.id?this.deleteRole(t.id):this.accountEndpoint.getRoleByRoleNameEndpoint(t.name).pipe(Object(is.a)(function(e){return n.deleteRole(e.id)}))}},{key:"getPermissions",value:function(){return this.accountEndpoint.getPermissionsEndpoint()}},{key:"onRolesChanged",value:function(e,t){this.rolesChanged.next({roles:e,operation:t})}},{key:"onRolesUserCountChanged",value:function(t){return this.onRolesChanged(t,e.roleModifiedOperation)}},{key:"getRolesChangedEvent",value:function(){return this.rolesChanged.asObservable()}},{key:"permissions",get:function(){return this.authService.userPermissions}},{key:"currentUser",get:function(){return this.authService.currentUser}}]),e}()).roleAddedOperation="add",DD.roleDeletedOperation="delete",DD.roleModifiedOperation="modify",DD.\u0275fac=function(e){return new(e||DD)(c.qc(bD),c.qc(ID))},DD.\u0275prov=c.Zb({token:DD,factory:DD.\u0275fac}),DD);function jD(e,t){if(1&e){var n=c.kc();c.jc(0,"button",9),c.tc("click",function(){return c.Qc(n),c.xc().closeModal()}),c.jc(1,"span",10),c.ad(2,"\xd7"),c.ic(),c.ic()}}function FD(e,t){1&e&&(c.jc(0,"span",21),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.EmailRequired")," "))}function RD(e,t){1&e&&(c.jc(0,"span",21),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.InvalidEmail")," "))}function ND(e,t){1&e&&c.ec(0,"i",22)}var BD=function(e,t){return{"is-valid":e,"is-invalid":t}};function YD(e,t){if(1&e){var n=c.kc();c.jc(0,"form",11,12),c.tc("ngSubmit",function(){c.Qc(n);var e=c.Nc(1),t=c.Nc(8),i=c.xc();return e.form.valid?i.forgot():null!=t.errors&&t.errors.required&&i.showErrorAlert("Email is required","Please enter an email address (maximum of 200 characters)"),(null==t.errors?null:t.errors.pattern)&&i.showErrorAlert("Invalid Email","Please enter a valid email address")}),c.jc(2,"div",13),c.jc(3,"label",14),c.ad(4),c.yc(5,"translate"),c.ic(),c.jc(6,"div",15),c.jc(7,"input",16,17),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().forgotPasswordDto.email=e}),c.ic(),c.Yc(9,FD,3,3,"span",18),c.Yc(10,RD,3,3,"span",18),c.ic(),c.ic(),c.jc(11,"div",13),c.jc(12,"div",15),c.jc(13,"button",19),c.Yc(14,ND,1,0,"i",20),c.ad(15),c.ic(),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.Nc(1),r=c.Nc(8),a=c.xc();c.Pb(3),c.Fc("for","email-",a.uniqueId,""),c.Pb(1),c.bd(c.zc(5,10,"users.editor.Email")),c.Pb(3),c.Rb("id","email-",a.uniqueId,""),c.Dc("ngClass",c.Ic(12,BD,i.submitted&&r.valid,i.submitted&&!r.valid))("ngModel",a.forgotPasswordDto.email),c.Pb(2),c.Dc("ngIf",i.submitted&&(null==r.errors?null:r.errors.required)),c.Pb(1),c.Dc("ngIf",i.submitted&&(null==r.errors?null:r.errors.pattern)),c.Pb(3),c.Dc("disabled",a.isLoading),c.Pb(1),c.Dc("ngIf",a.isLoading),c.Pb(1),c.cd(" ",a.isLoading?"Sending...":"Send"," ")}}var zD,VD=((zD=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.router=t,this.alertService=n,this.authService=i,this.accountService=r,this.configurations=a,this.isLoading=!1,this.isShow=!1,this.formResetToggle=!0,this.forgotPasswordDto=new PD,this.uniqueId=ek.uniqueId(),this.isModal=!0}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){}},{key:"showErrorAlert",value:function(e,t){this.alertService.showMessage(e,t,OM.error)}},{key:"closeModal",value:function(){this.modalClosedCallback&&this.modalClosedCallback(),this.isShow=!1}},{key:"forgot",value:function(){var e=this;this.isLoading=!0,this.alertService.startLoadingMessage("","Sending message..."),this.accountService.forgotPassword({email:this.forgotPasswordDto.email,clientURI:""}).subscribe(function(t){setTimeout(function(){e.alertService.stopLoadingMessage(),e.isLoading=!1,e.reset(),e.
1isModal&&(e.alertService.showMessage("Success","Message send successfully",OM.success),e.closeModal(),e.router.navigate(["/home"]))},500)},function(t){if(e.alertService.stopLoadingMessage(),ek.checkNoNetwork(t))e.alertService.showStickyMessage(ek.noNetworkMessageCaption,ek.noNetworkMessageDetail,OM.error,t),e.offerAlternateHost();else{var n=ek.getHttpResponseMessage(t);e.alertService.showStickyMessage("Unable to login",n?e.mapLoginErrorMessage(n):"An error occured whilst logging in, please try again later.\nError: "+ek.getResponseBody(t),OM.error,t)}setTimeout(function(){e.isLoading=!1},500)})}},{key:"offerAlternateHost",value:function(){var e=this;ek.checkIsLocalHost(location.origin)&&ek.checkIsLocalHost(this.configurations.baseUrl)&&this.alertService.showDialog("Dear Developer!\nIt appears your backend Web API service is not running...\nWould you want to temporarily switch to the online Demo API below?(Or specify another)",LM.prompt,function(t){e.configurations.baseUrl=t,e.configurations.tokenUrl=t,e.alertService.showStickyMessage("API Changed!","The target Web API has been changed to: "+t,OM.warn)},null,null,null,this.configurations.fallbackBaseUrl)}},{key:"mapLoginErrorMessage",value:function(e){return"invalid_username_or_password"===e?"Invalid username or password":"invalid_grant"===e?"This account has been disabled":e}},{key:"reset",value:function(){var e=this;this.formResetToggle=!1,setTimeout(function(){e.formResetToggle=!0})}}]),e}()).\u0275fac=function(e){return new(e||zD)(c.dc(fw),c.dc(PM),c.dc(bD),c.dc(HD),c.dc(ak))},zD.\u0275cmp=c.Xb({type:zD,selectors:[["app-forgot"]],inputs:{isModal:"isModal"},decls:10,vars:2,consts:[[1,"d-flex","h-90"],[1,"login-container","m-auto"],[1,"card","boxshadow"],[1,"card-header","bg-primary","dark","text-white","clearfix"],["aria-hidden","true",1,"fa","fa-lock"],["type","button","class","close float-right text-light","aria-label","Close",3,"click",4,"ngIf"],[1,"card-body"],[1,"col-md-8","offset-md-2"],["class","login","name","forgotForm","novalidate","",3,"ngSubmit",4,"ngIf"],["type","button","aria-label","Close",1,"close","float-right","text-light",3,"click"],["aria-hidden","true"],["name","forgotForm","novalidate","",1,"login",3,"ngSubmit"],["f","ngForm"],[1,"form-group","row"],[1,"col-form-label",3,"for"],[1,"offset-md-3","col-md-9"],["type","text","name","email","placeholder","Enter email address","required","","maxlength","200","pattern","^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["email","ngModel"],["class","invalid-feedback",4,"ngIf"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","fa fa-circle-o-notch fa-spin",4,"ngIf"],[1,"invalid-feedback"],[1,"fa","fa-circle-o-notch","fa-spin"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"div",1),c.jc(2,"div",2),c.jc(3,"div",3),c.ec(4,"i",4),c.ad(5," Forgot Password "),c.Yc(6,jD,3,0,"button",5),c.ic(),c.jc(7,"div",6),c.jc(8,"div",7),c.Yc(9,YD,16,15,"form",8),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(6),c.Dc("ngIf",t.isModal),c.Pb(3),c.Dc("ngIf",t.formResetToggle))},directives:[l.m,Ra,Jr,Ia,Er,Wa,Qa,Za,l.k,Zr,Fa],pipes:[jc],styles:['.boxshadow[_ngcontent-%COMP%]{position:relative;box-shadow:1px 2px 4px rgba(0,0,0,.5);padding:10px;background:#fff}.boxshadow[_ngcontent-%COMP%]:after{content:"";position:absolute;z-index:-1;box-shadow:0 15px 20px rgba(0,0,0,.3);width:70%;left:15%;height:100px;bottom:0}.cardshadow[_ngcontent-%COMP%]{box-shadow:0 4px 8px 0 rgba(0,0,0,.2),0 6px 20px 0 rgba(0,0,0,.19)}.last-control-group[_ngcontent-%COMP%]{margin-bottom:-.75rem}.h-90[_ngcontent-%COMP%]{height:90%}input.form-control[_ngcontent-%COMP%]{border-left-width:5px}@media (min-width:768px){.login-container[_ngcontent-%COMP%]{width:700px}}@media (min-width:1200px){.login-container[_ngcontent-%COMP%]{width:730px}}']}),zD),UD=function e(){_classCallCheck(this,e)},$D=n("FUe0"),WD=Object($D.b)("App",{web:function(){return n.e(5).then(n.bind(null,"p3nu")).then(function(e){return new e.AppWeb})}}),qD=Object($D.b)("Browser",{web:function(){return n.e(6).then(n.bind(null,"fOPH")).then(function(e){return new e.BrowserWeb})}});function GD(e){var t=e.subscriber,n=e.counter,i=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:i},i)}var XD,QD,KD,ZD,JD=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"Create",value:function(t){var n=new e;return Object.assign(n,t),n.date&&(n.date=ek.parseDate(n.date)),n}}]),e}(),eT=((KD=function(){function e(){_classCallCheck(this,e),this.demoNotifications=[]}return _createClass(e,[{key:"getNotificationEndpoint",value:function(e){var t,n=this.demoNotifications.find(function(t){return t.id===e});return t=n?this.createResponse(n,200):this.createResponse(null,404),Object(me.a)(t.body)}},{key:"getNotificationsEndpoint",value:function(e,t){var n=this.createResponse(this.demoNotifications,200);return Object(me.a)(n.body)}},{key:"getUnreadNotificationsEndpoint",value:function(e){var t=this.demoNotifications.filter(function(e){return!e.isRead}),n=this.createResponse(t,200);return Object(me.a)(n.body)}},{key:"getNewNotificationsEndpoint",value:function(e){var t=this.createResponse(this.demoNotifications,200);return Object(me.a)(t.body)}},{key:"getPinUnpinNotificationEndpoint",value:function(e,t){var n,i=this.demoNotifications.find(function(t){return t.id===e});return i?(n=this.createResponse(null,204),null==t&&(t=!i.isPinned),i.isPinned=t,i.isRead=!0):n=this.createResponse(null,404),Object(me.a)(n.body)}},{key:"getReadUnreadNotificationEndpoint",value:function(e,t){var n,i=this,r=_createForOfIteratorHelper(e);try{var a=function(){var e=n.value,r=i.demoNotifications.find(function(t){return t.id===e});r&&(r.isRead=t)};for(r.s();!(n=r.n()).done;)a()}catch(s){r.e(s)}finally{r.f()}var o=this.createResponse(null,204);return Object(me.a)(o.body)}},{key:"getDeleteNotificationEndpoint",value:function(e){var t,n=this.demoNotifications.find(function(t){return t.id===e});return n?(this.demoNotifications=this.demoNotifications.filter(function(t){return t.id!==e}),t=this.createResponse(n,200)):t=this.createResponse(null,404),Object(me.a)(t.body)}},{key:"createResponse",value:function(e,t){return new $l.g({body:e,status:t})}}]),e}()).\u0275fac=function(e){return new(e||KD)},KD.\u0275prov=c.Zb({token:KD,factory:KD.\u0275fac}),KD),tT=((QD=function(){function e(t,n){_classCallCheck(this,e),this.notificationEndpoint=t,this.authService=n}return _createClass(e,[{key:"currentUser",get:function(){return this.authService.currentUser}},{key:"recentNotifications",get:function(){return this._recentNotifications}
1,set:function(e){this._recentNotifications=e}},{key:"getNotification",value:function(e){return this.notificationEndpoint.getNotificationEndpoint(e).pipe(Object(ye.a)(function(e){return JD.Create(e)}))}},{key:"getNotifications",value:function(e,t){var n=this;return this.notificationEndpoint.getNotificationsEndpoint(e,t).pipe(Object(ye.a)(function(e){return n.getNotificationsFromResponse(e)}))}},{key:"getUnreadNotifications",value:function(e){var t=this;return this.notificationEndpoint.getUnreadNotificationsEndpoint(e).pipe(Object(ye.a)(function(e){return t.getNotificationsFromResponse(e)}))}},{key:"getNewNotifications",value:function(){var e=this;return this.notificationEndpoint.getNewNotificationsEndpoint(this.lastNotificationDate).pipe(Object(ye.a)(function(t){return e.processNewNotificationsFromResponse(t)}))}},{key:"getNewNotificationsPeriodically",value:function(){var e=this;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fo.a;return(!Ro(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=Fo.a),new ae.a(function(n){return n.add(t.schedule(GD,e,{subscriber:n,counter:0,period:e})),n})}(1e4).pipe(ht(0),Object(is.a)(function(){return e.notificationEndpoint.getNewNotificationsEndpoint(e.lastNotificationDate).pipe(Object(ye.a)(function(t){return e.processNewNotificationsFromResponse(t)}))}))}},{key:"pinUnpinNotification",value:function(e,t){return"number"==typeof e||e instanceof Number?this.notificationEndpoint.getPinUnpinNotificationEndpoint(e,t):this.pinUnpinNotification(e.id)}},{key:"readUnreadNotification",value:function(e,t){return this.notificationEndpoint.getReadUnreadNotificationEndpoint(e,t)}},{key:"deleteNotification",value:function(e){var t=this;return"number"==typeof e||e instanceof Number?this.notificationEndpoint.getDeleteNotificationEndpoint(e).pipe(Object(ye.a)(function(n){return t.recentNotifications=t.recentNotifications.filter(function(t){return t.id!==e}),JD.Create(n)})):this.deleteNotification(e.id)}},{key:"processNewNotificationsFromResponse",value:function(e){var t,n=this.getNotificationsFromResponse(e),i=_createForOfIteratorHelper(n);try{for(i.s();!(t=i.n()).done;){var r=t.value;r.date>this.lastNotificationDate&&(this.lastNotificationDate=r.date)}}catch(a){i.e(a)}finally{i.f()}return n}},{key:"getNotificationsFromResponse",value:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&(t[n]=JD.Create(e[n]));return t.sort(function(e,t){return t.date.valueOf()-e.date.valueOf()}),t.sort(function(e,t){return e.isPinned===t.isPinned?0:e.isPinned?-1:1}),this.recentNotifications=t,t}}]),e}()).\u0275fac=function(e){return new(e||QD)(c.qc(eT),c.qc(bD))},QD.\u0275prov=c.Zb({token:QD,factory:QD.\u0275fac}),QD),nT=((XD=function e(t,n){var i=this;_classCallCheck(this,e),this.titleService=t,this.router=n,this.sub=this.router.events.pipe(Object(ve.a)(function(e){return e instanceof Fy}),Object(ye.a)(function(e){return i.router.routerState.root}),Object(ye.a)(function(e){for(;e.firstChild;)e=e.firstChild;return e}),Object(is.a)(function(e){return e.data})).subscribe(function(e){var t=e.title;if(t){var n=i.router.url.split("#")[1];n&&(t+=" | "+ek.toTitleCase(n))}t&&i.appName?t+=" - "+i.appName:i.appName&&(t=i.appName),t&&i.titleService.setTitle(t)})}).\u0275fac=function(e){return new(e||XD)(c.qc(K),c.qc(fw))},XD.\u0275prov=c.Zb({token:XD,factory:XD.\u0275fac}),XD),iT=function e(){_classCallCheck(this,e)},rT=function e(){_classCallCheck(this,e)},aT=((ZD=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,i,r)).configurations=e,a.modelParsingOut=new iT,a}return _createClass(n,[{key:"getProfitData",value:function(e,t,n){var i=this;return this.http.get(this.configurations.baseUrl+"/api/tradeea/getProfitDefault?isSignal="+e+"¤tPage="+t+"&itemsPerPage="+n,this.requestHeaders).pipe(Object(Cy.a)(function(e){return i.handleError(e,function(){return new ae.a})}))}},{key:"getProfitDataOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.http.get(this.configurations.baseUrl+"/api/tradeea/getProfitOneNew?id="+e+"&samplingInterval="+n+"&enableAdaptiveSampling="+i,this.requestHeaders).pipe(Object(Cy.a)(function(e){return t.handleError(e,function(){return new ae.a})}))}},{key:"getStatisticSignals",value:function(e){var t=this;return this.http.get(this.configurations.baseUrl+"/api/tradeea/getStatisticSignals?id="+e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return t.handleError(e,function(){return new ae.a})}))}},{key:"getStatisticSignalsNow",value:function(e){var t=this;return this.http.get(this.configurations.baseUrl+"/api/tradeea/getStatisticSignalsNow?id="+e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return t.handleError(e,function(){return new ae.a})}))}},{key:"getAccountData",value:function(e,t,n,i,r,a,o,s,l,c,u,d,h,f){var p=this,m=this.configurations.baseUrl+"/api/tradeea/getAccount";return this.modelOut=new rT,"false"==e&&(this.modelOut.isSignal=!1),"true"==e&&(this.modelOut.isSignal=!0),(null==t||Number.isNaN(t))&&(t=1),(null==n||Number.isNaN(n))&&(n=10),(null==i||Number.isNaN(i))&&(i=null),(null==r||Number.isNaN(r))&&(r=null),(null==a||Number.isNaN(a))&&(a=null),(null==o||Number.isNaN(o))&&(o=null),(null==s||Number.isNaN(s))&&(s=null),(null==l||Number.isNaN(l))&&(l=null),(null==c||Number.isNaN(c))&&(c=null),(null==u||Number.isNaN(u))&&(u=null),(null==d||Number.isNaN(d))&&(d=null),(null==h||Number.isNaN(h))&&
1(h=null),(null==f||Number.isNaN(f))&&(f=null),this.modelOut.currentPage=t,this.modelOut.itemsPerPage=n,this.modelOut.isAll=i,this.modelOut.isSortBalance=r,this.modelOut.isSortEquity=a,this.modelOut.isSortProfit=o,this.modelOut.isSortDropDown=s,this.modelOut.isSortMaxDropDown=l,this.modelOut.isSortGain=c,this.modelOut.isSortBalanceDays=u,this.modelOut.isSortTotalDays=d,this.modelOut.isSortProfitFactor=h,this.modelOut.userNameSort=f,this.http.post(m,this.modelOut,this.requestHeaders).pipe(Object(Cy.a)(function(e){return p.handleError(e,function(){return new ae.a})}))}},{key:"getParsingData",value:function(e,t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g,v,y,b){var _=this,w=this.configurations.baseUrl+"/api/tradeea/getParsingSignals";return this.modelParsingOut.currentPage=e,this.modelParsingOut.itemsPerPage=t,this.modelParsingOut.isSortBalance=n,this.modelParsingOut.isSortEquity=i,this.modelParsingOut.isSortEquity=i,this.modelParsingOut.isSortProfit=r,this.modelParsingOut.isSortMaxDropDown=o,this.modelParsingOut.isSortGain=s,this.modelParsingOut.isSortBalanceDays=l,this.modelParsingOut.isSortTotalDays=c,this.modelParsingOut.isSortProfitFactor=u,this.modelParsingOut.userNameSort=h,this.modelParsingOut.isSortSubscribers=d,this.modelParsingOut.mt5Checked=f,this.modelParsingOut.mt4Checked=p,this.modelParsingOut.demoChecked=m,this.modelParsingOut.realChecked=g,this.modelParsingOut.productChecked=v,this.modelParsingOut.signalChecked=y,this.modelParsingOut.sellerChecked=b,this.http.post(w,this.modelParsingOut,this.requestHeaders).pipe(Object(Cy.a)(function(e){return _.handleError(e,function(){return new ae.a})}))}},{key:"deleteAccountData",value:function(e){var t=this;return this.http.post(this.configurations.baseUrl+"/api/tradeea/deleteAccount",e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return t.handleError(e,function(){return new ae.a})}))}},{key:"isCollapseAllAccountData",value:function(){var e=this;return this.http.get(this.configurations.baseUrl+"/api/tradeea/isCollapseAllAccount",this.requestHeaders).pipe(Object(Cy.a)(function(t){return e.handleError(t,function(){return new ae.a})}))}},{key:"collapseAccountData",value:function(e){var t=this;return this.http.post(this.configurations.baseUrl+"/api/tradeea/collapseAccount",e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return t.handleError(e,function(){return new ae.a})}))}},{key:"collapseAllAccountData",value:function(e){var t=this;return this.http.post(this.configurations.baseUrl+"/api/tradeea/collapseAllAccount",e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return t.handleError(e,function(){return new ae.a})}))}},{key:"upAccountData",value:function(e,t,n,i){var r=this;return this.http.post(this.configurations.baseUrl+"/api/tradeea/upAccount?isSignal="+t+"¤tPage="+n+"&itemsPerPage="+i,e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return r.handleError(e,function(){return new ae.a})}))}},{key:"setSignal",value:function(e){var t=this;return this.http.post(this.configurations.baseUrl+"/api/tradeea/setSignal",e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return t.handleError(e,function(){return new ae.a})}))}},{key:"saveDiscribe",value:function(e){var t=this;return this.http.post(this.configurations.baseUrl+"/api/tradeea/saveDiscribe",e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return t.handleError(e,function(){return new ae.a})}))}},{key:"loadDiscribe",value:function(e){var t=this;return this.http.get(this.configurations.baseUrl+"/api/tradeea/loadDiscribe?id="+e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return t.handleError(e,function(){return new ae.a})}))}},{key:"connectSignal",value:function(e){var t=this;return this.http.post(this.configurations.baseUrl+"/api/tradeea/connectSignal",e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return t.handleError(e,function(){return new ae.a})}))}},{key:"downAccountData",value:function(e,t,n,i){var r=this;return this.http.post(this.configurations.baseUrl+"/api/tradeea/downAccount?isSignal="+t+"¤tPage="+(n=n||1)+"&itemsPerPage="+i,e,this.requestHeaders).pipe(Object(Cy.a)(function(e){return r.handleError(e,function(){return new ae.a})}))}}]),n}(OD)).\u0275fac=function(e){return new(e||ZD)(c.qc(ak),c.qc($l.b),c.qc(bD))},ZD.\u0275prov=c.Zb({token:ZD,factory:ZD.\u0275fac}),ZD),oT=["loginModal","loginControl"],sT=["forgotModal","forgotControl"];function lT(e,t){1&e&&c.ec(0,"i",30)}function cT(e,t){1&e&&c.ec(0,"i",31)}function uT(e,t){if(1&e){var n=c.kc();c.jc(0,"div",26),c.jc(1,"button",27),c.tc("click",function(){return c.Qc(n),c.xc().UpdateBalance()}),c.Yc(2,lT,1,0,"i",28),c.Yc(3,cT,1,0,"i",29),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(1),c.Dc("disabled",i.isLoadingUpdate),c.Pb(1),c.Dc("ngIf",!i.isLoadingUpdate),c.Pb(1),c.Dc("ngIf",i.isLoadingUpdate)}}function dT(e,t){if(1&e&&(c.jc(0,"i"),c.ad(1),c.ic()),2&e){var n=c.xc(2);c.Pb(1),c.cd(" ",n.allExpand?"+":"%","")}}function hT(e,t){1&e&&c.ec(0,"i",31)}function fT(e,t){if(1&e){var n=c.kc();c.jc(0,"div",26),c.jc(1,"button",27),c.tc("click",function(){return c.Qc(n),c.xc().Collapse()}),c.Yc(2,dT,2,1,"i",32),c.Yc(3,hT,1,0,"i",29),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(1),c.Dc("disabled",i.isLoadingCollapse),c.Pb(1),c.Dc("ngIf",!i.isLoadingCollapse),c.Pb(1),c.Dc("ngIf",i.isLoadingCollapse)}}function pT(e,t){if(1&e){var n=c.kc();
1c.jc(0,"div",26),c.jc(1,"mat-slide-toggle",33),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().isAll=e})("change",function(){return c.Qc(n),c.xc().ChangeIsAll()}),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(1),c.Dc("ngModel",i.isAll)}}function mT(e,t){if(1&e){var n=c.kc();c.jc(0,"li",51),c.jc(1,"a",52),c.tc("click",function(){return c.Qc(n),c.xc(2).showLogin()}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(2),c.bd(c.zc(3,1,"mainMenu.Login")))}function gT(e,t){if(1&e){var n=c.kc();c.jc(0,"li",53),c.jc(1,"a",52),c.tc("click",function(){return c.Qc(n),c.xc(2).showRegister()}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(2),c.bd(c.zc(3,1,"mainMenu.Register")))}function vT(e,t){if(1&e){var n=c.kc();c.jc(0,"li",53),c.jc(1,"button",54),c.tc("click",function(){return c.Qc(n),c.xc(2).loginWithGoogle()}),c.ec(2,"img",55),c.ad(3),c.yc(4,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(3),c.cd(" ",c.zc(4,1,"users.editor.Google")," "))}function yT(e,t){if(1&e){var n=c.kc();c.jc(0,"div",34),c.jc(1,"ul",35),c.jc(2,"li",36),c.jc(3,"a",37),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.jc(6,"li",36),c.jc(7,"a",38),c.ad(8),c.yc(9,"translate"),c.ic(),c.ic(),c.jc(10,"li",39),c.jc(11,"a",40),c.ad(12,"BinanceBot"),c.ic(),c.ic(),c.jc(13,"li",36),c.jc(14,"a",41),c.ad(15),c.yc(16,"translate"),c.ic(),c.ic(),c.jc(17,"li",36),c.jc(18,"a",42),c.ad(19),c.yc(20,"translate"),c.ic(),c.ic(),c.jc(21,"li",36),c.jc(22,"a",43),c.ad(23),c.yc(24,"translate"),c.ic(),c.ic(),c.jc(25,"li",36),c.jc(26,"a",44),c.ad(27),c.yc(28,"translate"),c.ic(),c.ic(),c.jc(29,"li",45),c.jc(30,"a",46),c.ad(31),c.yc(32,"translate"),c.ic(),c.jc(33,"div",47),c.jc(34,"a",48),c.tc("click",function(){return c.Qc(n),c.xc().changeLanguage("en")}),c.ad(35),c.yc(36,"translate"),c.ic(),c.jc(37,"a",48),c.tc("click",function(){return c.Qc(n),c.xc().changeLanguage("ru")}),c.ad(38),c.yc(39,"translate"),c.ic(),c.ic(),c.ic(),c.Yc(40,mT,4,3,"li",49),c.Yc(41,gT,4,3,"li",50),c.Yc(42,vT,5,3,"li",50),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(4),c.bd(c.zc(5,12,"mainMenu.Monitoring")),c.Pb(4),c.bd(c.zc(9,14,"mainMenu.Signals")),c.Pb(7),c.bd(c.zc(16,16,"mainMenu.SignalsMQL5")),c.Pb(4),c.bd(c.zc(20,18,"mainMenu.Products")),c.Pb(4),c.bd(c.zc(24,20,"mainMenu.Instruction")),c.Pb(4),c.bd(c.zc(28,22,"mainMenu.About")),c.Pb(4),c.cd(" ",c.zc(32,24,"mainMenu.Language")," "),c.Pb(4),c.bd(c.zc(36,26,"mainMenu.English")),c.Pb(3),c.bd(c.zc(39,28,"mainMenu.Russian")),c.Pb(2),c.Dc("ngIf",!i.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!i.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!i.isUserLoggedIn)}}function bT(e,t){1&e&&c.ec(0,"i",30)}function _T(e,t){1&e&&c.ec(0,"i",31)}function wT(e,t){if(1&e){var n=c.kc();c.jc(0,"li",57),c.jc(1,"button",27),c.tc("click",function(){return c.Qc(n),c.xc(2).UpdateBalance()}),c.Yc(2,bT,1,0,"i",28),c.Yc(3,_T,1,0,"i",29),c.ic(),c.ic()}if(2&e){var i=c.xc(2);c.Pb(1),c.Dc("disabled",i.isLoadingUpdate),c.Pb(1),c.Dc("ngIf",!i.isLoadingUpdate),c.Pb(1),c.Dc("ngIf",i.isLoadingUpdate)}}function kT(e,t){if(1&e&&(c.jc(0,"i"),c.ad(1),c.ic()),2&e){var n=c.xc(3);c.Pb(1),c.cd(" ",n.allExpand?"+":"%","")}}function CT(e,t){1&e&&c.ec(0,"i",31)}function xT(e,t){if(1&e){var n=c.kc();c.jc(0,"li",57),c.jc(1,"button",27),c.tc("click",function(){return c.Qc(n),c.xc(2).Collapse()}),c.Yc(2,kT,2,1,"i",32),c.Yc(3,CT,1,0,"i",29),c.ic(),c.ic()}if(2&e){var i=c.xc(2);c.Pb(1),c.Dc("disabled",i.isLoadingCollapse),c.Pb(1),c.Dc("ngIf",!i.isLoadingCollapse),c.Pb(1),c.Dc("ngIf",i.isLoadingCollapse)}}function ST(e,t){if(1&e&&(c.jc(0,"div",34),c.jc(1,"ul",35),c.Yc(2,wT,4,3,"li",56),c.Yc(3,xT,4,3,"li",56),c.ic(),c.ic()),2&e){var n=c.xc();c.Pb(2),c.Dc("ngIf",!(n.isUserLoggedIn||n.router.isActive("/about",!1)||n.router.isActive("/instru
1ction",!1)||n.router.isActive("/products",!1)||n.router.isActive("/settings",!1)||n.router.isActive("/signalsmql5",!1)||n.router.isActive("/binancebot",!1))),c.Pb(1),c.Dc("ngIf",!(n.isUserLoggedIn||n.router.isActive("/about",!1)||n.router.isActive("/instruction",!1)||n.router.isActive("/products",!1)||n.router.isActive("/settings",!1)||n.router.isActive("/signalsmql5",!1)||n.router.isActive("/binancebot",!1)))}}function MT(e,t){1&e&&(c.jc(0,"li",36),c.jc(1,"a",69),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()),2&e&&(c.Pb(2),c.bd(c.zc(3,1,"mainMenu.Licenses")))}function DT(e,t){1&e&&c.ec(0,"i",30)}function TT(e,t){1&e&&c.ec(0,"i",31)}function ET(e,t){if(1&e){var n=c.kc();c.jc(0,"li",57),c.jc(1,"button",27),c.tc("click",function(){return c.Qc(n),c.xc(2).UpdateBalance()}),c.Yc(2,DT,1,0,"i",28),c.Yc(3,TT,1,0,"i",29),c.ic(),c.ic()}if(2&e){var i=c.xc(2);c.Pb(1),c.Dc("disabled",i.isLoadingUpdate),c.Pb(1),c.Dc("ngIf",!i.isLoadingUpdate),c.Pb(1),c.Dc("ngIf",i.isLoadingUpdate)}}function AT(e,t){if(1&e&&(c.jc(0,"i"),c.ad(1),c.ic()),2&e){var n=c.xc(3);c.Pb(1),c.cd(" ",n.allExpand?"+":"%","")}}function PT(e,t){1&e&&c.ec(0,"i",31)}function LT(e,t){if(1&e){var n=c.kc();c.jc(0,"li",57),c.jc(1,"button",27),c.tc("click",function(){return c.Qc(n),c.xc(2).Collapse()}),c.Yc(2,AT,2,1,"i",32),c.Yc(3,PT,1,0,"i",29),c.ic(),c.ic()}if(2&e){var i=c.xc(2);c.Pb(1),c.Dc("disabled",i.isLoadingCollapse),c.Pb(1),c.Dc("ngIf",!i.isLoadingCollapse),c.Pb(1),c.Dc("ngIf",i.isLoadingCollapse)}}function OT(e,t){if(1&e){var n=c.kc();c.jc(0,"li",57),c.jc(1,"mat-slide-toggle",33),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(2).isAll=e})("change",function(){return c.Qc(n),c.xc(2).ChangeIsAll()}),c.ic(),c.ic()}if(2&e){var i=c.xc(2);c.Pb(1),c.Dc("ngModel",i.isAll)}}function IT(e,t){if(1&e){var n=c.kc();c.jc(0,"li",51),c.jc(1,"a",52),c.tc("click",function(){return c.Qc(n),c.xc(2).showLogin()}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(2),c.bd(c.zc(3,1,"mainMenu.Login")))}function HT(e,t){if(1&e){var n=c.kc();c.jc(0,"li",53),c.jc(1,"a",52),c.tc("click",function(){return c.Qc(n),c.xc(2).showRegister()}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(2),c.bd(c.zc(3,1,"mainMenu.Register")))}function jT(e,t){if(1&e){var n=c.kc();c.jc(0,"li",53),c.jc(1,"button",54),c.tc("click",function(){return c.Qc(n),c.xc(2).loginWithGoogle()}),c.ec(2,"img",55),c.ad(3),c.yc(4,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(3),c.cd(" ",c.zc(4,1,"users.editor.Google")," "))}function FT(e,t){1&e&&c.ec(0,"app-notifications-viewer",70),2&e&&c.Dc("isViewOnly",!0)}function RT(e,t){if(1&e){var n=c.kc();c.jc(0,"div",34),c.jc(1,"ul",35),c.jc(2,"li",36),c.jc(3,"a",37),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.jc(6,"li",36),c.jc(7,"a",38),c.ad(8),c.yc(9,"translate"),c.ic(),c.ic(),c.jc(10,"li",39),c.jc(11,"a",40),c.ad(12,"BinanceBot"),c.ic(),c.ic(),c.jc(13,"li",36),c.jc(14,"a",41),c.ad(15),c.yc(16,"translate"),c.ic(),c.ic(),c.jc(17,"li",36),c.jc(18,"a",42),c.ad(19),c.yc(20,"translate"),c.ic(),c.ic(),c.jc(21,"li",36),c.jc(22,"a",43),c.ad(23),c.yc(24,"translate"),c.ic(),c.ic(),c.jc(25,"li",36),c.jc(26,"a",44),c.ad(27),c.yc(28,"translate"),c.ic(),c.ic(),c.Yc(29,MT,4,3,"li",58),c.jc(30,"li",45),c.jc(31,"a",59),c.ad(32),c.yc(33,"translate"),c.ic(),c.jc(34,"div",60),c.jc(35,"a",48),c.tc("click",function(){return c.Qc(n),c.xc().changeLanguage("en")}),c.ad(36),c.yc(37,"translate"),c.ic(),c.jc(38,"a",48),c.tc("click",function(){return c.Qc(n),c.xc().changeLanguage("ru")}),c.ad(39),c.yc(40,"translate"),c.ic(),c.ic(),c.ic(),c.Yc(41,ET,4,3,"li",56),c.Yc(42,LT,4,3,"li",56),c.Yc(43,OT,2,1,"li",56),c.Yc(44,IT,4,3,"li",49),c.Yc(45,HT,4,3,"li",50),c.Yc(46,jT,5,3,"li",50),c.ic(),c.jc(47,"ul",61),c.jc(48,"li",36),c.jc(49,"a",62),c.ec(50,"i",63),c.ic(),c.ic(),c.ic(),c.Yc(51,FT,1,1,"ng-template",null,64,c.Zc),c.jc(53,"ul",65),c.jc(54,"li",66),c.tc("click",function(){return c.Qc(n),c.xc().logout()}),c.jc(55,"a",67),c.ec(56,"i",68),c.ad(57),c.yc(58,"translate"),c.ic(),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(4),c.bd(c.zc(5,17,"mainMenu.Monitoring")),c.Pb(4),c.bd(c.zc(9,19,"mainMenu.Signals")),c.Pb(7),c.bd(c.zc(16,21,"mainMenu.SignalsMQL5")),c.Pb(4),c.bd(c.zc(20,23,"mainMenu.Products")),c.Pb(4),c.bd(c.zc(24,25,"mainMenu.Instruction")),c.Pb(4),c.bd(c.zc(28,27,"mainMenu.About")),c.Pb(2),c.Dc("ngIf",!i.isUserTest),c.Pb(3),c.cd(" ",c.zc(33,29,"mainMenu.Language")," "),c.Pb(4),c.bd(c.zc(37,31,"mainMenu.English")),c.Pb(3),c.bd(c.zc(40,33,"mainMenu.Russian")),c.Pb(2),c.Dc("ngIf",!(i.router.isActive("/about",!1)||i.router.isActive("/instru
1ction",!1)||i.router.isActive("/products",!1)||i.router.isActive("/settings",!1)||i.router.isActive("/signalsmql5",!1)||i.router.isActive("/licenses",!1)||i.router.isActive("/binancebot",!1))),c.Pb(1),c.Dc("ngIf",!(i.router.isActive("/about",!1)||i.router.isActive("/instruction",!1)||i.router.isActive("/products",!1)||i.router.isActive("/settings",!1)||i.router.isActive("/signalsmql5",!1)||i.router.isActive("/licenses",!1)||i.router.isActive("/binancebot",!1))),c.Pb(1),c.Dc("ngIf",i.isUserAdmin&&!i.router.isActive("/signals",!1)&&!i.router.isActive("/about",!1)&&!i.router.isActive("/instruction",!1)&&!i.router.isActive("/products",!1)&&!i.router.isActive("/settings",!1)&&!i.router.isActive("/signalsmql5",!1)&&!i.router.isActive("/licenses",!1)&&!i.router.isActive("/binancebot",!1)),c.Pb(1),c.Dc("ngIf",!i.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!i.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!i.isUserLoggedIn),c.Pb(11),c.cd(" ",c.zc(58,35,"mainMenu.Logout"),"")}}function NT(e,t){if(1&e){var n=c.kc();c.jc(0,"div",71),c.jc(1,"ul",72),c.jc(2,"li",73),c.jc(3,"a",52),c.tc("click",function(){return c.Qc(n),c.xc().showLogin()}),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.jc(6,"li",73),c.jc(7,"a",52),c.tc("click",function(){return c.Qc(n),c.xc().showRegister()}),c.ad(8),c.yc(9,"translate"),c.ic(),c.ic(),c.jc(10,"li",73),c.jc(11,"button",54),c.tc("click",function(){return c.Qc(n),c.xc().loginWithGoogle()}),c.ec(12,"img",74),c.ic(),c.ic(),c.ic(),c.ic()}2&e&&(c.Pb(4),c.bd(c.zc(5,2,"mainMenu.Login")),c.Pb(4),c.bd(c.zc(9,4,"mainMenu.Register")))}function BT(e,t){if(1&e&&(c.jc(0,"div",75),c.jc(1,"div",76),c.jc(2,"h1"),c.ad(3,"Loaded!"),c.ic(),c.ic(),c.ic()),2&e){var n=c.xc();c.Vb("prebootShow",!n.isAppLoaded)}}var zT=function(){return{backdrop:"static"}};function VT(e,t){if(1&e){var n=c.kc();c.jc(0,"div",77,78),c.tc("onShown",function(){return c.Qc(n),c.xc().onLoginModalShown()})("onHidden",function(){return c.Qc(n),c.xc().onLoginModalHidden()})("onHide",function(){return c.Qc(n),c.xc().onLoginModalHide()}),c.jc(2,"div",79),c.jc(3,"div",80),c.jc(4,"div",81),c.jc(5,"app-login",82,83),c.tc("myeventForgotPassword",function(){return c.Qc(n),c.xc().showForgot()}),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()}
12&e&&c.Dc("config",c.Gc(1,zT))}function UT(e,t){1&e&&(c.jc(0,"div",84,85),c.jc(2,"div",79),c.jc(3,"div",80),c.jc(4,"div",81),c.ec(5,"app-forgot",86,87),c.ic(),c.ic(),c.ic(),c.ic()),2&e&&c.Dc("config",c.Gc(1,zT))}var $T,WT=n("9wZE"),qT=(($T=function(){function e(t,n,i,r,a,o,s,l,u,d,h,f,p,m){var g=this;_classCallCheck(this,e),this.toastaService=n,this.toastaConfig=i,this.accountService=r,this.alertService=a,this.notificationService=o,this.appTitleService=s,this.authService=l,this.translationService=u,this.configurations=d,this.tradeeaService=h,this.router=f,this.actRoute=p,this.deviceService=m,this.myeventLogin=new c.s,this.myeventRegister=new c.s,this.myeventReset=new c.s,this.myeventCollapse=new c.s,this.myeventUpdate=new c.s,this.myeventAll=new c.s,this.myeventUpdateTradingView=new c.s,this.newNotificationCount=0,this.appTitle="ForexVisible",this.stickyToasties=[],this.dataLoadingConsecutiveFailures=0,this.allExpand=!0,this.gT=function(e,t){return g.translationService.getTranslation(e,t)},t.initialiseStorageSyncListener(),this.localStorage=t,this.isNeeedUpdate=!1,this.toastaConfig.theme="bootstrap",this.toastaConfig.position="top-right",this.toastaConfig.limit=100,this.toastaConfig.showClose=!0,this.toastaConfig.showDuration=!1,this.appTitleService.appName=this.appTitle,d.loadLocalChanges()}return _createClass(e,[{key:"notificationsTitle",get:function(){return this.newNotificationCount?"".concat(this.gT("app.Notifications")," (").concat(this.newNotificationCount," ").concat(this.gT("app.New"),")"):this.gT("app.Notifications")}},{key:"ngAfterViewInit",value:function(){var e=this;this.modalLoginControls.changes.subscribe(function(t){t.forEach(function(t){t&&(t instanceof AD?(e.loginControl=t,e.loginControl.modalClosedCallback=function(){return e.loginModal.hide()}):(e.loginModal=t,e.loginModal.show()))})}),this.modalForgotControls.changes.subscribe(function(t){t.forEach(function(t){t&&(t instanceof VD?(e.forgotControl=t,e.forgotControl.modalClosedCallback=function(){return e.forgotModal.hide()}):(e.forgotModal=t,e.forgotModal.show()))})})}},{key:"onLoginModalShown",value:function(){}},{key:"onLoginModalHidden",value:function(){this.alertService.resetStickyMessage(),this.loginControl.reset(),this.shouldShowLoginModal=!1,this.authService.isSessionExpired&&(this.isUserLoggedIn=!1,this.isUserTest=!1,this.alertService.stopLoadingMessage())}},{key:"onLoginModalHide",value:function(){this.alertService.resetStickyMessage()}},{key:"onCurrentUserDataLoadFailed",value:function(e){this.alertService.stopLoadingMessage(),this.alertService.showStickyMessage("Load Error",'Unable to retrieve user data from the server.\r\nErrors: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)}},{key:"ngOnInit",value:function(){var e=this;this.isUserLoggedIn=this.authService.isLoggedIn,this.isUserLoggedIn?(this.isUserAdmin=this.authService.currentUser.roles.filter(function(e){return"administrator"==e}).length>0,this.isUserTest="test"==this.authService.currentUser.userName.toLowerCase()):this.isUserAdmin=!1,WD.addListener("appUrlOpen",function(t){Object(Rc.a)(e,void 0,void 0,regeneratorRuntime.mark(function e(){var n,i,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=new URL(t.url),!(i=n.searchParams.get("access_token"))){e.next=10;break}return r={access_token:i,refresh_token:n.searchParams.get("refresh_token")||"",expires_in:parseInt(n.searchParams.get("expires_in")||"3600",10),token_type:n.searchParams.get("token_type")||"Bearer"},this.authService.processLoginResponse(r,!0),e.next=6,qD.close();case 6:this.isUserLoggedIn=!0,this.isNeeedUpdate=!0,this.isUserAdmin=this.authService.currentUser.roles.includes("administrator"),this.isUserTest="test"==this.authService.currentUser.userName.toLowerCase();case 10:case"end":return e.stop()}},e,this)}))}),this.actRoute.queryParams.subscribe(function(t){if(null!=t.token){var n=new UD;n.token=t.token,n.email=t.email,e.showResetPassword(n)}}),this.myeventCollapse.pipe().subscribe(function(t){t.isAnswer&&(e.allExpand=t.object,e.isLoadingCollapse=!1,e.alertService.stopLoadingMessage())},function(t){e.alertService.stopLoadingMessage(),e.onCurrentUserDataLoadFailed(t)}),this.myeventUpdate.pipe().subscribe(function(t){t.isAnswer&&(e.alertService.stopLoadingMessage(),e.isLoadingUpdate=!1)},function(t){e.alertService.stopLoadingMessage(),e.onCurrentUserDataLoadFailed(t)}),this.myeventAll.pipe().subscribe(function(t){t.isAnswer&&e.alertService.stopLoadingMessage()},function(t){e.alertService.stopLoadingMessage(),e.onCurrentUserDataLoadFailed(t)}),this.authService.getLoginStatusEvent().subscribe(function(t){e.isUserLoggedIn=t,e.localStorage.saveSyncedSessionData(1,"currentPageMonitor"),e.localStorage.saveSyncedSessionData(1,"currentPageSignal"),e.isUserLoggedIn?e.initNotificationsLoading():e.unsubscribeNotifications(),setTimeout(function(){if(e.isUserLoggedIn||e.alertService.showMessage("Session Ended!","",OM.default),e.router.isActive("monitoring",!0)||e.router.isActive("signals",!0)||e.router.isActive("products",!0))if(e.isNeeedUpdate){var t=e.router.url;e.router.navigateByUrl("/",{skipLocationChange:!0}).then(function(){e.router.navigateByUrl(t)})}else e.isNeeedUpdate=!0},500),e.authService.isSessionExpired&&(e.isUserLoggedIn=!1,e.isUserAdmin=!1,e.authService.logout(),e.alertService.stopLoadingMessage()),e.isUserLoggedIn&&e.tradeeaService.isCollapseAllAccountData().pipe().subscribe(function(t){e.allExpand=t},function(t){e.alertService.stopLoadingMessage(),e.onCurrentUserDataLoadFailed(t)}),e.isUserLoggedIn?(e.isUserAdmin=e.authService.currentUser.roles.filter(function(e){return"administrator"==e}).length>0,e.isUserTest="test"==e.authService.currentUser.userName.toLowerCase()):e.isUserAdmin=!1,e.isUserLoggedIn&&(e.alertService.resetStickyMessage(),e.authService.isSessionExpired?(e.isUserLoggedIn=!1,e.alertService.stopLoadingMessage()):e.alertService.showMessage("Login","Welcome back ".concat(e.userName,"!"),OM.default))}),setTimeout(function(){return e.isAppLoaded=!0},500),setTimeout(function(){return e.removePrebootScreen=!0},1e3),this.alertService.getDialogEvent().subscribe(function(t){return e.showDialog(t)}
1),this.alertService.getMessageEvent().subscribe(function(t){return e.showToast(t)}),this.authService.reLoginDelegate=function(){e.shouldShowLoginModal=!1}}},{key:"ngOnDestroy",value:function(){this.unsubscribeNotifications()}},{key:"unsubscribeNotifications",value:function(){this.notificationsLoadingSubscription&&this.notificationsLoadingSubscription.unsubscribe()}},{key:"showLogin",value:function(){this.shouldShowForgotModal=!1,this.shouldShowLoginModal=!0,this.isNeeedUpdate=!0}},{key:"showForgot",value:function(){this.shouldShowLoginModal=!1,this.shouldShowForgotModal=!0}},{key:"showRegister",value:function(){this.myeventRegister.next()}},{key:"showResetPassword",value:function(e){this.myeventReset.next(e)}},{key:"Collapse",value:function(){var e=new IM;e.object=!this.allExpand,e.isAnswer=!1,this.isLoadingCollapse=!0,this.alertService.startLoadingMessage("Pleas wait..."),this.myeventCollapse.next(e)}},{key:"UpdateBalance",value:function(){var e=new IM;e.isAnswer=!1,this.alertService.startLoadingMessage("Pleas wait..."),this.isLoadingUpdate=!0,this.myeventUpdate.next(e)}},{key:"ChangeIsAll",value:function(){var e=new IM;e.isAnswer=!1,e.object=this.isAll,this.alertService.startLoadingMessage("Pleas wait..."),this.myeventAll.next(e)}},{key:"initNotificationsLoading",value:function(){var e=this;this.notificationsLoadingSubscription=this.notificationService.getNewNotificationsPeriodically().subscribe(function(t){e.dataLoadingConsecutiveFailures=0,e.newNotificationCount=t.filter(function(e){return!e.isRead}).length},function(t){e.alertService.logError(t),e.dataLoadingConsecutiveFailures++<20?setTimeout(function(){return e.initNotificationsLoading()},5e3):e.alertService.showStickyMessage("Load Error","Loading new notifications from the server failed!",OM.error)})}},{key:"markNotificationsAsRead",value:function(){var e=this,t=this.notificationService.recentNotifications;t.length&&this.notificationService.readUnreadNotification(t.map(function(e){return e.id}),!0).subscribe(function(n){var i,r=_createForOfIteratorHelper(t);try{for(r.s();!(i=r.n()).done;)i.value.isRead=!0}catch(a){r.e(a)}finally{r.f()}e.newNotificationCount=t.filter(function(e){return!e.isRead}).length},function(t){e.alertService.logError(t),e.alertService.showMessage("Notification Error","Marking read notifications failed",OM.error)})}},{key:"showDialog",value:function(e){switch(WT.set({labels:{ok:e.okLabel||"OK",cancel:e.cancelLabel||"Cancel"}}),e.type){case LM.alert:WT.alert(e.message);break;case LM.confirm:WT.confirm(e.message,function(t){t?e.okCallback():e.cancelCallback&&e.cancelCallback()});break;case LM.prompt:WT.prompt(e.message,function(t,n){t?e.okCallback(n):e.cancelCallback&&e.cancelCallback()},e.defaultValue)}}},{key:"showToast",value:function(e){var t=this;if("clear"!==e.operation){var n={title:e.message.summary,msg:e.message.detail};switch("add_sticky"===e.operation?(n.timeout=0,n.onAdd=function(e){t.stickyToasties.push(e.id)},n.onRemove=function(n){var i=t.stickyToasties.indexOf(n.id,0);i>-1&&t.stickyToasties.splice(i,1),e.onRemove&&e.onRemove(),n.onAdd=null,n.onRemove=null}):n.timeout=4e3,e.message.severity){case OM.default:this.toastaService.default(n);break;case OM.info:this.toastaService.info(n);break;case OM.success:this.toastaService.success(n);break;case OM.error:this.toastaService.error(n);break;case OM.warn:this.toastaService.warning(n);break;case OM.wait:this.toastaService.wait(n)}}else{var i,r=_createForOfIteratorHelper(this.stickyToasties.slice(0));try{for(r.s();!(i=r.n()).done;){var a=i.value;this.toastaService.clear(a)}}catch(o){r.e(o)}finally{r.f()}}}},{key:"logout",value:function(){this.authService.logout(),(this.router.isActive("/settings",!0)||this.router.isActive("licenses",!0))&&this.router.navigate(["/"])}},{key:"getYear",value:function(){return(new Date).getUTCFullYear()}},{key:"userName",get:function(){return this.authService.currentUser?this.authService.currentUser.userName:""}},{key:"fullName",get:function(){return this.authService.currentUser?this.authService.currentUser.fullName:""}},{key:"currentLanguage",get:function(){return this.translationService.getCurrentLanguage()}},{key:"canViewCustomers",get:function(){return this.accountService.userHasPermission(pD.viewUsersPermission)}},{key:"canViewProducts",get:function(){return this.accountService.userHasPermission(pD.viewUsersPermission)}},{key:"canViewOrders",get:function(){return!0}},{key:"isMobileDevice",value:function(){try{return this.deviceService.isMobile()}catch(e){return console.warn("DeviceDetectorService isMobile error:",e),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}}},{key:"isDesktopDevice",value:function(){try{return this.deviceService.isDesktop()}catch(e){return console.warn("DeviceDetectorService isDesktop error:",e),!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}}},{key:"loginWithGoogle",value:function(){return Object(Rc.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;
1)switch(e.prev=e.next){case 0:if(!this.isMobileDevice()){e.next=5;break}return e.next=3,qD.open({url:this.configurations.baseUrl+"/auth/google-login"});case 3:e.next=6;break;case 5:window.location.href=this.configurations.baseUrl+"/auth/google-login";case 6:case"end":return e.stop()}},e,this)}))}},{key:"changeLanguage",value:function(e){this.translationService.changeLanguage(e)}}]),e}()).\u0275fac=function(e){return new(e||$T)(c.dc(tk),c.dc(nf),c.dc(Jh),c.dc(HD),c.dc(PM),c.dc(tT),c.dc(nT),c.dc(bD),c.dc(nk),c.dc(ak),c.dc(aT),c.dc(fw),c.dc(zb),c.dc(rD))},$T.\u0275cmp=c.Xb({type:$T,selectors:[["app-root"]],contentQueries:function(e,t,n){var i;1&e&&c.Wb(n,AD,5),2&e&&c.Mc(i=c.uc())&&(t.login=i.first)},viewQuery:function(e,t){var n;1&e&&(c.ed(oT,5),c.ed(sT,5)),2&e&&(c.Mc(n=c.uc())&&(t.modalLoginControls=n),c.Mc(n=c.uc())&&(t.modalForgotControls=n))},decls:46,vars:21,consts:[[1,"app-component"],[3,"isLoading","message","showProgress"],["id","header",1,"app-component","navbar","navbar-expand-xl","navbar-dark","bg-primary","fixed-top"],[1,"container"],["routerLink","/",1,"app-component","navbar-brand"],["src","../../assets/images/logo.png","alt","logo",1,"d-inline-block","align-top"],[1,"app-component","appTitle"],["class","butVisible",4,"ngIf"],[1,"mobile-language-switcher","d-xl-none"],[1,"btn","btn-outline-light","btn-sm",3,"click"],["type","button","data-toggle","collapse","data-target",".menuItemsContainer.app-component",1,"app-component","navbar-toggler"],[1,"navbar-toggler-icon"],["class","app-component collapse navbar-collapse menuItemsContainer",4,"ngIf"],["class","app-component collapse navbar-collapse menuItemsContainer butVisible2",4,"ngIf"],["id","pre-bootstrap","class","app-component prebootStep",3,"prebootShow",4,"ngIf"],[1,"app-component","app-container"],[1,"app-component","container"],[1,"main-content-wrapper"],[1,"app-component","footer-height"],[1,"app-component","footer","fixed-bottom"],[1,"text-center","text-muted",2,"height","25px","margin-top","-15px"],["routerLink","/"],[1,"text-center","text-muted",2,"height","25px","margin-top","-1px"],["routerLink","/privacy"],["class","modal fade login-control","bsModal","","tabindex","-1",3,"config","onShown","onHidden","onHide",4,"ngIf"],["class","modal fade login-control","bsModal","","tabindex","-1",3,"config",4,"ngIf"],[1,"butVisible"],["type","button",1,"btn","btn-primary","btn-loading",3,"disabled","click"],["class","fa fa-refresh",4,"ngIf"],["class","fa fa-circle-o-notch fa-spin",4,"ngIf"],[1,"fa","fa-refresh"],[1,"fa","fa-circle-o-notch","fa-spin"],[4,"ngIf"],[3,"ngModel","ngModelChange","change"],[1,"app-component","collapse","navbar-collapse","menuItemsContainer"],[1,"app-component","nav","nav-pills","flex-column","flex-lg-row","mr-auto"],["routerLinkActive","active",1,"nav-item"],["routerLink","/monitoring",1,"nav-link"],["routerLink","/signals",1,"nav-link"],["routerLinkActive","active",1,"nav-item","binancebot-menu"],["routerLink","/binancebot",1,"nav-link"],["routerLink","/signalsmql5",1,"nav-link"],["routerLink","/products",1,"nav-link"],["routerLink","/instruction",1,"nav-link"],["routerLink","/about",1,"nav-link"],[1,"nav-item","dropdown","d-none","d-xl-block"],["href","#","id","languageDropdown","role","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"nav-link","dropdown-toggle"],["aria-labelledby","languageDropdown",1,"dropdown-menu"],["href","javascript:void(0);",1,"dropdown-item",3,"click"],["class","nav-item butVisible",4,"ngIf"],["class","nav-itemm butVisible",4,"ngIf"],[1,"nav-item","butVisible"],["href","javascript:void(0);",1,"nav-link",3,"click"],[1,"nav-itemm","butVisible"],[1,"google-btn",3,"click"],["src","https://developers.google.com/identity/images/g-logo.png","alt","Google logo",2,"height","20px","margin-right","8px"],["class","butVisible2",4,"ngIf"],[1,"butVisible2"],["class","nav-item","routerLinkActive","active",4,"ngIf"],["href","#","id","languageDropdownLoggedIn","role","button","data-toggle","dropdown","aria-haspopup","true","aria-expanded","false",1,"nav-link","dropdown-toggle"],["aria-labelledby","languageDropdownLoggedIn",1,"dropdown-menu"],[1,"app-component","nav","nav-pills","flex-column","flex-lg-row","mr-md-2"],["routerLink","/settings",1,"nav-link"],[1,"fa","fa-cog"],["popTemplate",""],[1,"app-component","nav","nav-pills","ml-lg-2","flex-column","flex-lg-row"],[1,"nav-item",3,"click"],["href","javascript:;",1,"nav-link"],[1,"fa","fa-sign-out"],["routerLink","/licenses",1,"nav-link"],[3,"isViewOnl
1y"],[1,"app-component","collapse","navbar-collapse","menuItemsContainer","butVisible2"],[1,"app-component","nav","nav-pills","flex-column","flex-lg-row","ml-auto"],[1,"nav-item"],["src","https://developers.google.com/identity/images/g-logo.png","alt","Google logo",2,"height","20px"],["id","pre-bootstrap",1,"app-component","prebootStep"],[1,"messaging"],["bsModal","","tabindex","-1",1,"modal","fade","login-control",3,"config","onShown","onHidden","onHide"],["loginModal","bs-modal"],[1,"modal-dialog","modal-lg","h-75","d-flex","flex-column","justify-content-center","my-0"],[1,"modal-content"],[1,"modal-body"],["isModal","true",3,"myeventForgotPassword"],["loginControl",""],["bsModal","","tabindex","-1",1,"modal","fade","login-control",3,"config"],["forgotModal","bs-modal"],["isModal","true"],["forgotControl",""]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.ec(1,"ngx-toasta"),c.ec(2,"app-loading-spinner",1),c.jc(3,"nav",2),c.jc(4,"div",3),c.jc(5,"a",4),c.ad(6,"\n "),c.ec(7,"img",5),c.ad(8,"\n "),c.jc(9,"span",6),c.ad(10,"FV"),c.ic(),c.ad(11,"\n "),c.ic(),c.Yc(12,uT,4,3,"div",7),c.Yc(13,fT,4,3,"div",7),c.Yc(14,pT,2,1,"div",7),c.jc(15,"div",8),c.jc(16,"button",9),c.tc("click",function(){return t.changeLanguage("en")}),c.ad(17,"EN"),c.ic(),c.jc(18,"button",9),c.tc("click",function(){return t.changeLanguage("ru")}),c.ad(19,"RU"),c.ic(),c.ic(),c.jc(20,"button",10),c.ec(21,"span",11),c.ic(),c.Yc(22,yT,43,30,"div",12),c.Yc(23,ST,4,2,"div",12),c.Yc(24,RT,59,37,"div",12),c.Yc(25,NT,13,6,"div",13),c.ic(),c.ic(),c.Yc(26,BT,4,2,"div",14),c.jc(27,"div",15),c.jc(28,"main",16),c.jc(29,"div",17),c.ec(30,"router-outlet"),c.ec(31,"app-user-register"),c.ec(32,"reset-password"),c.ic(),c.ec(33,"div",18),c.ic(),c.jc(34,"footer",19),c.jc(35,"div",3),c.jc(36,"div",20),c.ad(37),c.jc(38,"a",21),c.ad(39,"www.forexvisible.com"),c.ic(),c.ic(),c.jc(40,"div",22),c.jc(41,"a",23),c.ad(42),c.yc(43,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.Yc(44,VT,7,2,"div",24),c.Yc(45,UT,7,2,"div",25),c.ic()),2&e&&(c.Pb(2),c.Dc("isLoading",t.isLoadingUpdate||t.isLoadingCollapse)("message",t.isLoadingUpdate?"Updating balance...":"Processing...")("showProgress",!1),c.Pb(10),c.Dc("ngIf",!(t.router.isActive("/about",!1)||t.router.isActive("/instru
1ction",!1)||t.router.isActive("/products",!1)||t.router.isActive("/settings",!1)||t.router.isActive("/signalsmql5",!1)||t.router.isActive("/binancebot",!1))),c.Pb(1),c.Dc("ngIf",!(t.router.isActive("/about",!1)||t.router.isActive("/instruction",!1)||t.router.isActive("/products",!1)||t.router.isActive("/settings",!1)||t.router.isActive("/signalsmql5",!1)||t.router.isActive("/binancebot",!1))),c.Pb(1),c.Dc("ngIf",t.isUserAdmin&&t.isUserAdmin&&!t.router.isActive("/signals",!1)&&!t.router.isActive("/about",!1)&&!t.router.isActive("/instruction",!1)&&!t.router.isActive("/products",!1)&&!t.router.isActive("/settings",!1)&&!t.router.isActive("/signalsmql5",!1)&&!t.router.isActive("/binancebot",!1)),c.Pb(2),c.Vb("active","en"===t.currentLanguage),c.Pb(2),c.Vb("active","ru"===t.currentLanguage),c.Pb(4),c.Dc("ngIf",!t.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!t.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",t.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!t.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!t.removePrebootScreen),c.Pb(11),c.cd(" ForexVisible \xa9 ",t.getYear()," "),c.Pb(5),c.bd(c.zc(43,19,"privacy.name")),c.Pb(2),c.Dc("ngIf",t.shouldShowLoginModal),c.Pb(1),c.Dc("ngIf",t.shouldShowForgotModal))},styles:[".app-container.app-component[_ngcontent-%COMP%]{position:fixed;top:var(--safe-top);left:0;right:0;bottom:0;overflow-y:auto!important;overflow-x:hidden;-webkit-overflow-scrolling:touch}main.app-component[_ngcontent-%COMP%]{height:auto!important;padding-top:60px!important;min-height:100%;height:calc(100% - 60px - var(--safe-bottom, 0px));padding-top:60px}.main-content-wrapper[_ngcontent-%COMP%]{background-color:#fff;height:100%}footer.app-component[_ngcontent-%COMP%]{width:100%;line-height:60px;background-color:#f5f5f5;padding-bottom:env(safe-area-inset-bottom,0)}.footer-height.app-component[_ngcontent-%COMP%], footer.app-component[_ngcontent-%COMP%]{height:calc(60px + var(--safe-bottom, 0px))}.scrollable-username[_ngcontent-%COMP%]{display:block;width:80px;overflow-x:auto;white-space:nowrap;text-overflow:unset;-webkit-overflow-scrolling:touch;border:1px solid #ccc}.navbar-brand.app-component[_ngcontent-%COMP%] > img[_ngcontent-%COMP%]{height:30px}.navbar.app-component[_ngcontent-%COMP%] .nav-pills[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%], .navbar.app-component[_ngcontent-%COMP%] .nav-pills[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:focus, .navbar.app-component[_ngcontent-%COMP%] .nav-pills[_ngcontent-%COMP%] > .active[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{background-color:#efefef;color:#000}.navbar.app-component[_ngcontent-%COMP%] .nav-pills[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{font-weight:700;padding:.4rem .5rem}.navbar.app-component[_ngcontent-%COMP%] .nav-pills[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{color:#000!important}.mat-slide-toggle[_ngcontent-%COMP%]{transform:scale(.8);padding-top:9px}.navbar.app-component[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], .navbar.app-component[_ngcontent-%COMP%] .navbar-text[_ngcontent-%COMP%]{color:#fff}@media screen and (max-width:1200px){.navbar.app-component[_ngcontent-%COMP%] .nav-pills[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-left:0;margin-top:1px}.butVisible[_ngcontent-%COMP%]{display:block}.butVisible2[_ngcontent-%COMP%]{display:none}}@media screen and (min-width:1200px){.navbar.app-component[_ngcontent-%COMP%] .nav-pills[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] + li[_ngcontent-%COMP%]{margin-left:2px}.butVisible[_ngcontent-%COMP%]{display:none}.butVisible2[_ngcontent-%COMP%]{display:block}}.prebootShow.app-component[_ngcontent-%COMP%]{opacity:1!important}.prebootStep.app-component[_ngcontent-%COMP%]{opacity:0;transition:all .5s ease-in-out}.nav-link[_ngcontent-%COMP%]{font-size:16px}.google-btn[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:#fff;color:#444;border:1px solid #d3d3d3;padding:5px 10px;border-radius:4px;font-size:14px;cursor:pointer;transition:box-shadow .2s ease-in-out}.google-btn[_ngcontent-%COMP%]:hover{box-shadow:0 2px 5px rgba(0,0,0,.2)}.binancebot-menu[_ngcontent-%COMP%]{border:2px solid gold;border-radius:6px;margin:0 2px}.binancebot-menu[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:gold!important;font-weight:700}.binancebot-menu[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover{color:#000!important}.binancebot-menu.active[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{color:#000!important}.binancebot-menu[_ngcontent-%COMP%]:hover{border-color:orange}.mobile-language-switcher[_ngcontent-%COMP%]{display:flex;gap:4px;margin-left:auto;margin-right:10px}.mobile-language-switcher[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{min-width:40px;padding:4px 8px;font-size:12px;font-weight:700;border:1px solid hsla(0,0%,100%,.3);background:hsla(0,0%,100%,.1);color:#fff;border-radius:4px;transition:all .2s ease}.mobile-language-switcher[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:hover{background:hsla(0,0%,100%,.2);border-color:hsla(0,0%,100%,.5);color:#fff}.mobile-language-switcher[_ngcontent-%COMP%] .btn.active[_ngcontent-%COMP%]{background:hsla(0,0%,100%,.3);border-color:#fff;color:#fff;box-shadow:0 0 4px hsla(0,0%,100%,.3)}.mobile-language-switcher[_ngcontent-%COMP%] .appTitle[_ngcontent-%COMP%]{font-family:Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-weight:700;letter-spacing:2px;text-transform:uppercase;background:linear-gradient(135deg,#fff,#f8f9fa 50%,#e9ecef);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 2px 4px rgba(0,0,0,.1);margin-left:8px;transition:all .3s ease;position:relative;font-size:1.3rem}.mobile-language-switcher[_ngcontent-%COMP%] .appTitle[_ngcontent-%COMP%]:hover{transform:scale(1.05);text-shadow:0 4px 8px rgba(0,0,0,.15)}@media screen and (max-width:1199.98px){.mobile-language-switcher[_ngcontent-%COMP%] .appTitle[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:800;letter-spacing:1.5px;background:linear-gradient(135deg,#fff,#fff 25%,#f8f9fa 75%,#fff);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-shadow:0 3px 6px rgba(0,0,0,.2);margin-left:6px;animation:logoGlow 2s ease-in-out infinite alternate}}@media screen and (min-width:1200px){.mobile-language-switcher[_ngcontent-%COMP%] .appTitle[_ngcontent-%COMP%]{font-size:1.3rem;letter-spacing:2px}}@keyframes logoGlow{0%{filter:brightness(1) drop-shadow(0 0 1px rgba(255,255,255,.3))}to{filter:brightness(1.1) drop-shadow(0 0 3px rgba(255,255,255,.6))}}.mobile-language-switcher[_ngcontent-%COMP%] .navbar-brand.app-component[_ng
1content-%COMP%]{display:flex;align-items:center;text-decoration:none;transition:all .3s ease}.mobile-language-switcher[_ngcontent-%COMP%] .navbar-brand.app-component[_ngcontent-%COMP%]:hover{transform:translateY(-1px)}.mobile-language-switcher[_ngcontent-%COMP%] .navbar-brand.app-component[_ngcontent-%COMP%]:hover .appTitle[_ngcontent-%COMP%]{transform:scale(1.05)}.mobile-language-switcher[_ngcontent-%COMP%] .navbar-brand.app-component[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{transform:rotate(5deg) scale(1.1)}.mobile-language-switcher[_ngcontent-%COMP%] .navbar-brand.app-component[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{transition:all .3s ease}"]}),$T);n("3f6Y");var GT=n("Q44L"),XT=n.n(GT);window.Smart?window.Smart.RenderMode="manual":window.Smart={RenderMode:"manual"},window.marked=XT.a;var QT=function(){function e(t){_classCallCheck(this,e),this.onCreate=new c.s,this.onReady=new c.s,this.onAttach=new c.s,this.onDetach=new c.s;var n=this;this.nativeElement=t.nativeElement,n.nativeElement.onAttached=function(){n.onAttach.emit(n.nativeElement)},n.nativeElement.onDetached=function(){n.onDetach.emit(n.nativeElement)}}return _createClass(e,[{key:"addEventListener",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.nativeElement.addEventListener(e,t,n)}},{key:"removeEventListener",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.nativeElement.removeEventListener(e,t,n)}},{key:"dispatchEvent",value:function(e){return this.nativeElement.dispatchEvent(e)}},{key:"blur",value:function(){this.nativeElement.blur()}},{key:"click",value:function(){this.nativeElement.click()}},{key:"focus",value:function(e){this.nativeElement.focus(e)}},{key:"locale",get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)}},{key:"localizeFormatFunction",get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)}},{key:"messages",get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)}},{key:"rightToLeft",get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)}},{key:"theme",get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)}}]),e}();QT.\u0275fac=function(e){c.sc()},QT.\u0275dir=c.Yb({type:QT,inputs:{locale:"locale",localizeFormatFunction:"localizeFormatFunction",messages:"messages",rightToLeft:"rightToLeft",theme:"theme"},outputs:{onCreate:"onCreate",onReady:"onReady",onAttach:"onAttach",onDetach:"onDetach"}}),Object(Rc.b)([Object(c.L)()],QT.prototype,"onCreate",void 0),Object(Rc.b)([Object(c.L)()],QT.prototype,"onReady",void 0),Object(Rc.b)([Object(c.L)()],QT.prototype,"onAttach",void 0),Object(Rc.b)([Object(c.L)()],QT.prototype,"onDetach",void 0),Object(Rc.b)([Object(c.A)()],QT.prototype,"locale",null),Object(Rc.b)([Object(c.A)()],QT.prototype,"localizeFormatFunction",null),Object(Rc.b)([Object(c.A)()],QT.prototype,"messages",null),Object(Rc.b)([Object(c.A)()],QT.prototype,"rightToLeft",null),Object(Rc.b)([Object(c.A)()],QT.prototype,"theme",null);var KT=window.Smart,ZT=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).eventHandlers=[],i.onChange=new c.s,i.onChanging=new c.s,i.onActionStart=new c.s,i.onActionEnd=new c.s,i.onContextMenuItemClick=new c.s,i.onContextMenuOpen=new c.s,i.onContextMenuOpening=new c.s,i.onContextMenuClose=new c.s,i.onContextMenuClosing=new c.s,i.onResizeStart=new c.s,i.onResizeEnd=new c.s,i.onInlineToolbarOpen=new c.s,i.onInlineToolbarOpening=new c.s,i.onInlineToolbarClose=new c.s,i.onInlineToolbarClosing=new c.s,i.onDropDownToolbarOpen=new c.s,i.onDropDownToolbarOpening=new c.s,i.onDropDownToolbarClose=new c.s,i.onDropDownToolbarClosing=new c.s,i.onDialogOpen=new c.s,i.onDialogOpening=new c.s,i.onDialogClose=new c.s,i.onDialogClosing=new c.s,i.onImageUploadSuccess=new c.s,i.onImageUploadFailed=new c.s,i.onToobarItem
1Click=new c.s,i.onMessageClose=new c.s,i.onMessageOpen=new c.s,i.nativeElement=e.nativeElement,i}return _createClass(n,[{key:"createComponent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in this.nativeElement=document.createElement("smart-editor"),e)this.nativeElement[t]=e[t];return this.nativeElement}},{key:"animation",get:function(){return this.nativeElement?this.nativeElement.animation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animation=e)}},{key:"autoLoad",get:function(){return this.nativeElement?this.nativeElement.autoLoad:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoLoad=e)}},{key:"autoSave",get:function(){return this.nativeElement?this.nativeElement.autoSave:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoSave=e)}},{key:"autoSaveInterval",get:function(){return this.nativeElement?this.nativeElement.autoSaveInterval:void 0},set:function(e){this.nativeElement&&(this.nativeElement.autoSaveInterval=e)}},{key:"charCountFormatFunction",get:function(){return this.nativeElement?this.nativeElement.charCountFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.charCountFormatFunction=e)}},{key:"contentFiltering",get:function(){return this.nativeElement?this.nativeElement.contentFiltering:void 0},set:function(e){this.nativeElement&&(this.nativeElement.contentFiltering=e)}},{key:"contextMenu",get:function(){return this.nativeElement?this.nativeElement.contextMenu:void 0},set:function(e){this.nativeElement&&(this.nativeElement.contextMenu=e)}},{key:"contextMenuDataSource",get:function(){return this.nativeElement?this.nativeElement.contextMenuDataSource:void 0},set:function(e){this.nativeElement&&(this.nativeElement.contextMenuDataSource=e)}},{key:"dataExport",get:function(){return this.nativeElement?this.nativeElement.dataExport:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dataExport=e)}},{key:"disabled",get:function(){return this.nativeElement?this.nativeElement.disabled:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disabled=e)}},{key:"disableEditing",get:function(){return this.nativeElement?this.nativeElement.disableEditing:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disableEditing=e)}},{key:"disableSearchBar",get:function(){return this.nativeElement?this.nativeElement.disableSearchBar:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disableSearchBar=e)}},{key:"editMode",get:function(){return this.nativeElement?this.nativeElement.editMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.editMode=e)}},{key:"enableHtmlEncode",get:function(){return this.nativeElement?this.nativeElement.enableHtmlEncode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.enableHtmlEncode=e)}},{key:"enableTabKey",get:function(){return this.nativeElement?this.nativeElement.enableTabKey:void 0},set:function(e){this.nativeElement&&(this.nativeElement.enableTabKey=e)}},{key:"findAndReplaceTimeout",get:function(){return this.nativeElement?this.nativeElement.findAndReplaceTimeout:void 0},set:function(e){this.nativeElement&&(this.nativeElement.findAndReplaceTimeout=e)}},{key:"hideToolbar",get:function(){return this.nativeElement?this.nativeElement.hideToolbar:void 0},set:function(e){this.nativeElement&&(this.nativeElement.hideToolbar=e)}},{key:"hideInlineToolbar",get:function(){return this.nativeElement?this.nativeElement.hideInlineToolbar:void 0},set:function(e){this.nativeElement&&(this.nativeElement.hideInlineToolbar=e)}},{key:"imageFormat",get:function(){return this.nativeElement?this.nativeElement.imageFormat:void 0},set:function(e){this.nativeElement&&(this.nativeElement.imageFormat=e)}},{key:"innerHTML",get:function(){return this.nativeElement?this.nativeElement.innerHTML:void 0},set:function(e){this.nativeElement&&(this.nativeElement.innerHTML=e)}},{key:"inlineToolbarOffset",get:function(){return this.nativeElement?this.nativeElement.inlineToolbarOffset:void 0},set:function(e){this.nativeElement&&(this.nativeElement.inlineToolbarOffset=e)}},{key:"iframeSettings",get:function(){return this.nativeElement?this.nativeElement.iframeSettings:void 0},set:function(e){this.nativeElement&&(this.nativeElement.iframeSettings=e)}},{key:"locale",get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)}}
1,{key:"maxCharCount",get:function(){return this.nativeElement?this.nativeElement.maxCharCount:void 0},set:function(e){this.nativeElement&&(this.nativeElement.maxCharCount=e)}},{key:"messages",get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)}},{key:"name",get:function(){return this.nativeElement?this.nativeElement.name:void 0},set:function(e){this.nativeElement&&(this.nativeElement.name=e)}},{key:"pasteFormat",get:function(){return this.nativeElement?this.nativeElement.pasteFormat:void 0},set:function(e){this.nativeElement&&(this.nativeElement.pasteFormat=e)}},{key:"placeholder",get:function(){return this.nativeElement?this.nativeElement.placeholder:void 0},set:function(e){this.nativeElement&&(this.nativeElement.placeholder=e)}},{key:"removeStylesOnClearFormat",get:function(){return this.nativeElement?this.nativeElement.removeStylesOnClearFormat:void 0},set:function(e){this.nativeElement&&(this.nativeElement.removeStylesOnClearFormat=e)}},{key:"required",get:function(){return this.nativeElement?this.nativeElement.required:void 0},set:function(e){this.nativeElement&&(this.nativeElement.required=e)}},{key:"rightToLeft",get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)}},{key:"sanitized",get:function(){return this.nativeElement?this.nativeElement.sanitized:void 0},set:function(e){this.nativeElement&&(this.nativeElement.sanitized=e)}},{key:"showCharCount",get:function(){return this.nativeElement?this.nativeElement.showCharCount:void 0},set:function(e){this.nativeElement&&(this.nativeElement.showCharCount=e)}},{key:"splitModeRefreshTimeout",get:function(){return this.nativeElement?this.nativeElement.splitModeRefreshTimeout:void 0},set:function(e){this.nativeElement&&(this.nativeElement.splitModeRefreshTimeout=e)}},{key:"theme",get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)}},{key:"toolbarItems",get:function(){return this.nativeElement?this.nativeElement.toolbarItems:void 0},set:function(e){this.nativeElement&&(this.nativeElement.toolbarItems=e)}},{key:"toolbarMode",get:function(){return this.nativeElement?this.nativeElement.toolbarMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.toolbarMode=e)}},{key:"toolbarRibbonConfig",get:function(){return this.nativeElement?this.nativeElement.toolbarRibbonConfig:void 0},set:function(e){this.nativeElement&&(this.nativeElement.toolbarRibbonConfig=e)}},{key:"toolbarViewMode",get:function(){return this.nativeElement?this.nativeElement.toolbarViewMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.toolbarViewMode=e)}},{key:"toolbarSticky",get:function(){return this.nativeElement?this.nativeElement.toolbarSticky:void 0},set:function(e){this.nativeElement&&(this.nativeElement.toolbarSticky=e)}},{key:"unfocusable",get:function(){return this.nativeElement?this.nativeElement.unfocusable:void 0},set:function(e){this.nativeElement&&(this.nativeElement.unfocusable=e)}},{key:"value",get:function(){return this.nativeElement?this.nativeElement.value:void 0},set:function(e){this.nativeElement&&(this.nativeElement.value=e)}},{key:"windowCustomizationFunction",get:function(){return this.nativeElement?this.nativeElement.windowCustomizationFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.windowCustomizationFunction=e)}},{key:"blur",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.blur():this.nativeElement.whenRendered(function(){e.nativeElement.blur()})}},{key:"clearContent",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.clearContent():this.nativeElement.whenRendered(function(){e.nativeElement.clearContent()})}},{key:"collapseToolbar",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.collapseToolbar():this.nativeElement.whenRendered(function(){e.nativeElement.collapseToolbar()})}},{key:"disableToolbarItem",value:function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.disableToolbarItem(e):this.nativeElement.whenRendered(function(){t.nativeElement.disableToolbarItem(e)})}},{key:"expandToolbar",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.expandToolbar():this.nativeElement.whenRendered(function(){e.nativeElement.expandToolbar()})}},{key:"enableToolbarItem",value:function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.enableToolbarItem(e):this.nativeElement.whenRendered(function(){t.nativeElement.enableToolbarItem(e)})}},{key:"executeCommand",value:function(e,t){return Object(Rc.a)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,new Promise(function(n){i.nativeElement.whenRendered(function(){var r=i.nativeElement.executeCommand(e,t);n(r)})});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},n)}))}},{key:"focus",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.focus():this.nativeElement.whenRendered(function(){e.nativeElement.focus()})}},{key:"getCharCount",value:function(){return Object(Rc.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(function(e){t.nativeElement.whenRendered(function(){var n=t.nativeElement.getCharCount();e(n)})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))}},{key:"getSelectionRange",value:function(){return Object(Rc.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(function(e){t.nativeElement.whenRendered(function(){var n=t.nativeElement.getSelectionRange();e(n)})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))}},{key:"getHTML",value:function(){return Object(Rc.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(function(e){t.nativeElement.whenRendered(function(){var n=t.nativeElement.getHTML();e(n)})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))}},{key:"getText",value:function(){return Object(Rc.a)(this,void 0,void 0,regeneratorRuntime.mark(function e(){var t=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(function(e){t.nativeElement.whenRendered(function(){var n=t.nativeElement.getText();e(n)})});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e)}))}},{key:"hideMessage",value:function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.hideMessage(e):this.nativeElement.whenRendered(function(){t.nativeElement.hideMessage(e)})}},{key:"hideLastMessage",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.hideLastMessage():this.nativeElement.whenRendered(function(){e.nativeElement.hideLastMessage()})}},{key:"showMessage",value:function(e,t){return Object(Rc.a)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,new Promise(function(n){i.nativeElement.whenRendered(function(){var r=i.nativeElement.showMessage(e,t);n(r)})});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},n)}))}},{key:"selectAll",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.selectAll():this.nativeElement.whenRendered(function(){e.nativeElement.selectAll()})}},{key:"selectRange",value:function(e,t){var n=this;this.nativeElement.isRendered?this.nativeElement.selectRange(e,t):this.nativeElement.whenRendered(function(){n.nativeElement.selectRange(e,t)})}},{key:"clearState",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.clearState():this.nativeElement.whenRendered(function(){e.nativeElement.clearState()})}},{key:"saveState",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.saveState():this.nativeElement.whenRendered(function(){e.nativeElement.saveState()})}},{key:"loadState",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.loadState():this.nativeElement.whenRendered(function(){e.nativeElement.loadState()})}},{key:"splitMode",value:function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.splitMode(e):this.nativeElement.whenRendered(function(){t.nativeElement.splitMode(e)})}},{key:"previewMode",value:function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.previewMode(e):this.nativeElement.whenRendered(function(){t.nativeElement.previewMode(e)})}},{key:"fullScreenMode",value:function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.fullScreenMode(e):this.nativeElement.whenRendered(function(){t.nativeElement.fullScreenMode(e)})}},{key:"exportData",value:function(e,t){var n=this;this.nativeElement.isRendered?this.nativeElement.exportData(e,t):this.nativeElement.whenRendered(function(){n.nativeElement.exportData(e,t)})}},{key:"importData",value:function(e,t){var n=this;this.nativeElement.isRendered?this.nativeElement.importData(e,t):this.nativeElement.whenRendered(function(){n.nativeElement.importData(e,t)})}},{key:"print",value:function(){var e=this;this.nativeElement.isRendered?this.nativeElement.print():this.nativeElement.whenRendered(function(){e.nativeElement.print()})}},{key:"updateToolbarItem",value:function(e,t){return Object(Rc.a)(this,void 0,void 0,regeneratorRuntime.mark(function n(){var i=this;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,new Promise(function(n){i.nativeElement.whenRendered(function(){var r=i.nativeElement.updateToolbarItem(e,t);n(r)})});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}},n)}))}},{key:"isRendered",get:function(){return!!this.nativeElement&&this.nativeElement.isRendered}},{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this;e.onCreate.emit(e.nativeElement),KT.Render(),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered(function(){e.onReady.emit(e.nativeElement)}),this.listen()}},{key:"ngOnDestroy",value:function(){this.unlisten()}},{key:"ngOnChanges",value:function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)}},{key:"listen",value:function(){var e=this;e.eventHandlers.changeHandler=function(t){e.onChange.emit(t)},e.nativeElement.addEventListener("change",e.eventHandlers.changeHandler),e.eventHandlers.changingHandler=function(t){e.onChanging.emit(t)},e.nativeElement.addEventListener("changing",e.eventHandlers.changingHandler),e.eventHandlers.actionStartHandler=function(t){e.onActionStart.emit(t)},e.nativeElement.addEventListener("actionStart",e.eventHandlers.actionStartHandler),e.eventHandlers.actionEndHandler=function(t){e.onActionEnd.emit(t)},e.nativeElement.addEventListener("actionEnd",e.eventHandlers.actionEndHandler),e.eventHandlers.contextMenuItemClickHandler=function(t){e.onContextMenuItemClick.emit(t)},e.nativeElement.addEventListener("contextMenuItemClick",e.eventHandlers.contextMenuItemClickHandler),e.eventHandlers.contextMenuOpenHandler=function(t){e.onContextMenuOpen.emit(t)},e.nativeElement.addEventListener("contextMenuOpen",e.eventHandlers.contextMenuOpenHandler),e.eventHandlers.contextMenuOpeningHandler=function(t){e.onContextMenuOpening.emit(t)},e.nativeElement.addEventListener("contextMenuOpening",e.eventHandlers.contextMenuOpeningHandler),e.eventHandlers.contextMenuCloseHandler=function(t){e.onContextMenuClose.emit(t)},e.nativeElement.addEventListener("contextMenuClose",e.eventHandlers.contextMenuCloseHandler),e.eventHandlers.contextMenuClosingHandler=function(t){e.onContextMenuClosing.emit(t)},e.nativeElement.addEventListener("contextMenuClosing",e.eventHandlers.contextMenuClosingHandler),e.eventHandlers.resizeStartHandler=function(t){e.onResizeStart.emit(t)},e.nativeElement.addEventListener("resizeStart",e.eventHandlers.resizeStartHandler),e.eventHandlers.resizeEndHandler=function(t){e.onResizeEnd.emit(t)},e.nativeElement.addEventListener("resizeEnd",e.eventHandlers.resizeEndHandler),e.eventHandlers.inlineToolbarOpenHandler=function(t){e.onInlineToolbarOpen.emit(t)},e.nativeElement.addEventListener("inlineToolbarOpen",e.eventHandlers.inlineToolbarOpenHandler),e.eventHandlers.inlineToolbarOpeningHandler=function(t){e.onInlineToolbarOpening.emit(t)},e.nativeElement.addEventListener("inlineToolbarOpening",e.eventHandlers.inlineToolbarOpeningHandler),e.eventHandlers.inlineToolbarCloseHandler=function(t){e.onInlineToolbarClose.emit(t)},e.nativeElement.addEventListener("inlineToolbarClose",e.eventHandlers.inlineToolbarCloseHandler),e.eventHandlers.inlineToolbarClosingHandler=function(t){e.onInlineToolbarClosing.emit(t)},e.nativeElement.addEventListener("inlineToolbarClosing",e.eventHandlers.inlineToolbarClosingHandler),e.eventHandlers.dropDownToolbarOpenHandler=function(t){e.onDropDownToolbarOpen.emit(t)},e.nativeElement.addEventListener("dropDownToolbarOpen",e.eventHandlers.dropDownToolbarOpenHandler),e.eventHandlers.dropDownToolbarOpeningHandler=function(t){e.onDropDownToolbarOpening.emit(t)},e.nativeElement.addEventListener("dropDownToolbarOpening",e.eventHandlers.dropDownToolbarOpeningHandler),e.eventHandlers.dropDownToolbarCloseHandler=function(t){e.onDropDownToolbarClose.emit(t)},e.nativeElement.addEventListener("dropDownToolbarClose",e.eventHandlers.dropDownToolbarCloseHandler),e.eventHandlers.dropDownToolbarClosingHandler=function(t){e.onDropDownToolbarClosing.emit(t)},e.nativeElement.addEventListener("dropDownToolbarClosing",e.eventHandlers.dropDownToolbarClosingHandler),e.eventHandlers.dialogOpenHandler=function(t){e.onDialogOpen.emit(t)},e.nativeElement.addEventListener("dialogOpen",e.eventHandlers.dialogOpenHandler),e.eventHandlers.dialogOpeningHandler=function(t){e.onDialogOpening.emit(t)},e.nativeElement.addEventListener("dialogOpening",e.eventHandlers.dialogOpeningHandler),e.eventHandlers.dialogCloseHandler=function(t){e.onDialogClose.emit(t)},e.nativeElement.addEventListener("dialogClose",e.eventHandlers.dialogCloseHandler),e.eventHandlers.dialogClosingHandler=function(t){e.onDialogClosing.emit(t)},e.nativeElement.addEventListener("dialogClosing",e.eventHandlers.dialogClosingHandler),e.eventHandlers.imageUploadSuccessHandler=function(t){e.onImageUploadSuccess.emit(t)},e.nativeElement.addEventListener("imageUploadSuccess",e.eventHandlers.imageUploadSuccessHandler),e.eventHandlers.imageUploadFailedHandler=function(t){e.onImageUploadFailed.emit(t)},e.nativeElement.addEventListener("imageUploadFailed",e.eventHandlers.imageUploadFailedHandler),e.eventHandlers.toobarItem
1ClickHandler=function(t){e.onToobarItemClick.emit(t)},e.nativeElement.addEventListener("toobarItemClick",e.eventHandlers.toobarItemClickHandler),e.eventHandlers.messageCloseHandler=function(t){e.onMessageClose.emit(t)},e.nativeElement.addEventListener("messageClose",e.eventHandlers.messageCloseHandler),e.eventHandlers.messageOpenHandler=function(t){e.onMessageOpen.emit(t)},e.nativeElement.addEventListener("messageOpen",e.eventHandlers.messageOpenHandler)}},{key:"unlisten",value:function(){this.eventHandlers.changeHandler&&this.nativeElement.removeEventListener("change",this.eventHandlers.changeHandler),this.eventHandlers.changingHandler&&this.nativeElement.removeEventListener("changing",this.eventHandlers.changingHandler),this.eventHandlers.actionStartHandler&&this.nativeElement.removeEventListener("actionStart",this.eventHandlers.actionStartHandler),this.eventHandlers.actionEndHandler&&this.nativeElement.removeEventListener("actionEnd",this.eventHandlers.actionEndHandler),this.eventHandlers.contextMenuItemClickHandler&&this.nativeElement.removeEventListener("contextMenuItemClick",this.eventHandlers.contextMenuItemClickHandler),this.eventHandlers.contextMenuOpenHandler&&this.nativeElement.removeEventListener("contextMenuOpen",this.eventHandlers.contextMenuOpenHandler),this.eventHandlers.contextMenuOpeningHandler&&this.nativeElement.removeEventListener("contextMenuOpening",this.eventHandlers.contextMenuOpeningHandler),this.eventHandlers.contextMenuCloseHandler&&this.nativeElement.removeEventListener("contextMenuClose",this.eventHandlers.contextMenuCloseHandler),this.eventHandlers.contextMenuClosingHandler&&this.nativeElement.removeEventListener("contextMenuClosing",this.eventHandlers.contextMenuClosingHandler),this.eventHandlers.resizeStartHandler&&this.nativeElement.removeEventListener("resizeStart",this.eventHandlers.resizeStartHandler),this.eventHandlers.resizeEndHandler&&this.nativeElement.removeEventListener("resizeEnd",this.eventHandlers.resizeEndHandler),this.eventHandlers.inlineToolbarOpenHandler&&this.nativeElement.removeEventListener("inlineToolbarOpen",this.eventHandlers.inlineToolbarOpenHandler),this.eventHandlers.inlineToolbarOpeningHandler&&this.nativeElement.removeEventListener("inlineToolbarOpening",this.eventHandlers.inlineToolbarOpeningHandler),this.eventHandlers.inlineToolbarCloseHandler&&this.nativeElement.removeEventListener("inlineToolbarClose",this.eventHandlers.inlineToolbarCloseHandler),this.eventHandlers.inlineToolbarClosingHandler&&this.nativeElement.removeEventListener("inlineToolbarClosing",this.eventHandlers.inlineToolbarClosingHandler),this.eventHandlers.dropDownToolbarOpenHandler&&this.nativeElement.removeEventListener("dropDownToolbarOpen",this.eventHandlers.dropDownToolbarOpenHandler),this.eventHandlers.dropDownToolbarOpeningHandler&&this.nativeElement.removeEventListener("dropDownToolbarOpening",this.eventHandlers.dropDownToolbarOpeningHandler),this.eventHandlers.dropDownToolbarCloseHandler&&this.nativeElement.removeEventListener("dropDownToolbarClose",this.eventHandlers.dropDownToolbarCloseHandler),this.eventHandlers.dropDownToolbarClosingHandler&&this.nativeElement.removeEventListener("dropDownToolbarClosing",this.eventHandlers.dropDownToolbarClosingHandler),this.eventHandlers.dialogOpenHandler&&this.nativeElement.removeEventListener("dialogOpen",this.eventHandlers.dialogOpenHandler),this.eventHandlers.dialogOpeningHandler&&this.nativeElement.removeEventListener("dialogOpening",this.eventHandlers.dialogOpeningHandler),this.eventHandlers.dialogCloseHandler&&this.nativeElement.removeEventListener("dialogClose",this.eventHandlers.dialogCloseHandler),this.eventHandlers.dialogClosingHandler&&this.nativeElement.removeEventListener("dialogClosing",this.eventHandlers.dialogClosingHandler),this.eventHandlers.imageUploadSuccessHandler&&this.nativeElement.removeEventListener("imageUploadSuccess",this.eventHandlers.imageUploadSuccessHandler),this.eventHandlers.imageUploadFailedHandler&&this.nativeElement.removeEventListener("imageUploadFailed",this.eventHandlers.imageUploadFailedHandler),this.eventHandlers.toobarItem
1ClickHandler&&this.nativeElement.removeEventListener("toobarItemClick",this.eventHandlers.toobarItemClickHandler),this.eventHandlers.messageCloseHandler&&this.nativeElement.removeEventListener("messageClose",this.eventHandlers.messageCloseHandler),this.eventHandlers.messageOpenHandler&&this.nativeElement.removeEventListener("messageOpen",this.eventHandlers.messageOpenHandler)}}]),n}(QT);ZT.\u0275fac=function(e){return new(e||ZT)(c.dc(c.q))},ZT.\u0275dir=c.Yb({type:ZT,selectors:[["smart-editor"],["","smart-editor",""]],inputs:{animation:"animation",autoLoad:"autoLoad",autoSave:"autoSave",autoSaveInterval:"autoSaveInterval",charCountFormatFunction:"charCountFormatFunction",contentFiltering:"contentFiltering",contextMenu:"contextMenu",contextMenuDataSource:"contextMenuDataSource",dataExport:"dataExport",disabled:"disabled",disableEditing:"disableEditing",disableSearchBar:"disableSearchBar",editMode:"editMode",enableHtmlEncode:"enableHtmlEncode",enableTabKey:"enableTabKey",findAndReplaceTimeout:"findAndReplaceTimeout",hideToolbar:"hideToolbar",hideInlineToolbar:"hideInlineToolbar",imageFormat:"imageFormat",innerHTML:"innerHTML",inlineToolbarOffset:"inlineToolbarOffset",iframeSettings:"iframeSettings",locale:"locale",maxCharCount:"maxCharCount",messages:"messages",name:"name",pasteFormat:"pasteFormat",placeholder:"placeholder",removeStylesOnClearFormat:"removeStylesOnClearFormat",required:"required",rightToLeft:"rightToLeft",sanitized:"sanitized",showCharCount:"showCharCount",splitModeRefreshTimeout:"splitModeRefreshTimeout",theme:"theme",toolbarItems:"toolbarItems",toolbarMode:"toolbarMode",toolbarRibbonConfig:"toolbarRibbonConfig",toolbarViewMode:"toolbarViewMode",toolbarSticky:"toolbarSticky",unfocusable:"unfocusable",value:"value",windowCustomizationFunction:"windowCustomizationFunction"},outputs:{onChange:"onChange",onChanging:"onChanging",onActionStart:"onActionStart",onActionEnd:"onActionEnd",onContextMenuItemClick:"onContextMenuItemClick",onContextMenuOpen:"onContextMenuOpen",onContextMenuOpening:"onContextMenuOpening",onContextMenuClose:"onContextMenuClose",onContextMenuClosing:"onContextMenuClosing",onResizeStart:"onResizeStart",onResizeEnd:"onResizeEnd",onInlineToolbarOpen:"onInlineToolbarOpen",onInlineToolbarOpening:"onInlineToolbarOpening",onInlineToolbarClose:"onInlineToolbarClose",onInlineToolbarClosing:"onInlineToolbarClosing",onDropDownToolbarOpen:"onDropDownToolbarOpen",onDropDownToolbarOpening:"onDropDownToolbarOpening",onDropDownToolbarClose:"onDropDownToolbarClose",onDropDownToolbarClosing:"onDropDownToolbarClosing",onDialogOpen:"onDialogOpen",onDialogOpening:"onDialogOpening",onDialogClose:"onDialogClose",onDialogClosing:"onDialogClosing",onImageUploadSuccess:"onImageUploadSuccess",onImageUploadFailed:"onImageUploadFailed",onToobarItemClick:"onToobarItemClick",onMessageClose:"onMessageClose",onMessageOpen:"onMessageOpen"},features:[c.Mb,c.Nb]}),ZT.ctorParameters=function(){return[{type:c.q}]},Object(Rc.b)([Object(c.A)()],ZT.prototype,"animation",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"autoLoad",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"autoSave",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"autoSaveInterval",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"charCountFormatFunction",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"contentFiltering",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"contextMenu",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"contextMenuDataSource",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"dataExport",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"disabled",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"disableEditing",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"disableSearchBar",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"editMode",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"enableHtmlEncode",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"enableTabKey",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"findAndReplaceTimeout",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"hideToolbar",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"hideInlineToolbar",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"imageFormat",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"innerHTML",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"inlineToolbarOffset",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"iframeSettings",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"locale",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"maxCharCount",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"messages",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"name",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"pasteFormat",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"placeholder",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"removeStylesOnClearFormat",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"required",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"rightToLeft",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"sanitized",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"showCharCount",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"splitModeRefreshTimeout",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"theme",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"toolbarItems",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"toolbarMode",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"toolbarRibbonConfig",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"toolbarViewMode",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"toolbarSticky",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"unfocusable",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"value",null),Object(Rc.b)([Object(c.A)()],ZT.prototype,"windowCustomizationFunction",null),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onChange",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onChanging",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onActionStart",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onActionEnd",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onContextMenuItemClick",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onContextMenuOpen",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onContextMenuOpening",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onContextMenuClose",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onContextMenuClosing",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onResizeStart",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onResizeEnd",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onInlineToolbarOpen",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onInlineToolbarOpening",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onInlineToolbarClose",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onInlineToolbarClosing",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onDropDownToolbarOpen",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onDropDownToolbarOpening",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onDropDownToolbarClose",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onDropDownToolbarClosing",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onDialogOpen",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onDialogOpening",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onDialogClose",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onDialogClosing",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onImageUploadSuccess",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onImageUploadFailed",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onToobarItem
1Click",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onMessageClose",void 0),Object(Rc.b)([Object(c.L)()],ZT.prototype,"onMessageOpen",void 0);var JT=function e(){_classCallCheck(this,e)};JT.\u0275fac=function(e){return new(e||JT)},JT.\u0275mod=c.bc({type:JT}),JT.\u0275inj=c.ac({});var eE,tE,nE=function e(){_classCallCheck(this,e)},iE=["editor"],rE=((tE=function(){function e(t,n){_classCallCheck(this,e),this.tradeeaService=t,this.alertService=n,this.ngUnsubscribe=new oe.a,this.toolbarItems=["Bold","Italic","FontName","FontSize","FontColor","BackgroundColor","Formats","Alignment","OrderedList","UnorderedList","Outdent","Indent","hyperlink","Image","SourceCode","splitmode","FullScreen","Undo","Redo","ClearFormat","FindAndReplace","delete"]}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.ngUnsubscribe.next(!0),this.ngUnsubscribe.complete()}},{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){this.init()}},{key:"init",value:function(){this.editor.expandToolbar(),this.editor.innerHTML=this.html}},{key:"Load",value:function(){var e=this;this.alertService.startLoadingMessage("Pleas wait..."),this.tradeeaService.loadDiscribe(this.id).pipe(De(this.ngUnsubscribe)).subscribe(function(t){e.editor.innerHTML=t,e.alertService.stopLoadingMessage()},function(t){e.alertService.stopLoadingMessage(),e.onCurrentUserDataLoadFailed(t)})}},{key:"onDialogOpening",value:function(e){}},{key:"Save",value:function(e,t){var n=this;this.alertService.startLoadingMessage("Pleas wait...");var i=new nE;this.editor.getHTML().then(function(r){i.discribe=r,i.accountId=n.id,n.tradeeaService.saveDiscribe(i).pipe(De(n.ngUnsubscribe)).subscribe(function(t){e(r),n.alertService.stopLoadingMessage()},function(e){n.alertService.stopLoadingMessage(),n.onCurrentUserDataLoadFailed(e),t&&t(e)})}).catch(function(e){n.alertService.stopLoadingMessage(),n.onCurrentUserDataLoadFailed(e),t&&t(e)})}},{key:"onCurrentUserDataLoadFailed",value:function(e){this.alertService.stopLoadingMessage(),this.alertService.showStickyMessage("Load Error",'Unable to retrieve user data from the server.\r\nErrors: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)}}]),e}()).\u0275fac=function(e){return new(e||tE)(c.dc(aT),c.dc(PM))},tE.\u0275cmp=c.Xb({type:tE,selectors:[["app-editor"]],viewQuery:function(e,t){var n;1&e&&c.ed(iE,5,ZT),2&e&&c.Mc(n=c.uc())&&(t.editor=n.first)},inputs:{id:"id",html:"html"},decls:2,vars:1,consts:[[3,"toolbarItems","dialogOpening"],["editor",""]],template:function(e,t){1&e&&(c.jc(0,"smart-editor",0,1),c.tc("dialogOpening",function(e){return t.onDialogOpening(e)}),c.ic()),2&e&&c.Dc("toolbarItems",t.toolbarItems)},directives:[ZT],styles:["body,html{margin:0 auto}.smart-editor,body,html{width:100%;height:100%}.options{padding:20px;background-color:hsla(0,0%,74.9%,.15);position:absolute;right:0;top:0;bottom:0;width:260px}@media only screen and (min-width:1200px){.smart-editor-window-findandreplace,.smart-editor-window-hyperlink,.smart-editor-window-image,.smart-editor-window-table,.smart-editor-window-video{width:400px!important;height:400px!important}}@media only screen and (max-width:1200px){.smart-editor-window-image,.smart-editor-window-table{width:250px!important;height:250px!important}.smart-editor-window-hyperlink{width:250px!important;height:280px!important}.smart-editor-window-findandreplace,.smart-editor-window-video{width:250px!important;height:250px!important}}"],encapsulation:2,data:{animation:[Zw]},changeDetection:0}),tE),aE=((eE=function(){function e(){_classCallCheck(this,e),this.onCreate=new c.s}return _createClass(e,[{key:"ngOnInit",value:function(){this.onCreate.emit("dummy")}}]),e}()).\u0275fac=function(e){return new(e||eE)},eE.\u0275dir=c.Yb({type:eE,selectors:[["","onCreate",""]],outputs:{onCreate:"onCreate"}}),eE),oE=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function sE(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function lE(){}var cE=1/.7,uE="\\s*([+-]?\\d+)\\s*",dE="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",hE="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fE=/^#([0-9a-f]{3,8})$/,pE=new RegExp("^rgb\\("+[uE,uE,uE]+"\\)$"),mE=new RegExp("^rgb\\("+[hE,hE,hE]+"\\)$"),gE=new RegExp("^rgba\\("+[uE,uE,uE,dE]+"\\)$"),vE=new RegExp("^rgba\\("+[hE,hE,hE,dE]+"\\)$"),yE=new RegExp("^hsl\\("+[dE,hE,hE]+"\\)$"),bE=new RegExp("^hsla\\("+[dE,hE,hE,dE]+"\\)$"),_E={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function wE(){return this.rgb().formatHex()}function kE(){return this.rgb().formatRgb()}function CE(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=fE.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?xE(t):3===n?
vendor: 17,915 bytes, line 1
1new TE(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?SE(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?SE(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=pE.exec(e))?new TE(t[1],t[2],t[3],1):(t=mE.exec(e))?new TE(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=gE.exec(e))?SE(t[1],t[2],t[3],t[4]):(t=vE.exec(e))?SE(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=yE.exec(e))?LE(t[1],t[2]/100,t[3]/100,1):(t=bE.exec(e))?LE(t[1],t[2]/100,t[3]/100,t[4]):_E.hasOwnProperty(e)?xE(_E[e]):"transparent"===e?new TE(NaN,NaN,NaN,0):null}function xE(e){return new TE(e>>16&255,e>>8&255,255&e,1)}function SE(e,t,n,i){return i<=0&&(e=t=n=NaN),new TE(e,t,n,i)}function ME(e){return e instanceof lE||(e=CE(e)),e?new TE((e=e.rgb()).r,e.g,e.b,e.opacity):new TE}function DE(e,t,n,i){return 1===arguments.length?ME(e):new TE(e,t,n,null==i?1:i)}function TE(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function EE(){return"#"+PE(this.r)+PE(this.g)+PE(this.b)}function AE(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function PE(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function LE(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new IE(e,t,n,i)}function OE(e){if(e instanceof IE)return new IE(e.h,e.s,e.l,e.opacity);if(e instanceof lE||(e=CE(e)),!e)return new IE;if(e instanceof IE)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),a=Math.max(t,n,i),o=NaN,s=a-r,l=(a+r)/2;return s?(o=t===a?(n-i)/s+6*(n<i):n===a?(i-t)/s+2:(t-n)/s+4,s/=l<.5?a+r:2-a-r,o*=60):s=l>0&&l<1?0:o,new IE(o,s,l,e.opacity)}function IE(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function HE(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}oE(lE,CE,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:wE,formatHex:wE,formatHsl:function(){return OE(this).formatHsl()},formatRgb:kE,toString:kE}),oE(TE,DE,sE(lE,{brighter:function(e){return e=null==e?cE:Math.pow(cE,e),new TE(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new TE(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:EE,formatHex:EE,formatRgb:AE,toString:AE})),oE(IE,function(e,t,n,i){return 1===arguments.length?OE(e):new IE(e,t,n,null==i?1:i)},sE(lE,{brighter:function(e){return e=null==e?cE:Math.pow(cE,e),new IE(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new IE(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,r=2*n-i;return new TE(HE(e>=240?e-240:e+120,r,i),HE(e,r,i),HE(e<120?e+240:e-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var jE,FE,RE=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},NE=(1===(jE=RE).length&&(FE=jE,jE=function(e,t){return RE(FE(e),t)}),{left:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var r=n+i>>>1;jE(e[r],t)<0?n=r+1:i=r}return n},right:function(e,t,n,i){for(null==n&&(n=0),null==i&&(i=e.length);n<i;){var r=n+i>>>1;jE(e[r],t)>0?i=r:n=r+1}return n}}).right,BE=function(e){return null===e?NaN:+e},YE=function(e,t,n){e=+e,t=+t,n=(r=arguments.length)<2?(t=e,e=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((t-e)/n)),a=new Array(r);++i<r;)a[i]=e+i*n;return a},zE=Math.sqrt(50),VE=Math.sqrt(10),UE=Math.sqrt(2);function $E(e,t,n){var i=(t-e)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,r);return r>=0?(a>=zE?10:a>=VE?5:a>=UE?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=zE?10:a>=VE?5:a>=UE?2:1)}var WE=function(e,t,n){if(null==n&&(n=BE),i=e.length){if((t=+t)<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,r=(i-1)*t,a=Math.floor(r),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(r-a)}};function qE(){}function GE(e,t){var n=new qE;if(e instanceof qE)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var i,r=-1,a=e.length;if(null==t)for(;++r<a;)n.set(r,e[r]);else for(;++r<a;)n.set(t(i=e[r],r,e),i)}else if(e)for(var o in e)n.set(o,e[o]);return n}qE.prototype=GE.prototype={constructor:qE,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var XE=GE;function QE(){}var KE=XE.prototype;QE.prototype=(function(e,t){var n=new QE;if(e instanceof QE)e.each(function(e){n.add(e)});else if(e){var i=-1,r=e.length;if(null==t)for(;++i<r;)n.add(e[i]);else for(;++i<r;)n.add(t(e[i],i,e))}return n}).prototype={constructor:QE,has:KE.has,add:function(e){return this["$"+(e+="")]=e,this},remove:KE.remove,clear:KE.clear,values:KE.keys,size:KE.size,empty:KE.empty,each:KE.each};var ZE=Array.prototype,JE=ZE.map,eA=ZE.slice,tA={name:"implicit"};function nA(e){var t=XE(),n=[],i=tA;function r(r){var a=r+"",o=t.get(a);if(!o){if(i!==tA)return i;t.set(a,o=n.push(r))}return e[(o-1)%e.length]}return e=null==e?[]:eA.call(e),r.domain=function(e){if(!arguments.length)return n.slice();n=[],t=XE();for(var i,a,o=-1,s=e.length;++o<s;)t.has(a=(i=e[o])+"")||t.set(a,n.push(i));return r},r.range=function(t){return arguments.length?(e=eA.call(t),r):e.slice()},r.unknown=function(e){return arguments.length?(i=e,r):i},r.copy=function(){return nA().domain(n).range(e).unknown(i)},r}function iA(){var e,t,n=nA().unknown(void 0),i=n.domain,r=n.range,a=[0,1],o=!1,s=0,l=0,c=.5;function u(){var n=i().length,u=a[1]<a[0],d=a[u-0],h=a[1-u];e=(h-d)/Math.max(1,n-s+2*l),o&&(e=Math.floor(e)),d+=(h-d-e*(n-s))*c,t=e*(1-s),o&&(d=Math.round(d),t=Math.round(t));var f=YE(n).map(function(t){return d+e*t});return r(u?f.reverse():f)}return delete n.unknown,n.domain=function(e){return arguments.length?(i(e),u()):i()},n.range=function(e){return arguments.length?(a=[+e[0],+e[1]],u()):a.slice()},n.rangeRound=function(e){return a=[+e[0],+e[1]],o=!0,u()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(o=!!e,u()):o},n.padding=function(e){return arguments.length?(s=l=Math.max(0,Math.min(1,e)),u()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),u()):s},n.paddingOuter=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),u()):l},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),u()):c},n.copy=function(){return iA().domain(i()).range(a).round(o).paddingInner(s).paddingOuter(l).align(c)},u()}var rA=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}};function aA(e,t,n,i,r){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*i+o*r)/6}var oA=function(e){return function(){return e}};function sA(e,t){return function(n){return e+n*t}}function lA(e,t){var n=t-e;return n?sA(e,n):oA(isNaN(e)?t:e)}var cA=function e(t){var n=function(e){return 1==(e=+e)?lA:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}(t,n,e):oA(isNaN(t)?n:t)}}(t);function i(e,t){var i=n((e=DE(e)).r,(t=DE(t)).r),r=n(e.g,t.g),a=n(e.b,t.b),o=lA(e.opacity,t.opacity);return function(t){return e.r=i(t),e.g=r(t),e.b=a(t),e.opacity=o(t),e+""}}return i.gamma=e,i}(1);function uA(e){return function(t){var n,i,r=t.length,a=new Array(r),o=new Array(r),s=new Array(r);for(n=0;n<r;++n)i=DE(t[n]),a[n]=i.r||0,o[n]=i.g||0,s[n]=i.b||0;return a=e(a),o=e(o),s=e(s),i.opacity=1,function(e){return i.r=a(e),i.g=o(e),i.b=s(e),i+""}}}uA(function(e){var t=e.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[i],a=e[i+1];return aA((n-i/t)*t,i>0?e[i-1]:2*r-a,r,a,i<t-1?e[i+2]:2*a-r)}}),uA(function(e){var t=e.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*t);return aA((n-i/t)*t,e[(i+t-1)%t],e[i%t],e[(i+1)%t],e[(i+2)%t])}});var dA=function(e,t){t||(t=[]);var n,i=e?Math.min(t.length,e.length):0,r=t.slice();return function(a){for(n=0;n<i;++n)r[n]=e[n]*(1-a)+t[n]*a;return r}};function hA(e,t){var n,i=t?t.length:0,r=e?Math.min(i,e.length):0,a=new Array(r),o=new Array(i);for(n=0;n<r;++n)a[n]=yA(e[n],t[n]);for(;n<i;++n)o[n]=t[n];return function(e){for(n=0;n<r;++n)o[n]=a[n](e);return o}}var fA=function(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}},pA=function(e,t){var n,i={},r={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?i[n]=yA(e[n],t[n]):r[n]=t[n];return function(e){for(n in i)r[n]=i[n](e);return r}},mA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gA=new RegExp(mA.source,"g"),vA=function(e,t){var n,i,r,a=mA.lastIndex=gA.lastIndex=0,o=-1,s=[],l=[];for(e+="",t+="";(n=mA.exec(e))&&(i=gA.exec(t));)(r=i.index)>a&&(r=t.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:rA(n,i)})),a=gA.lastIndex;return a<t.length&&(r=t.slice(a),s[o]?s[o]+=r:s[++o]=r),s.length<2?l[0]?function(e){return function(t){return e(t)+""}}(l[0].x):function(e){return function(){return e}}(t):(t=l.length,function(e){for(var n,i=0;i<t;++i)s[(n=l[i]).i]=n.x(e);return s.join("")})},yA=function(e,t){var n,i,r=typeof t;return null==t||"boolean"===r?oA(t):("number"===r?rA:"string"===r?(n=CE(t))?(t=n,cA):vA:t instanceof CE?cA:t instanceof Date?fA:(i=t,!ArrayBuffer.isView(i)||i instanceof DataView?Array.isArray(t)?hA:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?pA:rA:dA))(e,t)},bA=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},_A=function(e){return+e},wA=[0,1];function kA(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:(n=t,function(){return n});var n}function CA(e,t,n,i){var r=e[0],a=e[1],o=t[0],s=t[1];return a<r?(r=n(a,r),o=i(s,o)):(r=n(r,a),o=i(o,s)),function(e){return o(r(e))}}function xA(e,t,n,i){var r=Math.min(e.length,t.length)-1,a=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)a[s]=n(e[s],e[s+1]),o[s]=i(t[s],t[s+1]);return function(t){var n=NE(e,t,1,r)-1;return o[n](a[n](t))}}var SA=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function MA(e){if(!(t=SA.exec(e)))throw new Error("invalid format: "+e);var t;return new DA({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function DA(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function TA(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}MA.prototype=DA.prototype,DA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var EA,AA,PA,LA,OA=function(e){return(e=TA(Math.abs(e)))?e[1]:NaN},IA=function(e,t){var n=TA(e,t);if(!n)return e+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")},HA={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return IA(100*e,t)},r:IA,s:function(e,t){var n=TA(e,t);if(!n)return e+"";var i=n[0],r=n[1],a=r-(EA=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+TA(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},jA=function(e){return e},FA=Array.prototype.map,RA=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function NA(){var e=function(e,t){var n,i,r,a=wA,o=wA,s=yA,l=!1;function c(){return n=Math.min(a.length,o.length)>2?xA:CA,i=r=null,u}function u(t){return(i||(i=n(a,o,l?function(e){return function(t,n){var i=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:i(e)}}}(e):e,s)))(+t)}return u.invert=function(e){return(r||(r=n(o,a,kA,l?function(e){return function(t,n){var i=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:i(e)}}}(t):t)))(+e)},u.domain=function(e){return arguments.length?(a=JE.call(e,_A),c()):a.slice()},u.range=function(e){return arguments.length?(o=eA.call(e),c()):o.slice()},u.rangeRound=function(e){return o=eA.call(e),s=bA,c()},u.clamp=function(e){return arguments.length?(l=!!e,c()):l},u.interpolate=function(e){return arguments.length?(s=e,c()):s},c()}(kA,rA);return e.copy=function(){return t=e,NA().domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp());var t},function(e){var t=e.domain;return e.ticks=function(e){var n=t();return function(e,t,n){var i,r,a,o,s=-1;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if((i=t<e)&&(r=e,e=t,t=r),0===(o=$E(e,t,n))||!isFinite(o))return[];if(o>0)for(e=Math.ceil(e/o),t=Math.floor(t/o),a=new Array(r=Math.ceil(t-e+1));++s<r;)a[s]=(e+s)*o;else for(e=Math.floor(e*o),t=Math.ceil(t*o),a=new Array(r=Math.ceil(e-t+1));++s<r;)a[s]=(e-s)/o;return i&&a.reverse(),a}(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return function(e,t,n){var i,r=e[0],a=e[e.length-1],o=function(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/r;return a>=zE?r*=10:a>=VE?r*=5:a>=UE&&(r*=2),t<e?-r:r}(r,a,null==t?10:t);switch((n=MA(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(r),Math.abs(a));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(OA(t)/3)))-OA(Math.abs(e)))}(o,s))||(n.precision=i),LA(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,OA(t)-OA(e))+1}(o,Math.max(Math.abs(r),Math.abs(a))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-OA(Math.abs(e)))}(o))||(n.precision=i-2*("%"===n.type))}return PA(n)}(t(),e,n)},e.nice=function(n){null==n&&(n=10);var i,r=t(),a=0,o=r.length-1,s=r[a],l=r[o];return l<s&&(i=s,s=l,l=i,i=a,a=o,o=i),(i=$E(s,l,n))>0?i=$E(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,n):i<0&&(i=$E(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,n)),i>0?(r[a]=Math.floor(s/i)*i,r[o]=Math.ceil(l/i)*i,t(r)):i<0&&(r[a]=Math.ceil(s*i)/i,r[o]=Math.floor(l*i)/i,t(r)),e},e}(e)}function BA(){var e=[],t=[],n=[];function i(){var i=0,a=Math.max(1,t.length);for(n=new Array(a-1);++i<a;)n[i-1]=WE(e,i/a);return r}function r(e){if(!isNaN(e=+e))return t[NE(n,e)]}return r.invertExtent=function(i){var r=t.indexOf(i);return r<0?[NaN,NaN]:[r>0?n[r-1]:e[0],r<n.length?n[r]:e[e.length-1]]},r.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,r=0,a=t.length;r<a;++r)null==(n=t[r])||isNaN(n=+n)||e.push(n);return e.sort(RE),i()},r.range=function(e){return arguments.length?(t=eA.call(e),i()):t.slice()},r.quantiles=function(){return n.slice()},r.copy=function(){return BA().domain(e).range(t)},r}AA=function(e){var t,n,i=void 0===e.grouping||void 0===e.thousands?jA:(t=FA.call(e.grouping,Number),n=e.thousands+"",function(e,i){for(var r=e.length,a=[],o=0,s=t[0],l=0;r>0&&s>0&&(l+s+1>i&&(s=Math.max(1,i-l)),a.push(e.substring(r-=s,r+s)),!((l+=s+1)>i));)s=t[o=(o+1)%t.length];return a.reverse().join(n)}),r=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?jA:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(FA.call(e.numerals,String)),l=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"-":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function d(e){var t=(e=MA(e)).fill,n=e.align,d=e.sign,h=e.symbol,f=e.zero,p=e.width,m=e.comma,g=e.precision,v=e.trim,y=e.type;"n"===y?(m=!0,y="g"):HA[y]||(void 0===g&&(g=12),v=!0,y="g"),(f||"0"===t&&"="===n)&&(f=!0,t="0",n="=");var b="$"===h?r:"#"===h&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",_="$"===h?a:/[%p]/.test(y)?l:"",w=HA[y],k=/[defgprs%]/.test(y);function C(e){var r,a,l,h=b,C=_;if("c"===y)C=w(e)+C,e="";else{var x=(e=+e)<0||1/e<0;
1if(e=isNaN(e)?u:w(Math.abs(e),g),v&&(e=function(e){e:for(var t,n=e.length,i=1,r=-1;i<n;++i)switch(e[i]){case".":r=t=i;break;case"0":0===r&&(r=i),t=i;break;default:if(!+e[i])break e;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(t+1):e}(e)),x&&0==+e&&"+"!==d&&(x=!1),h=(x?"("===d?d:c:"-"===d||"("===d?"":d)+h,C=("s"===y?RA[8+EA/3]:"")+C+(x&&"("===d?")":""),k)for(r=-1,a=e.length;++r<a;)if(48>(l=e.charCodeAt(r))||l>57){C=(46===l?o+e.slice(r+1):e.slice(r))+C,e=e.slice(0,r);break}}m&&!f&&(e=i(e,1/0));var S=h.length+e.length+C.length,M=S<p?new Array(p-S+1).join(t):"";switch(m&&f&&(e=i(M+e,M.length?p-C.length:1/0),M=""),n){case"<":e=h+e+C+M;break;case"=":e=h+M+e+C;break;case"^":e=M.slice(0,S=M.length>>1)+h+e+C+M.slice(S);break;default:e=M+h+e+C}return s(e)}return g=void 0===g?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),C.toString=function(){return e+""},C}return{format:d,formatPrefix:function(e,t){var n=d(((e=MA(e)).type="f",e)),i=3*Math.max(-8,Math.min(8,Math.floor(OA(t)/3))),r=Math.pow(10,-i),a=RA[8+i/3];return function(e){return n(r*e)+a}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"}),PA=AA.format,LA=AA.formatPrefix;var YA=new Date,zA=new Date;function VA(e,t,n,i){function r(t){return e(t=new Date(+t)),t}return r.floor=r,r.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},r.round=function(e){var t=r(e),n=r.ceil(e);return e-t<n-e?t:n},r.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},r.range=function(n,i,a){var o,s=[];if(n=r.ceil(n),a=null==a?1:Math.floor(a),!(n<i&&a>0))return s;do{s.push(o=new Date(+n)),t(n,a),e(n)}while(o<n&&n<i);return s},r.filter=function(n){return VA(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,i){if(e>=e)if(i<0)for(;++i<=0;)for(;t(e,-1),!n(e););else for(;--i>=0;)for(;t(e,1),!n(e););})},n&&(r.count=function(t,i){return YA.setTime(+t),zA.setTime(+i),e(YA),e(zA),Math.floor(n(YA,zA))},r.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?r.filter(i?function(t){return i(t)%e==0}:function(t){return r.count(0,t)%e==0}):r:null}),r}var UA=VA(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});UA.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?VA(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):UA:null},VA(function(e){e.setTime(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),VA(function(e){e.setTime(6e4*Math.floor(e/6e4))},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()}),VA(function(e){var t=6e4*e.getTimezoneOffset()%36e5;t<0&&(t+=36e5),e.setTime(36e5*Math.floor((+e-t)/36e5)+t)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()});var $A=VA(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5},function(e){return e.getDate()-1});function WA(e){return VA(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5})}var qA=WA(0),GA=WA(1),XA=(WA(2),WA(3),WA(4)),QA=(WA(5),WA(6),VA(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),VA(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()}));QA.every=function(e){return isFinite(e=Math.floor(e))&&e>0?VA(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var KA=QA,ZA=(VA(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()}),VA(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),VA(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}
1));function JA(e){return VA(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/6048e5})}var eP=JA(0),tP=JA(1),nP=(JA(2),JA(3),JA(4)),iP=(JA(5),JA(6),VA(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),VA(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()}));iP.every=function(e){return isFinite(e=Math.floor(e))&&e>0?VA(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var rP=iP,aP={"-":"",_:" ",0:"0"},oP=/[\\^$*+?|[\]().{}]/g;function sP(e,t,n){var i=e<0?"-":"",r=(i?-e:e)+"",a=r.length;return i+(a<n?new Array(n-a+1).join(t)+r:r)}function lP(e){return e.replace(oP,"\\$&")}function cP(e){return new RegExp("^(?:"+e.map(lP).join("|")+")","i")}function uP(e){for(var t={},n=-1,i=e.length;++n<i;)t[e[n].toLowerCase()]=n;return t}function dP(e,t){return sP(e.getDate(),t,2)}function hP(e,t){return sP(e.getHours(),t,2)}function fP(e,t){return sP(e.getHours()%12||12,t,2)}function pP(e,t){return sP(1+$A.count(KA(e),e),t,3)}function mP(e,t){return sP(e.getMilliseconds(),t,3)}function gP(e,t){return mP(e,t)+"000"}function vP(e,t){return sP(e.getMonth()+1,t,2)}function yP(e,t){return sP(e.getMinutes(),t,2)}function bP(e,t){return sP(e.getSeconds(),t,2)}function _P(e){var t=e.getDay();return 0===t?7:t}function wP(e,t){return sP(qA.count(KA(e)-1,e),t,2)}function kP(e){var t=e.getDay();return t>=4||0===t?XA(e):XA.ceil(e)}function CP(e,t){return e=kP(e),sP(XA.count(KA(e),e)+(4===KA(e).getDay()),t,2)}function xP(e){return e.getDay()}function SP(e,t){return sP(GA.count(KA(e)-1,e),t,2)}function MP(e,t){return sP(e.getFullYear()%100,t,2)}function DP(e,t){return sP((e=kP(e)).getFullYear()%100,t,2)}function TP(e,t){return sP(e.getFullYear()%1e4,t,4)}function EP(e,t){var n=e.getDay();return sP((e=n>=4||0===n?XA(e):XA.ceil(e)).getFullYear()%1e4,t,4)}function AP(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+sP(t/60|0,"0",2)+sP(t%60,"0",2)}function PP(e,t){return sP(e.getUTCDate(),t,2)}function LP(e,t){return sP(e.getUTCHours(),t,2)}function OP(e,t){return sP(e.getUTCHours()%12||12,t,2)}function IP(e,t){return sP(1+ZA.count(rP(e),e),t,3)}function HP(e,t){return sP(e.getUTCMilliseconds(),t,3)}function jP(e,t){return HP(e,t)+"000"}function FP(e,t){return sP(e.getUTCMonth()+1,t,2)}function RP(e,t){return sP(e.getUTCMinutes(),t,2)}function NP(e,t){return sP(e.getUTCSeconds(),t,2)}function BP(e){var t=e.getUTCDay();return 0===t?7:t}function YP(e,t){return sP(eP.count(rP(e)-1,e),t,2)}function zP(e){var t=e.getUTCDay();return t>=4||0===t?nP(e):nP.ceil(e)}function VP(e,t){return e=zP(e),sP(nP.count(rP(e),e)+(4===rP(e).getUTCDay()),t,2)}function UP(e){return e.getUTCDay()}function $P(e,t){return sP(tP.count(rP(e)-1,e),t,2)}function WP(e,t){return sP(e.getUTCFullYear()%100,t,2)}function qP(e,t){return sP((e=zP(e)).getUTCFullYear()%100,t,2)}function GP(e,t){return sP(e.getUTCFullYear()%1e4,t,4)}function XP(e,t){var n=e.getUTCDay();return sP((e=n>=4||0===n?nP(e):nP.ceil(e)).getUTCFullYear()%1e4,t,4)}function QP(){return"+0000"}function KP(){return"%"}function ZP(e){return+e}function JP(e){return Math.floor(+e/1e3)}!function(e){var t=e.dateTime,n=e.date,i=e.time,r=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,c=(cP(r),uP(r),cP(a),uP(a),cP(o),uP(o),cP(s),uP(s),cP(l),uP(l),{a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return l[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:dP,e:dP,f:gP,g:DP,G:EP,H:hP,I:fP,j:pP,L:mP,m:vP,M:yP,p:function(e){return r[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ZP,s:JP,S:bP,u:_P,U:wP,V:CP,w:xP,W:SP,x:null,X:null,y:MP,Y:TP,Z:AP,"%":KP}),u={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return l[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:PP,e:PP,f:jP,g:qP,G:XP,H:LP,I:OP,j:IP,L:HP,m:FP,M:RP,p:function(e){return r[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ZP,s:JP,S:NP,u:BP,U:YP,V:VP,w:UP,W:$P,x:null,X:null,y:WP,Y:GP,Z:QP,"%":KP};function d(e,t){return function(n){var i,r,a,o=[],s=-1,l=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(o.push(e.slice(l,s)),null!=(r=aP[i=e.charAt(++s)])?i=e.charAt(++s):r="e"===i?" ":"0",(a=t[i])&&(i=a(n,r)),o.push(i),l=s+1);return o.push(e.slice(l,s)),o.join("")}}c.x=d(n,c),c.X=d(i,c),c.c=d(t,c),u.x=d(n,u),u.X=d(i,u),u.c=d(t,u)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var eL=function(e){return e.match(/.{6}/g).map(function(e){return"#"+e})},tL=(eL("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),eL("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"),eL("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"),eL("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"),Math.PI/180),nL=180/Math.PI,iL=-1.7884503806,rL=3.5172982438,aL=-.6557636667999999;function oL(e,t,n,i){return 1===arguments.length?function(e){if(e instanceof sL)return new sL(e.h,e.s,e.l,e.opacity);e instanceof TE||(e=ME(e));var t=e.g/255,n=e.b/255,i=(aL*n+iL*(e.r/255)-rL*t)/(aL+iL-rL),r=n-i,a=(1.97294*(t-i)- -.29227*r)/-.90649,o=Math.sqrt(a*a+r*r)/(1.97294*i*(1-i)),s=o?Math.atan2(a,r)*nL-120:NaN;
1return new sL(s<0?s+360:s,o,i,e.opacity)}(e):new sL(e,t,n,null==i?1:i)}function sL(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function lL(e){return function t(n){function i(t,i){var r=e((t=oL(t)).h,(i=oL(i)).h),a=lA(t.s,i.s),o=lA(t.l,i.l),s=lA(t.opacity,i.opacity);return function(e){return t.h=r(e),t.s=a(e),t.l=o(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,i.gamma=t,i}(1)}oE(sL,oL,sE(lE,{brighter:function(e){return e=null==e?cE:Math.pow(cE,e),new sL(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new sL(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*tL,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),r=Math.sin(e);return new TE(255*(t+n*(-.14861*i+1.78277*r)),255*(t+n*(-.29227*i+-.90649*r)),255*(t+n*(1.97294*i)),this.opacity)}})),lL(function(e,t){var n=t-e;return n?sA(e,n>180||n<-180?n-360*Math.round(n/360):n):oA(isNaN(e)?t:e)});var cL=lL(lA);function uL(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}cL(oL(300,.5,0),oL(-240,.5,1)),cL(oL(-100,.75,.35),oL(80,1.5,.8)),cL(oL(260,.75,.35),oL(80,1.5,.8)),oL(),uL(eL("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),uL(eL("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),uL(eL("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f36096138
109623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),uL(eL("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var dL={value:function(){}};function hL(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i)throw new Error("illegal type: "+e);i[e]=[]}return new fL(i)}function fL(e){this._=e}function pL(e,t){for(var n,i=0,r=e.length;i<r;++i)if((n=e[i]).name===t)return n.value}function mL(e,t,n){for(var i=0,r=e.length;i<r;++i)if(e[i].name===t){e[i]=dL,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}fL.prototype=hL.prototype={constructor:fL,on:function(e,t){var n,i,r=this._,a=(i=r,(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),o=-1,s=a.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<s;)if(n=(e=a[o]).type)r[n]=mL(r[n],e.name,t);else if(null==t)for(n in r)r[n]=mL(r[n],e.name,null);return this}for(;++o<s;)if((n=(e=a[o]).type)&&(n=pL(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new fL(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),a=0;a<n;++a)r[a]=arguments[a+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=0,n=(i=this._[e]).length;a<n;++a)i[a].value.apply(t,r)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],r=0,a=i.length;r<a;++r)i[r].value.apply(t,n)}};var gL=hL,vL={},yL=null;function bL(e,t,n){return e=_L(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}
vendor: 19,428 bytes, line 1
1function _L(e,t,n){return function(i){var r=yL;yL=i;try{e.call(this,this.__data__,t,n)}finally{yL=r}}}function wL(e){return function(){var t=this.__on;if(t){for(var n,i=0,r=-1,a=t.length;i<a;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++r]=n:this.removeEventListener(n.type,n.listener,n.capture);++r?t.length=r:delete this.__on}}}function kL(e,t,n){var i=vL.hasOwnProperty(e.type)?bL:_L;return function(r,a,o){var s,l=this.__on,c=i(t,a,o);if(l)for(var u=0,d=l.length;u<d;++u)if((s=l[u]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},l?l.push(s):this.__on=[s]}}function CL(){}"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(vL={mouseenter:"mouseover",mouseleave:"mouseout"}));var xL=function(e){return null==e?CL:function(){return this.querySelector(e)}};function SL(){return[]}var ML=function(e){return null==e?SL:function(){return this.querySelectorAll(e)}},DL=function(e){return function(){return this.matches(e)}},TL=function(e){return new Array(e.length)};function EL(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function AL(e,t,n,i,r,a){for(var o,s=0,l=t.length,c=a.length;s<c;++s)(o=t[s])?(o.__data__=a[s],i[s]=o):n[s]=new EL(e,a[s]);for(;s<l;++s)(o=t[s])&&(r[s]=o)}function PL(e,t,n,i,r,a,o){var s,l,c,u={},d=t.length,h=a.length,f=new Array(d);for(s=0;s<d;++s)(l=t[s])&&(f[s]=c="$"+o.call(l,l.__data__,s,t),c in u?r[s]=l:u[c]=l);for(s=0;s<h;++s)(l=u[c="$"+o.call(e,a[s],s,a)])?(i[s]=l,l.__data__=a[s],u[c]=null):n[s]=new EL(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&u[f[s]]===l&&(r[s]=l)}function LL(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}EL.prototype={constructor:EL,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var OL="http://www.w3.org/1999/xhtml",IL={svg:"http://www.w3.org/2000/svg",xhtml:OL,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},HL=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),IL.hasOwnProperty(t)?{space:IL[t],local:e}:e};function jL(e){return function(){this.removeAttribute(e)}}function FL(e){return function(){this.removeAttributeNS(e.space,e.local)}}function RL(e,t){return function(){this.setAttribute(e,t)}}function NL(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function BL(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function YL(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var zL=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function VL(e){return function(){this.style.removeProperty(e)}}function UL(e,t,n){return function(){this.style.setProperty(e,t,n)}}function $L(e,t,n){return function(){var i=t.apply(this,arguments);null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function WL(e,t){return e.style.getPropertyValue(t)||zL(e).getComputedStyle(e,null).getPropertyValue(t)}function qL(e){return function(){delete this[e]}}function GL(e,t){return function(){this[e]=t}}function XL(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function QL(e){return e.trim().split(/^|\s+/)}function KL(e){return e.classList||new ZL(e)}function ZL(e){this._node=e,this._names=QL(e.getAttribute("class")||"")}function JL(e,t){for(var n=KL(e),i=-1,r=t.length;++i<r;)n.add(t[i])}function eO(e,t){for(var n=KL(e),i=-1,r=t.length;++i<r;)n.remove(t[i])}function tO(e){return function(){JL(this,e)}}function nO(e){return function(){eO(this,e)}}function iO(e,t){return function(){(t.apply(this,arguments)?JL:eO)(this,e)}}function rO(){this.textContent=""}function aO(e){return function(){this.textContent=e}}function oO(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function sO(){this.innerHTML=""}function lO(e){return function(){this.innerHTML=e}}function cO(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function uO(){this.nextSibling&&this.parentNode.appendChild(this)}function dO(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hO(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===OL&&t.documentElement.namespaceURI===OL?t.createElement(e):t.createElementNS(n,e)}}function fO(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}ZL.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var pO=function(e){var t=HL(e);return(t.local?fO:hO)(t)};function mO(){return null}function gO(){var e=this.parentNode;e&&e.removeChild(this)}function vO(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function yO(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function bO(e,t,n){var i=zL(e),r=i.CustomEvent;"function"==typeof r?r=new r(t,n):(r=i.document.createEvent("Event"),n?(r.initEvent(t,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(t,!1,!1)),e.dispatchEvent(r)}function _O(e,t){return function(){return bO(this,e,t)}}function wO(e,t){return function(){return bO(this,e,t.apply(this,arguments))}}var kO=[null];function CO(e,t){this._groups=e,this._parents=t}function xO(){return new CO([[document.documentElement]],kO)}CO.prototype=xO.prototype={constructor:CO,select:function(e){"function"!=typeof e&&(e=xL(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var a,o,s=t[r],l=s.length,c=i[r]=new Array(l),u=0;u<l;++u)(a=s[u])&&(o=e.call(a,a.__data__,u,s))&&("__data__"in a&&(o.__data__=a.__data__),c[u]=o);return new CO(i,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=ML(e));for(var t=this._groups,n=t.length,i=[],r=[],a=0;a<n;++a)for(var o,s=t[a],l=s.length,c=0;c<l;++c)(o=s[c])&&(i.push(e.call(o,o.__data__,c,s)),r.push(o));return new CO(i,r)},filter:function(e){"function"!=typeof e&&(e=DL(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var a,o=t[r],s=o.length,l=i[r]=[],c=0;c<s;++c)(a=o[c])&&e.call(a,a.__data__,c,o)&&l.push(a);return new CO(i,this._parents)},data:function(e,t){if(!e)return p=new Array(this.size()),u=-1,this.each(function(e){p[++u]=e}),p;var n,i=t?PL:AL,r=this._parents,a=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var o=a.length,s=new Array(o),l=new Array(o),c=new Array(o),u=0;u<o;++u){var d=r[u],h=a[u],f=h.length,p=e.call(d,d&&d.__data__,u,r),m=p.length,g=l[u]=new Array(m),v=s[u]=new Array(m);i(d,h,g,v,c[u]=new Array(f),p,t);for(var y,b,_=0,w=0;_<m;++_)if(y=g[_]){for(_>=w&&(w=_+1);!(b=v[w])&&++w<m;);y._next=b||null}}return(s=new CO(s,r))._enter=l,s._exit=c,s},enter:function(){return new CO(this._enter||this._groups.map(TL),this._parents)},exit:function(){return new CO(this._exit||this._groups.map(TL),this._parents)},join:function(e,t,n){var i=this.enter(),r=this,a=this.exit();return i="function"==typeof e?e(i):i.append(e+""),null!=t&&(r=t(r)),null==n?a.remove():n(a),i&&r?i.merge(r).order():r},merge:function(e){for(var t=this._groups,n=e._groups,i=t.length,r=Math.min(i,n.length),a=new Array(i),o=0;o<r;++o)for(var s,l=t[o],c=n[o],u=l.length,d=a[o]=new Array(u),h=0;h<u;++h)(s=l[h]||c[h])&&(d[h]=s);for(;o<i;++o)a[o]=t[o];return new CO(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,r=e[t],a=r.length-1,o=r[a];--a>=0;)(i=r[a])&&(o&&4^i.compareDocumentPosition(o)&&o.parentNode.insertBefore(i,o),o=i);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=LL);for(var n=this._groups,i=n.length,r=new Array(i),a=0;a<i;++a){for(var o,s=n[a],l=s.length,c=r[a]=new Array(l),u=0;u<l;++u)(o=s[u])&&(c[u]=o);c.sort(t)}return new CO(r,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],r=0,a=i.length;r<a;++r){var o=i[r];if(o)return o}return null},size:function(){var e=0;return this.each(function(){++e}),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var r,a=t[n],o=0,s=a.length;o<s;++o)(r=a[o])&&e.call(r,r.__data__,o,a);return this},attr:function(e,t){var n=HL(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?FL:jL:"function"==typeof t?n.local?YL:BL:n.local?NL:RL)(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?VL:"function"==typeof t?$L:UL)(e,t,null==n?"":n)):WL(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?qL:"function"==typeof t?XL:GL)(e,t)):this.node()[e]},classed:function(e,t){var n=QL(e+"");if(arguments.length<2){for(var i=KL(this.node()),r=-1,a=n.length;++r<a;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof t?iO:t?tO:nO)(n,t))},text:function(e){return arguments.length?this.each(null==e?rO:("function"==typeof e?oO:aO)(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?sO:("function"==typeof e?cO:lO)(e)):this.node().innerHTML},raise:function(){return this.each(uO)},lower:function(){return this.each(dO)},append:function(e){var t="function"==typeof e?e:pO(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:pO(e),i=null==t?mO:"function"==typeof t?t:xL(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(gO)},clone:function(e){return this.select(e?yO:vO)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,r,a=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),o=a.length;if(!(arguments.length<2)){for(s=t?kL:wL,null==n&&(n=!1),i=0;i<o;++i)this.each(s(a[i],t,n));return this}var s=this.node().__on;if(s)for(var l,c=0,u=s.length;c<u;++c)for(i=0,l=s[c];i<o;++i)if((r=a[i]).type===l.type&&r.name===l.name)return l.value},dispatch:function(e,t){return this.each(("function"==typeof t?wO:_O)(e,t))}};var SO,MO,DO=xO,TO=0,EO=0,AO=0,PO=0,LO=0,OO=0,IO="object"==typeof performance&&performance.now?performance:Date,HO="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function jO(){return LO||(HO(FO),LO=IO.now()+OO)}function FO(){LO=0}function RO(){this._call=this._time=this._next=null}function NO(e,t,n){var i=new RO;return i.restart(e,t,n),i}function BO(){LO=(PO=IO.now())+OO,TO=EO=0;try{!function(){jO(),++TO;for(var e,t=SO;t;)(e=LO-t._time)>=0&&t._call.call(null,e),t=t._next;--TO}()}finally{TO=0,function(){for(var e,t,n=SO,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:SO=t);MO=e,zO(i)}(),LO=0}}function YO(){var e=IO.now(),t=e-PO;t>1e3&&(OO-=t,PO=e)}function zO(e){TO||(EO&&(EO=clearTimeout(EO)),e-LO>24?(e<1/0&&(EO=setTimeout(BO,e-IO.now()-OO)),AO&&(AO=clearInterval(AO))):(AO||(PO=IO.now(),AO=setInterval(YO,1e3)),TO=1,HO(BO)))}RO.prototype=NO.prototype={constructor:RO,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?jO():+n)+(null==t?0:+t),this._next||MO===this||(MO?MO._next=this:SO=this,MO=this),this._call=e,this._time=n,zO()},stop:function(){this._call&&(this._call=null,this._time=1/0,zO())}};var VO=function(e,t,n){var i=new RO;return i.restart(function(n){i.stop(),e(n+t)},t=null==t?0:+t,n),i},UO=gL("start","end","interrupt"),$O=[],WO=function(e,t,n,i,r,a){var o=e.__transition;if(o){if(n in o)return}else e.__transition={};!function(e,t,n){var i,r=e.__transition;function a(l){var c,u,d,h;if(1!==n.state)return s();for(c in r)if((h=r[c]).name===n.name){if(3===h.state)return VO(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=6,h.timer.stop(),delete r[c])}if(VO(function(){3===n.state&&(n.state=4,n.timer.restart(o,n.delay,n.time),o(l))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,i=new Array(d=n.tween.length),c=0,u=-1;c<d;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=h);i.length=u+1}}function o(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(null,r);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}r[t]=n,n.timer=NO(function(e){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=e&&a(e-n.delay)},0,n.time)}(e,n,{name:t,index:i,group:r,on:UO,tween:$O,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})};function qO(e,t){var n=XO(e,t);if(n.state>0)throw new Error("too late; already scheduled");return n}function GO(e,t){var n=XO(e,t);if(n.state>2)throw new Error("too late; already started");return n}function XO(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var QO,KO,ZO,JO,eI=180/Math.PI,tI={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},nI=function(e,t,n,i,r,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*i)&&(n-=e*l,i-=t*l),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,l/=s),e*i<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:r,translateY:a,rotate:Math.atan2(t,e)*eI,skewX:Math.atan(l)*eI,scaleX:o,scaleY:s}};function iI(e,t,n,i){function r(e){return e.length?e.pop()+" ":""}return function(a,o){var s=[],l=[];return a=e(a),o=e(o),function(e,i,r,a,o,s){if(e!==r||i!==a){var l=o.push("translate(",null,t,null,n);s.push({i:l-4,x:rA(e,r)},{i:l-2,x:rA(i,a)})}else(r||a)&&o.push("translate("+r+t+a+n)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(e,t,n,a){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(r(n)+"rotate(",null,i)-2,x:rA(e,t)})):t&&n.push(r(n)+"rotate("+t+i)}(a.rotate,o.rotate,s,l),function(e,t,n,a){e!==t?a.push({i:n.push(r(n)+"skewX(",null,i)-2,x:rA(e,t)}):t&&n.push(r(n)+"skewX("+t+i)}(a.skewX,o.skewX,s,l),function(e,t,n,i,a,o){if(e!==n||t!==i){var s=a.push(r(a)+"scale(",null,",",null,")");o.push({i:s-4,x:rA(e,n)},{i:s-2,x:rA(t,i)})}else 1===n&&1===i||a.push(r(a)+"scale("+n+","+i+")")}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(e){for(var t,n=-1,i=l.length;++n<i;)s[(t=l[n]).i]=t.x(e);return s.join("")}}}var rI=iI(function(e){return"none"===e?tI:(QO||(QO=document.createElement("DIV"),KO=document.documentElement,ZO=document.defaultView),QO.style.transform=e,e=ZO.getComputedStyle(KO.appendChild(QO),null).getPropertyValue("transform"),KO.removeChild(QO),e=e.slice(7,-1).split(","),nI(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),aI=iI(function(e){return null==e?tI:(JO||(JO=document.createElementNS("http://www.w3.org/2000/svg","g")),JO.setAttribute("transform",e),(e=JO.transform.baseVal.consolidate())?nI((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):tI)},", ",")",")");function oI(e,t){var n,i;return function(){var r=GO(this,e),a=r.tween;if(a!==n)for(var o=0,s=(i=n=a).length;o<s;++o)if(i[o].name===t){(i=i.slice()).splice(o,1);break}r.tween=i}}function sI(e,t,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var a=GO(this,e),o=a.tween;if(o!==i){r=(i=o).slice();for(var s={name:t,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===t){r[l]=s;break}l===c&&r.push(s)}a.tween=r}}function lI(e,t,n){var i=e._id;return e.each(function(){var e=GO(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return XO(e,i).value[t]}}var cI=function(e,t){var n;return("number"==typeof t?rA:t instanceof CE?cA:(n=CE(t))?(t=n,cA):vA)(e,t)};function uI(e){return function(){this.removeAttribute(e)}}function dI(e){return function(){this.removeAttributeNS(e.space,e.local)}}function hI(e,t,n){var i,r;return function(){var a=this.getAttribute(e);return a===n?null:a===i?r:r=t(i=a,n)}}function fI(e,t,n){var i,r;return function(){var a=this.getAttributeNS(e.space,e.local);return a===n?null:a===i?r:r=t(i=a,n)}}function pI(e,t,n){var i,r,a;return function(){var o,s=n(this);if(null!=s)return(o=this.getAttribute(e))===s?null:o===i&&s===r?a:a=t(i=o,r=s);this.removeAttribute(e)}}function mI(e,t,n){var i,r,a;return function(){var o,s=n(this);if(null!=s)return(o=this.getAttributeNS(e.space,e.local))===s?null:o===i&&s===r?a:a=t(i=o,r=s);this.removeAttributeNS(e.space,e.local)}}function gI(e,t){function n(){var n=this,i=t.apply(n,arguments);return i&&function(t){n.setAttributeNS(e.space,e.local,i(t))}}return n._value=t,n}function vI(e,t){function n(){var n=this,i=t.apply(n,arguments);return i&&function(t){n.setAttribute(e,i(t))}}return n._value=t,n}function yI(e,t){return function(){qO(this,e).delay=+t.apply(this,arguments)}}function bI(e,t){return t=+t,function(){qO(this,e).delay=t}}function _I(e,t){return function(){GO(this,e).duration=+t.apply(this,arguments)}}function wI(e,t){return t=+t,function(){GO(this,e).duration=t}}var kI=DO.prototype.constructor,CI=0;function xI(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function SI(){return++CI}var MI=DO.prototype;xI.prototype=(function(e){return DO().transition(e)}).prototype={constructor:xI,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=xL(e));for(var i=this._groups,r=i.length,a=new Array(r),o=0;o<r;++o)for(var s,l,c=i[o],u=c.length,d=a[o]=new Array(u),h=0;h<u;++h)(s=c[h])&&(l=e.call(s,s.__data__,h,c))&&("__data__"in s&&(l.__data__=s.__data__),d[h]=l,WO(d[h],t,n,h,d,XO(s,n)));return new xI(a,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=ML(e));for(var i=this._groups,r=i.length,a=[],o=[],s=0;s<r;++s)for(var l,c=i[s],u=c.length,d=0;d<u;++d)if(l=c[d]){for(var h,f=e.call(l,l.__data__,d,c),p=XO(l,n),m=0,g=f.length;m<g;++m)(h=f[m])&&WO(h,t,n,m,f,p);a.push(f),o.push(l)}return new xI(a,o,t,n)},filter:function(e){"function"!=typeof e&&(e=DL(e));for(var t=this._groups,n=t.length,i=new Array(n),r=0;r<n;++r)for(var a,o=t[r],s=o.length,l=i[r]=[],c=0;c<s;++c)(a=o[c])&&e.call(a,a.__data__,c,o)&&l.push(a);return new xI(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,r=Math.min(i,n.length),a=new Array(i),o=0;o<r;++o)for(var s,l=t[o],c=n[o],u=l.length,d=a[o]=new Array(u),h=0;h<u;
1++h)(s=l[h]||c[h])&&(d[h]=s);for(;o<i;++o)a[o]=t[o];return new xI(a,this._parents,this._name,this._id)},selection:function(){return new kI(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=SI(),i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],l=s.length,c=0;c<l;++c)if(o=s[c]){var u=XO(o,t);WO(o,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new xI(i,this._parents,e,n)},call:MI.call,nodes:MI.nodes,node:MI.node,size:MI.size,empty:MI.empty,each:MI.each,on:function(e,t){var n=this._id;return arguments.length<2?XO(this.node(),n).on.on(e):this.each(function(e,t,n){var i,r,a=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?qO:GO;return function(){var o=a(this,e),s=o.on;s!==i&&(r=(i=s).copy()).on(t,n),o.on=r}}(n,e,t))},attr:function(e,t){var n=HL(e),i="transform"===n?aI:cI;return this.attrTween(e,"function"==typeof t?(n.local?mI:pI)(n,i,lI(this,"attr."+e,t)):null==t?(n.local?dI:uI)(n):(n.local?fI:hI)(n,i,t+""))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var i=HL(e);return this.tween(n,(i.local?gI:vI)(i,t))},style:function(e,t,n){var i="transform"==(e+="")?rI:cI;return null==t?this.styleTween(e,function(e,t){var n,i,r;return function(){var a=WL(this,e),o=(this.style.removeProperty(e),WL(this,e));return a===o?null:a===n&&o===i?r:r=t(n=a,i=o)}}(e,i)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var i,r,a;return function(){var o=WL(this,e),s=n(this);return null==s&&(this.style.removeProperty(e),s=WL(this,e)),o===s?null:o===i&&s===r?a:a=t(i=o,r=s)}}(e,i,lI(this,"style."+e,t)):function(e,t,n){var i,r;return function(){var a=WL(this,e);return a===n?null:a===i?r:r=t(i=a,n)}}(e,i,t+""),n)},styleTween:function(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;return this.tween(i,function(e,t,n){function i(){var i=this,r=t.apply(i,arguments);return r&&function(t){i.style.setProperty(e,r(t),n)}}return i._value=t,i}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(lI(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i,r=XO(this.node(),n).tween,a=0,o=r.length;a<o;++a)if((i=r[a]).name===e)return i.value;return null}return this.each((null==t?oI:sI)(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?yI:bI)(t,e)):XO(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?_I:wI)(t,e)):XO(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){GO(this,e).ease=t}}(t,e)):XO(this.node(),t).ease}},function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),Math,function e(t){function n(e){return e*e*((t+1)*e-t)}return t=+t,n.overshoot=e,n}(1.70158),function e(t){function n(e){return--e*e*((t+1)*e+t)+1}return t=+t,n.overshoot=e,n}(1.70158),function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(1.70158);var DI=2*Math.PI,TI=(function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=DI);function r(e){return t*Math.pow(2,10*--e)*Math.sin((i-e)/n)}return r.amplitude=function(t){return e(t,n*DI)},r.period=function(n){return e(t,n)},r}(1,.3),function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=DI);function r(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+i)/n)}return r.amplitude=function(t){return e(t,n*DI)},r.period=function(n){return e(t,n)},r}(1,.3),function e(t,n){var i=Math.asin(1/(t=Math.max(1,t)))*(n/=DI);function r(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((i-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((i+e)/n))/2}return r.amplitude=function(t){return e(t,n*DI)},r.period=function(n){return e(t,n)},r}(1,.3),{time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}});function EI(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return TI.time=jO(),TI;return n}function AI(e){return{type:e}}DO.prototype.interrupt=function(e){return this.each(function(){!function(e,t){var n,i,r,a=e.__transition,o=!0;if(a){for(r in t=null==t?null:t+"",a)(n=a[r]).name===t?(i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),i&&n.on.call("interrupt",e,e.__data__,n.index,n.group),delete a[r]):o=!1;o&&delete e.__transition}}(this,e)})},DO.prototype.transition=function(e){var t,n;e instanceof xI?(t=e._id,e=e._name):(t=SI(),(n=TI).time=jO(),e=null==e?null:e+"");for(var i=this._groups,r=i.length,a=0;a<r;++a)for(var o,s=i[a],l=s.length,c=0;c<l;++c)(o=s[c])&&WO(o,e,t,c,s,n||EI(o,t));return new xI(i,this._parents,e,t)},["w","e"].map(AI),["n","s"].map(AI),["n","w","e","s","nw","ne","sw","se"].map(AI);var PI=Math.PI,LI=2*PI,OI=LI-1e-6;function II(){this._x0=this._y0=this._x1=this._y1=null,this._=""}II.prototype=(function(){return new II}).prototype={constructor:II,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,i){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(e,t,n,i,r,a){this._+="C"+ +e+","+ +t+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+a)},arcTo:function(e,t,n,i,r){var a=this._x1,o=this._y1,s=(n=+n)-(e=+e),l=(i=+i)-(t=+t),c=a-e,u=o-t,d=c*c+u*u;if((r=+r)<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>1e-6)if(Math.abs(u*s-l*c)>1e-6&&r){var h=n-a,f=i-o,p=s*s+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=r*Math.tan((PI-Math.acos((p+d-m)/(2*g*v)))/2),b=y/v,_=y/g;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*u)),this._+="A"+r+","+r+",0,0,"+ +(u*h>c*f)+","+(this._x1=e+_*s)+","+(this._y1=t+_*l)}else this._+="L"+(this._x1=e)+","+(this._y1=t)},arc:function(e,t,n,i,r,a){e=+e,t=+t;var o=(n=+n)*Math.cos(i),s=n*Math.sin(i),l=e+o,c=t+s,u=1^a,d=a?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+c:(Math.abs(this._x1-l)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%LI+LI),d>OI?this._+="A"+n+","+n+",0,1,"+u+","+(e-o)+","+(t-s)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>1e-6&&(this._+="A"+n+","+n+",0,"+ +(d>=PI)+","+u+","+(this._x1=e+n*Math.cos(r))+","+(this._y1=t+n*Math.sin(r))))},rect:function(e,t,n,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var HI=function(){};function jI(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function FI(e,t){this._context=e,this._k=(1-t)/6}function RI(e,t){this._context=e,this._k=(1-t)/6}function NI(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var r,a,o,s,l,c,u,d,h,f=e._root,p={data:i},m=e._x0,g=e._y0,v=e._x1,y=e._y1;if(!f)return e._root=p,e;for(;f.length;)if((c=t>=(a=(m+v)/2))?m=a:v=a,(u=n>=(o=(g+y)/2))?g=o:y=o,r=f,!(f=f[d=u<<1|c]))return r[d]=p,e;if(s=+e._x.call(null,f.data),l=+e._y.call(null,f.data),t===s&&n===l)return p.next=f,r?r[d]=p:e._root=p,e;do{r=r?r[d]=new Array(4):e._root=new Array(4),(c=t>=(a=(m+v)/2))?m=a:v=a,(u=n>=(o=(g+y)/2))?g=o:y=o}while((d=u<<1|c)==(h=(l>=o)<<1|s>=a));return r[h]=f,r[d]=p,e}FI.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:jI(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:jI(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function n(e){return new FI(e,t)}return n.tension=function(t){return e(+t)},n}(0),RI.prototype={areaStart:HI,areaEnd:HI,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:jI(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},function e(t){function n(e){return new RI(e,t)}return n.tension=function(t){return e(+t)},n}(0),Math,Math,Math,Math,Math,Math,Math,Math;var BI=function(e,t,n,i,r){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=r};function YI(e){return e[0]}function zI(e){return e[1]}function VI(e,t,n,i,r,a){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=r,this._y1=a,this._root=void 0}function UI(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var $I=(function(e,t,n){var i=new VI(null==t?YI:t,null==n?zI:n,NaN,NaN,NaN,NaN);return null==e?i:i.addAll(e)}).prototype=VI.prototype;$I.copy=function(){var e,t,n=new VI(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=UI(i),n;for(e=[{source:i,target:n._root=new Array(4)}];i=e.pop();)for(var r=0;r<4;++r)(t=i.source[r])&&(t.length?e.push({source:t,target:i.target[r]=new Array(4)}):i.target[r]=UI(t));return n},$I.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return NI(this.cover(t,n),t,n,e)},$I.addAll=function(e){var t,n,i,r,a=e.length,o=new Array(a),s=new Array(a),l=1/0,c=1/0,u=-1/0,d=-1/0;for(n=0;n<a;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(r=+this._y.call(null,t))||(o[n]=i,s[n]=r,i<l&&(l=i),i>u&&(u=i),r<c&&(c=r),r>d&&(d=r));for(u<l&&(l=this._x0,u=this._x1),d<c&&(c=this._y0,d=this._y1),this.cover(l,c).cover(u,d),n=0;n<a;++n)NI(this,o[n],s[n],e[n]);return this},$I.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,r=this._x1,a=this._y1;if(isNaN(n))r=(n=Math.floor(e))+1,a=(i=Math.floor(t))+1;else{if(!(n>e||e>r||i>t||t>a))return this;var o,s,l=r-n,c=this._root;switch(s=(t<(i+a)/2)<<1|e<(n+r)/2){case 0:do{(o=new Array(4))[s]=c,c=o}while(a=i+(l*=2),e>(r=n+l)||t>a);break;case 1:do{(o=new Array(4))[s]=c,c=o}while(a=i+(l*=2),(n=r-l)>e||t>a);break;case 2:do{(o=new Array(4))[s]=c,c=o}while(i=a-(l*=2),e>(r=n+l)||i>t);break;case 3:do{(o=new Array(4))[s]=c,c=o}while(i=a-(l*=2),(n=r-l)>e||i>t)}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=i,this._x1=r,this._y1=a,this},$I.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},$I.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},$I.find=function(e,t,n){var i,r,a,o,s,l,c,u=this._x0,d=this._y0,h=this._x1,f=this._y1,p=[],m=this._root;for(m&&p.push(new BI(m,u,d,h,f)),null==n?n=1/0:(u=e-n,d=t-n,h=e+n,f=t+n,n
1*=n);l=p.pop();)if(!(!(m=l.node)||(r=l.x0)>h||(a=l.y0)>f||(o=l.x1)<u||(s=l.y1)<d))if(m.length){var g=(r+o)/2,v=(a+s)/2;p.push(new BI(m[3],g,v,o,s),new BI(m[2],r,v,g,s),new BI(m[1],g,a,o,v),new BI(m[0],r,a,g,v)),(c=(t>=v)<<1|e>=g)&&(l=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=l)}else{var y=e-+this._x.call(null,m.data),b=t-+this._y.call(null,m.data),_=y*y+b*b;if(_<n){var w=Math.sqrt(n=_);u=e-w,d=t-w,h=e+w,f=t+w,i=m.data}}return i},$I.remove=function(e){if(isNaN(a=+this._x.call(null,e))||isNaN(o=+this._y.call(null,e)))return this;var t,n,i,r,a,o,s,l,c,u,d,h,f=this._root,p=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!f)return this;if(f.length)for(;;){if((c=a>=(s=(p+g)/2))?p=s:g=s,(u=o>=(l=(m+v)/2))?m=l:v=l,t=f,!(f=f[d=u<<1|c]))return this;if(!f.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}for(;f.data!==e;)if(i=f,!(f=f.next))return this;return(r=f.next)&&delete f.next,i?(r?i.next=r:delete i.next,this):t?(r?t[d]=r:delete t[d],(f=t[0]||t[1]||t[2]||t[3])&&f===(t[3]||t[2]||t[1]||t[0])&&!f.length&&(n?n[h]=f:this._root=f),this):(this._root=r,this)},$I.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},$I.root=function(){return this._root},$I.size=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},$I.visit=function(e){var t,n,i,r,a,o,s=[],l=this._root;for(l&&s.push(new BI(l,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(l=t.node,i=t.x0,r=t.y0,a=t.x1,o=t.y1)&&l.length){var c=(i+a)/2,u=(r+o)/2;(n=l[3])&&s.push(new BI(n,c,u,a,o)),(n=l[2])&&s.push(new BI(n,i,u,c,o)),(n=l[1])&&s.push(new BI(n,c,r,a,u)),(n=l[0])&&s.push(new BI(n,i,r,c,u))}return this},$I.visitAfter=function(e){var t,n=[],i=[];for(this._root&&n.push(new BI(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var r=t.node;if(r.length){var a,o=t.x0,s=t.y0,l=t.x1,c=t.y1,u=(o+l)/2,d=(s+c)/2;(a=r[0])&&n.push(new BI(a,o,s,u,d)),(a=r[1])&&n.push(new BI(a,u,s,l,d)),(a=r[2])&&n.push(new BI(a,o,d,u,c)),(a=r[3])&&n.push(new BI(a,u,d,l,c))}i.push(t)}for(;t=i.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},$I.x=function(e){return arguments.length?(this._x=e,this):this._x},$I.y=function(e){return arguments.length?(this._y=e,this):this._y},Math,Math.sqrt(5);var WI=function(e,t,n,i,r){for(var a,o=e.children,s=-1,l=o.length,c=e.value&&(i-t)/e.value;++s<l;)(a=o[s]).y0=n,a.y1=r,a.x0=t,a.x1=t+=a.value*c},qI=function(e,t,n,i,r){for(var a,o=e.children,s=-1,l=o.length,c=e.value&&(r-n)/e.value;++s<l;)(a=o[s]).x0=t,a.x1=i,a.y0=n,a.y1=n+=a.value*c};function GI(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function XI(e,t){var n,i,r,a,o,s=new JI(e),l=+e.value&&(s.value=e.value),c=[s];for(null==t&&(t=QI);n=c.pop();)if(l&&(n.value=+n.data.value),(r=t(n.data))&&(o=r.length))for(n.children=new Array(o),a=o-1;a>=0;--a)c.push(i=n.children[a]=new JI(r[a])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(ZI)}function QI(e){return e.children}function KI(e){e.data=e.data.data}function ZI(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function JI(e){this.data=e,this.depth=this.height=0,this.parent=null}!function e(t){function n(e,n,i,r,a){!function(e,t,n,i,r,a){for(var o,s,l,c,u,d,h,f,p,m,g,v=[],y=t.children,b=0,_=0,w=y.length,k=t.value;b<w;){l=r-n,c=a-i;do{u=y[_++].value}while(!u&&_<w);for(d=h=u,g=u*u*(m=Math.max(c/l,l/c)/(k*e)),p=Math.max(h/g,g/d);_<w;++_){if(u+=s=y[_].value,s<d&&(d=s),s>h&&(h=s),g=u*u*m,(f=Math.max(h/g,g/d))>p){u-=s;break}p=f}v.push(o={value:u,dice:l<c,children:y.slice(b,_)}),o.dice?WI(o,n,i,r,k?i+=c*u/k:a):qI(o,n,i,k?n+=l*u/k:r,a),k-=u,b=_}}(t,e,n,i,r,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}((1+Math.sqrt(5))/2),JI.prototype=XI.prototype={constructor:JI,count:function(){return this.eachAfter(GI)},each:function(e){var t,n,i,r,a=this,o=[a];do{for(t=o.reverse(),o=[];a=t.pop();)if(e(a),n=a.children)for(i=0,r=n.length;i<r;++i)o.push(n[i])}while(o.length);return this},eachAfter:function(e){for(var t,n,i,r=this,a=[r],o=[];r=a.pop();)if(o.push(r),t=r.children)for(n=0,i=t.length;n<i;++n)a.push(t[n]);for(;r=o.pop();)e(r);return this},eachBefore:function(e){for(var t,n,i=this,r=[i];i=r.pop();)if(e(i),t=i.children)for(n=t.length-1;n>=0;--n)r.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,i=t.children,r=i&&i.length;--r>=0;)n+=i[r].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),r=null;for(e=n.pop(),t=i.pop();e===t;)r=e,e=n.pop(),t=i.pop();return r}(t,e),i=[t];t!==n;)i.push(t=t.parent);for(var r=i.length;e!==n;)i.splice(r,0,e),e=e.parent;return i},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return XI(this).eachBefore(KI)}};var eH=["caretElm"];function tH(e,t){}var nH=function(e){return{model:e}};function iH(e,t){if(1&e&&(c.jc(0,"span"),c.Yc(1,tH,0,0,"ng-template",5),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngTemplateOutlet",n.template)("ngTemplateOutletContext",c.Hc(2,nH,n.context))}}function rH(e,t){if(1&e&&c.ec(0,"span",6),2&e){var n=c.xc();c.Dc("innerHTML",n.title,c.Rc)}}function aH(e,t){if(1&e&&(c.wc(),c.vc(),c.ec(0,"ngx-charts-scale-legend",4)),2&e){var n=c.xc();c.Dc("horizontal",n.legendOptions&&"below"===n.legendOptions.position)("valueRange",n.legendOptions.domain)("colors",n.legendOptions.colors)("height",n.view[1])("width",n.legendWidth)}}function oH(e,t){if(1&e){var n=c.kc();c.wc(),c.vc(),c.jc(0,"ngx-charts-legend",5),c.tc("labelClick",function(e){return c.Qc(n),c.xc().legendLabelClick.emit(e)})("labelActivate",function(e){return c.Qc(n),c.xc().legendLabelActivate.emit(e)})("labelDeactivate",function(e){return c.Qc(n),c.xc().legendLabelDeactivate.emit(e)}),c.ic()}if(2&e){var i=c.xc();c.Dc("horizontal",i.legendOptions&&"below"===i.legendOptions.position)("data",i.legendOptions.domain)("title",i.legendOptions.title)("colors",i.legendOptions.colors)("height",i.view[1])("width",i.legendWidth)("activeEntries",i.activeEntries)}}var sH=["*"];function lH(e,t){if(1&e&&(c.jc(0,"header",4),c.jc(1,"span",5),c.ad(2),c.ic(),c.ic()),2&e){var n=c.xc();c.Pb(2),c.bd(n.title)}}function cH(e,t){if(1&e){var n=c.kc();c.jc(0,"li",6),c.jc(1,"ngx-charts-legend-entry",7),c.tc("select",function(e){return c.Qc(n),c.xc().labelClick.emit(e)})("activate",function(e){return c.Qc(n),c.xc().activate(e)}
1)("deactivate",function(e){return c.Qc(n),c.xc().deactivate(e)}),c.ic(),c.ic()}if(2&e){var i=t.$implicit,r=c.xc();c.Pb(1),c.Dc("label",i.label)("formattedLabel",i.formattedLabel)("color",i.color)("isActive",r.isActive(i))}}var uH=["ngx-charts-axis-label",""],dH=["ticksel"],hH=["ngx-charts-x-axis-ticks",""];function fH(e,t){if(1&e&&(c.wc(),c.jc(0,"g",3),c.jc(1,"title"),c.ad(2),c.ic(),c.jc(3,"text",4),c.ad(4),c.ic(),c.ic()),2&e){var n=t.$implicit,i=c.xc();c.Qb("transform",i.tickTransform(n)),c.Pb(2),c.bd(i.tickFormat(n)),c.Pb(1),c.Xc("font-size","12px"),c.Qb("text-anchor",i.textAnchor)("transform",i.textTransform),c.Pb(1),c.cd(" ",i.tickTrim(i.tickFormat(n))," ")}}function pH(e,t){if(1&e&&(c.wc(),c.jc(0,"g"),c.ec(1,"line",6),c.ic()),2&e){var n=c.xc(2);c.Qb("transform",n.gridLineTransform()),c.Pb(1),c.Qb("y1",-n.gridLineHeight)}}function mH(e,t){if(1&e&&(c.wc(),c.jc(0,"g"),c.Yc(1,pH,2,2,"g",5),c.ic()),2&e){var n=t.$implicit,i=c.xc();c.Qb("transform",i.tickTransform(n)),c.Pb(1),c.Dc("ngIf",i.showGridLines)}}var gH=["ngx-charts-x-axis",""];function vH(e,t){if(1&e){var n=c.kc();c.wc(),c.jc(0,"g",2),c.tc("dimensionsChanged",function(e){return c.Qc(n),c.xc().emitTicksHeight(e)}),c.ic()}if(2&e){var i=c.xc();c.Dc("trimTicks",i.trimTicks)("rotateTicks",i.rotateTicks)("maxTickLength",i.maxTickLength)("tickFormatting",i.tickFormatting)("tickArguments",i.tickArguments)("tickStroke",i.tickStroke)("scale",i.xScale)("orient",i.xOrient)("showGridLines",i.showGridLines)("gridLineHeight",i.dims.height)("width",i.dims.width)("tickValues",i.ticks)}}function yH(e,t){if(1&e&&(c.wc(),c.ec(0,"g",3)),2&e){var n=c.xc();c.Dc("label",n.labelText)("offset",n.labelOffset)("orient","bottom")("height",n.dims.height)("width",n.dims.width)}}var bH=["ngx-charts-y-axis-ticks",""];function _H(e,t){if(1&e&&(c.wc(),c.jc(0,"g",4),c.jc(1,"title"),c.ad(2),c.ic(),c.jc(3,"text",5),c.ad(4),c.ic(),c.ic()),2&e){var n=t.$implicit,i=c.xc();c.Qb("transform",i.transform(n)),c.Pb(2),c.bd(i.tickFormat(n)),c.Pb(1),c.Xc("font-size","12px"),c.Qb("dy",i.dy)("x",i.x1)("y",i.y1)("text-anchor",i.textAnchor),c.Pb(1),c.cd(" ",i.tickTrim(i.tickFormat(n))," ")}}function wH(e,t){if(1&e&&(c.wc(),c.ec(0,"path",6)),2&e){var n=c.xc();c.Qb("d",n.referenceAreaPath)("transform",n.gridLineTransform())}}function kH(e,t){if(1&e&&(c.wc(),c.ec(0,"line",9)),2&e){var n=c.xc(3);c.Qb("x2",n.gridLineWidth)}}function CH(e,t){if(1&e&&(c.wc(),c.ec(0,"line",9)),2&e){var n=c.xc(3);c.Qb("x2",-n.gridLineWidth)}}function xH(e,t){if(1&e&&(c.wc(),c.jc(0,"g"),c.Yc(1,kH,1,1,"line",8),c.Yc(2,CH,1,1,"line",8),c.ic()),2&e){var n=c.xc(2);c.Qb("transform",n.gridLineTransform()),c.Pb(1),c.Dc("ngIf","left"===n.orient),c.Pb(1),c.Dc("ngIf","right"===n.orient)}}function SH(e,t){if(1&e&&(c.wc(),c.jc(0,"g"),c.Yc(1,xH,3,3,"g",7),c.ic()),2&e){var n=t.$implicit,i=c.xc();c.Qb("transform",i.transform(n)),c.Pb(1),c.Dc("ngIf",i.showGridLines)}}function MH(e,t){if(1&e&&(c.wc(),c.jc(0,"g"),c.jc(1,"title"),c.ad(2),c.ic(),c.jc(3,"text",11),c.ad(4),c.ic(),c.ic()),2&e){var n=c.xc(2).$implicit,i=c.xc();c.Pb(2),c.bd(i.tickTrim(i.tickFormat(n.value))),c.Pb(1),c.Qb("dy",i.dy)("y",-6)("x",i.gridLineWidth)("text-anchor",i.textAnchor),c.Pb(1),c.cd(" ",n.name," ")}}function DH(e,t){if(1&e&&(c.wc(),c.jc(0,"g"),c.ec(1,"line",10),c.Yc(2,MH,5,6,"g",7),c.ic()),2&e){var n=c.xc().$implicit,i=c.xc();c.Qb("transform",i.transform(n.value)),c.Pb(1),c.Qb("x2",i.gridLineWidth)("transform",i.gridLineTransform()),c.Pb(1),c.Dc("ngIf",i.showRefLabels)}}function TH(e,t){if(1&e&&(c.wc(),c.jc(0,"g"),c.Yc(1,DH,3,4,"g",7),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngIf",n.showRefLines)}}var EH=["ngx-charts-y-axis",""];function AH(e,t){if(1&e){var n=c.kc();c.wc(),c.jc(0,"g",2),c.tc("dimensionsChanged",function(e){return c.Qc(n),c.xc().emitTicksWidth(e)}),c.ic()}if(2&e){var i=c.xc();c.Dc("trimTicks",i.trimTicks)("maxTickLength",i.maxTickLength)("tickFormatting",i.tickFormatting)("tickArguments",i.tickArguments)("tickValues",i.ticks)("tickStroke",i.tickStroke)("scale",i.yScale)("orient",i.yOrient)("showGridLines",i.showGridLines)("gridLineWidth",i.dims.width)("referenceLines",i.referenceLines)("showRefLines",i.showRefLines)("showRefLabels",i.showRefLabels)("height",i.dims.height)}}function PH(e,t){if(1&e&&(c.wc(),c.ec(0,"g",3)),2&e){var n=c.xc();c.Dc("label",n.labelText)("offset",n.labelOffset)("orient",n.yOrient)("height",n.dims.height)("width",n.dims.width)}}var LH=["ngx-charts-svg-linear-gradient",""];function OH(e,t){if(1&e&&(c.wc(),c.ec(0,"stop")),2&e){var n=t.$implicit;c.Xc("stop-color",n.color)("stop-opacity",n.opacity),c.Qb("offset",n.offset+"%")}}var IH=["tooltipTemplate"],HH=function(e,t){return[e,t]},jH=["ngx-charts-bar",""];function FH(e,t){if(1&e&&(c.wc(),c.jc(0,"defs"),c.ec(1,"g",2),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Dc("orientation",n.orientation)("name",n.gradientId)("stops",n.gradientStops)}}function RH(e,t){if(1&e){var n=c.kc();c.wc(),c.jc(0,"g",5),c.tc("dimensionsChanged",function(e){return c.Qc(n),c.xc().updateXAxisHeight(e)}),c.ic()}if(2&e){var i=c.xc();c.Dc("xScale",i.xScale)("dims",i.dims)("showGridLines",i.showGridLines)("showLabel",i.showXAxisLabel)("labelText",i.xAxisLabel)("trimTicks",i.trimXAxisTicks)("rotateTicks",i.rotateXAxisTicks)("maxTickLength",i.maxXAxisTickLength)("tickFormatting",i.xAxisTickFormatting)("ticks",i.xAxisTicks)}}function NH(e,t){if(1&e){var n=c.kc();c.wc(),c.jc(0,"g",6),c.tc("dimensionsChanged",function(e){return c.Qc(n),c.xc().updateYAxisWidth(e)}),c.ic()}if(2&e){var i=c.xc();c.Dc("yScale",i.yScale)("dims",i.dims)("showLabel",i.showYAxisLabel)("labelText",i.yAxisLabel)("trimTicks",i.trimYAxisTicks)("maxTickLength",i.maxYAxisTickLength)("tickFormatting",i.yAxisTickFormatting)("ticks",i.yAxisTicks)("yAxisOffset",i.dataLabelMaxWidth.negative)}}var BH=["ngx-charts-series-horizontal",""];function YH(e,t){if(1&e){var n=c.kc();c.wc(),c.jc(0,"g",2),c.tc("select",function(e){return c.Qc(n),c.xc().click(e)})("activate",function(e){return c.Qc(n),c.xc().activate.emit(e)})("deactivate",function(e){return c.Qc(n),c.xc().deactivate.emit(e)}),c.ic()}
1if(2&e){var i=t.$implicit,r=c.xc();c.Dc("@animationState","active")("width",i.width)("height",i.height)("x",i.x)("y",i.y)("fill",i.color)("stops",i.gradientStops)("data",i.data)("orientation","horizontal")("roundEdges",i.roundEdges)("gradient",r.gradient)("isActive",r.isActive(i.data))("ariaLabel",i.ariaLabel)("animations",r.animations)("tooltipDisabled",r.tooltipDisabled)("tooltipPlacement",r.tooltipPlacement)("tooltipType",r.tooltipType)("tooltipTitle",r.tooltipTemplate?void 0:i.tooltipText)("tooltipTemplate",r.tooltipTemplate)("tooltipContext",i.data)("noBarWhenZero",r.noBarWhenZero)}}function zH(e,t){if(1&e){var n=c.kc();c.wc(),c.jc(0,"g",4),c.tc("dimensionsChanged",function(e){var t=c.Qc(n).index;return c.xc(2).dataLabelWidthChanged.emit({size:e,index:t})}),c.ic()}if(2&e){var i=t.$implicit,r=c.xc(2);c.Dc("barX",i.x)("barY",i.y)("barWidth",i.width)("barHeight",i.height)("value",i.total)("valueFormatting",r.dataLabelFormatting)("orientation","horizontal")}}function VH(e,t){if(1&e&&(c.wc(),c.jc(0,"g"),c.Yc(1,zH,1,7,"g",3),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngForOf",n.barsForDataLabels)("ngForTrackBy",n.trackDataLabelBy)}}var UH=["ngx-charts-bar-label",""],$H=function(e,t){return($H=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function WH(e,t){function n(){this.constructor=e}$H(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function qH(e,t,n,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(o=(a<3?r(o):a>3?r(t,n,o):r(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function GH(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains);var XH=function(e){return e[e.top="top"]="top",e[e.bottom="bottom"]="bottom",e[e.left="left"]="left",e[e.right="right"]="right",e}({});function QH(e,t,n){return"top"===n?e.top-7:"bottom"===n?e.top+e.height-t.height+7:"center"===n?e.top+e.height/2-t.height/2:void 0}function KH(e,t,n){return"left"===n?e.left-7:"right"===n?e.left+e.width-t.width+7:"center"===n?e.left+e.width/2-t.width/2:void 0}var ZH=function(){function e(){}return e.calculateVerticalAlignment=function(e,t,n){var i=QH(e,t,n);return i+t.height>window.innerHeight&&(i=window.innerHeight-t.height),i},e.calculateVerticalCaret=function(e,t,n,i){var r;"top"===i&&(r=e.height/2-n.height/2+7),"bottom"===i&&(r=t.height-e.height/2-n.height/2-7),"center"===i&&(r=t.height/2-n.height/2);var a=QH(e,t,i);return a+t.height>window.innerHeight&&(r+=a+t.height-window.innerHeight),r},e.calculateHorizontalAlignment=function(e,t,n){var i=KH(e,t,n);return i+t.width>window.innerWidth&&(i=window.innerWidth-t.width),i},e.calculateHorizontalCaret=function(e,t,n,i){var r;"left"===i&&(r=e.width/2-n.width/2+7),"right"===i&&(r=t.width-e.width/2-n.width/2-7),"center"===i&&(r=t.width/2-n.width/2);var a=KH(e,t,i);return a+t.width>window.innerWidth&&(r+=a+t.width-window.innerWidth),r},e.shouldFlip=function(e,t,n,i){var r=!1;return"right"===n&&e.left+e.width+t.width+i>window.innerWidth&&(r=!0),"left"===n&&e.left-t.width-i<0&&(r=!0),"top"===n&&e.top-t.height-i<0&&(r=!0),"bottom"===n&&e.top+e.height+t.height+i>window.innerHeight&&(r=!0),r},e.positionCaret=function(t,n,i,r,a){var o=0,s=0;return t===XH.right?(s=-7,o=e.calculateVerticalCaret(i,n,r,a)):t===XH.left?(s=n.width,o=e.calculateVerticalCaret(i,n,r,a)):t===XH.top?(o=n.height,s=e.calculateHorizontalCaret(i,n,r,a)):t===XH.bottom&&(o=-7,s=e.calculateHorizontalCaret(i,n,r,a)),{top:o,left:s}},e.positionContent=function(t,n,i,r,a){var o=0,s=0;return t===XH.right?(s=i.left+i.width+r,o=e.calculateVerticalAlignment(i,n,a)):t===XH.left?(s=i.left-n.width-r,o=e.calculateVerticalAlignment(i,n,a)):t===XH.top?(o=i.top-n.height-r,s=e.calculateHorizontalAlignment(i,n,a)):t===XH.bottom&&(o=i.top+i.height+r,s=e.calculateHorizontalAlignment(i,n,a)),{top:o,left:s}},e.determinePlacement=function(t,n,i,r){if(e.shouldFlip(i,n,t,r)){if(t===XH.right)return XH.left;if(t===XH.left)return XH.right;if(t===XH.top)return XH.bottom;if(t===XH.bottom)return XH.top}return t},e}(),JH=function(e){return e[e.popover="popover"]="popover",e[e.tooltip="tooltip"]="tooltip",e}({}),ej=function(e){return e[e.left="left"]="left",e[e.center="center"]="center",e[e.right="right"]="right",e}({}),tj=function(e){return e[e.all="all"]="all",e[e.focus="focus"]="focus",e[e.mouseover="mouseover"]="mouseover",e}({}),nj=function(){function e(e,t,n){this.applicationRef=e,this.componentFactoryResolver=t,this.injector=n}var t,n,i,r;return t=e,e.setGlobalRootViewContainer=function(e){t.globalRootViewContainer=e},e.prototype.getRootViewContainer=function(){var e=this.applicationRef.components;if(e&&e.length)return e[0];if(this._container)return this._container;if(t.globalRootViewContainer)return t.globalRootViewContainer;throw new Error("View Container not found! ngUpgrade needs to manually set this via setRootViewContainer.")},e.prototype.setRootViewContainer=function(e){this._container=e},e.prototype.getComponentRootNode=function(e){return e.hostView?e.hostView.rootNodes[0]:e.element.nativeElement},e.prototype.getRootViewContainerNode=function(){return this.getComponentRootNode(this.getRootViewContainer())},e.prototype.projectComponentBindings=function(e,t){if(t){if(void 0!==t.inputs)for(var n=0,i=Object.getOwnPropertyNames(t.inputs);n<i.length;n++){var r=i[n];e.instance[r]=t.inputs[r]}if(void 0!==t.outputs)for(var a=0,o=Object.getOwnPropertyNames(t.outputs);a<o.length;a++){var s=o[a];e.instance[s]=t.outputs[s]}}return e},e.prototype.appendComponent=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=this.getRootViewContainerNode());
1var i=this.componentFactoryResolver.resolveComponentFactory(e).create(this.injector),r=this.applicationRef,a=this.getComponentRootNode(i);return this.projectComponentBindings(i,t),r.attachView(i.hostView),i.onDestroy(function(){r.detachView(i.hostView)}),i.instance.renderer.appendChild(n,a),i},e.globalRootViewContainer=null,(e=t=qH([GH("design:paramtypes",["function"==typeof(n=void 0!==c.g&&c.g)?n:Object,"function"==typeof(i=void 0!==c.m&&c.m)?i:Object,"function"==typeof(r=void 0!==c.z&&c.z)?r:Object])],e)).\u0275fac=function(t){return new(t||e)(c.qc("function"==typeof(n=void 0!==c.g&&c.g)?n:Object),c.qc("function"==typeof(i=void 0!==c.m&&c.m)?i:Object),c.qc("function"==typeof(r=void 0!==c.z&&c.z)?r:Object))},e.\u0275prov=c.Zb({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(),ij=function(){function e(e){this.injectionService=e,this.defaults={},this.components=new Map}return e.prototype.getByType=function(e){return void 0===e&&(e=this.type),this.components.get(e)},e.prototype.create=function(e){return this.createByType(this.type,e)},e.prototype.createByType=function(e,t){t=this.assignDefaults(t);var n=this.injectComponent(e,t);return this.register(e,n),n},e.prototype.destroy=function(e){var t=this.components.get(e.componentType);if(t){var n=t.indexOf(e);n>-1&&(t[n].destroy(),t.splice(n,1))}},e.prototype.destroyAll=function(){this.destroyByType(this.type)},e.prototype.destroyByType=function(e){var t=this.components.get(e);if(t)for(var n=0,i=t;n<i.length;n++)this.destroy(i[n])},e.prototype.assignDefaults=function(e){var t=this.defaults,n=t.inputs,i=t.outputs;return e.inputs||e.outputs||(e={inputs:e}),n&&(e.inputs=Object.assign(n,e.inputs)),i&&(e.outputs=Object.assign(i,e.outputs)),e},e.prototype.injectComponent=function(e,t){return this.injectionService.appendComponent(e,t)},e.prototype.register=function(e,t){this.components.has(e)||this.components.set(e,[]),this.components.get(e).push(t)},e}();function rj(e,t,n){var i,r,a;n=n||{};var o=null,s=0;function l(){s=!1===n.leading?0:+new Date,o=null,a=e.apply(i,r)}return function(){var c=+new Date;s||!1!==n.leading||(s=c);var u=t-(c-s);return i=this,r=arguments,u<=0?(clearTimeout(o),o=null,s=c,a=e.apply(i,r)):o||!1===n.trailing||(o=setTimeout(l,u)),a}}var aj=function(){function e(e,t){this.element=e,this.renderer=t}var t,n,i,r,a;return Object.defineProperty(e.prototype,"cssClasses",{get:function(){var e="ngx-charts-tooltip-content";return e+=" position-"+this.placement,(e+=" type-"+this.type)+" "+this.cssClass},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewInit=function(){setTimeout(this.position.bind(this))},e.prototype.position=function(){var e=this,t=this.element.nativeElement,n=this.host.nativeElement.getBoundingClientRect();if(n.height||n.width){var i=t.getBoundingClientRect();this.checkFlip(n,i),this.positionContent(t,n,i),this.showCaret&&this.positionCaret(n,i),setTimeout(function(){return e.renderer.addClass(t,"animate")},1)}},e.prototype.positionContent=function(e,t,n){var i=ZH.positionContent(this.placement,n,t,this.spacing,this.alignment),r=i.left;this.renderer.setStyle(e,"top",i.top+"px"),this.renderer.setStyle(e,"left",r+"px")},e.prototype.positionCaret=function(e,t){var n=this.caretElm.nativeElement,i=n.getBoundingClientRect(),r=ZH.positionCaret(this.placement,t,e,i,this.alignment),a=r.left;this.renderer.setStyle(n,"top",r.top+"px"),this.renderer.setStyle(n,"left",a+"px")},e.prototype.checkFlip=function(e,t){this.placement=ZH.determinePlacement(this.placement,t,e,this.spacing)},e.prototype.onWindowResize=function(){this.position()},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"host",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"showCaret",void 0),qH([Object(c.A)(),GH("design:type","function"==typeof(t=void 0!==JH&&JH)?t:Object)],e.prototype,"type",void 0),qH([Object(c.A)(),GH("design:type","function"==typeof(n=void 0!==XH&&XH)?n:Object)],e.prototype,"placement",void 0),qH([Object(c.A)(),GH("design:type","function"==typeof(i=void 0!==ej&&ej)?i:Object)],e.prototype,"alignment",void 0),qH([Object(c.A)(),GH("design:type",Number)],e.prototype,"spacing",void 0),qH([Ob
1ject(c.A)(),GH("design:type",String)],e.prototype,"cssClass",void 0),qH([Object(c.A)(),GH("design:type",String)],e.prototype,"title",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"template",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"context",void 0),qH([Object(c.bb)("caretElm"),GH("design:type",Object)],e.prototype,"caretElm",void 0),qH([Object(c.t)("class"),GH("design:type",String),GH("design:paramtypes",[])],e.prototype,"cssClasses",null),qH([Object(c.u)("window:resize"),function(e,t,n){return{configurable:!0,enumerable:n.enumerable,get:function(){return Object.defineProperty(this,t,{configurable:!0,enumerable:n.enumerable,value:rj(n.value,100,void 0)}),this[t]}}},GH("design:type",Function),GH("design:paramtypes",[]),GH("design:returntype",void 0)],e.prototype,"onWindowResize",null),(e=qH([GH("design:paramtypes",["function"==typeof(r=void 0!==c.q&&c.q)?r:Object,"function"==typeof(a=void 0!==c.Q&&c.Q)?a:Object])],e)).\u0275fac=function(t){return new(t||e)(c.dc("function"==typeof(r=void 0!==c.q&&c.q)?r:Object),c.dc("function"==typeof(a=void 0!==c.Q&&c.Q)?a:Object))},e.\u0275cmp=c.Xb({type:e,selectors:[["ngx-tooltip-content"]],viewQuery:function(e,t){var n;1&e&&c.ed(eH,5),2&e&&c.Mc(n=c.uc())&&(t.caretElm=n.first)},hostVars:2,hostBindings:function(e,t){1&e&&c.tc("resize",function(){return t.onWindowResize()},!1,c.Pc),2&e&&c.Sb(t.cssClasses)},inputs:{placement:"placement",host:"host",showCaret:"showCaret",type:"type",alignment:"alignment",spacing:"spacing",cssClass:"cssClass",title:"title",template:"template",context:"context"},decls:6,vars:6,consts:[[3,"hidden"],["caretElm",""],[1,"tooltip-content"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"innerHTML"]],template:function(e,t){1&e&&(c.jc(0,"div"),c.ec(1,"span",0,1),c.jc(3,"div",2),c.Yc(4,iH,2,4,"span",3),c.Yc(5,rH,1,1,"span",4),c.ic(),c.ic()),2&e&&(c.Pb(1),c.Tb("tooltip-caret position-",t.placement,""),c.Dc("hidden",!t.showCaret),c.Pb(3),c.Dc("ngIf",!t.title),c.Pb(1),c.Dc("ngIf",t.title))},directives:[l.m,l.o],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12);font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-top{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-right{border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px 5px;font-size:1em}.ngx-charts-tooltip-content .tooltip-val{display:block;font-size:1.3em;line-height:1em;padding:0 5px 8px 5px}.ngx-charts-tooltip-content .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate3d(10px,0,0)}.ngx-charts-tooltip-content.position-left{transform:translate3d(-10px,0,0)}.ngx-charts-tooltip-content.position-top{transform:translate3d(0,-10px,0)}.ngx-charts-tooltip-content.position-bottom{transform:translate3d(0,10px,0)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;
1transform:translate3d(0,0,0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}"],encapsulation:2}),e}(),oj=function(e){function t(t){var n=e.call(this,t)||this;return n.injectionService=t,n.type=aj,n}var n;return WH(t,e),(t=qH([GH("design:paramtypes",["function"==typeof(n=void 0!==nj&&nj)?n:Object])],t)).\u0275fac=function(e){return new(e||t)(c.qc("function"==typeof(n=void 0!==nj&&nj)?n:Object))},t.\u0275prov=c.Zb({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(ij),sj=function(){function e(e,t,n){this.tooltipService=e,this.viewContainerRef=t,this.renderer=n,this.tooltipCssClass="",this.tooltipTitle="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=XH.top,this.tooltipAlignment=ej.center,this.tooltipType=JH.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=tj.all,this.tooltipImmediateExit=!1,this.show=new c.s,this.hide=new c.s}var t,n,i,r,a,o,s;return Object.defineProperty(e.prototype,"listensForFocus",{get:function(){return this.tooltipShowEvent===tj.all||this.tooltipShowEvent===tj.focus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listensForHover",{get:function(){return this.tooltipShowEvent===tj.all||this.tooltipShowEvent===tj.mouseover},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this.hideTooltip(!0)},e.prototype.onFocus=function(){this.listensForFocus&&this.showTooltip()},e.prototype.onBlur=function(){this.listensForFocus&&this.hideTooltip(!0)},e.prototype.onMouseEnter=function(){this.listensForHover&&this.showTooltip()},e.prototype.onMouseLeave=function(e){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(e))return;this.hideTooltip(this.tooltipImmediateExit)}},e.prototype.onMouseClick=function(){this.listensForHover&&this.hideTooltip(!0)},e.prototype.showTooltip=function(e){var t=this;if(!this.component&&!this.tooltipDisabled){var n=e?0:this.tooltipShowTimeout;clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.tooltipService.destroyAll();var e=t.createBoundOptions();t.component=t.tooltipService.create(e),setTimeout(function(){t.component&&t.addHideListeners(t.component.instance.element.nativeElement)},10),t.show.emit(!0)},n)}},e.prototype.addHideListeners=function(e){var t=this;this.mouseEnterContentEvent=this.renderer.listen(e,"mouseenter",function(){clearTimeout(t.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(e,"mouseleave",function(){t.hideTooltip(t.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen(document,"click",function(n){e.contains(n.target)||t.hideTooltip()}))},e.prototype.hideTooltip=function(e){var t=this;if(void 0===e&&(e=!1),this.component){var n=function(){t.mouseLeaveContentEvent&&t.mouseLeaveContentEvent(),t.mouseEnterContentEvent&&t.mouseEnterContentEvent(),t.documentClickEvent&&t.documentClickEvent(),t.hide.emit(!0),t.tooltipService.destroy(t.component),t.component=void 0};clearTimeout(this.timeout),e?n():this.timeout=setTimeout(n,this.tooltipHideTimeout)}},e.prototype.createBoundOptions=function(){return{title:this.tooltipTitle,template:this.tooltipTemplate,host:this.viewContainerRef.element,placement:this.tooltipPlacement,alignment:this.tooltipAlignment,type:this.tooltipType,showCaret:this.tooltipShowCaret,cssClass:this.tooltipCssClass,spacing:this.tooltipSpacing,context:this.tooltipContext}},qH([Object(c.A)(),GH("design:type",String)],e.prototype,"tooltipCssClass",void 0),qH([Object(c.A)(),GH("design:type",String)],e.prototype,"tooltipTitle",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"tooltipAppendToBody",void 0),qH([Ob
1ject(c.A)(),GH("design:type",Number)],e.prototype,"tooltipSpacing",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"tooltipShowCaret",void 0),qH([Object(c.A)(),GH("design:type","function"==typeof(t=void 0!==XH&&XH)?t:Object)],e.prototype,"tooltipPlacement",void 0),qH([Object(c.A)(),GH("design:type","function"==typeof(n=void 0!==ej&&ej)?n:Object)],e.prototype,"tooltipAlignment",void 0),qH([Object(c.A)(),GH("design:type","function"==typeof(i=void 0!==JH&&JH)?i:Object)],e.prototype,"tooltipType",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"tooltipCloseOnClickOutside",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"tooltipCloseOnMouseLeave",void 0),qH([Object(c.A)(),GH("design:type",Number)],e.prototype,"tooltipHideTimeout",void 0),qH([Object(c.A)(),GH("design:type",Number)],e.prototype,"tooltipShowTimeout",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"tooltipTemplate",void 0),qH([Object(c.A)(),GH("design:type","function"==typeof(r=void 0!==tj&&tj)?r:Object)],e.prototype,"tooltipShowEvent",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"tooltipContext",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"tooltipImmediateExit",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"show",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"hide",void 0),qH([Object(c.u)("focusin"),GH("design:type",Function),GH("design:paramtypes",[]),GH("design:returntype",void 0)],e.prototype,"onFocus",null),qH([Object(c.u)("blur"),GH("design:type",Function),GH("design:paramtypes",[]),GH("design:returntype",void 0)],e.prototype,"onBlur",null),qH([Object(c.u)("mouseenter"),GH("design:type",Function),GH("design:paramtypes",[]),GH("design:returntype",void 0)],e.prototype,"onMouseEnter",null),qH([Object(c.u)("mouseleave",["$event.target"]),GH("design:type",Function),GH("design:paramtypes",[Object]),GH("design:returntype",void 0)],e.prototype,"onMouseLeave",null),qH([Object(c.u)("click"),GH("design:type",Function),GH("design:paramtypes",[]),GH("design:returntype",void 0)],e.prototype,"onMouseClick",null),(e=qH([GH("design:paramtypes",["function"==typeof(a=void 0!==oj&&oj)?a:Object,"function"==typeof(o=void 0!==c.cb&&c.cb)?o:Object,"function"==typeof(s=void 0!==c.Q&&c.Q)?s:Object])],e)).\u0275fac=function(t){return new(t||e)(c.dc("function"==typeof(a=void 0!==oj&&oj)?a:Object),c.dc("function"==typeof(o=void 0!==c.cb&&c.cb)?o:Object),c.dc("function"==typeof(s=void 0!==c.Q&&c.Q)?s:Object))},e.\u0275dir=c.Yb({type:e,selectors:[["","ngx-tooltip",""]],hostBindings:function(e,t){1&e&&c.tc("focusin",function(){return t.onFocus()})("blur",function(){return t.onBlur()})("mouseenter",function(){return t.onMouseEnter()})("mouseleave",function(e){return t.onMouseLeave(e.target)})("click",function(){return t.onMouseClick()})},inputs:{tooltipCssClass:"tooltipCssClass",tooltipTitle:"tooltipTitle",tooltipAppendToBody:"tooltipAppendToBody",tooltipSpacing:"tooltipSpacing",tooltipDisabled:"tooltipDisabled",tooltipShowCaret:"tooltipShowCaret",tooltipPlacement:"tooltipPlacement",tooltipAlignment:"tooltipAlignment",tooltipType:"tooltipType",tooltipCloseOnClickOutside:"tooltipCloseOnClickOutside",tooltipCloseOnMouseLeave:"tooltipCloseOnMouseLeave",tooltipHideTimeout:"tooltipHideTimeout",tooltipShowTimeout:"tooltipShowTimeout",tooltipShowEvent:"tooltipShowEvent",tooltipImmediateExit:"tooltipImmediateExit",tooltipTemplate:"tooltipTemplate",tooltipContext:"tooltipContext"},outputs:{show:"show",hide:"hide"}}),e}(),lj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({providers:[nj,oj],imports:[[l.c]]}),e}(),cj=function(){function e(e,t){this.vcr=e,this.tooltipService=t,this.showLegend=!1,this.animations=!0,this.legendLabelClick=new c.s,this.legendLabelActivate=new c.s,this.legendLabelDeactivate=new c.s,this.tooltipService.injectionService.setRootViewContainer(this.vcr)}var t,n,i,r,a;return e.prototype.ngOnChanges=function(e){this.update()},e.prototype.update=function(){var e=0;
1this.showLegend&&(this.legendType=this.getLegendType(),this.legendOptions&&"right"!==this.legendOptions.position||(e="scaleLegend"===this.legendType?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-e)/12),this.legendWidth=this.legendOptions&&"right"!==this.legendOptions.position?this.chartWidth:Math.floor(this.view[0]*e/12)},e.prototype.getLegendType=function(){return"linear"===this.legendOptions.scaleType?"scaleLegend":"legend"},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"view",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"showLegend",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"legendOptions",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"data",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"legendData",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"legendType",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"colors",void 0),qH([Object(c.A)(),GH("design:type",Array)],e.prototype,"activeEntries",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"animations",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(t=void 0!==c.s&&c.s)?t:Object)],e.prototype,"legendLabelClick",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(n=void 0!==c.s&&c.s)?n:Object)],e.prototype,"legendLabelActivate",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(i=void 0!==c.s&&c.s)?i:Object)],e.prototype,"legendLabelDeactivate",void 0),(e=qH([GH("design:paramtypes",["function"==typeof(r=void 0!==c.cb&&c.cb)?r:Object,"function"==typeof(a=void 0!==oj&&oj)?a:Object])],e)).\u0275fac=function(t){return new(t||e)(c.dc("function"==typeof(r=void 0!==c.cb&&c.cb)?r:Object),c.dc("function"==typeof(a=void 0!==oj&&oj)?a:Object))},e.\u0275cmp=c.Xb({type:e,selectors:[["ngx-charts-chart"]],inputs:{showLegend:"showLegend",animations:"animations",legendType:"legendType",view:"view",legendOptions:"legendOptions",data:"data",legendData:"legendData",colors:"colors",activeEntries:"activeEntries"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[c.Ob([oj]),c.Nb],ngContentSelectors:sH,decls:5,vars:8,consts:[[1,"ngx-charts-outer"],[1,"ngx-charts"],["class","chart-legend",3,"horizontal","valueRange","colors","height","width",4,"ngIf"],["class","chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate",4,"ngIf"],[1,"chart-legend",3,"horizontal","valueRange","colors","height","width"],[1,"chart-legend",3,"horizontal","data","title","colors","height","width","activeEntries","labelClick","labelActivate","labelDeactivate"]],template:function(e,t){1&e&&(c.Cc(),c.jc(0,"div",0),c.wc(),c.jc(1,"svg",1),c.Bc(2),c.ic(),c.Yc(3,aH,1,5,"ngx-charts-scale-legend",2),c.Yc(4,oH,1,7,"ngx-charts-legend",3),c.ic()),2&e&&(c.Xc("width",t.view[0],"px"),c.Dc("@animationState","active")("@.disabled",!t.animations),c.Pb(1),c.Qb("width",t.chartWidth)("height",t.view[1]),c.Pb(2),c.Dc("ngIf",t.showLegend&&"scaleLegend"===t.legendType),c.Pb(1),c.Dc("ngIf",t.showLegend&&"legend"===t.legendType))},directives:function(){return[l.m,hj,dj]},encapsulation:2,data:{animation:[mt("animationState",[wt(":enter",[yt({opacity:0}
1),gt("500ms 100ms",yt({opacity:1}))])])]},changeDetection:0}),e}();function uj(e){return e instanceof Date?e.toLocaleDateString():e.toLocaleString()}var dj=function(){function e(e){this.cd=e,this.horizontal=!1,this.labelClick=new c.s,this.labelActivate=new c.s,this.labelDeactivate=new c.s,this.legendEntries=[]}var t,n,i,r;return e.prototype.ngOnChanges=function(e){this.update()},e.prototype.update=function(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()},e.prototype.getLegendEntries=function(){for(var e=[],t=function(t){var i=uj(t);-1===e.findIndex(function(e){return e.label===i})&&e.push({label:t,formattedLabel:i,color:n.colors.getColor(t)})},n=this,i=0,r=this.data;i<r.length;i++)t(r[i]);return e},e.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.label===t.name})},e.prototype.activate=function(e){this.labelActivate.emit(e)},e.prototype.deactivate=function(e){this.labelDeactivate.emit(e)},e.prototype.trackBy=function(e,t){return t.label},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"data",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"title",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"colors",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"height",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"width",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"activeEntries",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"horizontal",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(t=void 0!==c.s&&c.s)?t:Object)],e.prototype,"labelClick",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(n=void 0!==c.s&&c.s)?n:Object)],e.prototype,"labelActivate",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(i=void 0!==c.s&&c.s)?i:Object)],e.prototype,"labelDeactivate",void 0),(e=qH([GH("design:paramtypes",["function"==typeof(r=void 0!==c.j&&c.j)?r:Object])],e)).\u0275fac=function(t){return new(t||e)(c.dc("function"==typeof(r=void 0!==c.j&&c.j)?r:Object))},e.\u0275cmp=c.Xb({type:e,selectors:[["ngx-charts-legend"]],inputs:{horizontal:"horizontal",data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[c.Nb],decls:5,vars:9,consts:[["class","legend-title",4,"ngIf"],[1,"legend-wrap"],[1,"legend-labels"],["class","legend-label",4,"ngFor","ngForOf","ngForTrackBy"],[1,"legend-title"],[1,"legend-title-text"],[1,"legend-label"],[3,"label","formattedLabel","color","isActive","select","activate","deactivate"]],template:function(e,t){1&e&&(c.jc(0,"div"),c.Yc(1,lH,3,1,"header",0),c.jc(2,"div",1),c.jc(3,"ul",2),c.Yc(4,cH,2,4,"li",3),c.ic(),c.ic(),c.ic()),2&e&&(c.Xc("width",t.width,"px"),c.Pb(1),c.Dc("ngIf",(null==t.title?null:t.title.length)>0),c.Pb(2),c.Xc("max-height",t.height-45,"px"),c.Vb("horizontal-legend",t.horizontal),c.Pb(1),c.Dc("ngForOf",t.legendEntries)("ngForTrackBy",t.trackBy))},directives:function(){return[l.m,l.l,fj]},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend li,.chart-legend ul{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;-webkit-transition:.2s;-moz-transition:.2s;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"],encapsulation:2,changeDetection:0}),e}(),hj=function(){function e(e){this.sanitizer=e,this.horizontal=!1}var t;return e.prototype.ngOnChanges=function(e){var t=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=this.sanitizer.bypassSecurityTrustStyle("linear-gradient(to "+(this.horizontal?"right":"bottom")+", "+t+")")},e.prototype.gradientString=function(e,t){t.push(1);var n=[];
1return e.reverse().forEach(function(e,i){n.push(e+" "+Math.round(100*t[i])+"%")}),n.join(", ")},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"valueRange",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"colors",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"height",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"width",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"horizontal",void 0),(e=qH([GH("design:paramtypes",["function"==typeof(t=void 0!==z&&z)?t:Object])],e)).\u0275fac=function(n){return new(n||e)(c.dc("function"==typeof(t=void 0!==z&&z)?t:Object))},e.\u0275cmp=c.Xb({type:e,selectors:[["ngx-charts-scale-legend"]],inputs:{horizontal:"horizontal",valueRange:"valueRange",colors:"colors",height:"height",width:"width"},features:[c.Nb],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"div",1),c.jc(2,"span"),c.ad(3),c.ic(),c.ic(),c.ec(4,"div",2),c.jc(5,"div",1),c.jc(6,"span"),c.ad(7),c.ic(),c.ic(),c.ic()),2&e&&(c.Xc("height",t.horizontal?void 0:t.height,"px")("width",t.width,"px"),c.Vb("horizontal-legend",t.horizontal),c.Pb(3),c.bd(t.valueRange[1].toLocaleString()),c.Pb(1),c.Xc("background",t.gradient),c.Pb(3),c.bd(t.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}"],encapsulation:2,changeDetection:0}),e}(),fj=function(){function e(){this.isActive=!1,this.select=new c.s,this.activate=new c.s,this.deactivate=new c.s,this.toggle=new c.s}var t,n,i,r;return Object.defineProperty(e.prototype,"trimmedLabel",{get:function(){return this.formattedLabel||"(empty)"},enumerable:!0,configurable:!0}),e.prototype.onMouseEnter=function(){this.activate.emit({name:this.label})},e.prototype.onMouseLeave=function(){this.deactivate.emit({name:this.label})},qH([Object(c.A)(),GH("design:type",String)],e.prototype,"color",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"label",void 0),qH([Object(c.A)(),GH("design:type",String)],e.prototype,"formattedLabel",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"isActive",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(t=void 0!==c.s&&c.s)?t:Object)],e.prototype,"select",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(n=void 0!==c.s&&c.s)?n:Object)],e.prototype,"activate",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(i=void 0!==c.s&&c.s)?i:Object)],e.prototype,"deactivate",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(r=void 0!==c.s&&c.s)?r:Object)],e.prototype,"toggle",void 0),qH([Object(c.u)("mouseenter"),GH("design:type",Function),GH("design:paramtypes",[]),GH("design:returntype",void 0)],e.prototype,"onMouseEnter",null),qH([Object(c.u)("mouseleave"),GH("design:type",Function),GH("design:paramtypes",[]),GH("design:returntype",void 0)],e.prototype,"onMouseLeave",null),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Xb({type:e,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(e,t){1&e&&c.tc("mouseenter",function(){return t.onMouseEnter()})("mouseleave",function(){return t.onMouseLeave()})},inputs:{isActive:"isActive",color:"color",label:"label",formattedLabel:"formattedLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",toggle:"toggle"},decls:4,vars:6,consts:[["tabindex","-1",3,"title","click"],[1,"legend-label-color",3,"click"],[1,"legend-label-text"]],template:function(e,t){1&e&&(c.jc(0,"span",0),c.tc("click",function(){return t.select.emit(t.formattedLabel)}),c.jc(1,"span",1),c.tc("click",function(){return t.toggle.emit(t.formattedLabel)}),c.ic(),c.jc(2,"span",2),c.ad(3),c.ic(),c.ic()),2&e&&(c.Vb("active",t.isActive),c.Dc("title",t.formattedLabel),c.Pb(1),c.Xc("background-color",t.color),c.Pb(2),c.cd(" ",t.trimmedLabel," "))},encapsulation:2,changeDetection:0}),e}();function pj(e,t){return void 0===t&&(t=16),"string"!=typeof e?"number"==typeof e?e+"":"":(e=e.trim()).length<=t?e:e.slice(0,t)+"..."}var mj={};function gj(){var e=("0000"+(Math.random()*Math.pow(36,4)|0).toString(36)).slice(-4);return mj[e="a"+e]?gj():(mj[e]=!0,e)}var vj=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}],yj=function(){function e(e,t){this.element=e,this.zone=t,this.visible=new c.s,this.isVisible=!1,this.runCheck()}var t;return e.prototype.destroy=function(){clearTimeout(this.timeout)},e.prototype.onVisibilityChange=function(){var e=this;this.zone.run(function(){e.isVisible=!0,e.visible.emit(!0)})},e.prototype.runCheck=function(){var e=this,t=function t(){if(e.element){var n=e.element.nativeElement;n.offsetHeight&&n.offsetWidth?(clearTimeout(e.timeout),e.onVisibilityChange()):(clearTimeout(e.timeout),e.zone.runOutsideAngular(function(){e.timeout=setTimeout(function(){return t()},100)}))}};this.zone.runOutsideAngular(function(){e.timeout=setTimeout(function(){return t()})})}
1,qH([Object(c.L)(),GH("design:type","function"==typeof(t=void 0!==c.s&&c.s)?t:Object)],e.prototype,"visible",void 0),e.\u0275fac=function(e){c.sc()},e.\u0275dir=c.Yb({type:e,outputs:{visible:"visible"}}),e}(),bj=function(){function e(e,t,n){this.chartElement=e,this.zone=t,this.cd=n,this.scheme="cool",this.schemeType="ordinal",this.animations=!0,this.select=new c.s}var t,n,i;return e.prototype.ngAfterViewInit=function(){this.bindWindowResizeEvent(),this.visibilityObserver=new yj(this.chartElement,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this))},e.prototype.ngOnDestroy=function(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy())},e.prototype.ngOnChanges=function(e){this.update()},e.prototype.update=function(){if(this.results=this.results?this.cloneData(this.results):[],this.view)this.width=this.view[0],this.height=this.view[1];else{var e=this.getContainerDims();e&&(this.width=e.width,this.height=e.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()},e.prototype.getContainerDims=function(){var e,t,n=this.chartElement.nativeElement;if(null!==n.parentNode){var i=n.parentNode.getBoundingClientRect();e=i.width,t=i.height}return e&&t?{width:e,height:t}:null},e.prototype.formatDates=function(){for(var e=0;e<this.results.length;e++){var t=this.results[e];if(t.name instanceof Date&&(t.name=t.name.toLocaleDateString()),t.series)for(var n=0;n<t.series.length;n++){var i=t.series[n];i.name instanceof Date&&(i.name=i.name.toLocaleDateString())}}},e.prototype.unbindEvents=function(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()},e.prototype.bindWindowResizeEvent=function(){var e=this,t=Ho(window,"resize").pipe(Object(se.a)(200)).subscribe(function(t){e.update(),e.cd&&e.cd.markForCheck()});this.resizeSubscription=t},e.prototype.cloneData=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var r=i[n],a={name:r.name};if(void 0!==r.value&&(a.value=r.value),void 0!==r.series){a.series=[];for(var o=0,s=r.series;o<s.length;o++){var l=Object.assign({},s[o]);a.series.push(l)}}void 0!==r.extra&&(a.extra=JSON.parse(JSON.stringify(r.extra))),t.push(a)}return t},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"results",void 0),qH([Object(c.A)(),GH("design:type",Array)],e.prototype,"view",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"scheme",void 0),qH([Object(c.A)(),GH("design:type",String)],e.prototype,"schemeType",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"customColors",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"animations",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"select",void 0),(e=qH([GH("design:paramtypes",["function"==typeof(t=void 0!==c.q&&c.q)?t:Object,"function"==typeof(n=void 0!==c.J&&c.J)?n:Object,"function"==typeof(i=void 0!==c.j&&c.j)?i:Object])],e)).\u0275fac=function(r){return new(r||e)(c.dc("function"==typeof(t=void 0!==c.q&&c.q)?t:Object),c.dc("function"==typeof(n=void 0!==c.J&&c.J)?n:Object),c.dc("function"==typeof(i=void 0!==c.j&&c.j)?i:Object))},e.\u0275cmp=c.Xb({type:e,selectors:[["base-chart"]],inputs:{scheme:"scheme",schemeType:"schemeType",animations:"animations",results:"results",view:"view",customColors:"customColors"},outputs:{select:"select"},features:[c.Nb],decls:1,vars:0,template:function(e,t){1&e&&c.ec(0,"div")},encapsulation:2}),e}(),_j=function(){function e(e){this.textHeight=25,this.margin=5,this.element=e.nativeElement}var t;return e.prototype.ngOnChanges=function(e){this.update()},e.prototype.update=function(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case"top":case"bottom":this.y=this.offset,this.x=this.width/2;break;case"left":this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case"right":this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"orient",void 0),qH([Ob
1ject(c.A)(),GH("design:type",Object)],e.prototype,"label",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"offset",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"width",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"height",void 0),(e=qH([GH("design:paramtypes",["function"==typeof(t=void 0!==c.q&&c.q)?t:Object])],e)).\u0275fac=function(n){return new(n||e)(c.dc("function"==typeof(t=void 0!==c.q&&c.q)?t:Object))},e.\u0275cmp=c.Xb({type:e,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[c.Nb],attrs:uH,decls:2,vars:6,template:function(e,t){1&e&&(c.wc(),c.jc(0,"text"),c.ad(1),c.ic()),2&e&&(c.Qb("stroke-width",t.strokeWidth)("x",t.x)("y",t.y)("text-anchor",t.textAnchor)("transform",t.transform),c.Pb(1),c.cd(" ",t.label," "))},encapsulation:2,changeDetection:0}),e}();function wj(e,t){if(e.length>t){for(var n=[],i=Math.floor(e.length/t),r=0;r<e.length;r++)r%i==0&&n.push(e[r]);e=n}return e}var kj=function(){function e(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new c.s,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor="middle",this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0}var t;return e.prototype.ngOnChanges=function(e){this.update()},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){return e.updateDims()})},e.prototype.updateDims=function(){var e=this,t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);t!==this.height&&(this.height=t,this.dimensionsChanged.emit({height:t}),setTimeout(function(){return e.updateDims()}))},e.prototype.update=function(){var e=this,t=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:t.tickFormat?t.tickFormat.apply(t,this.tickArguments):function(e){return"Date"===e.constructor.name?e.toLocaleDateString():e.toLocaleString()};var n=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(e){return this.scale(e)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",n&&0!==n?(this.textTransform="rotate("+n+")",this.textAnchor="end",this.verticalSpacing=10):this.textAnchor="middle",setTimeout(function(){return e.updateDims()})},e.prototype.getRotationAngle=function(e){var t=0;this.maxTicksLength=0;for(var n=0;n<e.length;n++){var i=this.tickFormat(e[n]).toString(),r=i.length;this.trimTicks&&(r=this.tickTrim(i).length),r>this.maxTicksLength&&(this.maxTicksLength=r)}for(var a=8*Math.min(this.maxTicksLength,this.maxAllowedLength),o=a,s=Math.floor(this.width/e.length);o>s&&t>-90;)t-=30,o=Math.cos(t*(Math.PI/180))*a;return t},e.prototype.getTicks=function(){var e=this.getMaxTicks(20),t=this.getMaxTicks(100);return this.tickValues?this.tickValues:this.scale.ticks?this.scale.ticks.apply(this.scale,[t]):wj(this.scale.domain(),e)},e.prototype.getMaxTicks=function(e){return Math.floor(this.width/e)},e.prototype.tickTransform=function(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"},e.prototype.gridLineTransform=function(){return"translate(0,"+(-this.verticalSpacing-5)+")"},e.prototype.tickTrim=function(e){return this.trimTicks?pj(e,this.maxTickLength):e},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"scale",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"orient",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"tickArguments",void 0),qH([Object(c.A)(),GH("design:type",Array)],e.prototype,"tickValues",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"tickStroke",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"trimTicks",void 0),qH([Object(c.A)(),GH("design:type",Number)],e.prototype,"maxTickLength",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"tickFormatting",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"showGridLines",void 0),qH([Ob
1ject(c.A)(),GH("design:type",Object)],e.prototype,"gridLineHeight",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"width",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"rotateTicks",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"dimensionsChanged",void 0),qH([Object(c.bb)("ticksel"),GH("design:type","function"==typeof(t=void 0!==c.q&&c.q)?t:Object)],e.prototype,"ticksElement",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Xb({type:e,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(e,t){var n;1&e&&c.ed(dH,5),2&e&&c.Mc(n=c.uc())&&(t.ticksElement=n.first)},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",rotateTicks:"rotateTicks",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineHeight:"gridLineHeight",width:"width"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[c.Nb],attrs:hH,decls:4,vars:2,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[4,"ngIf"],["y2","0",1,"gridline-path","gridline-path-vertical"]],template:function(e,t){1&e&&(c.wc(),c.jc(0,"g",null,0),c.Yc(2,fH,5,7,"g",1),c.ic(),c.Yc(3,mH,2,2,"g",2)),2&e&&(c.Pb(2),c.Dc("ngForOf",t.ticks),c.Pb(1),c.Dc("ngForOf",t.ticks))},directives:[l.l,l.m],encapsulation:2,changeDetection:0}),e}(),Cj=function(){function e(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient="bottom",this.xAxisOffset=0,this.dimensionsChanged=new c.s,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5}var t;return e.prototype.ngOnChanges=function(e){this.update()},e.prototype.update=function(){this.transform="translate(0,"+(this.xAxisOffset+this.padding+this.dims.height)+")",void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])},e.prototype.emitTicksHeight=function(e){var t=this,n=e.height,i=n+25+5;i!==this.labelOffset&&(this.labelOffset=i,setTimeout(function(){t.dimensionsChanged.emit({height:n})},0))},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"xScale",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"dims",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"trimTicks",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"rotateTicks",void 0),qH([Object(c.A)(),GH("design:type",Number)],e.prototype,"maxTickLength",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"tickFormatting",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"showGridLines",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"showLabel",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"labelText",void 0),qH([Object(c.A)(),GH("design:type",Array)],e.prototype,"ticks",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"xAxisTickInterval",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"xAxisTickCount",void 0),qH([Object(c.A)(),GH("design:type",String)],e.prototype,"xOrient",void 0),qH([Object(c.A)(),GH("design:type",Number)],e.prototype,"xAxisOffset",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"dimensionsChanged",void 0),qH([Object(c.bb)(kj),GH("design:type","function"==typeof(t=void 0!==kj&&kj)?t:Object)],e.prototype,"ticksComponent",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Xb({type:e,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(e,t){var n;1&e&&c.ed(kj,5),2&e&&c.Mc(n=c.uc())&&(t.ticksComponent=n.first)},inputs:{rotateTicks:"rotateTicks",showGridLines:"showGridLines",xOrient:"xOrient",xAxisOffset:"xAxisOffset",xScale:"xScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickInterval:"xAxisTickInterval",xAxisTickCount:"xAxisTickCount"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[c.Nb],attrs:gH,decls:3,vars:4,consts:[["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-x-axis-ticks","",3,"trimTicks","rotateTicks","maxTickLength","tickFormatting","tickArguments","tickStroke","scale","orient","showGridLines","gridLineHeight","width","tickValues","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,t){1&e&&(c.wc(),c.jc(0,"g"),c.Yc(1,vH,1,12,"g",0),c.Yc(2,yH,1,5,"g",1),c.ic()),2&e&&(c.Qb("class",t.xAxisClassName)("transform",t.transform),c.Pb(1),c.Dc("ngIf",t.xScale),c.Pb(1),c.Dc("ngIf",t.showLabel))},directives:[l.m,kj,_j],encapsulation:2,changeDetection:0}),e}();function xj(e,t,n,i,r,a){var o=a[0],s=a[1],l=a[2],c=a[3],u="";return u="M"+[e+r,t],u+="h"+((n=0===(n=Math.floor(n))?1:n)-2*r),u+=s?"a"
1+[r,r]+" 0 0 1 "+[r,r]:"h"+r+"v"+r,u+="v"+((i=0===(i=Math.floor(i))?1:i)-2*r),u+=c?"a"+[r,r]+" 0 0 1 "+[-r,r]:"v"+r+"h"+-r,u+="h"+(2*r-n),u+=l?"a"+[r,r]+" 0 0 1 "+[-r,-r]:"h"+-r+"v"+-r,u+="v"+(2*r-i),(u+=o?"a"+[r,r]+" 0 0 1 "+[r,-r]:"v"+-r+"h"+r)+"z"}var Sj=function(){function e(){this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new c.s,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor="middle",this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0}var t;return e.prototype.ngOnChanges=function(e){this.update()},e.prototype.ngAfterViewInit=function(){var e=this;setTimeout(function(){return e.updateDims()})},e.prototype.updateDims=function(){var e=this,t=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);t!==this.width&&(this.width=t,this.dimensionsChanged.emit({width:t}),setTimeout(function(){return e.updateDims()}))},e.prototype.update=function(){var e,t=this,n="top"===this.orient||"right"===this.orient?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,e=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:e.tickFormat?e.tickFormat.apply(e,this.tickArguments):function(e){return"Date"===e.constructor.name?e.toLocaleDateString():e.toLocaleString()},this.adjustedScale=e.bandwidth?function(t){return e(t)+.5*e.bandwidth()}:e,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case"top":case"bottom":this.transform=function(e){return"translate("+this.adjustedScale(e)+",0)"},this.textAnchor="middle",this.y2=this.innerTickSize*n,this.y1=this.tickSpacing*n,this.dy=n<0?"0em":".71em";break;case"left":this.transform=function(e){return"translate(0,"+this.adjustedScale(e)+")"},this.textAnchor="end",this.x2=this.innerTickSize*-n,this.x1=this.tickSpacing*-n,this.dy=".32em";break;case"right":this.transform=function(e){return"translate(0,"+this.adjustedScale(e)+")"},this.textAnchor="start",this.x2=this.innerTickSize*-n,this.x1=this.tickSpacing*-n,this.dy=".32em"}setTimeout(function(){return t.updateDims()})},e.prototype.setReferencelines=function(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(function(e){return e.value}))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(function(e){return e.value}))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=xj(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])},e.prototype.getTicks=function(){var e=this.getMaxTicks(20),t=this.getMaxTicks(50);return this.tickValues?this.tickValues:this.scale.ticks?this.scale.ticks.apply(this.scale,[t]):wj(this.scale.domain(),e)},e.prototype.getMaxTicks=function(e){return Math.floor(this.height/e)},e.prototype.tickTransform=function(e){return"translate("+this.adjustedScale(e)+","+this.verticalSpacing+")"},e.prototype.gridLineTransform=function(){return"translate(5,0)"},e.prototype.tickTrim=function(e){return this.trimTicks?pj(e,this.maxTickLength):e},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"scale",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"orient",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"tickArguments",void 0),qH([Object(c.A)(),GH("design:type",Array)],e.prototype,"tickValues",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"tickStroke",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"trimTicks",void 0),qH([Object(c.A)(),GH("design:type",Number)],e.prototype,"maxTickLength",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"tickFormatting",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"showGridLines",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"gridLineWidth",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"height",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"referenceLines",void 0),qH([Ob
1ject(c.A)(),GH("design:type",Boolean)],e.prototype,"showRefLabels",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"showRefLines",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"dimensionsChanged",void 0),qH([Object(c.bb)("ticksel"),GH("design:type","function"==typeof(t=void 0!==c.q&&c.q)?t:Object)],e.prototype,"ticksElement",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Xb({type:e,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(e,t){var n;1&e&&c.ed(dH,5),2&e&&c.Mc(n=c.uc())&&(t.ticksElement=n.first)},inputs:{tickArguments:"tickArguments",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",showGridLines:"showGridLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines",scale:"scale",orient:"orient",tickValues:"tickValues",tickFormatting:"tickFormatting",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[c.Nb],attrs:bH,decls:6,vars:4,consts:[["ticksel",""],["class","tick",4,"ngFor","ngForOf"],["class","reference-area",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"tick"],["stroke-width","0.01"],[1,"reference-area"],[4,"ngIf"],["class","gridline-path gridline-path-horizontal","x1","0",4,"ngIf"],["x1","0",1,"gridline-path","gridline-path-horizontal"],["x1","0",1,"refline-path","gridline-path-horizontal"],[1,"refline-label"]],template:function(e,t){1&e&&(c.wc(),c.jc(0,"g",null,0),c.Yc(2,_H,5,9,"g",1),c.ic(),c.Yc(3,wH,1,2,"path",2),c.Yc(4,SH,2,2,"g",3),c.Yc(5,TH,2,1,"g",3)),2&e&&(c.Pb(2),c.Dc("ngForOf",t.ticks),c.Pb(1),c.Dc("ngIf",t.referenceLineLength>1&&t.refMax&&t.refMin&&t.showRefLines),c.Pb(1),c.Dc("ngForOf",t.ticks),c.Pb(1),c.Dc("ngForOf",t.referenceLines))},directives:[l.l,l.m],encapsulation:2,changeDetection:0}),e}(),Mj=function(){function e(){this.showGridLines=!1,this.yOrient="left",this.yAxisOffset=0,this.dimensionsChanged=new c.s,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}var t;return e.prototype.ngOnChanges=function(e){this.update()},e.prototype.update=function(){this.offset=-(this.yAxisOffset+this.padding),"right"===this.yOrient?(this.labelOffset=65,this.transform="translate("+(this.offset+this.dims.width)+" , 0)"):(this.offset=this.offset,this.transform="translate("+this.offset+" , 0)"),void 0!==this.yAxisTickCount&&(this.tickArguments=[this.yAxisTickCount])},e.prototype.emitTicksWidth=function(e){var t=this,n=e.width;n!==this.labelOffset&&"right"===this.yOrient?(this.labelOffset=n+this.labelOffset,setTimeout(function(){t.dimensionsChanged.emit({width:n})},0)):n!==this.labelOffset&&(this.labelOffset=n,setTimeout(function(){t.dimensionsChanged.emit({width:n})},0))},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"yScale",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"dims",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"trimTicks",void 0),qH([Object(c.A)(),GH("design:type",Number)],e.prototype,"maxTickLength",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"tickFormatting",void 0),qH([Object(c.A)(),GH("design:type",Array)],e.prototype,"ticks",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"showGridLines",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"showLabel",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"labelText",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"yAxisTickInterval",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"yAxisTickCount",void 0),qH([Object(c.A)(),GH("design:type",String)],e.prototype,"yOrient",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"referenceLines",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"showRefLines",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"showRefLabels",void 0),qH([Object(c.A)(),GH("design:type",Number)],e.prototype,"yAxisOffset",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"dimensionsChanged",void 0),qH([Ob
1ject(c.bb)(Sj),GH("design:type","function"==typeof(t=void 0!==Sj&&Sj)?t:Object)],e.prototype,"ticksComponent",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Xb({type:e,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(e,t){var n;1&e&&c.ed(Sj,5),2&e&&c.Mc(n=c.uc())&&(t.ticksComponent=n.first)},inputs:{showGridLines:"showGridLines",yOrient:"yOrient",yAxisOffset:"yAxisOffset",yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showLabel:"showLabel",labelText:"labelText",yAxisTickInterval:"yAxisTickInterval",yAxisTickCount:"yAxisTickCount",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[c.Nb],attrs:EH,decls:3,vars:4,consts:[["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged",4,"ngIf"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width",4,"ngIf"],["ngx-charts-y-axis-ticks","",3,"trimTicks","maxTickLength","tickFormatting","tickArguments","tickValues","tickStroke","scale","orient","showGridLines","gridLineWidth","referenceLines","showRefLines","showRefLabels","height","dimensionsChanged"],["ngx-charts-axis-label","",3,"label","offset","orient","height","width"]],template:function(e,t){1&e&&(c.wc(),c.jc(0,"g"),c.Yc(1,AH,1,14,"g",0),c.Yc(2,PH,1,5,"g",1),c.ic()),2&e&&(c.Qb("class",t.yAxisClassName)("transform",t.transform),c.Pb(1),c.Dc("ngIf",t.yScale),c.Pb(1),c.Dc("ngIf",t.showLabel))},directives:[l.m,Sj,_j],encapsulation:2,changeDetection:0}),e}(),Dj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[l.c]]}),e}(),Tj=function(){function e(e,t,n,i){"string"==typeof e&&(e=vj.find(function(t){return t.name===e})),this.colorDomain=e.domain,this.scaleType=t,this.domain=n,this.customColors=i,this.scale=this.generateColorScheme(e,t,this.domain)}return e.prototype.generateColorScheme=function(e,t,n){var i;if("string"==typeof e&&(e=vj.find(function(t){return t.name===e})),"quantile"===t)i=BA().range(e.domain).domain(n);else if("ordinal"===t)i=nA().range(e.domain).domain(n);else if("linear"===t){var r=e.domain.slice();1===r.length&&(r.push(r[0]),this.colorDomain=r);var a=YE(0,1,1/r.length);i=NA().domain(a).range(r)}return i},e.prototype.getColor=function(e){if(null==e)throw new Error("Value can not be null");if("linear"===this.scaleType){var t=NA().domain(this.domain).range([0,1]);return this.scale(t(e))}if("function"==typeof this.customColors)return this.customColors(e);var n=e.toString(),i=void 0;return this.customColors&&this.customColors.length>0&&(i=this.customColors.find(function(e){return e.name.toLowerCase()===n.toLowerCase()})),i?i.value:this.scale(e)},e.prototype.getLinearGradientStops=function(e,t){void 0===t&&(t=this.domain[0]);var n=NA().domain(this.domain).range([0,1]),i=iA().domain(this.colorDomain).range([0,1]),r=this.getColor(e),a=n(t),o=this.getColor(t),s=n(e),l=1,c=a,u=[];for(u.push({color:o,offset:a,originalOffset:a,opacity:1});c<s&&l<this.colorDomain.length;){var d=this.colorDomain[l],h=i(d);if(h<=a)l++;else{if(h.toFixed(4)>=(s-i.bandwidth()).toFixed(4))break;u.push({color:d,offset:h,opacity:1}),c=h,l++}}if(u[u.length-1].offset<100&&u.push({color:r,offset:s,opacity:1}),s===a)u[0].offset=0,u[1].offset=100;else if(100!==u[u.length-1].offset)for(var f=0,p=u;f<p.length;f++){var m=p[f];m.offset=(m.offset-a)/(s-a)*100}return u},e}(),Ej=function(){function e(){this.orientation="vertical"}return e.prototype.ngOnChanges=function(e){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%","horizontal"===this.orientation?this.x2="100%":"vertical"===this.orientation&&(this.y1="100%")},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"orientation",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"name",void 0),qH([Object(c.A)(),GH("design:type",Array)],e.prototype,"stops",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Xb({type:e,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[c.Nb],attrs:LH,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(e,t){1&e&&(c.wc(),c.jc(0,"linearGradient",0),c.Yc(1,OH,1,5,"stop",1),c.ic()),2&e&&(c.Dc("id",t.name),c.Qb("x1",t.x1)("y1",t.y1)("x2",t.x2)("y2",t.y2),c.Pb(1),c.Dc("ngForOf",t.stops))},directives:[l.l],encapsulation:2,changeDetection:0}),e}();"undefined"!=typeof window?window:"undefined"!=typeof global&&global;var Aj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[l.c,Dj,lj],l.c,Dj,lj]}),e}(),Pj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj]]}),e}(),Lj=function(){function e(e){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new c.s,this.activate=new c.s,this.deactivate=new c.s,this.initialized=!1,this.hasGradient=!1,this.hideBar=!1,this.element=e.nativeElement}var t;return e.prototype.ngOnChanges=function(e){this.initialized?this.update():(this.loadAnimation(),this.initialized=!0)},e.prototype.update=function(){this.gradientId="grad"+gj().toString(),this.gradientFill="url(#"+this.gradientId+")",this.gradient||this.stops?(this.gradientStops=this.getGradient(),this.hasGradient=!0):this.hasGradient=!1,this.updatePathEl(),this.checkToHideBar()},e.prototype.loadAnimation=function(){this.path=this.getStartingPath(),setTimeout(this.update.bind(this),100)},e.prototype.updatePathEl=function(){var e,t=(e=this.element,"string"==typeof e?new CO([[document.querySelector(e)]],[document.documentElement]):new CO([[e]],kO)).select(".bar"),n=this.getPath();this.animations?t.transition().duration(500).attr("d",n):t.attr("d",n)},e.prototype.getGradient=function(){return this.stops?this.stops:[{offset:0,color:this.fill,opacity:this.getStartOpacity()},{offset:100,color:this.fill,opacity:1}]},e.prototype.getStartingPath=function(){if(!this.animations)return this.getPath();var e,t=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(t=Math.min(this.height,t),e=xj(this.x,this.y+this.height,this.width,1,0,this.edges)):"horizontal"===this.orientation&&(t=Math.min(this.width,t),e=xj(this.x,this.y,1,this.height,0,this.edges)):"vertical"===this.orientation?e=xj(this.x,this.y+this.height,this.width,1,0,this.edges):"horizontal"===this.orientation&&(e=xj(this.x,this.y,1,this.height,0,this.edges)),e},e.prototype.getPath=function(){var e,t=this.getRadius();return this.roundEdges?"vertical"===this.orientation?(t=Math.min(this.height,t),e=xj(this.x,this.y,this.width,this.height,t,this.edges)):"horizontal"===this.orientation&&(t=Math.min(this.width,t),e=xj(this.x,this.y,this.width,this.height,t,this.edges)):e=xj(this.x,this.y,this.width,this.height,t,this.edges),e},e.prototype.getRadius=function(){var e=0;return this.roundEdges&&this.height>5&&this.width>5&&(e=Math.floor(Math.min(5,this.height/2,this.width/2))),e},e.prototype.getStartOpacity=function(){return this.roundEdges?.2:.5},Object.defineProperty(e.prototype,"edges",{get:function(){var e=[!1,
1!1,!1,!1];return this.roundEdges&&("vertical"===this.orientation?e=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:"horizontal"===this.orientation&&(e=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),e},enumerable:!0,configurable:!0}),e.prototype.onMouseEnter=function(){this.activate.emit(this.data)},e.prototype.onMouseLeave=function(){this.deactivate.emit(this.data)},e.prototype.checkToHideBar=function(){this.hideBar=this.noBarWhenZero&&("vertical"===this.orientation&&0===this.height||"horizontal"===this.orientation&&0===this.width)},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"fill",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"data",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"width",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"height",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"x",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"y",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"orientation",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"roundEdges",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"gradient",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"offset",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"isActive",void 0),qH([Object(c.A)(),GH("design:type",Array)],e.prototype,"stops",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"animations",void 0),qH([Object(c.A)(),GH("design:type",String)],e.prototype,"ariaLabel",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"noBarWhenZero",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"select",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"activate",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"deactivate",void 0),qH([Object(c.u)("mouseenter"),GH("design:type",Function),GH("design:paramtypes",[]),GH("design:returntype",void 0)],e.prototype,"onMouseEnter",null),qH([Object(c.u)("mouseleave"),GH("design:type",Function),GH("design:paramtypes",[]),GH("design:returntype",void 0)],e.prototype,"onMouseLeave",null),(e=qH([GH("design:paramtypes",["function"==typeof(t=void 0!==c.q&&c.q)?t:Object])],e)).\u0275fac=function(n){return new(n||e)(c.dc("function"==typeof(t=void 0!==c.q&&c.q)?t:Object))},e.\u0275cmp=c.Xb({type:e,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(e,t){1&e&&c.tc("mouseenter",function(){return t.onMouseEnter()})("mouseleave",function(){return t.onMouseLeave()})},inputs:{roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",animations:"animations",noBarWhenZero:"noBarWhenZero",fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",stops:"stops",ariaLabel:"ariaLabel"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[c.Nb],attrs:jH,decls:2,vars:8,consts:[[4,"ngIf"],["stroke","none","role","img","tabIndex","-1",1,"bar",3,"click"],["ngx-charts-svg-linear-gradient","",3,"orientation","name","stops"]],template:function(e,t){1&e&&(c.Yc(0,FH,2,3,"defs",0),c.wc(),c.jc(1,"path",1),c.tc("click",function(){return t.select.emit(t.data)}),c.ic()),2&e&&(c.Dc("ngIf",t.hasGradient),c.Pb(1),c.Vb("active",t.isActive)("hidden",t.hideBar),c.Qb("d",t.path)("aria-label",t.ariaLabel)("fill",t.hasGradient?t.gradientFill:t.fill))},directives:[l.m,Ej],encapsulation:2,changeDetection:0}),e}(),Oj=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.legend=!1,t.legendTitle="Legend",t.legendPosition="right",t.tooltipDisabled=!1,t.showGridLines=!0,t.activeEntries=[],t.trimXAxisTicks=!0,t.trimYAxisTicks=!0,t.rotateXAxisTicks=!0,t.maxXAxisTickLength=16,t.maxYAxisTickLength=16,t.barPadding=8,t.roundDomains=!1,t.roundEdges=!0,t.showDataLabel=!1,t.noBarWhenZero=!0,t.activate=new c.s,t.deactivate=new c.s,t.margin=[10,20,10,20],t.xAxisHeight=0,t.yAxisWidth=0,t.dataLabelMaxWidth={negative:0,positive:0},t}var n,i,r,a;return WH(t,e),t.prototype.update=function(){e.prototype.update.call(this),this.showDataLabel||(this.dataLabelMaxWidth={negative:0,positive:0}),this.margin=[10,20+this.dataLabelMaxWidth.positive,10,20+this.dataLabelMaxWidth.negative],this.dims=function(e){var t,n=e.margins,i=e.showXAxis,r=e.showYAxis,a=e.xAxisHeight,o=e.yAxisWidth,s=void 0===o?0:o,l=e.showXLabel,c=e.showYLabel,u=e.showLegend,d=e.legendType,h=e.legendPosition,f=e.columns,p=void 0===f?12:f,m=n[3],g=e.width,v=e.height-n[0]-n[2];return void 0!==u&&u&&"right"===(void 0===h?"right":h)&&(p-="ordinal"===(void 0===d?"ordinal":d)?2:1),g=(g=g*p/12)-n[1]-n[3],void 0!==i&&i&&(v-=5,v-=void 0===a?0:a,void 0!==l&&l&&(v-=t=30)),void 0!==r&&r&&(g-=5,g-=s,m+=s,m+=10,void 0!==c&&c&&(g-=t=30,m+=t)),g=Math.max(0,g),v=Math.max(0,v),{width:Math.floor(g),height:Math.floor(v),xOffset:Math.floor(m)}}({width:this.width,height:this.height,margins:this.margin,showXAxis:this.xAxis,showYAxis:this.yAxis,xAxisHeight:this.xAxisHeight,yAxisWidth:this.yAxisWidth,showXLabel:this.showXAxisLabel,showYLabel:this.showYAxisLabel,showLegend:this.legend,legendT
1ype:this.schemeType,legendPosition:this.legendPosition}),this.xScale=this.getXScale(),this.yScale=this.getYScale(),this.setColors(),this.legendOptions=this.getLegendOptions(),this.transform="translate("+this.dims.xOffset+" , "+this.margin[0]+")"},t.prototype.getXScale=function(){this.xDomain=this.getXDomain();var e=NA().range([0,this.dims.width]).domain(this.xDomain);return this.roundDomains?e.nice():e},t.prototype.getYScale=function(){this.yDomain=this.getYDomain();var e=this.yDomain.length/(this.dims.height/this.barPadding+1);return iA().rangeRound([0,this.dims.height]).paddingInner(e).domain(this.yDomain)},t.prototype.getXDomain=function(){var e=this.results.map(function(e){return e.value});return[this.xScaleMin?Math.min.apply(Math,[this.xScaleMin].concat(e)):Math.min.apply(Math,[0].concat(e)),this.xScaleMax?Math.max.apply(Math,[this.xScaleMax].concat(e)):Math.max.apply(Math,[0].concat(e))]},t.prototype.getYDomain=function(){return this.results.map(function(e){return e.name})},t.prototype.onClick=function(e){this.select.emit(e)},t.prototype.setColors=function(){this.colors=new Tj(this.scheme,this.schemeType,"ordinal"===this.schemeType?this.yDomain:this.xDomain,this.customColors)},t.prototype.getLegendOptions=function(){var e={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return"ordinal"===e.scaleType?(e.domain=this.yDomain,e.colors=this.colors,e.title=this.legendTitle):(e.domain=this.xDomain,e.colors=this.colors.scale),e},t.prototype.updateYAxisWidth=function(e){this.yAxisWidth=e.width,this.update()},t.prototype.updateXAxisHeight=function(e){this.xAxisHeight=e.height,this.update()},t.prototype.onDataLabelMaxWidthChanged=function(e){var t=this;e.size.negative?this.dataLabelMaxWidth.negative=Math.max(this.dataLabelMaxWidth.negative,e.size.width):this.dataLabelMaxWidth.positive=Math.max(this.dataLabelMaxWidth.positive,e.size.width),e.index===this.results.length-1&&setTimeout(function(){return t.update()})},t.prototype.onActivate=function(e){this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value&&t.series===e.series})>-1||(this.activeEntries=[e].concat(this.activeEntries),this.activate.emit({value:e,entries:this.activeEntries}))},t.prototype.onDeactivate=function(e){var t=this.activeEntries.findIndex(function(t){return t.name===e.name&&t.value===e.value&&t.series===e.series});this.activeEntries.splice(t,1),this.activeEntries=this.activeEntries.slice(),this.deactivate.emit({value:e,entries:this.activeEntries})},qH([Object(c.A)(),GH("design:type",Object)],t.prototype,"legend",void 0),qH([Object(c.A)(),GH("design:type",String)],t.prototype,"legendTitle",void 0),qH([Object(c.A)(),GH("design:type",String)],t.prototype,"legendPosition",void 0),qH([Object(c.A)(),GH("design:type",Object)],t.prototype,"xAxis",void 0),qH([Object(c.A)(),GH("design:type",Object)],t.prototype,"yAxis",void 0),qH([Object(c.A)(),GH("design:type",Object)],t.prototype,"showXAxisLabel",void 0),qH([Object(c.A)(),GH("design:type",Object)],t.prototype,"showYAxisLabel",void 0),qH([Object(c.A)(),GH("design:type",Object)],t.prototype,"xAxisLabel",void 0),qH([Object(c.A)(),GH("design:type",Object)],t.prototype,"yAxisLabel",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],t.prototype,"tooltipDisabled",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],t.prototype,"gradient",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],t.prototype,"showGridLines",void 0),qH([Object(c.A)(),GH("design:type",Array)],t.prototype,"activeEntries",void 0),qH([Object(c.A)(),GH("design:type",String)],t.prototype,"schemeType",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],t.prototype,"trimXAxisTicks",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],t.prototype,"trimYAxisTicks",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],t.prototype,"rotateXAxisTicks",void 0),qH([Object(c.A)(),GH("design:type",Number)],t.prototype,"maxXAxisTickLength",void 0),qH([Object(c.A)(),GH("design:type",Number)],t.prototype,"maxYAxisTickLength",void 0),qH([Object(c.A)(),GH("design:type",Object)],t.prototype,"xAxisTickFormatting",void 0),qH([Ob
1ject(c.A)(),GH("design:type",Object)],t.prototype,"yAxisTickFormatting",void 0),qH([Object(c.A)(),GH("design:type",Array)],t.prototype,"xAxisTicks",void 0),qH([Object(c.A)(),GH("design:type",Array)],t.prototype,"yAxisTicks",void 0),qH([Object(c.A)(),GH("design:type",Object)],t.prototype,"barPadding",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],t.prototype,"roundDomains",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],t.prototype,"roundEdges",void 0),qH([Object(c.A)(),GH("design:type",Number)],t.prototype,"xScaleMax",void 0),qH([Object(c.A)(),GH("design:type",Number)],t.prototype,"xScaleMin",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],t.prototype,"showDataLabel",void 0),qH([Object(c.A)(),GH("design:type",Object)],t.prototype,"dataLabelFormatting",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],t.prototype,"noBarWhenZero",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(n=void 0!==c.s&&c.s)?n:Object)],t.prototype,"activate",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(i=void 0!==c.s&&c.s)?i:Object)],t.prototype,"deactivate",void 0),qH([Object(c.n)("tooltipTemplate"),GH("design:type","function"==typeof(r=void 0!==c.X&&c.X)?r:Object)],t.prototype,"tooltipTemplate",void 0),t.\u0275fac=function(e){return(a||(a=c.lc(t)))(e||t)},t.\u0275cmp=c.Xb({type:t,selectors:[["ngx-charts-bar-horizontal"]],contentQueries:function(e,t,n){var i;1&e&&c.Wb(n,IH,5),2&e&&c.Mc(i=c.uc())&&(t.tooltipTemplate=i.first)},inputs:{activeEntries:"activeEntries",legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",xScaleMax:"xScaleMax",xScaleMin:"xScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[c.Mb],decls:5,vars:25,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelClick","legendLabelActivate","legendLabelDeactivate"],[1,"bar-chart","chart"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged",4,"ngIf"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged",4,"ngIf"],["ngx-charts-series-horizontal","",3,"xScale","yScale","colors","series","dims","gradient","tooltipDisabled","tooltipTemplate","activeEntries","roundEdges","animations","showDataLabel","dataLabelFormatting","noBarWhenZero","select","activate","deactivate","dataLabelWidthChanged"],["ngx-charts-x-axis","",3,"xScale","dims","showGridLines","showLabel","labelText","trimTicks","rotateTicks","maxTickLength","tickFormatting","ticks","dimensionsChanged"],["ngx-charts-y-axis","",3,"yScale","dims","showLabel","labelText","trimTicks","maxTickLength","tickFormatting","ticks","yAxisOffset","dimensionsChanged"]],template:function(e,t){1&e&&(c.jc(0,"ngx-charts-chart",0),c.tc("legendLabelClick",function(e){return t.onClick(e)})("legendLabelActivate",function(e){return t.onActivate(e)})("legendLabelDeactivate",function(e){return t.onDeactivate(e)}),c.wc(),c.jc(1,"g",1),c.Yc(2,RH,1,10,"g",2),c.Yc(3,NH,1,9,"g",3),c.jc(4,"g",4),c.tc("select",function(e){return t.onClick(e)})("activate",function(e){return t.onActivate(e)})("deactivate",function(e){return t.onDeactivate(e)})("dataLabelWidthChanged",function(e){return t.onDataLabelMaxWidthChanged(e)}),c.ic(),c.ic(),c.ic()),2&e&&(c.Dc("view",c.Ic(22,HH,t.width,t.height))("showLegend",t.legend)("legendOptions",t.legendOptions)("activeEntries",t.activeEntries)("animations",t.animations),c.Pb(1),c.Qb("transform",t.transform),c.Pb(1),c.Dc("ngIf",t.xAxis),c.Pb(1),c.Dc("ngIf",t.yAxis),c.Pb(1),c.Dc("xScale",t.xScale)("yScale",t.yScale)("colors",t.colors)("series",t.results)("dims",t.dims)("gradient",t.gradient)("tooltipDisabled",t.tooltipDisabled)("tooltipTemplate",t.tooltipTemplate)("activeEntries",t.activeEntries)("roundEdges",t.roundEdges)("animations",t.animations)("showDataLabel",t.showDataLabel)("dataLabelFormatting",t.dataLabelFormatting)("noBarWhenZero",t.noBarWhenZero))},directives:function(){return[cj,l.m,Hj,Cj,Mj]},styles:[".ngx-charts{float:left;overflow:visible}
1.ngx-charts .arc,.ngx-charts .bar,.ngx-charts .circle{cursor:pointer}.ngx-charts .arc.active,.ngx-charts .arc:hover,.ngx-charts .bar.active,.ngx-charts .bar:hover,.ngx-charts .card.active,.ngx-charts .card:hover,.ngx-charts .cell.active,.ngx-charts .cell:hover{opacity:.8;transition:opacity .1s ease-in-out}.ngx-charts .arc:focus,.ngx-charts .bar:focus,.ngx-charts .card:focus,.ngx-charts .cell:focus{outline:0}.ngx-charts .arc.hidden,.ngx-charts .bar.hidden,.ngx-charts .card.hidden,.ngx-charts .cell.hidden{display:none}.ngx-charts g:focus{outline:0}.ngx-charts .area-series.inactive,.ngx-charts .line-series-range.inactive,.ngx-charts .line-series.inactive,.ngx-charts .polar-series-area.inactive,.ngx-charts .polar-series-path.inactive{transition:opacity .1s ease-in-out;opacity:.2}.ngx-charts .line-highlight{display:none}.ngx-charts .line-highlight.active{display:block}.ngx-charts .area{opacity:.6}.ngx-charts .circle:hover{cursor:pointer}.ngx-charts .label{font-size:12px;font-weight:400}.ngx-charts .tooltip-anchor{fill:#000}.ngx-charts .gridline-path{stroke:#ddd;stroke-width:1;fill:none}.ngx-charts .refline-path{stroke:#a8b2c7;stroke-width:1;stroke-dasharray:5;stroke-dashoffset:5}.ngx-charts .refline-label{font-size:9px}.ngx-charts .reference-area{fill-opacity:.05;fill:#000}.ngx-charts .gridline-path-dotted{stroke:#ddd;stroke-width:1;fill:none;stroke-dasharray:1,20;stroke-dashoffset:3}.ngx-charts .grid-panel rect{fill:none}.ngx-charts .grid-panel.odd rect{fill:rgba(0,0,0,.05)}"],encapsulation:2,changeDetection:0}),t}(bj),Ij=function(e){return e.positive="positive",e.negative="negative",e}({}),Hj=function(){function e(){this.barsForDataLabels=[],this.type="standard",this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new c.s,this.activate=new c.s,this.deactivate=new c.s,this.dataLabelWidthChanged=new c.s}var t;return e.prototype.ngOnChanges=function(e){this.update()},e.prototype.update=function(){var e,t=this;this.updateTooltipSettings();var n,i,r=((e={})[Ij.positive]=0,e[Ij.negative]=0,e);n=Ij.positive,"normalized"===this.type&&(i=this.series.map(function(e){return e.value}).reduce(function(e,t){return e+t},0));var a=Math.max(this.xScale.domain()[0],0);this.bars=this.series.map(function(e,o){var s=e.value,l=e.name,c=uj(l);n=s>0?Ij.positive:Ij.negative;var u={value:s,label:l,roundEdges:t.roundEdges,data:e,formattedLabel:c};if(u.height=t.yScale.bandwidth(),"standard"===t.type)u.width=Math.abs(t.xScale(s)-t.xScale(a)),u.x=t.xScale(s<0?s:a),u.y=t.yScale(l);else if("stacked"===t.type){var d=(h=r[n])+s;r[n]+=s,u.width=t.xScale(d)-t.xScale(h),u.x=t.xScale(h),u.y=0,u.offset0=h,u.offset1=d}else if("normalized"===t.type){var h;d=(h=r[n])+s,r[n]+=s,i>0?(h=100*h/i,d=100*d/i):(h=0,d=0),u.width=t.xScale(d)-t.xScale(h),u.x=t.xScale(h),u.y=0,u.offset0=h,u.offset1=d,s=(d-h).toFixed(2)+"%"}"ordinal"===t.colors.scaleType?u.color=t.colors.getColor(l):"standard"===t.type?(u.color=t.colors.getColor(s),u.gradientStops=t.colors.getLinearGradientStops(s)):(u.color=t.colors.getColor(u.offset1),u.gradientStops=t.colors.getLinearGradientStops(u.offset1,u.offset0));var f=c;return u.ariaLabel=c+" "+s.toLocaleString(),t.seriesName&&(f=t.seriesName+" \u2022 "+c,u.data.series=t.seriesName,u.ariaLabel=t.seriesName+" "+u.ariaLabel),u.tooltipText=t.tooltipDisabled?void 0:'\n <span class="tooltip-label">'+f+'</span>\n <span class="tooltip-val">'+s.toLocaleString()+"</span>\n ",u}),this.updateDataLabels()},e.prototype.updateDataLabels=function(){var e=this;if("stacked"===this.type){this.barsForDataLabels=[];var t={};t.series=this.seriesName;var n=this.series.map(function(e){return e.value}).reduce(function(e,t){return t>0?e+t:e},0),i=this.series.map(function(e){return e.value}).reduce(function(e,t){return t<0?e+t:e},0);t.total=n+i,t.x=0,t.y=0,t.width=this.xScale(t.total>0?n:i),t.height=this.yScale.bandwidth(),this.barsForDataLabels.push(t)}else this.barsForDataLabels=this.series.map(function(t){var n={};return n.series=e.seriesName?e.seriesName:t.name,n.total=t.value,n.x=e.xScale(0),n.y=e.yScale(t.name),n.width=e.xScale(n.total)-e.xScale(0),n.height=e.yScale.bandwidth(),n})},e.prototype.updateTooltipSettings=function(){this.tooltipPlacement=this.tooltipDisabled?void 0:"top",this.tooltipType=this.tooltipDisabled?void 0:"tooltip"},e.prototype.isActive=function(e){return!!this.activeEntries&&void 0!==this.activeEntries.find(function(t){return e.name===t.name&&e.series===t.series})},e.prototype.trackBy=function(e,t){return t.label},e.prototype.trackDataLabelBy=function(e,t){return e+"#"+t.series+"#"+t.total},e.prototype.click=function(e){this.select.emit(e)}
1,qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"dims",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"type",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"series",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"xScale",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"yScale",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"colors",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"tooltipDisabled",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"gradient",void 0),qH([Object(c.A)(),GH("design:type",Array)],e.prototype,"activeEntries",void 0),qH([Object(c.A)(),GH("design:type",String)],e.prototype,"seriesName",void 0),qH([Object(c.A)(),GH("design:type","function"==typeof(t=void 0!==c.X&&c.X)?t:Object)],e.prototype,"tooltipTemplate",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"roundEdges",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"animations",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"showDataLabel",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"dataLabelFormatting",void 0),qH([Object(c.A)(),GH("design:type",Boolean)],e.prototype,"noBarWhenZero",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"select",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"activate",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"deactivate",void 0),qH([Object(c.L)(),GH("design:type",Object)],e.prototype,"dataLabelWidthChanged",void 0),e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=c.Xb({type:e,selectors:[["g","ngx-charts-series-horizontal",""]],inputs:{type:"type",tooltipDisabled:"tooltipDisabled",animations:"animations",showDataLabel:"showDataLabel",noBarWhenZero:"noBarWhenZero",dims:"dims",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",dataLabelFormatting:"dataLabelFormatting"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelWidthChanged:"dataLabelWidthChanged"},features:[c.Nb],attrs:BH,decls:2,vars:3,consts:[["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate",4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["ngx-charts-bar","","ngx-tooltip","",3,"width","height","x","y","fill","stops","data","orientation","roundEdges","gradient","isActive","ariaLabel","animations","tooltipDisabled","tooltipPlacement","tooltipType","tooltipTitle","tooltipTemplate","tooltipContext","noBarWhenZero","select","activate","deactivate"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged",4,"ngFor","ngForOf","ngForTrackBy"],["ngx-charts-bar-label","",3,"barX","barY","barWidth","barHeight","value","valueFormatting","orientation","dimensionsChanged"]],template:function(e,t){1&e&&(c.Yc(0,YH,1,21,"g",0),c.Yc(1,VH,2,2,"g",1)),2&e&&(c.Dc("ngForOf",t.bars)("ngForTrackBy",t.trackBy),c.Pb(1),c.Dc("ngIf",t.showDataLabel))},directives:function(){return[l.l,l.m,Lj,sj,jj]},encapsulation:2,data:{animation:[mt("animationState",[wt(":leave",[yt({opacity:1}),gt(500,yt({opacity:0}
1))])])]},changeDetection:0}),e}(),jj=function(){function e(e){this.dimensionsChanged=new c.s,this.horizontalPadding=2,this.verticalPadding=5,this.element=e.nativeElement}var t,n;return e.prototype.ngOnChanges=function(e){this.update()},e.prototype.getSize=function(){return{height:this.element.getBoundingClientRect().height,width:this.element.getBoundingClientRect().width,negative:this.value<0}},e.prototype.ngAfterViewInit=function(){this.dimensionsChanged.emit(this.getSize())},e.prototype.update=function(){this.formatedValue=this.valueFormatting?this.valueFormatting(this.value):uj(this.value),"horizontal"===this.orientation?(this.x=this.barX+this.barWidth,this.value<0?(this.x=this.x-this.horizontalPadding,this.textAnchor="end"):(this.x=this.x+this.horizontalPadding,this.textAnchor="start"),this.y=this.barY+this.barHeight/2):(this.x=this.barX+this.barWidth/2,this.y=this.barY+this.barHeight,this.value<0?(this.y=this.y+this.verticalPadding,this.textAnchor="end"):(this.y=this.y-this.verticalPadding,this.textAnchor="start"),this.transform="rotate(-45, "+this.x+" , "+this.y+")")},qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"value",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"valueFormatting",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"barX",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"barY",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"barWidth",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"barHeight",void 0),qH([Object(c.A)(),GH("design:type",Object)],e.prototype,"orientation",void 0),qH([Object(c.L)(),GH("design:type","function"==typeof(t=void 0!==c.s&&c.s)?t:Object)],e.prototype,"dimensionsChanged",void 0),(e=qH([GH("design:paramtypes",["function"==typeof(n=void 0!==c.q&&c.q)?n:Object])],e)).\u0275fac=function(t){return new(t||e)(c.dc("function"==typeof(n=void 0!==c.q&&c.q)?n:Object))},e.\u0275cmp=c.Xb({type:e,selectors:[["g","ngx-charts-bar-label",""]],inputs:{value:"value",valueFormatting:"valueFormatting",barX:"barX",barY:"barY",barWidth:"barWidth",barHeight:"barHeight",orientation:"orientation"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[c.Nb],attrs:UH,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(e,t){1&e&&(c.wc(),c.jc(0,"text",0),c.ad(1),c.ic()),2&e&&(c.Qb("text-anchor",t.textAnchor)("transform",t.transform)("x",t.x)("y",t.y),c.Pb(1),c.cd(" ",t.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),e}(),Fj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj]]}),e}(),Rj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj]]}),e}(),Nj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj]]}),e}(),Bj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj]]}),e}(),Yj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj]]}),e}();Math;var zj,Vj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj]]}),e}(),Uj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj,Vj,Yj]]}),e}(),$j=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj]]}),e}(),Wj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj]]}),e}(),qj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[[Aj,Vj,Fj]]}),e}(),Gj=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=c.bc({type:e}),e.\u0275inj=c.ac({imports:[Aj,Pj,Fj,Rj,Nj,Bj,Yj,Uj,$j,Vj,Wj,qj]}),e}(),Xj=function(e){return[e,400]},Qj=((zj=function(){function e(){_classCallCheck(this,e),this.myEvent=new c.s,this.update$=new oe.a}return _createClass(e,[{key:"ngOnInit",value:function(){null!=this.statisticsIn&&null!=this.statisticsIn.listSymbols&&(this.statistics=this.statisticsIn.listSymbols)}},{key:"onSelect",value:function(e){var t=this.statistics.find(function(t){return t.name==e.name});this.myEvent.emit(t)}},{key:"ngAfterViewInit",value:function(){}},{key:"ngAfterContentInit",value:function(){this.widthChart=this.container.clientWidth-50}},{key:"ngOnDestroy",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||zj)},zj.\u0275cmp=c.Xb({type:zj,selectors:[["app-statistics"]],inputs:{statisticsIn:"statisticsIn",container:"container"},outputs:{myEvent:"myEvent"},decls:1,vars:11,consts:[[3,"view","results","xAxisLabel","legendTitle","yAxisLabel","showXAxisLabel","showYAxisLabel","xAxis","yAxis","select"]],template:function(e,t){1&e&&(c.jc(0,"ngx-charts-bar-horizontal",0),c.tc("select",function(e){return t.onSelect(e)}),c.ic()),2&e&&c.Dc("view",c.Hc(9,Xj,t.widthChart))("results",t.statistics)("xAxisLabel","Profit")("legendTitle","Product Sale Chart")("yAxisLabel","Symbols")("showXAxisLabel",!0)("showYAxisLabel",!0)("xAxis",!0)("yAxis",!0)}
1,directives:[Oj],styles:["table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#00f}"]}),zj),Kj=["container"],Zj=["editor"];function Jj(e,t){if(1&e){var n=c.kc();c.jc(0,"div",9),c.tc("matSortChange",function(e){return c.Qc(n),c.xc().sortData(e)}),c.jc(1,"div",10),c.jc(2,"div",11),c.ad(3,"Balance"),c.ic(),c.jc(4,"div",12),c.ad(5,"Equity"),c.ic(),c.jc(6,"div",13),c.ad(7,"Profit"),c.ic(),c.jc(8,"div",14),c.ad(9,"Gain/Days"),c.ic(),c.jc(10,"div",15),c.ad(11,"TotalDays"),c.ic(),c.jc(12,"div",16),c.ad(13,"DropDown"),c.ic(),c.jc(14,"div",17),c.ad(15,"ProfitFactor"),c.ic(),c.jc(16,"div",18),c.ad(17,"MaxDropDown"),c.ic(),c.jc(18,"div",19),c.ad(19,"Gain"),c.ic(),c.ic(),c.ic(),c.jc(20,"div",20),c.tc("matSortChange",function(e){return c.Qc(n),c.xc().sortData(e)}),c.jc(21,"div",10),c.jc(22,"div",11),c.ad(23,"Balance"),c.ic(),c.jc(24,"div",12),c.ad(25,"Equity"),c.ic(),c.jc(26,"div",13),c.ad(27,"Profit"),c.ic(),c.ic(),c.jc(28,"div",10),c.jc(29,"div",14),c.ad(30,"Gain/Days"),c.ic(),c.jc(31,"div",15),c.ad(32,"TotalDays"),c.ic(),c.jc(33,"div",16),c.ad(34,"DropDown"),c.ic(),c.ic(),c.jc(35,"div",10),c.jc(36,"div",17),c.ad(37,"ProfitFactor"),c.ic(),c.jc(38,"div",18),c.ad(39,"MaxDropDown"),c.ic(),c.jc(40,"div",19),c.ad(41,"Gain"),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Ec("matSortActive",i.name),c.Ec("matSortDirection",i.direction),c.Pb(20),c.Ec("matSortActive",i.name),c.Ec("matSortDirection",i.direction)}}function eF(e,t){if(1&e){var n=c.kc();c.jc(0,"pagination-controls",21),c.tc("pageChange",function(e){return c.Qc(n),c.xc().ChangePage(e)}),c.ic()}}function tF(e,t){if(1&e&&(c.jc(0,"div",22),c.ad(1),c.ic()),2&e){var n=c.xc().$implicit;c.Pb(1),c.bd(n.userName)}}function nF(e,t){if(1&e&&(c.jc(0,"div",57),c.ad(1),c.yc(2,"translate"),c.ic()),2&e){var n=c.xc().$implicit,i=c.xc();c.Pb(1),c.dd("",c.zc(2,2,"titles.Subscribers"),": ",i.GetCountSubscribers(n),"")}}function iF(e,t){if(1&e){var n=c.kc();c.jc(0,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc(3).$implicit;return c.xc().EditText(e)}),c.yc(1,"translate"),c.ad(2),c.yc(3,"translate"),c.ic()}2&e&&(c.Ec("title",c.zc(1,2,"titles.Edit")),c.Pb(2),c.cd(" ",c.zc(3,4,"titles.Edit")," "))}function rF(e,t){if(1&e&&(c.jc(0,"table",62),c.jc(1,"tr"),c.jc(2,"td"),c.Yc(3,iF,4,6,"button",63),c.ic(),c.ic(),c.ic()),2&e){var n=c.xc(2).$implicit;c.Pb(3),c.Dc("ngIf",!n.isEdit)}}function aF(e,t){if(1&e&&c.ec(0,"app-editor",65,66),2&e){var n=c.xc(2).$implicit,i=c.xc();c.Ec("id",n.accountId),c.Ec("html",i.GetHtml2(n))}}function oF(e,t){if(1&e){var n=c.kc();c.jc(0,"div",67),c.tc("onCreate",function(){c.Qc(n);var e=c.xc(2).$implicit;return c.xc().UpdateGraph(e)}),c.ic()}if(2&e){var i=c.xc(2).$implicit,r=c.xc();c.Dc("innerHTML",r.GetHtml(i),c.Rc)}}function sF(e,t){if(1&e){var n=c.kc();c.jc(0,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc(3).$implicit;return c.xc().CancelText(e)}),c.yc(1,"translate"),c.ad(2),c.yc(3,"translate"),c.ic()}2&e&&(c.Ec("title",c.zc(1,2,"titles.Cancel")),c.Pb(2),c.cd(" ",c.zc(3,4,"titles.Cancel")," "))}function lF(e,t){1&e&&c.ec(0,"i",72)}function cF(e,t){if(1&e){var n=c.kc();c.jc(0,"button",32),c.tc("click",function(){c.Qc(n);var e=c.xc(3).$implicit;return c.xc().SaveText(e)}),c.yc(1,"translate"),c.Yc(2,lF,1,0,"i",71),c.ad(3),c.yc(4,"translate"),c.ic()}if(2&e){var i=c.xc(3).$implicit;c.Ec("title",c.zc(1,4,"titles.Save")),c.Dc("disabled",i.isSaving),c.Pb(2),c.Dc("ngIf",i.isSaving),c.Pb(1),c.cd(" ",c.zc(4,6,"titles.Save")," ")}}function uF(e,t){if(1&e&&(c.jc(0,"table",68),c.jc(1,"tr"),c.jc(2,"td",69),c.Yc(3,sF,4,6,"button",63),c.ic(),c.jc(4,"td",69),c.Yc(5,cF,5,8,"button",70),c.ic(),c.ic(),c.ic()),2&e){var n=c.xc(2).$implicit;c.Pb(3),c.Dc("ngIf",n.isEdit),c.Pb(2),c.Dc("ngIf",n.isEdit)}}function dF(e,t){if(1&e&&(c.Yc(0,rF,4,1,"table",58),c.Yc(1,aF,2,2,"app-editor",59),c.Yc(2,oF,1,1,"div",60),c.Yc(3,uF,6,2,"table",61)),2&e){var n=c.xc().$implicit,i=c.xc();c.Dc("ngIf",i.isUserLoggedIn&&!i.isSignal),c.Pb(1),c.Dc("ngIf",n.isEdit),c.Pb(1),c.Dc("ngIf",!n.isEdit&&""!=i.GetHtml(n)&&null!=i.GetHtml(n)),c.Pb(1),c.Dc("ngIf",i.isUserLoggedIn)}}function hF(e,t){1&e&&c.ec(0,"div",73)}function fF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",74),c.jc(1,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().ShowTrading("",e,1)}),c.yc(2,"translate"),c.ec(3,"i",75),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,1,"titles.Trades")))}function pF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",31),c.jc(1,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoToDetaisHistory(e)}),c.yc(2,"translate"),c.ec(3,"i",76),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,1,"titles.DetailsHistory")))}function mF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",31),c.jc(1,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoToDetais(e)}),c.yc(2,"translate"),c.ec(3,"i",77),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,1,"titles.Details")))}function gF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",31),c.jc(1,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoToStatisticsNow(e)}),c.yc(2,"translate"),c.ec(3,"i",78),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,1,"titles.StatisticNow")))}function vF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",31),c.jc(1,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoToStatistics(e)}),c.yc(2,"translate"),c.ec(3,"i",79),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,1,"titles.Statistic")))}function yF(e,t){if(1&e){var n=c.kc();c.jc(0,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc(2).$implicit;return c.xc().Close(e)}),c.yc(1,"translate"),c.ec(2,"i",80),c.ic()}2&e&&c.Ec("title",c.zc(1,1,"titles.Delete"))}function bF(e,t){if(1&e&&(c.jc(0,"td",31),c.Yc(1,yF,3,3,"button",63),c.ic()),2&e){var n=c.xc(2);c.Pb(1),c.Dc("ngIf",n.isUserLoggedIn)}}function _F(e,t){if(1&e){var n=c.kc();c.jc(0,"td",74),c.jc(1,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().ShowTrading("",e,1)}),c.yc(2,"translate"),c.ec(3,"i",75),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,1,"titles.Trades")))}function wF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",31),c.jc(1,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoToDetaisHistory(e)}),c.yc(2,"translate"),c.ec(3,"i",76),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,1,"titles.DetailsHistory")))}function kF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",31),c.jc(1,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoToDetais(e)}),c.yc(2,"translate"),c.ec(3,"i",77),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,1,"titles.Details")))}function CF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",31),c.jc(1,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoToStatisticsNow(e)}),c.yc(2,"translate"),c.ec(3,"i",78),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,1,"titles.StatisticNow")))}function xF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",31),c.jc(1,"button",64),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoToStatistics(e)}),c.yc(2,"translate"),c.ec(3,"i",79),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,1,"titles.Statistic")))}function SF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",74),c.jc(1,"mat-slide-toggle",81),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().$implicit.isPrivateSignal=e})("change",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().SetPrivateSignal(e)}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit;c.Pb(1),c.Dc("ngModel",i.isPrivateSignal),c.Pb(1),c.bd(c.zc(3,2,"signal.PrivateSignal"))}}function MF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",74),c.jc(1,"mat-slide-toggle",81),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().$implicit.isPublicSignal=e})("change",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().SetPublicSignal(e)}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit;c.Pb(1),c.Dc("ngModel",i.isPublicSignal),c.Pb(1),c.bd(c.zc(3,2,"signal.PublicSignal"))}}function DF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",74),c.jc(1,"mat-slide-toggle",81),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().$implicit.isConnectSignal=e})("change",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().ConnectSignal(e)}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit;c.Pb(1),c.Dc("ngModel",i.isConnectSignal),c.Pb(1),c.bd(c.zc(3,2,"signal.Connect"))}}var TF=function(){return["/signals"]},EF=function(e){return{userName:e}};function AF(e,t){if(1&e&&(c.jc(0,"td",82),c.jc(1,"div",22),c.jc(2,"a",83),
1c.ad(3),c.ic(),c.ic(),c.ic()),2&e){var n=c.xc().$implicit;c.Pb(2),c.Dc("routerLink",c.Gc(3,TF))("queryParams",c.Hc(4,EF,n.userName)),c.Pb(1),c.bd(n.userName)}}function PF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",84),c.jc(1,"div"),c.jc(2,"button",85),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().Up(e)}),c.ec(3,"i",86),c.ic(),c.ic(),c.jc(4,"div"),c.jc(5,"button",85),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().Down(e)}),c.ec(6,"i",87),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.xc(2);c.Pb(2),c.Dc("disabled",i.isSortMode),c.Pb(3),c.Dc("disabled",i.isSortMode)}}function LF(e,t){1&e&&c.ec(0,"div",73)}function OF(e,t){if(1&e){var n=c.kc();c.jc(0,"table",88),c.jc(1,"tr"),c.jc(2,"td",31),c.jc(3,"button",89),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoToStatisticsNowSignal(e)}),c.yc(4,"translate"),c.ec(5,"i",78),c.ad(6),c.ic(),c.ic(),c.jc(7,"td",31),c.jc(8,"button",89),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoToStatisticsSignal(e)}),c.yc(9,"translate"),c.ec(10,"i",79),c.ad(11),c.ic(),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc();c.Pb(3),c.Ec("title",c.zc(4,6,"titles.StatisticNowSignal")),c.Dc("disabled",i.isStatisticsNowSignalDisabled),c.Pb(3),c.cd(" Signals ",r.CountStatisticsSignalNow(i)," "),c.Pb(2),c.Ec("title",c.zc(9,8,"titles.StatisticSignal")),c.Dc("disabled",i.isStatisticsSignalDisabled),c.Pb(3),c.cd(" Signals ",r.CountStatisticsSignal(i)," ")}}function IF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",90),c.jc(1,"mat-slide-toggle",81),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().$implicit.isPrivateSignal=e})("change",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().SetPrivateSignal(e)}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit;c.Pb(1),c.Dc("ngModel",i.isPrivateSignal),c.Pb(1),c.bd(c.zc(3,2,"signal.PrivateSignal"))}}function HF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",90),c.jc(1,"mat-slide-toggle",81),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().$implicit.isPublicSignal=e})("change",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().SetPublicSignal(e)}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit;c.Pb(1),c.Dc("ngModel",i.isPublicSignal),c.Pb(1),c.bd(c.zc(3,2,"signal.PublicSignal"))}}function jF(e,t){if(1&e){var n=c.kc();c.jc(0,"td",90),c.jc(1,"mat-slide-toggle",81),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().$implicit.isConnectSignal=e})("change",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().ConnectSignal(e)}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit;c.Pb(1),c.Dc("ngModel",i.isConnectSignal),c.Pb(1),c.bd(c.zc(3,2,"signal.Connect"))}}function FF(e,t){if(1&e&&(c.jc(0,"td",91),c.jc(1,"div",22),c.jc(2,"a",83),c.ad(3),c.ic(),c.ic(),c.ic()),2&e){var n=c.xc().$implicit;c.Pb(2),c.Dc("routerLink",c.Gc(3,TF))("queryParams",c.Hc(4,EF,n.userName)),c.Pb(1),c.bd(n.userName)}}function RF(e,t){1&e&&(c.jc(0,"div",96),c.jc(1,"div",97),c.ec(2,"i",72),c.jc(3,"span"),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(4),c.bd(c.zc(5,1,"titles.Loading")))}function NF(e,t){if(1&e){var n=c.kc();c.jc(0,"div",92),c.jc(1,"div",93),c.jc(2,"div",94),c.tc("onCreate",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().UpdateGraph(e)}),c.ic(),c.Yc(3,RF,6,3,"div",95),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc();c.Pb(2),c.Fc("id","chart",i.login,""),c.Pb(1),c.Dc("ngIf",r.isChartLoading(i.login))}}function BF(e,t){1&e&&(c.jc(0,"div",96),c.jc(1,"div",97),c.ec(2,"i",72),c.jc(3,"span"),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(4),c.bd(c.zc(5,1,"titles.Loading")))}function YF(e,t){if(1&e){var n=c.kc();c.jc(0,"div",92),c.jc(1,"div",93),c.jc(2,"div",94),c.tc("onCreate",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().UpdateGraph(e)}),c.ic(),c.Yc(3,BF,6,3,"div",95),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc();c.Pb(2),c.Fc("id","chartGain",i.login,""),c.Pb(1),c.Dc("ngIf",r.isChartLoading(i.login))}}function zF(e,t){if(1&e&&(c.jc(0,"div",98),c.jc(1,"div",99),c.ec(2,"div",100),c.jc(3,"span",101),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.jc(6,"div",99),c.ec(7,"div",102),c.jc(8,"span",101),c.ad(9),c.yc(10,"translate"),c.ic(),c.ic(),c.jc(11,"div",99),c.ec(12,"div",103),c.jc(13,"span",101),c.ad(14),c.yc(15,"translate"),c.ic(),c.ic(),c.jc(16,"div",99),c.ec(17,"div",104),c.jc(18,"span",101),c.ad(19),c.yc(20,"translate"),c.ic(),c.ic(),c.ic()),2&e){var n=c.xc().$implicit;c.Fc("id","legend",n.login,""),c.Pb(4),c.bd(c.zc(5,5,"titles.Balance")),c.Pb(5),c.bd(c.zc(10,7,"titles.Equity")),c.Pb(5),c.bd(c.zc(15,9,"titles.Deposits")),c.Pb(5),c.bd(c.zc(20,11,"titles.Withdrawals"))}}function VF(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"span",105),c.ad(2),c.yc(3,"translate"),c.ic(),c.jc(4,"div"),c.jc(5,"button",44),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoBack(e)}),c.ec(6,"i",45),c.ic(),c.ic(),c.jc(7,"app-details",106),c.tc("myEvent",function(e){c.Qc(n);var t=c.xc().$implicit;return c.xc().ShowTrading(e,t,1)}),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc();c.Pb(2),c.bd(c.zc(3,2,"titles.DetailsHistory")),c.Pb(5),c.Dc("dealsIn",r.GetDealsHistory(i))}}function UF(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"span",105),c.ad(2),c.yc(3,"translate"),c.ic(),c.jc(4,"div"),c.jc(5,"button",44),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoBack(e)}),c.ec(6,"i",45),c.ic(),c.ic(),c.jc(7,"app-details",106),c.tc("myEvent",function(e){c.Qc(n);var t=c.xc().$implicit;return c.xc().ShowTrading(e,t,2)}),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc();c.Pb(2),c.bd(c.zc(3,2,"titles.Details")),c.Pb(5),c.Dc("dealsIn",r.GetDeals(i))}}function $F(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"span",105),c.ad(2),c.yc(3,"translate"),c.ic(),c.jc(4,"div"),c.jc(5,"button",44),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoBack(e)}),c.ec(6,"i",45),c.ic(),c.ic(),c.jc(7,"app-statistics",107),c.tc("myEvent",function(e){c.Qc(n);var t=c.xc().$implicit;return c.xc().ShowTrading(e.name,t,1)}),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc(),a=c.Nc(1);c.Pb(2),c.bd(c.zc(3,3,"titles.Statistic")),c.Pb(5),c.Dc("statisticsIn",r.GetStatistics(i))("container",a)}}function WF(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"span",105),c.ad(2),c.yc(3,"translate"),c.ic(),c.jc(4,"div"),c.jc(5,"button",44),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoBack(e)}),c.ec(6,"i",45),c.ic(),c.ic(),c.jc(7,"app-statistics",107),c.tc("myEvent",function(e){c.Qc(n);var t=c.xc().$implicit;return c.xc().ShowTrading(e.name,t,2)}),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc(),a=c.Nc(1);c.Pb(2),c.bd(c.zc(3,3,"titles.StatisticNow")),c.Pb(5),c.Dc("statisticsIn",r.GetStatisticsNow(i))("container",a)}}function qF(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"span",105),c.ad(2),c.yc(3,"translate"),c.ic(),c.jc(4,"div"),c.jc(5,"button",44),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoBack(e)}),c.ec(6,"i",45),c.ic(),c.ic(),c.jc(7,"app-statistics",107),c.tc("myEvent",function(e){c.Qc(n);var t=c.xc().$implicit;return c.xc().ShowSignal(e,t)}),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc(),a=c.Nc(1);c.Pb(2),c.bd(c.zc(3,3,"titles.StatisticSignal")),c.Pb(5),c.Dc("statisticsIn",r.GetStatisticsSignal(i))("container",a)}}function GF(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"span",105),c.ad(2),c.yc(3,"translate"),c.ic(),c.jc(4,"div"),c.jc(5,"button",44),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc().GoBack(e)}),c.ec(6,"i",45),c.ic(),c.ic(),c.jc(7,"app-statistics",107),c.tc("myEvent",function(e){c.Qc(n);var t=c.xc().$implicit;return c.xc().ShowSignal(e,t)}),c.ic(),c.ic()}if(2&e){var i=c.xc().$implicit,r=c.xc(),a=c.Nc(1);c.Pb(2),c.bd(c.zc(3,3,"titles.StatisticNowSignal")),c.Pb(5),c.Dc("statisticsIn",r.GetStatisticsSignalNow(i))("container",a)}}function XF(e,t){if(1&e&&(c.jc(0,"tr"),c.jc(1,"td"),c.ad(2),c.ic(),c.jc(3,"td"),c.ad(4),c.ic(),c.jc(5,"td"),c.ad(6),c.ic(),c.jc(7,"td"),c.ad(8),c.ic(),c.jc(9,"td"),c.ad(10),c.ic(),c.jc(11,"td"),c.ad(12),c.ic(),c.jc(13,"td"),c.ad(14),c.ic(),c.jc(15,"td"),c.ad(16),c.ic(),c.jc(17,"td"),c.ad(18),c.ic(),c.jc(19,"td"),c.ad(20),c.ic(),c.jc(21,"td"),c.ad(22),c.ic(),c.jc(23,"td"),c.ad(24),c.ic(),c.jc(25,"td"),c.ad(26),c.ic(),c.jc(27,"td"),c.ad(28),c.ic(),c.ic()),2&e){var n=t.$implicit;c.Pb(2),c.bd(n.year),c.Pb(1),c.Xc("color",n.month[0]>0?"green":n.month[0]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[0]?null:n.month[0].toFixed(2)),c.Pb(1),c.Xc("color",n.month[1]>0?"green":n.month[1]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[1]?null:n.month[1].toFixed(2)),c.Pb(1),c.Xc("color",n.month[2]>0?"green":n.month[2]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[2]?null:n.month[2].toFixed(2)),c.Pb(1),c.Xc("color",n.month[3]>0?"green":n.month[3]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[3]?null:n.month[3].toFixed(2)),c.Pb(1),c.Xc("color",n.month[4]>0?"green":n.month[4]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[4]?null:n.month[4].toFixed(2)),c.Pb(1),c.Xc("color",n.month[5]>0?"green":n.month[5]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[5]?null:n.month[5].toFixed(2)),c.Pb(1),c.Xc("color",n.month[6]>0?"green":n.month[6]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[6]?null:n.month[6].toFixed(2)),c.Pb(1),c.Xc("color",n.month[7]>0?"green":n.month[7]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[7]?null:n.month[7].toFixed(2)),c.Pb(1),c.Xc("color",n.month[8]>0?"green":n.month[8]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[8]?null:n.month[8].toFixed(2)),c.Pb(1),c.Xc("color",n.month[9]>0?"green":n.month[9]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[9]?null:n.month[9].toFixed(2)),c.Pb(1),c.Xc("color",n.month[10]>0?"green":n.month[10]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[10]?null:n.month[10].toFixed(2)),c.Pb(1),c.Xc("color",n.month[11]>0?"green":n.month[11]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[11]?null:n.month[11].toFixed(2)),c.Pb(1),c.Xc("color",n.month[12]>0?"green":n.month[12]<0?"red":"black"),c.Pb(1),c.bd(null==n.month[12]?null:n.month[12].toFixed(2))}}function QF(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"div",22),c.jc(2,"a",23),c.ad(3),c.ic(),c.jc(4,"div",24),c.ad(5),c.ic(),c.jc(6,"div",24),c.ad(7),c.ic(),c.ic(),c.Yc(8,tF,2,1,"div",25),c.Yc(9,nF,3,4,"div",26),c.jc(10,"div",27),c.jc(11,"ngb-accordion",3,4),c.tc("panelChange",function(e){return c.Qc(n),c.xc().ChangeAcc(e)}),c.jc(13,"ngb-panel",28),c.yc(14,"translate"),c.Yc(15,dF,4,4,"ng-template",6),c.ic(),c.ic(),c.ic(),c.Yc(16,hF,1,0,"div",29),c.jc(17,"table",30),c.jc(18,"tr"),c.jc(19,"td",31),c.jc(20,"button",32),c.tc("click",function(){var e=c.Qc(n).$implicit;return c.xc().Collapse(e)}
1),c.yc(21,"translate"),c.jc(22,"i"),c.ad(23),c.ic(),c.ic(),c.ic(),c.Yc(24,fF,4,3,"td",33),c.Yc(25,pF,4,3,"td",34),c.Yc(26,mF,4,3,"td",34),c.Yc(27,gF,4,3,"td",34),c.Yc(28,vF,4,3,"td",34),c.Yc(29,bF,2,1,"td",34),c.Yc(30,_F,4,3,"td",35),c.Yc(31,wF,4,3,"td",34),c.Yc(32,kF,4,3,"td",34),c.Yc(33,CF,4,3,"td",34),c.Yc(34,xF,4,3,"td",34),c.Yc(35,SF,4,4,"td",35),c.Yc(36,MF,4,4,"td",35),c.Yc(37,DF,4,4,"td",35),c.Yc(38,AF,4,6,"td",36),c.Yc(39,PF,7,2,"td",37),c.ic(),c.ic(),c.Yc(40,LF,1,0,"div",29),c.Yc(41,OF,12,10,"table",38),c.jc(42,"table",27),c.jc(43,"tr"),c.Yc(44,IF,4,4,"td",39),c.Yc(45,HF,4,4,"td",39),c.Yc(46,jF,4,4,"td",39),c.Yc(47,FF,4,6,"td",40),c.ic(),c.ic(),c.Yc(48,NF,4,2,"div",41),c.Yc(49,YF,4,2,"div",41),c.Yc(50,zF,21,13,"div",42),c.Yc(51,VF,8,4,"div",43),c.Yc(52,UF,8,4,"div",43),c.Yc(53,$F,8,5,"div",43),c.Yc(54,WF,8,5,"div",43),c.Yc(55,qF,8,5,"div",43),c.Yc(56,GF,8,5,"div",43),c.jc(57,"div"),c.jc(58,"div"),c.jc(59,"table"),c.jc(60,"tr"),c.jc(61,"td"),c.jc(62,"button",44),c.tc("click",function(){var e=c.Qc(n).$implicit;return c.xc().GoBack(e)}),c.ec(63,"i",45),c.ic(),c.ic(),c.jc(64,"td",46),c.jc(65,"span",47),c.ad(66),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ec(67,"app-trading",48),c.ic(),c.jc(68,"table",49),c.jc(69,"tr",50),c.jc(70,"td",51),c.ad(71,"Gain Today"),c.ic(),c.jc(72,"td",51),c.ad(73,"Gain Last Week"),c.ic(),c.jc(74,"td",51),c.ad(75,"Last Activity"),c.ic(),c.ic(),c.jc(76,"tr",50),c.jc(77,"td",51),c.ad(78),c.ic(),c.jc(79,"td",51),c.ad(80),c.ic(),c.jc(81,"td",51),c.ad(82),c.ic(),c.ic(),c.jc(83,"tr",10),c.jc(84,"td",52),c.ad(85,"Balance"),c.ic(),c.jc(86,"td",52),c.ad(87,"Equity"),c.ic(),c.jc(88,"td",52),c.ad(89,"Margin"),c.ic(),c.jc(90,"td",52),c.ad(91,"MarginFree"),c.ic(),c.jc(92,"td",52),c.ad(93,"Profit"),c.ic(),c.jc(94,"td",52),c.ad(95,"DropDown"),c.ic(),c.jc(96,"td",53),c.ad(97,"ProfitFactor"),c.ic(),c.jc(98,"td",53),c.ad(99,"MaxDropDown"),c.ic(),c.jc(100,"td",53),c.ad(101,"Gain"),c.ic(),c.ic(),c.jc(102,"tr",10),c.jc(103,"td",52),c.ad(104),c.ic(),c.jc(105,"td",52),c.ad(106),c.ic(),c.jc(107,"td",52),c.ad(108),c.ic(),c.jc(109,"td",52),c.ad(110),c.ic(),c.jc(111,"td",52),c.ad(112),c.ic(),c.jc(113,"td",52),c.ad(114),c.ic(),c.jc(115,"td",52),c.ad(116),c.ic(),c.jc(117,"td",52),c.ad(118),c.ic(),c.jc(119,"td",52),c.ad(120),c.ic(),c.ic(),c.ic(),c.jc(121,"table",54),c.jc(122,"tr",10),c.jc(123,"td",52),c.ad(124,"Gain Today"),c.ic(),c.jc(125,"td",52),c.ad(126,"Gain Last Week"),c.ic(),c.jc(127,"td",52),c.ad(128,"Last Activity"),c.ic(),c.ic(),c.jc(129,"tr",10),c.jc(130,"td",52),c.ad(131),c.ic(),c.jc(132,"td",52),c.ad(133),c.ic(),c.jc(134,"td",52),c.ad(135),c.ic(),c.ic(),c.jc(136,"tr",10),c.jc(137,"td",52),c.ad(138,"Balance"),c.ic(),c.jc(139,"td",52),c.ad(140,"Equity"),c.ic(),c.jc(141,"td",52),c.ad(142,"Margin"),c.ic(),c.ic(),c.jc(143,"tr",10),c.jc(144,"td",52),c.ad(145),c.ic(),c.jc(146,"td",52),c.ad(147),c.ic(),c.jc(148,"td",52),c.ad(149),c.ic(),c.ic(),c.jc(150,"tr",10),c.jc(151,"td",52),c.ad(152,"MarginFree"),c.ic(),c.jc(153,"td",52),c.ad(154,"Profit"),c.ic(),c.jc(155,"td",52),c.ad(156,"DropDown"),c.ic(),c.ic(),c.jc(157,"tr",10),c.jc(158,"td",52),c.ad(159),c.ic(),c.jc(160,"td",52),c.ad(161),c.ic(),c.jc(162,"td",52),c.ad(163),c.ic(),c.ic(),c.jc(164,"tr",10),c.jc(165,"td",52),c.ad(166,"ProfitFactor"),c.ic(),c.jc(167,"td",52),c.ad(168,"MaxDropDown"),c.ic(),c.jc(169,"td",52),c.ad(170,"Gain"),c.ic(),c.ic(),c.jc(171,"tr",10),c.jc(172,"td",52),c.ad(173),c.ic(),c.jc(174,"td",52),c.ad(175),c.ic(),c.jc(176,"td",52),c.ad(177),c.ic(),c.ic(),c.ic(),c.jc(178,"table"),c.jc(179,"colgroup"),c.ec(180,"col",55),c.ec(181,"col"),c.ec(182,"col"),c.ec(183,"col"),c.ec(184,"col"),c.ec(185,"col"),c.ec(186,"col"),c.ec(187,"col"),c.ec(188,"col"),c.ec(189,"col"),c.ec(190,"col"),c.ec(191,"col"),c.ec(192,"col",55),c.ic(),c.jc(193,"thead"),c.jc(194,"tr"),c.jc(195,"th",56),c.ad(196,"Year"),c.ic(),c.jc(197,"th"),c.ad(198,"Jan"),c.ic(),c.jc(199,"th"),c.ad(200,"Feb"),c.ic(),c.jc(201,"th"),c.ad(202,"Mar"),c.ic(),c.jc(203,"th"),c.ad(204,"Apr"),c.ic(),c.jc(205,"th"),c.ad(206,"May"),c.ic(),c.jc(207,"th"),c.ad(208,"Jun"),c.ic(),c.jc(209,"th"),c.ad(210,"Jul"),c.ic(),c.jc(211,"th"),c.ad(212,"Aug"),c.ic(),c.jc(213,"th"),c.ad(214,"Sep"),c.ic(),c.jc(215,"th"),c.ad(216,"Oct"),c.ic(),c.jc(217,"th"),c.ad(218,"Nov"),c.ic(),c.jc(219,"th"),c.ad(220,"Dec"),c.ic(),c.jc(221,"th",56),c.ad(222,"Sum"),c.ic(),c.ic(),c.ic(),c.jc(223,"tbody"),c.Yc(224,XF,29,40,"tr",8),c.ic(),c.ic(),c.ec(225,"hr"),c.ic()}
1if(2&e){var i=t.$implicit,r=c.xc();c.Pb(2),c.Ec("href",i.url,c.Tc),c.Pb(1),c.bd(i.nameAdvisor),c.Pb(2),c.cd(" ",r.ShowCountDays(i.login)," Days"),c.Pb(2),c.cd(" ",i.terminal,""),c.Pb(1),c.Dc("ngIf",r.isAll),c.Pb(1),c.Dc("ngIf",r.isSignal),c.Pb(2),c.Dc("destroyOnHide",!0)("activeIds",r.activeIds),c.Pb(2),c.Fc("id","panelMy",i.accountId,""),c.Dc("title",c.zc(14,126,"titles.Description")),c.Pb(3),c.Dc("ngIf",r.isSignal||!r.isUserLoggedIn),c.Pb(4),c.Ec("title",c.zc(21,128,"titles.Collapse")),c.Dc("disabled",r.isDisabledButtons),c.Pb(3),c.bd(i.isExpand?"+":"%"),c.Pb(1),c.Dc("ngIf",!r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!r.isSignal),c.Pb(1),c.Dc("ngIf",r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!r.isSignal&&r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!r.isSignal&&r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",r.isSignal),c.Pb(1),c.Dc("ngIf",r.isSignal),c.Pb(1),c.Dc("ngIf",!r.isSignal&&r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",r.isSignal||!r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",r.CountStatisticsSignalNow(i)>0),c.Pb(3),c.Dc("ngIf",!r.isSignal&&r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",!r.isSignal&&r.isUserLoggedIn),c.Pb(1),c.Dc("ngIf",r.isSignal),c.Pb(1),c.Dc("ngIf",r.isSignal),c.Pb(1),c.Dc("ngIf",i.isExpand&&!i.isDetail&&!i.isDetailHistory&&!i.isTrading&&!i.isStatistics&&!i.isStatisticsNow&&!i.isStatisticsSignal&&!i.isStatisticsNowSignal),c.Pb(1),c.Dc("ngIf",!(i.isExpand||i.isDetail||i.isDetailHistory||i.isTrading||i.isStatistics||i.isStatisticsNow||i.isStatisticsSignal||i.isStatisticsNowSignal)),c.Pb(1),c.Dc("ngIf",!(i.isDetail||i.isDetailHistory||i.isTrading||i.isStatistics||i.isStatisticsNow||i.isStatisticsSignal||i.isStatisticsNowSignal)),c.Pb(1),c.Dc("ngIf",i.isDetailHistory),c.Pb(1),c.Dc("ngIf",i.isDetail),c.Pb(1),c.Dc("ngIf",i.isStatistics),c.Pb(1),c.Dc("ngIf",i.isStatisticsNow),c.Pb(1),c.Dc("ngIf",i.isStatisticsSignal),c.Pb(1),c.Dc("ngIf",i.isStatisticsNowSignal),c.Pb(1),c.Xc("display",i.isTrading?"block":"none"),c.Pb(9),c.bd(i.symbolName),c.Pb(1),c.Dc("id",i.login),c.Pb(10),c.Xc("color",r.GetDayProcentProfit(i)<0?"red":"green"),c.Pb(1),c.cd("",r.GetDayProcentProfit(i).toFixed(2),"%"),c.Pb(1),c.Xc("color",r.GetWeekProcentProfit(i)<0?"red":"green"),c.Pb(1),c.cd("",r.GetWeekProcentProfit(i).toFixed(2),"%"),c.Pb(1),c.Xc("color","green"),c.Pb(1),c.bd(r.GetLastTimeTrade(i)),c.Pb(21),c.Xc("color",i.colorBalance),c.Pb(1),c.dd("",null==i.balance?null:i.balance.toFixed(2)," ",i.currency,""),c.Pb(1),c.Xc("color",i.colorEquity),c.Pb(1),c.bd(null==i.equity?null:i.equity.toFixed(2)),c.Pb(1),c.Xc("color",i.colorMargin),c.Pb(1),c.bd(null==i.margin?null:i.margin.toFixed(2)),c.Pb(1),c.Xc("color",i.colorMarginFree),c.Pb(1),c.bd(null==i.marginFree?null:i.marginFree.toFixed(2)),c.Pb(1),c.Xc("color",i.colorProfit),c.Pb(1),c.dd("",null==i.profit?null:i.profit.toFixed(2)," ",i.currency,""),c.Pb(1),c.Xc("color",i.colorDropdown),c.Pb(1),c.cd("",i.dropDown,"%"),c.Pb(1),c.Xc("color",i.colorDropdown),c.Pb(1),c.bd(null==i.profitFactor?null:i.profitFactor.toFixed(2)),c.Pb(1),c.Xc("color",i.colorMaxDropDown),c.Pb(1),c.cd("",i.maxDropDown,"%"),c.Pb(1),c.Xc("color",i.colorGain),c.Pb(1),c.cd("",i.gain,"%"),c.Pb(10),c.Xc("color",r.GetDayProcentProfit(i)<0?"red":"green"),c.Pb(1),c.cd("",r.GetDayProcentProfit(i).toFixed(2),"%"),c.Pb(1),c.Xc("color",r.GetWeekProcentProfit(i)<0?"red":"green"),c.Pb(1),c.cd("",r.GetWeekProcentProfit(i).toFixed(2),"%"),c.Pb(1),c.Xc("color","green"),c.Pb(1),c.bd(r.GetLastTimeTrade(i)),c.Pb(9),c.Xc("color",i.colorBalance),c.Pb(1),c.dd("",null==i.balance?null:i.balance.toFixed(2)," ",i.currency,""),c.Pb(1),c.Xc("color",i.colorEquity),c.Pb(1),c.bd(null==i.equity?null:i.equity.toFixed(2)),c.Pb(1),c.Xc("color",i.colorMargin),c.Pb(1),c.bd(null==i.margin?null:i.margin.toFixed(2)),c.Pb(9),c.Xc("color",i.colorMarginFree),c.Pb(1),c.bd(null==i.marginFree?null:i.marginFree.toFixed(2)),c.Pb(1),c.Xc("color",i.colorProfit),c.Pb(1),c.dd("",null==i.profit?null:i.profit.toFixed(2)," ",i.currency,""),c.Pb(1),c.Xc("color",i.colorDropDown),c.Pb(1),c.cd("",i.dropDown,"%"),c.Pb(9),c.Xc("color",i.colorMaxDropDown),c.Pb(1),c.bd(null==i.profitFactor?null:i.profitFactor.toFixed(2)),c.Pb(1),c.Xc("color",i.colorMaxDropDown),c.Pb(1),c.cd("",i.maxDropDown,"%"),c.Pb(1),c.Xc("color",i.colorGain),c.Pb(1),c.cd("",i.gain,"%"),c.Pb(47),c.Dc("ngForOf",r.GetGains(i))}}function KF(e,t){if(1&e){var n=c.kc();c.jc(0,"pagination-controls",21),c.tc("pageChange",function(e){return c.Qc(n),c.xc().ChangePage(e)}),c.ic()}}var ZF,JF=function(e,t,n){return{itemsPerPage:e,currentPage:t,totalItems:n}},eR=((ZF=function(){function e(t,n,i,r,a,o,s,l,c,u,d,h,f,p,m,g){var v=this;_classCallCheck(this,e),this.sanitizer=t,this.tradingComponent=n,this.deviceService=i,this.route=r,this.gainMonthComponent=a,this.detailsComponent=o,this.router=s,this.localStorage=l,this.appComponent=c,this.tradeeaService=u,this.changeDetection=d,this.authService=h,this.renderer2=f,this.alertService=p,this.translationService=m,this.configurations=g,this.currentPage=1,this.itemsPerPage=10,this.isSortBalance=null,this.isSortEquity=null,this.isSortBalanceDays=null,this.isSortTotalDays=null,this.isSortProfit=null,this.isSortProfitFactor=null,this.isSortDropDown=null,this.isSortMaxDropDown=null,this.isSortGain=null,this.isSortMode=!1,this.isPageShow=!1,this.activeIds=[],this.dtOptions={},this.dtTrigger=new oe.a,this.ngUnsubscribe=new oe.a,this.isUpdateBalance=!0,this.isDisabledButtons=!1,this.listenClient=null,this.updateBalance=null,this.lockClien=!1,this.lockUpdate=!1,this.name="",this.direction="",this.isCollapseAll=!1,this.chartsLoading=!1,this.loadingCharts=new Set,this.chartElements=new Map,this.signalDataCache=new Map,this.isSignal=!1,s.events.subscribe(function(e){v.accountsData=new Array,clearInterval(v.listenClient),clearInterval(v.updateBalance),v.listenClient=null,v.updateBalance=null}),c.myeventCollapse.observers.length>1&&c.myeventCollapse.observers.splice(1,c.myeventCollapse.observers.length),c.myeventUpdate.observers.length>1&&c.myeventUpdate.observers.splice(1,c.myeventUpdate.observers.length),c.myeventAll.observers.length>1&&c.myeventAll.observers.splice(1,c.myeventAll.observers.length),c.myeventCollapse.subscribe(function(e){v.CollapseAll(e)}
1),c.myeventUpdate.subscribe(function(e){v.UpdateAllBalance(e,!0)}),c.myeventAll.subscribe(function(e){v.ChangeIsAll(e)}),this.renderer2.listen("window","scroll",function(e){0!=window.pageYOffset?v.scrollPageYOffset=window.pageYOffset:window.scroll(0,v.scrollPageYOffset)})}return _createClass(e,[{key:"destroy",value:function(){this.loadingCharts.clear(),this.chartsLoading=!1,this.intersectionObserver&&this.intersectionObserver.disconnect(),this.signalDataCache.clear();for(var e=0;e<this.chartList.length;e++)null!=this.chartList[e].chart&&"function"==typeof this.chartList[e].chart.remove&&this.chartList[e].chart.remove(),null!=this.chartList[e].chartGain&&"function"==typeof this.chartList[e].chartGain.remove&&this.chartList[e].chartGain.remove(),this.chartList[e].depositSeries&&this.chartList[e].depositSeries.length>0&&this.chartList[e].depositSeries.forEach(function(e){e&&"function"==typeof e.remove&&e.remove()}),this.chartList[e].withdrawalSeries&&this.chartList[e].withdrawalSeries.length>0&&this.chartList[e].withdrawalSeries.forEach(function(e){e&&"function"==typeof e.remove&&e.remove()});this.ngUnsubscribe.next(!0),this.ngUnsubscribe.complete()}},{key:"ngOnDestroy",value:function(){this.destroy(),this.fragmentSubscription.unsubscribe(),this.router.routeReuseStrategy.shouldReuseRoute=this.prev}},{key:"currentUserId",get:function(){return this.authService.currentUser&&(this._currentUserId=this.authService.currentUser.id),this._currentUserId}},{key:"ChangePage",value:function(e){this.currentPage=e,this.localStorage.saveSyncedSessionData(this.currentPage,"currentPage"+(this.isSignal?"Signal":"Monitor")),this.UpdateAccount()}},{key:"RunListener",value:function(){var e=this;if(null==this.listenClient&&null!=this.accountsData&&this.accountsData.length>0){var t=this.accountsData.reduce(function(e,t){return e.timeUpdateProfitSec>t.timeUpdateProfitSec?e:t});this.listenClient=setInterval(function(){return e.ListenClient()},1e3*t.timeUpdateProfitSec)}}},{key:"ngAfterContentInit",value:function(){this.fontSize=10}},{key:"ngOnInit",value:function(){var e=this;this.isUserLoggedIn=this.authService.isLoggedIn,this.authService.isSessionExpired&&(this.isUserLoggedIn=!1),this.isUserLoggedIn?(this.isUserAdmin=this.authService.currentUser.roles.filter(function(e){return"administrator"==e}).length>0,this.isUserAdmin||(this.isAll=!1)):(this.isUserAdmin=!1,this.isAll=!1),this.prev=this.router.routeReuseStrategy.shouldReuseRoute,this.router.routeReuseStrategy.shouldReuseRoute=function(){return!1},this.fragmentSubscription=this.route.queryParamMap.subscribe(function(t){null!=e.localStorage.getDataObject("Acc"+(e.isSignal?"Signal":"Monitor"))&&(e.activeIds=e.localStorage.getDataObject("Acc"+(e.isSignal?"Signal":"Monitor"))),null!=e.localStorage.getDataObject("sortActive"+(e.isSignal?"Signal":"Monitor"))&&(e.name=e.localStorage.getDataObject("sortActive"+(e.isSignal?"Signal":"Monitor")),e.direction=e.localStorage.getDataObject("sortDirection"+(e.isSignal?"Signal":"Monitor")),e.sortData({active:e.name,direction:e.direction})),null!=e.localStorage.getDataObject("currentPage"+(e.isSignal?"Signal":"Monitor"))&&null==e.userName&&(e.currentPage=e.localStorage.getDataObject("currentPage"+(e.isSignal?"Signal":"Monitor"))||1,e.UpdateAccount())}),this.alertService.startLoadingMessage("Pleas wait..."),this.accounts=new Array,this.chartList=new Array,this.tradeeaService.getAccountData(this.isSignal,this.currentPage,this.itemsPerPage,this.isAll,this.isSortBalance,this.isSortEquity,this.isSortProfit,this.isSortDropDown,this.isSortMaxDropDown,this.isSortGain,this.isSortBalanceDays,this.isSortTotalDays,this.isSortProfitFactor,this.userNameSort).pipe(De(this.ngUnsubscribe)).subscribe(function(t){if(e.accountsData=t.data,e.totalItems=t.count,e.accountsData.length>0){if(!e.isUserLoggedIn)for(var n=0;n<e.accountsData.length;n++)e.accountsData[n].isConnectSignal=!1;var i=e.accountsData.reduce(function(e,t){return e.timeUpdateBalanceSec>t.timeUpdateBalanceSec?e:t});e.updateBalance=setInterval(function(){return e.UpdateBalance()},1e3*i.timeUpdateBalanceSec),e.RunListener(),e.isPageShow=!0,e.changeDetection.detectChanges()}e.alertService.stopLoadingMessage()},function(t){e.alertService.stopLoadingMessage(),e.onCurrentUserDataLoadFailed(t)})}},{key:"onCurrentUserDataLoadFailed",value:function(e){this.alertService.stopLoadingMessage(),this.alertService.showStickyMessage("Load Error",'Unable to retrieve user data from the server.\r\nErrors: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)}},{key:"samplingInterval",get:function(){return this.configurations.chartSamplingInterval}},{key:"enableAdaptiveSampling",get:function(){return this.configurations.chartEnableAdaptiveSampling}},{key:"ngAfterViewInit",value:function(){var e=this;this.initializeIntersectionObserver(),this.accountsData&&this.accountsData.length>0&&this.accountsData.forEach(function(t){if(t.isExpand){var n=e.chartList.findIndex(function(e){return e.login===t.login});if(-1!==n){var i=e.chartList[n];i.chart&&"function"==typeof i.chart.remove&&i.chart.remove(),i.chartGain&&"function"==typeof i.chartGain.remove&&i.chartGain.remove(),e.chartList.splice(n,1)}e.UpdateGraph(t)}})}},{key:"ChangeAcc",value:function(e){var t=this.activeIds.find(function(t){return t==e.panelId});if(e.nextState)null==t&&this.activeIds.push(e.panelId);else{var n=this.activeIds.indexOf(t,0);n>-1&&this.activeIds.splice(n,1)}this.localStorage.saveSyncedSessionData(this.activeIds,"Acc"+(this.isSignal?"Signal":"Monitor"))}},{key:"sortData",value:function(e){if(this.isSortBalance=null,this.isSortEquity=null,this.isSortProfit=null,this.isSortDropDown=null,this.isSortMaxDropDown=null,this.isSortGain=null,this.isSortBalanceDays=null,this.isSortTotalDays=null,this.isSortProfitFactor=null,this.localStorage.saveSyncedSessionData(e.active,"sortActive"+(this.isSignal?"Signal":"Monitor")),this.localStorage.saveSyncedSessionData(e.direction,"sortDirection"+(this.isSignal?"Signal":"Monitor")),""!=e.direction){this.isSortMode=!0;var t="asc"===e.direction;switch(e.active){case"balance":this.isSortBalance=t;break;case"equity":this.isSortEquity=t;break;case"profit_days":this.isSortBalanceDays=t;break;case"total_days":this.isSortTotalDays=t;break;case"profit":this.isSortProfit=t;break;case"profitFactor":this.isSortProfitFactor=t;break;case"dropDown":this.isSortDropDown=t;break;case"maxDropDown":this.isSortMaxDropDown=t;break;case"gain":this.isSortGain=t}}else this.isSortMode=!1;this.UpdateAccount()}},{key:"SetPrivateSignal",value:function(e){var t=this;this.GetCountSubscribers(e)>0?this.alertService.showDialog(this.translationService.getTranslation("messages.ChangeTypeSignal"),LM.confirm,function(){e.isPrivateSignal&&(e.isPublicSignal=!1),t.SetSignal(e),t.changeDetection.detectChanges()},function(){e.isPrivateSignal=!e.isPrivateSignal,t.changeDetection.detectChanges()}):(e.isPrivateSignal&&(e.isPublicSignal=!1),this.SetSignal(e),this.changeDetection.detectChanges())}},{key:"SetPublicSignal",value:function(e){var t=this;this.GetCountSubscribers(e)>0?this.alertService.showDialog(this.translationService.getTranslation("messages.ChangeTypeSignal"),LM.confirm,function(){e.isPublicSignal&&(e.isPrivateSignal=!1),t.SetSignal(e),t.changeDetection.detectChanges()},function(){e.isPublicSignal=!e.isPublicSignal,t.changeDetection.detectChanges()}):(e.isPublicSignal&&(e.isPrivateSignal=!1),this.SetSignal(e),this.changeDetection.detectChanges())}},{key:"SetSignal",value:function(e){var t=this;this.alertService.startLoadingMessage("Pleas wait...");var n=new jM;n.id=e.accountId,n.currentPage=this.currentPage,n.itemsPerPage=this.itemsPerPage,n.isPrivateSignal=e.isPrivateSignal,n.isPublicSignal=e.isPublicSignal,this.tradeeaService.setSignal(n).pipe(De(this.ngUnsubscribe)).subscribe(function(e){for(var n=0;n<e.length;n++)for(var i=0;i<t.accountsData.length;i++)t.accountsData[i].login==e[n].accountLogin&&(t.accountsData[i].isPrivateSignal=e[n].isPrivateSignal,t.accountsData[i].isPublicSignal=e[n].isPublicSignal);t.alertService.stopLoadingMessage()},function(e){t.alertService.stopLoadingMessage(),t.onCurrentUserDataLoadFailed(e)})}},{key:"ConnectSignal",value:function(e){var t=this;if(!this.isUserLoggedIn){var n=this.accountsData.findIndex(function(t){return t.login==e.login});return this.accountsData[n].isConnectSignal=!1,this.UpdateAllBalance(),void this.appComponent.showRegister()}this.GetCountSubscribers(e)>0&&!e.isConnectSignal?this.alertService.showDialog(this.translationService.getTranslation("messages.ConnectSignal"),LM.confirm,function(){t.ConnSignal(e)},function(){e.isConnectSignal=!e.isConnectSignal}):this.ConnSignal(e)}},{key:"ConnSignal",value:function(e){var t=this;this.alertService.startLoadingMessage("Pleas wait...");var n=new jM;n.id=e.accountId,n.currentPage=this.currentPage,n.itemsPerPage=this.itemsPerPage,this.tradeeaService.connectSignal(n).pipe(De(this.ngUnsubscribe)).subscribe(function(e){for(var n=0;n<e.length;n++)for(var i=0;i<t.accountsData.length;i++)t.accountsData[i].login==e[n].accountLogin&&(t.accountsData[i].isConnectSignal=e[n].isConnectSignal);t.alertService.stopLoadingMessage()},function(e){t.alertService.stopLoadingMessage(),t.onCurrentUserDataLoadFailed(e)})}},{key:"onFocus",value:function(e){}},{key:"onBlur",value:function(e){}},{key:"initializeIntersectionObserver",value:function(){var e=this;this.intersectionObserver=new IntersectionObserver(function(t){t.forEach(function(t){if(t.isIntersecting){var n=t.target.id.replace("chart","").replace("chartGain",""),i=e.accountsData.find(function(e){return e.login.toString()===n});i&&!e.loadingCharts.has(n)&&e.UpdateGraph(i),e.intersectionObserver.unobserve(t.target)}})},{root:null,rootMargin:"50px",threshold:.1})}},{key:"observeChart",value:function(e,t){this.intersectionObserver&&(this.chartElements.set(t,e),this.intersectionObserver.observe(e))}},{key:"ShowTrading",value:function(e,t,n){if(null!=t){if(t.isTrading=!t.isTrading,t.isDetail=!1,t.isDetailHistory=!1,t.isStatistics=!1,t.isStatisticsNow=!1,t.isStatisticsSignal=!1,t.isStatisticsNowSignal=!1,t.symbolName="",""==e){var i=this.GetSymbols(t,n);null!=i&&i.length>0&&(t.symbolName="",e=i[0].name)}else t.symbolName=e;this.tradingComponent.show(e,this.GetSymbols(t,n),t.login)}}},{key:"ShowSignal",value:function(e,t){}},{key:"GoToDetais",value:function(e){e.isDetail=!e.isDetail,e.isDetailHistory=!1,e.isStatistics=!1,e.isStatisticsNow=!1,e.isTrading=!1,e.isStatisticsSignal=!1,e.isStatisticsNowSignal=!1}},{key:"GoToDetaisHistory",value:function(e){e.isDetailHistory=!e.isDetailHistory,e.isDetail=!1,e.isStatistics=!1,e.isStatisticsNow=!1,e.isTrading=!1,e.isStatisticsSignal=!1,e.isStatisticsNowSignal=!1}},{key:"GetSymbols",value:function(e,t){var n,i=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=i&&null!=i.statistic&&null!=i.statistic.listSymbols&&(1==t&&(n=i.statistic.listSymbols),2==t&&(n=i.statisticNow.listSymbols)),n}},{key:"GoBack",value:function(e){e.isDetail=!1,e.isDetailHistory=!1,e.isStatistics=!1,e.isStatisticsNow=!1,e.isTrading=!1,e.isStatisticsSignal=!1,e.isStatisticsNowSignal=!1}},{key:"GoToStatistics",value:function(e){e.isStatistics=!e.isStatistics,e.isDetail=!1,e.isDetailHistory=!1,e.isStatisticsNow=!1,e.isTrading=!1,e.isStatisticsSignal=!1,e.isStatisticsNowSignal=!1}},{key:"GoToStatisticsNow",value:function(e){e.isStatisticsNow=!e.isStatisticsNow,e.isDetail=!1,e.isDetailHistory=!1,e.isStatistics=!1,e.isTrading=!1,e.isStatisticsSignal=!1,e.isStatisticsNowSignal=!1}},{key:"GoToStatisticsSignal",value:function(e){var t=this;e.isStatistics=!1,e.isDetail=!1,e.isDetailHistory=!1,e.isStatisticsNow=!1,e.isTrading=!1,e.isStatisticsNowSignal=!1,e.isStatisticsSignal?e.isStatisticsSignal=!1:(e.isStatisticsSignalDisabled=!0,e.isStatisticsNowSignalDisabled=!0,this.alertService.startLoadingMessage("Pleas wait..."),this.tradeeaService.getStatisticSignals(e.accountId).pipe(De(this.ngUnsubscribe)).subscribe(function(n){t.accounts.find(function(t){return t.accountLogin==e.login}).statisticSignal=n,e.isStatisticsSignal=!0,e.isStatisticsSignalDisabled=!1,e.isStatisticsNowSignalDisabled=!1,t.alertService.stopLoadingMessage(),t.changeDetection.detectChanges()},function(n){e.isStatisticsSignal=!0,e.isStatisticsSignalDisabled=!1,t.alertService.stopLoadingMessage(),t.onCurrentUserDataLoadFailed(n)}))}},{key:"GoToStatisticsNowSignal",value:function(e){var t=this;e.isDetail=!1,e.isDetailHistory=!1,e.isStatistics=!1,e.isStatisticsNow=!1,e.isTrading=!1,e.isStatisticsSignal=!1,e.isStatisticsNowSignal?e.isStatisticsNowSignal=!1:(this.alertService.startLoadingMessage("Pleas wait..."),e.isStatisticsNowSignalDisabled=!0,e.isStatisticsSignalDisabled=!0,this.tradeeaService.getStatisticSignalsNow(e.accountId).pipe(De(this.ngUnsubscribe)).subscribe(function(n){t.accounts.find(function(t){return t.accountLogin==e.login}).statisticSignalNow=n,e.isStatisticsNowSignal=!0,e.isStatisticsNowSignalDisabled=!1,e.isStatisticsSignalDisabled=!1,t.alertService.stopLoadingMessage(),t.changeDetection.detectChanges()},function(n){e.isStatisticsNowSignal=!0,e.isStatisticsNowSignalDisabled=!1,t.alertService.stopLoadingMessage(),t.onCurrentUserDataLoadFailed(n)}))}},{key:"ChangeIsAll",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;(null!=t&&!t.isAnswer||null==t)&&(this.isUserLoggedIn=this.authService.isLoggedIn,this.isUserLoggedIn?(this.isUserAdmin=this.authService.currentUser.roles.filter(function(e){return"administrator"==e}).length>0,this.isUserAdmin||(this.isAll=!1)):(this.isUserAdmin=!1,this.isAll=!1),null==t&&this.alertService.startLoadingMessage("Pleas wait..."),this.lockClien=!0,this.lockUpdate=!0,this.isAll=t.object,this.tradeeaService.getAccountData(this.isSignal,this.currentPage,this.itemsPerPage,this.isAll,this.isSortBalance,this.isSortEquity,this.isSortProfit,this.isSortDropDown,this.isSortMaxDropDown,this.isSortGain,this.isSortBalanceDays,this.isSortTotalDays,this.isSortProfitFactor,this.userNameSort).pi
1pe(De(this.ngUnsubscribe)).subscribe(function(n){if(e.accountsData=n.data,e.totalItems=n.count,e.localStorage.clearAllSessionsStorage(),e.changeDetection.detectChanges(),null!=t){var i=new IM;i.isAnswer=!0,e.appComponent.myeventAll.next(i)}else e.alertService.stopLoadingMessage();e.lockClien=!1,e.lockUpdate=!1},function(t){e.lockClien=!1,e.lockUpdate=!1,e.alertService.stopLoadingMessage(),e.onCurrentUserDataLoadFailed(t)}))}},{key:"UpdateAllBalance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(null!=t&&!t.isAnswer||null==t)&&(this.isUserLoggedIn=this.authService.isLoggedIn,this.currentPage=this.localStorage.getDataObject("currentPage"+(this.isSignal?"Signal":"Monitor"))||1,this.isUserLoggedIn?(this.isUserAdmin=this.authService.currentUser.roles.filter(function(e){return"administrator"==e}).length>0,this.isUserAdmin||(this.isAll=!1)):(this.isUserAdmin=!1,this.isAll=!1),null==t&&this.alertService.startLoadingMessage("Pleas wait..."),this.lockClien=!0,this.lockUpdate=!0,this.tradeeaService.getAccountData(this.isSignal,this.currentPage,this.itemsPerPage,this.isAll,this.isSortBalance,this.isSortEquity,this.isSortProfit,this.isSortDropDown,this.isSortMaxDropDown,this.isSortGain,this.isSortBalanceDays,this.isSortTotalDays,this.isSortProfitFactor,this.userNameSort).pipe(De(this.ngUnsubscribe)).subscribe(function(i){if(n&&(e.accountsData=i.data),e.totalItems=i.count,e.isPageShow=e.accountsData.length>0,!n)for(var r=function(t){var n=e.accountsData.findIndex(function(e){return e.login==i.data[t].login});-1!=n?null!=e.accountsData[n].isTrading&&(e.accountsData[n].isTrading||e.accountsData[n].isStatistics||e.accountsData[n].isStatisticsNow||e.accountsData[n].isDetail||e.accountsData[n].isDetailHistory||e.accountsData[n].isStatisticsSignal||e.accountsData[n].isStatisticsNowSignal||e.accountsData[n].isEdit)||(e.accountsData[n]=i.data[t]):e.accountsData.push(i.data[t])},a=0;a<i.data.length;a++)r(a);if(!e.isUserLoggedIn)for(var o=0;o<e.accountsData.length;o++)e.accountsData[o].isConnectSignal=!1;if(e.changeDetection.detectChanges(),null!=t){var s=new IM;s.isAnswer=!0,e.appComponent.myeventUpdate.next(s)}else e.alertService.stopLoadingMessage();e.lockClien=!1,e.lockUpdate=!1},function(n){if(null!=t){var i=new IM;i.isAnswer=!0,e.appComponent.myeventUpdate.next(i)}else e.alertService.stopLoadingMessage();e.lockClien=!1,e.lockUpdate=!1,e.alertService.stopLoadingMessage(),e.onCurrentUserDataLoadFailed(n)}))}},{key:"CollapseAll",value:function(e){var t=this;if(!e.isAnswer){for(var n=0;n<this.accountsData.length;n++)this.accountsData[n].isExpand=e.object;this.changeDetection.detectChanges(),e.object=e.object,e.isAnswer=!0,this.localStorage.saveSyncedSessionData(e.object,"isCollapseAll"),this.appComponent.myeventCollapse.next(e),this.isUserLoggedIn&&null!=this.accountsData&&this.accountsData.length>0&&this.tradeeaService.collapseAllAccountData(e.object).pipe(De(this.ngUnsubscribe)).subscribe(function(e){},function(e){t.alertService.stopLoadingMessage(),t.onCurrentUserDataLoadFailed(e)})}}},{key:"UpdateAccount",value:function(){var e=this;this.alertService.startLoadingMessage("Pleas wait..."),this.tradeeaService.getAccountData(this.isSignal,this.currentPage,this.itemsPerPage,this.isAll,this.isSortBalance,this.isSortEquity,this.isSortProfit,this.isSortDropDown,this.isSortMaxDropDown,this.isSortGain,this.isSortBalanceDays,this.isSortTotalDays,this.isSortProfitFactor,this.userNameSort).pipe(De(this.ngUnsubscribe)).subscribe(function(t){if(e.accountsData=null,e.accountsData=t.data,e.totalItems=t.count,e.accountsData.length>0){for(var n=e.localStorage.getDataObject("isCollapseAll"),i=0;i<e.accountsData.length;i++)e.accountsData[i].isConnectSignal=!1,e.isUserLoggedIn||null!=n&&(e.accountsData[i].isExpand=n);e.changeDetection.detectChanges()}e.alertService.stopLoadingMessage()},function(t){e.alertService.stopLoadingMessage(),e.onCurrentUserDataLoadFailed(t)})}},{key:"Up",value:function(e){var t=this;this.alertService.startLoadingMessage("Pleas wait...");var n=this.accountsData.findIndex(function(t){return t==e});this.currentPage=this.localStorage.getDataObject("currentPage"+(this.isSignal?"Signal":"Monitor"))||1,0!=n||1!=this.currentPage?this.tradeeaService.upAccountData(e.accountId,this.isSignal,this.currentPage,this.itemsPerPage).pipe(De(this.ngUnsubscribe)).subscribe(function(e){if(0!=n){for(var i=0;i<e.length;i++)for(var r=0;r<t.accountsData.length;r++)t.accountsData[r].login==e[i].accountLogin&&(t.accountsData[r].number=e[i].number);t.accountsData=t.accountsData.sort(function(e,t){return e.number>t.number?1:-1}),t.changeDetection.detectChanges(),t.alertService.stopLoadingMessage()}else t.UpdateAccount();window.scroll(0,t.scrollPageYOffset)},function(e){t.alertService.stopLoadingMessage(),t.onCurrentUserDataLoadFailed(e)}):this.alertService.stopLoadingMessage()}},{key:"Down",value:function(e){var t=this;this.alertService.startLoadingMessage("Pleas wait..."),this.currentPage=this.localStorage.getDataObject("currentPage"+(this.isSignal?"Signal":"Monitor"))||1,this.tradeeaService.downAccountData(e.accountId,this.isSignal,this.currentPage,this.itemsPerPage).pipe(De(this.ngUnsubscribe)).subscribe(function(n){if(t.accountsData.findIndex(function(t){return t==e})!=t.accountsData.length-1){for(var i=0;i<n.length;i++)for(var r=0;r<t.accountsData.length;r++)t.accountsData[r].login==n[i].accountLogin&&(t.accountsData[r].number=n[i].number);t.accountsData=t.accountsData.sort(function(e,t){return e.number>t.number?1:-1}),t.changeDetection.detectChanges(),t.alertService.stopLoadingMessage()}else t.UpdateAccount();window.scroll(0,t.scrollPageYOffset)},function(e){t.alertService.stopLoadingMessage(),t.onCurrentUserDataLoadFailed(e)})}},{key:"Close",value:function(e){var t=this;this.alertService.showDialog(this.translationService.getTranslation("messages.DeleteAccount"),LM.confirm,function(){t.alertService.startLoadingMessage("Pleas wait...");var n=new jM;n.id=e.accountId,n.currentPage=t.currentPage,n.itemsPerPage=t.itemsPerPage,t.tradeeaService.deleteAccountData(n).pipe(De(t.ngUnsubscribe)).subscribe(function(n){t.accountsData=t.accountsData.filter(function(t){return t.login!==e.login}),t.alertService.stopLoadingMessage(),t.changeDetection.detectChanges(),t.isPageShow=t.accountsData.length>0},function(e){t.alertService.stopLoadingMessage(),t.onCurrentUserDataLoadFailed(e)})},function(){t.alertService.stopLoadingMessage()})}},{key:"ShowExpand",value:function(e){return this.accountsData.find(function(t){return t.login==e}).isExpand}},{key:"GetCountSubscribers",value:function(e){var t=0,n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.countSubscribers),t}},{key:"GetDayProcentProfit",value:function(e){var t=0,n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.dayProcentProfit),t}},{key:"GetWeekProcentProfit",value:function(e){var t=0,n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.weekProcentProfit),t}},{key:"GetLastTimeTrade",value:function(e){var t="",n=this.accounts.find(function(t){return t.accountLogin==e.login});if(null!=n){var i=n.lastTimeTrade;i<60&&(t="Just now"),i>60&&i<3600&&(t=(i/60).toFixed(0)+" minute"),i>3600&&(t=(i/3600).toFixed(0)+" hour"),i>86400&&(t=(i/3600/24).toFixed(0)+" days")}return t}}
1,{key:"GetDeals",value:function(e){var t=[],n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.listDeals),t}},{key:"GetDealsHistory",value:function(e){var t=[],n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.listDealsHistory),t}},{key:"GetStatistics",value:function(e){var t,n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.statistic),t}},{key:"GetStatisticsSignal",value:function(e){var t,n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.statisticSignal),t}},{key:"GetStatisticsSignalNow",value:function(e){var t,n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.statisticSignalNow),t}},{key:"GetStatisticsNow",value:function(e){var t,n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.statisticNow),t}},{key:"CountStatisticsSignal",value:function(e){var t=0,n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.countSignals),t}},{key:"CountStatisticsSignalNow",value:function(e){var t=0,n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.countSignalsNow),t}},{key:"GetGains",value:function(e){var t=[],n=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=n&&(t=n.listGainMonth),t}},{key:"Collapse",value:function(e){e.isExpand=!e.isExpand;var t=new jM;t.id=e.accountId,t.currentPage=this.currentPage,t.itemsPerPage=this.itemsPerPage,e.isDetail=!1,e.isDetailHistory=!1,e.isStatistics=!1,e.isStatisticsNow=!1,e.isTrading=!1,e.isStatisticsSignal=!1,e.isStatisticsSignalNow=!1,this.changeDetection.detectChanges(),this.isUserLoggedIn&&this.tradeeaService.collapseAccountData(t).pipe(De(this.ngUnsubscribe)).subscribe(function(e){},function(e){})}},{key:"GetHtml",value:function(e){var t=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=t?this.sanitizer.bypassSecurityTrustHtml(t.discribe):""}},{key:"GetHtml2",value:function(e){var t=this.accounts.find(function(t){return t.accountLogin==e.login});return null!=t?t.discribe:""}},{key:"ListenClient",value:function(){var e=this;this.lockClien||(this.lockClien=!0,this.tradeeaService.getAccountData(this.isSignal,this.currentPage,this.itemsPerPage,this.isAll,this.isSortBalance,this.isSortEquity,this.isSortProfit,this.isSortDropDown,this.isSortMaxDropDown,this.isSortGain,this.isSortBalanceDays,this.isSortTotalDays,this.isSortProfitFactor,this.userNameSort).pipe(De(this.ngUnsubscribe)).subscribe(function(t){e.lockClien=!1,e.totalItems=t.count;for(var n=function(n){var i=t.data.find(function(t){return t.login==e.accountsData[n].login});if(null!=i){if(e.accountsData[n].login!=i.login){var r=e.accountsData;e.accountsData=null,e.changeDetection.detectChanges(),e.accountsData=r}i.profit>e.accountsData[n].profit&&(e.accountsData[n].colorProfit="green"),i.profitFactor>e.accountsData[n].profitFactor&&(e.accountsData[n].colorProfitFactor="green"),i.profit<e.accountsData[n].profit&&(e.accountsData[n].colorProfit="red"),i.profitFactor<e.accountsData[n].profitFactor&&(e.accountsData[n].colorProfitFactor="red"),i.balance>e.accountsData[n].balance&&(e.accountsData[n].colorBalance="green"),i.balance<e.accountsData[n].balance&&(e.accountsData[n].colorBalance="red"),i.dropDown>e.accountsData[n].dropDown&&(e.accountsData[n].colorDropDown="green"),i.dropDown<e.accountsData[n].dropDown&&(e.accountsData[n].colorDropDown="red"),i.equity>e.accountsData[n].equity&&(e.accountsData[n].colorEquity="green"),i.equity<e.accountsData[n].equity&&(e.accountsData[n].colorEquity="red"),i.gain>e.accountsData[n].gain&&(e.accountsData[n].colorGain="green"),i.gain<e.accountsData[n].gain&&(e.accountsData[n].colorGain="red"),i.margin>e.accountsData[n].margin&&(e.accountsData[n].colorMargin="green"),i.margin<e.accountsData[n].margin&&(e.accountsData[n].colorMargin="red"),i.marginFree>e.accountsData[n].marginFree&&(e.accountsData[n].colorMarginFree="green"),i.marginFree<e.accountsData[n].marginFree&&(e.accountsData[n].colorMarginFree="red"),i.maxDropDown>e.accountsData[n].maxDropDown&&(e.accountsData[n].colorMaxDropDown="green"),i.maxDropDown<e.accountsData[n].maxDropDown&&(e.accountsData[n].colorMaxDropDown="red"),e.changeDetection.detectChanges(),e.accountsData[n].balance=i.balance,e.accountsData[n].equity=i.equity,e.accountsData[n].maxDropDown=i.maxDropDown,e.accountsData[n].dropDown=i.dropDown,e.accountsData[n].gain=i.gain,e.accountsData[n].login=i.login,e.accountsData[n].margin=i.margin,e.accountsData[n].marginFree=i.marginFree,e.accountsData[n].nameAdvisor=i.nameAdvisor,e.accountsData[n].url=i.url,e.accountsData[n].profit=i.profit,e.accountsData[n].profitFactor=i.profitFactor}},i=0;i<e.accountsData.length;i++)n(i);e.changeDetection.detectChanges()},function(t){e.lockClien=!1,e.alertService.stopLoadingMessage()}))}},{key:"UpdateBalance",value:function(){this.lockUpdate||this.UpdateAllBalance(null,!1)}},{key:"ShowCountDays",value:function(e){var t=this.accounts.find(function(t){return t.accountLogin==e});if(null!=t)return t.countDays}},{key:"isChartLoading",value:function(e){return this.loadingCharts.has(e.toString())}},{key:"UpdateGraph",value:function(e){var t=this,n=e.login.toString();this.loadingCharts.has(n)||(this.loadingCharts.add(n),this.chartsLoading=this.loadingCharts.size>0,requestAnimationFrame(function(){t.changeDetection.detectChanges()}),this.tradeeaService.getProfitDataOne(e.accountId,this.samplingInterval,this.enableAdaptiveSampling).pipe(De(this.ngUnsubscribe)).subscribe(function(i){var r=new AM;r=i;var a=t.accounts.findIndex(function(t){return t.accountLogin==e.login});-1==a?t.accounts.push(r):t.accounts[a]=r,t.loadingCharts.delete(n),t.chartsLoading=t.loadingCharts.size>0,requestAnimationFrame(function(){t.changeDetection.detectChanges()}),t.DrawGraph(r),t.DrawGain(r)},function(e){t.loadingCharts.delete(n),t.chartsLoading=t.loadingCharts.size>0,requestAnimationFrame(function(){t.changeDetection.detectChanges()}),t.alertService.stopLoadingMessage(),t.onCurrentUserDataLoadFailed(e)}))}},{key:"UpdateGraphNone",value:function(e){var t=this,n=new AM;this.tradeeaService.getProfitDataOne(e.accountId).pipe(De(this.ngUnsubscribe)).subscribe(function(i){n=i;var r=t.accounts.findIndex(function(t){return t.accountLogin==e.login});-1==r?t.accounts.push(n):t.accounts[r]=n},function(e){t.alertService.stopLoadingMessage(),t.onCurrentUserDataLoadFailed(e)})}},{key:"DrawGraph",value:function(e){if(null!=e&&0!=e.listBalance.length&&null!=document.getElementById("chart"+e.accountLogin)){var t=this.chartList.find(function(t){return t.login==e.accountLogin});null!=t&&null!=t.chart&&t.chart.remove();var n=MM(document.getElementById("chart"+e.accountLogin),{width:this.container.nativeElement.offsetWidt,height:300,layout:{backgroundColor:"#ffffff",textColor:"rgba(33, 56, 77, 1)"},grid:{vertLines:{color:"rgba(197, 203, 206, 0.7)"},horzLines:{color:"rgba(197, 203, 206, 0.7)"}},timeScale:{timeVisible:!0,secondsVisible:!1,fixLeftEdge:!0,fixRightEdge:!0}});this.lineSeries=n.addLineSeries({color:"rgba(67, 83, 254, 0.7)"}),this.lineSeries2=n.addLineSeries({color:"rgba(255, 192, 0, 0.7)"});for(var i=[],r=[],a=0;a<e.listBalance.length;){var o=e.listBalance[a];if(1===o.type||2===o.type){var s=o.type,l=null;if(1===s){for(var c=a-1;c>=0;c--)if(0===e.listBalance[c].type){l=e.listBalance[c];break}}else if(2===s)for(var u=a-1;u>=0;u--)if(0===e.listBalance[u].type||1===e.listBalance[u].type){l=e.listBalance[u];break}null==l&&a>0&&(l=e.listBalance[a-1]);for(var d=o,h=a+1;h<e.listBalance.length&&e.listBalance[h].type===s;)d=e.listBalance[h],h++;if(l&&d){var f=n.addLineSeries({color:1===s?"rgba(0, 200, 0, 0.8)":"rgba(255, 0, 0, 0.8)",lineWidth:4,lastValueVisible:!1,priceLineVisible:!1});f.setData([{time:l.time,value:l.value},{time:d.time,value:d.value}]),1===s?i.push(f):r.push(f)}a=h}else a++}this.lineSeries.setData(e.listBalance),this.lineSeries2.setData(e.listEquity),n.timeScale().fitContent();var p=this.chartList.find(function(t){return t.login==e.accountLogin});if(null==p){var m=new HM;m.login=e.accountLogin,m.chart=n,m.depositSeries=i,m.withdrawalSeries=r,this.chartList.push(m)}else p.chart=n,p.depositSeries=i,p.withdrawalSeries=r}}},{key:"DrawGain",value:function(e){if(null!=e&&0!=e.listBalance.length&&null!=document.getElementById("chartGain"+e.accountLogin)){var t=this.chartList.find(function(t){return t.login==e.accountLogin});null!=t&&null!=t.chartGain&&t.chartGain.remove();var n=MM(document.getElementById("chartGain"+e.accountLogin),{width:this.container.nativeElement.offsetWidt,height:300,layout:{backgroundColor:"#ffffff",textColor:"rgba(33, 56, 77, 1)"},grid:{vertLines:{color:"rgba(197, 203, 206, 0.7)"},horzLines:{color:"rgba(197, 203, 206, 0.7)"}},timeScale:{timeVisible:!0,secondsVisible:!1,fixLeftEdge:!0,fixRightEdge:!0}});this.lineSeries=n.addLineSeries({color:"rgba(67, 83, 254, 0.7)",lastValueVisible:!1,priceLineVisible:!1}),this.lineSeries2=n.addLineSeries({color:"rgba(255, 192, 0, 0.7)",lastValueVisible:!1,priceLineVisible:!1}),this.lineSeries.setData(e.listGain),n.timeScale().fitContent();var i=this.chartList.find(function(t){return t.login==e.accountLogin});if(null!=i)i.chartGain=n;else{var r=new HM;r.login=e.accountLogin,r.chartGain=n,this.chartList.push(r)}}}},{key:"EditText",value:function(e){e.isEdit=!0,e.isTrading=!1}},{key:"SaveText",value:function(e){for(var t,n=this,i=0;i<this.editors.length;i++){var r=this.editors.get(i);if(r.id==e.accountId){t=r;break}}t&&(e.isSaving=!0,this.changeDetection.detectChanges(),t.Save(function(t){e.isSaving=!1,e.isEdit=!1,e.isTrading=!1;var i=n.accounts.find(function(t){return t.accountLogin==e.login});null!=i&&(i.discribe=t),n.changeDetection.detectChanges()},function(t){e.isSaving=!1,n.changeDetection.detectChanges()}))}},{key:"CancelText",value:function(e){e.isEdit=!1,e.isTrading=!1}},{key:"onOrientationChange",value:function(e){null!=this.accountsData&&this.UpdateAllBalance()}},{key:"onResize",value:function(e){if((Math.abs(this.innerWidthOld-e.target.innerWidth)>30||null==this.innerWidthOld)&&null!=this.accountsData){var t=!1;try{t=this.deviceService.isDesktop()}catch(n){console.warn("DeviceDetectorService error:",n),t=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}t&&this.UpdateAllBalance(),this.innerWidthOld=e.target.innerWidth}}}]),e}
1()).\u0275fac=function(e){return new(e||ZF)(c.dc(z),c.dc(FM),c.dc(rD),c.dc(zb),c.dc(sD),c.dc(fD),c.dc(fw),c.dc(tk),c.dc(qT),c.dc(aT),c.dc(c.j),c.dc(bD),c.dc(c.Q),c.dc(PM),c.dc(nk),c.dc(ak))},ZF.\u0275cmp=c.Xb({type:ZF,selectors:[["app-tradingview"]],viewQuery:function(e,t){var n;1&e&&(c.ed(Kj,5),c.ed(Zj,5)),2&e&&(c.Mc(n=c.uc())&&(t.container=n.first),c.Mc(n=c.uc())&&(t.editors=n))},hostBindings:function(e,t){1&e&&c.tc("focus",function(e){return t.onFocus(e)},!1,c.Pc)("blur",function(e){return t.onBlur(e)},!1,c.Pc)("orientationchange",function(e){return t.onOrientationChange(e)},!1,c.Pc)("resize",function(e){return t.onResize(e)},!1,c.Pc)},inputs:{isSignal:"isSignal",userNameSort:"userNameSort"},decls:12,vars:15,consts:[["id","content",1,"container"],["container",""],[2,"width","100%","text-align","center","margin-bottom","17px"],[3,"destroyOnHide","activeIds","panelChange"],["acc","ngbAccordion"],["id","panelMy2",3,"title"],["ngbPanelContent",""],[3,"pageChange",4,"ngIf"],[4,"ngFor","ngForOf"],["matSort","",1,"table","table1",3,"matSortActive","matSortDirection","matSortChange"],[1,"row"],["mat-sort-header","balance",1,"cell"],["mat-sort-header","equity",1,"cell"],["mat-sort-header","profit",1,"cell"],["mat-sort-header","profit_days",1,"cell"],["mat-sort-header","total_days",1,"cell"],["mat-sort-header","dropDown",1,"cell"],["mat-sort-header","profitFactor",1,"cell"],["mat-sort-header","maxDropDown",1,"cell"],["mat-sort-header","gain",1,"cell"],["matSort","",1,"table","mat-table","table2",2,"height","150px",3,"matSortActive","matSortDirection","matSortChange"],[3,"pageChange"],[1,"header"],["target","_blank",3,"href"],[1,"days"],["class","header",4,"ngIf"],["class","subscribers",4,"ngIf"],[2,"width","100%","margin-bottom","10px","margin-top","10px"],[3,"title","id"],["style","height:20px",4,"ngIf"],[2,"width","100%","margin-top","10px"],[2,"width","10%"],["type","button",1,"btn","btn-primary",3,"disabled","title","click"],["style","width:10%;","class","trades",4,"ngIf"],["style","width:10%",4,"ngIf"],["style","width:10%","class","trades",4,"ngIf"],["style","text-align:right","class","trades",4,"ngIf"],["style","text-align:right",4,"ngIf"],["class","signals",4,"ngIf"],["style","width:10%","class","symbols",4,"ngIf"],["style","text-align:right","class","symbols",4,"ngIf"],["class","chart",4,"ngIf"],["class","chart-legend",3,"id",4,"ngIf"],[4,"ngIf"],["type","button",1,"btn","btn-primary",3,"click"],[1,"fa","fa-angle-left"],[1,"symbols",2,"padding-left","10px"],[1,"titleSymbol"],[3,"id"],[1,"table","table1"],[1,"row",2,"text-align","center"],["colspan","3",1,"cell"],[1,"cell"],[1,"cell",2,"width","12%"],[1,"table","table2"],[2,"border-right","2px solid"],[2,"color","black"],[1,"subscribers"],["style","width: 100%; text-align: center;",4,"ngIf"],["style","padding-bottom:10px;",3,"id","html",4,"ngIf"],["style","width: 100%; height: 100%; overflow-x: auto;",3,"innerHTML","onCreate",4,"ngIf"],["style","width: 100%; text-align: center;margin-top: 10px",4,"ngIf"],[2,"width","100%","text-align","center"],["type","button","class","btn btn-primary",3,"title","click",4,"ngIf"],["type","button",1,"btn","btn-primary",3,"title","click"],[2,"padding-bottom","10px",3,"id","html"],["editor",""],[2,"width","100%","height","100%","overflow-x","auto",3,"innerHTML","onCreate"],[2,"width","100%","text-align","center","margin-top","10px"],[2,"float","right"],["type","button","class","btn btn-primary",3,"disabled","title","click",4,"ngIf"],["class","fa fa-spinner fa-spin",4,"ngIf"],[1,"fa","fa-spinner","fa-spin"],[2,"height","20px"],[1,"trades",2,"width","10%"],[1,"fa","fa-dollar"],[1,"fa","fa-calendar"],[1,"fa","fa-credit-card"],[1,"fa","fa-battery"],[1,"fa","fa-history"],[1,"fa","fa-close"],[3,"ngModel","ngModelChange","change"],[1,"trades",2,"text-align","right"],[1,"link-primary",2,"color","green",3,"routerLink","queryParams"],[2,"text-align","right"],["type","button",1,"btn","btn-primary",3,"disabled","click"],[1,"fa","fa-angle-up"],[1,"fa","fa-angle-down"],[1,"signals"],["type","button",1,"btn","btn-primary",3,"title","disabled","click"],[1,"symbols",2,"width","10%"],[1,"symbols",2,"text-align","right"],[1,"chart"],[1,"chart-container",2,"position","relative"],[1,"chart",3,"id","onCreate"],["class","chart-loading-overlay",4,"ngIf"],[1,"chart-loading-overlay"],[1,"loading-spinner"],[1,"chart-legend",3,"id"],[1,"legend-item"],[1,"legend-color",2,"background-color","rgba(67, 83, 254, 0.7)"],[1,"legend-text"],[1,"legend-color",2,"background-color","rgba(255, 192, 0, 0.7)"],[1,"legend-color",2,"background-color","rgba(0, 200, 0, 0.8)"],[1,"legend-color",2,"background-color","rgba(255, 0, 0, 0.8)"],[1,"title"],[3,"dealsIn","myEvent"],[3,"statisticsIn","container","myEvent"]],template:function(e,t){1&e&&(c.jc(0,"div",0,1),c.jc(2,"div",2),c.jc(3,"ngb-accordion",3,4),c.tc("panelChange",function(e){return t.ChangeAcc(e)}),c.jc(5,"ngb-panel",5),c.yc(6,"translate"),c.Yc(7,Jj,42,4,"ng-template",6),c.ic(),c.ic(),c.ic(),c.Yc(8,eF,1,0,"pagination-controls",7),c.Yc(9,QF,226,130,"div",8),c.yc(10,"paginate"),c.Yc(11,KF,1,0,"pagination-controls",7),c.ic()),2&e&&(c.Pb(3),c.Dc("destroyOnHide",!1)("activeIds",t.activeIds),c.Pb(2),c.Dc("title",c.zc(6,6,"titles.Sort")),c.Pb(3),c.Dc("ngIf",t.isPageShow),c.Pb(1),c.Dc("ngForOf",c.Ac(10,8,t.accountsData,c.Jc(11,JF,t.itemsPerPage,t.currentPage,t.totalItems))),c.Pb(2),c.Dc("ngIf",t.isPageShow))},directives:[Vs,zs,Ys,l.m,l.l,So,Po,fy,FM,rE,aE,ho,Zr,Fa,mw,fD,Qj],pipes:[jc,cy],styles:['@charset "UTF-8";div[_ngcontent-%COMP%]{margin:1px;padding:1px;border:1px dotted #fff}.btn[_ngcontent-%COMP%]{white-space:nowrap}.table[_ngcontent-%COMP%]{display:table;background:#d9edf7;border-color:#3a87ad;empty-cells:show;width:100%}.row[_ngcontent-%COMP%]{display:table-row;background:#f2dede;border:1px dotted #fff}.cell[_ngcontent-%COMP%], .row[_ngcontent-%COMP%]{margin:1px;padding:1px}.cell[_ngcontent-%COMP%]{display:table-cell;background:#fbeed5;border:solid!important;border-width:1px!important;border-color:#436c99!important;color:#000;border:1px dotted #fff}.signals-content[_ngcontent-%COMP%]{min-height:400px}.signals-widget[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);animation:slideInUp .5s ease-out}.chart[_ngcontent-%COMP%]{height:300px}.chart-container[_ngcontent-%COMP%]{position:relative;height:300px}.chart-loading-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;bottom:0;background-color:hsla(0,0%,100%,.8);z-index:1000}.chart-loading-overlay[_ngcontent-%COMP%], .loading-spinner[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.loading-spinner[_ngcontent-%COMP%]{flex-direction:column;color:#007bff;font-size:14px}.loading-spinner[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:24px;margin-bottom:8px}.loading-spinner[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500}.widthTableSignal[_ngcontent-%COMP%]{width:10%;height:100px}.table1[_ngcontent-%COMP%], .table2[_ngcontent-%COMP%]{margin-top:2px}@media only screen and (min-width:1200px){.widthTable[_ngcontent-%COMP%]{width:100%}.trades[_ngcontent-%COMP%]{display:normal}.symbols[_ngcontent-%COMP%]{display:none}.table1[_ngcontent-%COMP%]{display:table}.table2[_ngcontent-%COMP%], .table3[_ngcontent-%COMP%]{display:none}.table[_ngcontent-%COMP%]{font-size:100%}.header[_ngcontent-%COMP%]{font-size:25px;overflow-x:auto;white-space:nowrap}.title[_ngcontent-%COMP%]{font-size:25px;font-weight:700}.signals[_ngcontent-%COMP%]{width:20%}.signals[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:12px}.titleSymbol[_ngcontent-%COMP%]{font-size:25px}.btn-primary[_ngcontent-%COMP%]{font-size:16px}}.btn-link[_ngcontent-%COMP%]{font-size:10px!important}@media only screen and (max-width:1200px){.widthTable[_ngcontent-%COMP%]{width:0}.trades[_ngcontent-%COMP%]{display:none}.symbols[_ngcontent-%COMP%]{display:normal}.table2[_ngcontent-%COMP%], .table3[_ngcontent-%COMP%]{display:table}.table3[_ngcontent-%COMP%]{text-align:center}.table1[_ngcontent-%COMP%]{display:none}.table[_ngcontent-%COMP%]{font-size:70%}.header[_ngcontent-%COMP%]{font-size:15px;overflow-x:auto;white-space:nowrap}.title[_ngcontent-%COMP%]{font-size:12px;font-weight:700}.signals[_ngcontent-%COMP%]{width:60%}.signals[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:8px}.titleSymbol[_ngcontent-%COMP%]{font-size:15px}.btn-primary[_ngcontent-%COMP%]{font-size:12px}}hr[_ngcontent-%COMP%]{display:block;height:1px;border:0;border-top:5px solid #0026ff;margin:1em 0;padding:0}.days[_ngcontent-%COMP%]{display:inline;color:green}a[_ngcontent-%COMP%]{text-decoration:none;border-bottom:2px solid #0026ff}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#00f}table[_ngcontent-%COMP%]{width:100%}.chart-legend[_ngcontent-%COMP%]{flex-wrap:wrap;justify-content:center;padding:5px 5px 20px;border:1px solid #dee2e6;border-top:none;gap:15px;margin-top:-1px}.chart-legend[_ngcontent-%COMP%], .legend-item[_ngcontent-%COMP%]{display:flex;align-items:center}.legend-item[_ngcontent-%COMP%]{gap:8px;margin:5px 10px}.legend-color[_ngcontent-%COMP%]{width:16px;height:16px;border-radius:3px;border:1px solid #ccc}.legend-text[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#333;white-space:nowrap}@media only screen and (min-width:1200px){table[_ngcontent-%COMP%]{font-size:15px}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding-right:5px;padding-left:5px}.subscribers[_ngcontent-%COMP%]{font-size:20px;color:green}}smart-accordion[_ngcontent-%COMP%]{width:100%;height:auto} ngb-accordion .card-header{background:linear-gradient(135deg,#f8f9fa,#e9ecef)!important;border:1px solid #dee2e6!important;border-radius:8px!important;padding:0!important;margin-bottom:8px!important;cursor:pointer!important;transition:background .3s ease,box-shadow .3s ease!important;box-shadow:0 2px 4px rgba(0,0,0,.05)!important;position:relative!important} ngb-accordion .card-header:hover{background:linear-gradient(135deg,#e9ecef,#dee2e6)!important;box-shadow:0 4px 8px rgba(0,0,0,.1)!important} ngb-accordion .card-header:active{background:linear-gradient(135deg,#dee2e6,#ced4da)!important;box-shadow:0 2px 4px rgba(0,0,0,.05)!important} ngb-accordion .card-header:after{content:"\uf107"!important;
1font-family:Font Awesome\\ 5 Free!important;font-weight:900!important;position:absolute!important;right:16px!important;top:50%!important;transform:translateY(-50%)!important;font-size:16px!important;color:#6c757d!important;transition:transform .3s ease,color .3s ease!important;pointer-events:none!important;z-index:1!important} ngb-accordion .card-header[aria-expanded=true]:after{transform:translateY(-50%) rotate(180deg)!important} ngb-accordion .card-header:hover:after{color:#495057!important} ngb-accordion .btn-link{color:#495057!important;font-weight:600!important;text-decoration:none!important;width:100%!important;text-align:left!important;padding:12px 16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative!important;z-index:2!important;pointer-events:auto!important;border-radius:8px!important} ngb-accordion .btn-link:hover{color:#212529!important;text-decoration:none!important} ngb-accordion .btn-link:focus{box-shadow:none!important;text-decoration:none!important;outline:none!important} ngb-accordion .btn-link:after{content:""!important;width:30px!important;height:16px!important;display:block!important;flex-shrink:0!important} ngb-accordion .btn-link span{flex:1!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important} ngb-accordion .card{border:none!important;background:transparent!important} ngb-accordion .card-body{background:#fff!important;border:1px solid #dee2e6!important;border-top:none!important;border-radius:0 0 8px 8px!important;margin-top:-8px!important;margin-bottom:16px!important;padding:16px!important;box-shadow:0 2px 4px rgba(0,0,0,.05)!important}@media only screen and (max-width:1200px){table[_ngcontent-%COMP%]{font-size:7px}td[_ngcontent-%COMP%], th[_ngcontent-%COMP%]{padding-right:1px;padding-left:1px}.subscribers[_ngcontent-%COMP%]{font-size:14px;color:green}.chart-legend[_ngcontent-%COMP%]{gap:8px}.legend-item[_ngcontent-%COMP%]{margin:0}.legend-color[_ngcontent-%COMP%]{width:12px;height:12px}.legend-text[_ngcontent-%COMP%]{font-size:10px}}'],changeDetection:0}),ZF),tR=["statusHeaderTemplate"],nR=["statusTemplate"],iR=["dateTemplate"],rR=["contentHeaderTemplate"],aR=["contenBodytTemplate"],oR=["actionsTemplate"];function sR(e,t){1&e&&c.ec(0,"i",7)}function lR(e,t){1&e&&c.ec(0,"span")}function cR(e,t){if(1&e&&(c.jc(0,"span"),c.ad(1),c.ic()),2&e){var n=t.row,i=t.value,r=c.xc();c.Vb("unread",!n.isRead),c.Qb("title",r.getPrintedDate(i)),c.Pb(1),c.cd(" ",r.getPrintedDate(i)," ")}}function uR(e,t){if(1&e&&(c.jc(0,"span"),c.ad(1),c.ic()),2&e){var n=t.row,i=t.value;c.Vb("unread",!n.isRead),c.Qb("title",n.body),c.Pb(1),c.cd(" ",i," ")}}function dR(e,t){if(1&e&&(c.jc(0,"span"),c.ad(1),c.ic()),2&e){var n=t.row,i=t.value;c.Vb("unread",!n.isRead),c.Qb("title",n.header),c.Pb(1),c.cd(" ",i," ")}}function hR(e,t){1&e&&c.ec(0,"i",13)}function fR(e,t){1&e&&c.ec(0,"i",14)}function pR(e,t){if(1&e){var n=c.kc();c.jc(0,"a",8),c.tc("click",function(){var e=c.Qc(n).row;return c.xc().deleteNotification(e)}),c.yc(1,"translate"),c.ec(2,"i",9),c.ic(),c.jc(3,"a",10),c.tc("click",function(){var e=c.Qc(n).row;return c.xc().togglePin(e)}),c.yc(4,"translate"),c.Yc(5,hR,1,0,"i",11),c.Yc(6,fR,1,0,"i",12),c.ic()}if(2&e){var i=t.row;c.Ec("tooltip",c.zc(1,4,"notifications.Delete")),c.Pb(3),c.Ec("tooltip",c.zc(4,6,"notifications.Pin")),c.Pb(2),c.Dc("ngIf",i.isPinned),c.Pb(1),c.Dc("ngIf",!i.isPinned)}}var mR,gR=((mR=function(){function e(t,n,i,r){_classCallCheck(this,e),this.alertService=t,this.translationService=n,this.accountService=i,this.notificationService=r,this.columns=[],this.rows=[],this.dataLoadingConsecutiveFailurs=0,this.verticalScrollbar=!1}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;if(this.isViewOnly)this.columns=[{prop:"date",cellTemplate:this.dateTemplate,width:100,resizeable:!1,canAutoResize:!1,sortable:!1,draggable:!1},{prop:"header",cellTemplate:this.contentHeaderTemplate,width:200,resizeable:!1,sortable:!1,draggable:!1}];else{var t=function(t){return e.translationService.getTranslation(t)};this.columns=[{prop:"",name:"",width:10,headerTemplate:this.statusHeaderTemplate,cellTemplate:this.statusTemplate,resizeable:!1,
1canAutoResize:!1,sortable:!1,draggable:!1},{prop:"date",name:t("notifications.Date"),cellTemplate:this.dateTemplate,width:30},{prop:"body",name:t("notifications.Notification"),cellTemplate:this.contenBodytTemplate,width:500},{name:"",width:80,cellTemplate:this.actionsTemplate,resizeable:!1,canAutoResize:!1,sortable:!1,draggable:!1}]}this.initDataLoading()}},{key:"ngOnDestroy",value:function(){this.dataLoadingSubscription&&this.dataLoadingSubscription.unsubscribe()}},{key:"initDataLoading",value:function(){var e=this;if(this.isViewOnly&&this.notificationService.recentNotifications)this.rows=this.processResults(this.notificationService.recentNotifications);else{this.loadingIndicator=!0;var t=this.isViewOnly?this.notificationService.getNewNotifications():this.notificationService.getNewNotificationsPeriodically();this.dataLoadingSubscription=t.subscribe(function(t){e.loadingIndicator=!1,e.dataLoadingConsecutiveFailurs=0,e.rows=e.processResults(t)},function(t){e.loadingIndicator=!1,e.alertService.showMessage("Load Error","Loading new notifications from the server failed!",OM.warn),e.alertService.logError(t),e.dataLoadingConsecutiveFailurs++<5?setTimeout(function(){return e.initDataLoading()},5e3):e.alertService.showStickyMessage("Load Error","Loading new notifications from the server failed!",OM.error)}),this.isViewOnly&&(this.dataLoadingSubscription=null)}}},{key:"processResults",value:function(e){return this.isViewOnly&&e.sort(function(e,t){return t.date.valueOf()-e.date.valueOf()}),e}},{key:"getPrintedDate",value:function(e){if(e)return ek.printTimeOnly(e)+" on "+ek.printDateOnly(e)}},{key:"deleteNotification",value:function(e){var t=this;this.alertService.showDialog('Are you sure you want to delete the notification "'+e.header+'"?',LM.confirm,function(){return t.deleteNotificationHelper(e)})}},{key:"deleteNotificationHelper",value:function(e){var t=this;this.alertService.startLoadingMessage("Deleting..."),this.loadingIndicator=!0,this.notificationService.deleteNotification(e).subscribe(function(n){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.rows=t.rows.filter(function(t){return t.id!==e.id})},function(e){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.alertService.showStickyMessage("Delete Error",'An error occured whilst deleting the notification.\r\nError: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)})}},{key:"togglePin",value:function(e){var t=this,n=!e.isPinned,i=n?"Pinning":"Unpinning";this.alertService.startLoadingMessage(i+"..."),this.loadingIndicator=!0,this.notificationService.pinUnpinNotification(e,n).subscribe(function(i){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,e.isPinned=n},function(e){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.alertService.showStickyMessage(i+" Error","An error occured whilst ".concat(i,' the notification.\r\nError: "').concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)})}},{key:"canManageNotifications",get:function(){return this.accountService.userHasPermission(pD.manageRolesPermission)}}]),e}()).\u0275fac=function(e){return new(e||mR)(c.dc(PM),c.dc(nk),c.dc(HD),c.dc(tT))},mR.\u0275cmp=c.Xb({type:mR,selectors:[["app-notifications-viewer"]],viewQuery:function(e,t){var n;1&e&&(c.ed(tR,7),c.ed(nR,7),c.ed(iR,7),c.ed(rR,7),c.ed(aR,7),c.ed(oR,7)),2&e&&(c.Mc(n=c.uc())&&(t.statusHeaderTemplate=n.first),c.Mc(n=c.uc())&&(t.statusTemplate=n.first),c.Mc(n=c.uc())&&(t.dateTemplate=n.first),c.Mc(n=c.uc())&&(t.contentHeaderTemplate=n.first),c.Mc(n=c.uc())&&(t.contenBodytTemplate=n.first),c.Mc(n=c.uc())&&(t.actionsTemplate=n.first))},inputs:{isViewOnly:"isViewOnly",verticalScrollbar:"verticalScrollbar"},decls:14,vars:9,consts:[[1,"material","colored-header","sm","table-hover",3,"loadingIndicator","rows","rowHeight","headerHeight","footerHeight","limit","columns","scrollbarV","columnMode"],["statusHeaderTemplate",""],["statusTemplate",""],["dateTemplate",""],["contentHeaderTemplate",""],["contenBodytTemplate",""],["actionsTemplate",""],[1,"fa","fa-bullhorn"],["href","javascript:;","container","body",1,"btn","btn-link","btn-sm",3,"tooltip","click"],[1,"fa","fa-times"],["href","javascript:;","co","","container","body",1,"btn","btn-link","btn-sm",3,"tooltip","click"],["class","fa fa-thumb-tack",4,"ngIf"],["class","fa fa-thumb-tack fa-rotate-90",4,"ngIf"],[1,"fa","fa-thumb-tack"],[1,"fa","fa-thumb-tack","fa-rotate-90"]],template:function(e,t){1&e&&(c.jc(0,"div"),c.ec(1,"ngx-datatable",0),c.Yc(2,sR,1,0,"ng-template",null,1,c.Zc),c.Yc(4,lR,1,0,"ng-template",null,2,c.Zc),c.Yc(6,
1cR,2,4,"ng-template",null,3,c.Zc),c.Yc(8,uR,2,4,"ng-template",null,4,c.Zc),c.Yc(10,dR,2,4,"ng-template",null,5,c.Zc),c.Yc(12,pR,7,8,"ng-template",null,6,c.Zc),c.ic()),2&e&&(c.Pb(1),c.Dc("loadingIndicator",t.loadingIndicator)("rows",t.rows)("rowHeight",35)("headerHeight",t.isViewOnly?0:35)("footerHeight",35)("limit",10)("columns",t.columns)("scrollbarV",t.verticalScrollbar)("columnMode","force"))},directives:[yh,Dg,l.m],pipes:[jc],styles:[".unread[_ngcontent-%COMP%]{font-weight:700}"]}),mR),vR=["searchInput"];function yR(e,t){if(1&e){var n=c.kc();c.jc(0,"a",6),c.tc("click",function(){return c.Qc(n),c.xc().clear()}),c.ic()}}var bR,_R,wR=((_R=function(){function e(){_classCallCheck(this,e),this.placeholder="Search...",this.searchChange=new c.s}return _createClass(e,[{key:"onValueChange",value:function(e){var t=this;setTimeout(function(){return t.searchChange.emit(e)})}},{key:"clear",value:function(){this.searchInput.nativeElement.value="",this.onValueChange(this.searchInput.nativeElement.value)}}]),e}()).\u0275fac=function(e){return new(e||_R)},_R.\u0275cmp=c.Xb({type:_R,selectors:[["app-search-box"]],viewQuery:function(e,t){var n;1&e&&c.ed(vR,7),2&e&&c.Mc(n=c.uc())&&(t.searchInput=n.first)},hostBindings:function(e,t){1&e&&c.tc("keydown.escape",function(){return t.clear()})},inputs:{placeholder:"placeholder"},outputs:{searchChange:"searchChange"},decls:6,vars:2,consts:[[1,"icon-addon","addon-sm"],["for","searchInput","title","Search"],[1,"fa","fa-search","left-icon","search-icon"],["id","searchInput","type","search","ngModel","",1,"form-control","left-icon","right-icon",3,"ngModelChange"],["searchInput",""],["href","javascript:;","title","Clear","class","fa fa-times-circle clear-input right-icon",3,"click",4,"ngIf"],["href","javascript:;","title","Clear",1,"fa","fa-times-circle","clear-input","right-icon",3,"click"]],template:function(e,t){if(1&e&&(c.jc(0,"div",0),c.jc(1,"label",1),c.ec(2,"i",2),c.ic(),c.jc(3,"input",3,4),c.tc("ngModelChange",function(e){return t.onValueChange(e)}),c.ic(),c.Yc(5,yR,1,0,"a",5),c.ic()),2&e){var n=c.Nc(4);c.Pb(3),c.Qb("placeholder",t.placeholder),c.Pb(2),c.Dc("ngIf",n.value)}},directives:[Er,Zr,Fa,l.m],styles:[".search-icon[_ngcontent-%COMP%]{pointer-events:none}input[type=text][_ngcontent-%COMP%]::-ms-clear{display:none;width:0;height:0}input[type=text][_ngcontent-%COMP%]::-ms-reveal{display:none;width:0;height:0}input[type=search][_ngcontent-%COMP%]::-webkit-search-cancel-button, input[type=search][_ngcontent-%COMP%]::-webkit-search-decoration, input[type=search][_ngcontent-%COMP%]::-webkit-search-results-button, input[type=search][_ngcontent-%COMP%]::-webkit-search-results-decoration{display:none}"]}),_R),kR=((bR=function(){function e(t){_classCallCheck(this,e),this.elementRef=t}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){return e.elementRef.nativeElement.focus()},500)}}]),e}()).\u0275fac=function(e){return new(e||bR)(c.dc(c.q))},bR.\u0275dir=c.Yb({type:bR,selectors:[["","appAutofocus",""]]}),bR),CR=["statusHeaderTemplate"],xR=["statusTemplate"],SR=["nameTemplate"],MR=["descriptionTemplate"],DR=["actionsTemplate"],TR=["editorModal"];function ER(e,t){1&e&&c.ec(0,"i",27)}function AR(e,t){if(1&e&&(c.jc(0,"div",28),c.jc(1,"input",29),c.tc("ngModelChange",function(e){return t.row.completed=e}),c.ic(),c.ec(2,"label",30),c.ic()),2&e){var n=t.row,i=t.value;c.Pb(1),c.Rb("name","checkboxes-",i,""),c.Dc("ngModel",n.completed)}}function PR(e,t){if(1&e){var n=c.kc();c.jc(0,"span",33),c.tc("dblclick",function(){c.Qc(n);var e=c.xc().row;return c.xc().editing[e.$$index+"-name"]=!0}),c.ad(1),c.ic()}if(2&e){var i=c.xc(),r=i.value;c.Vb("completed",i.row.completed),c.Rb("title","Double click to edit - ",r,""),c.Pb(1),c.cd(" ",r," ")}}function LR(e,t){if(1&e){var n=c.kc();c.jc(0,"input",34),c.tc("blur",function(e){c.Qc(n);var t=c.xc(),i=t.value,r=t.row;return c.xc().updateValue(e,"name",i,r)}),c.ic()}if(2&e){var i=c.xc().value;c.Dc("value",i)}}function OR(e,t){if(1&e&&(c.Yc(0,PR,2,4,"span",31),c.Yc(1,LR,1,1,"input",32)),2&e){var n=t.row,i=c.xc();c.Dc("ngIf",!i.editing[n.$$index+"-name"]),c.Pb(1),c.Dc("ngIf",i.editing[n.$$index+"-name"])}}function IR(e,t){if(1&e){var n=c.kc();c.jc(0,"span",33),c.tc("dblclick",function(){c.Qc(n);var e=c.xc().row;return c.xc().editing[e.$$index+"-description"]=!0}),c.ad(1),c.ic()}if(2&e){var i=c.xc(),r=i.value;c.Vb("completed",i.row.completed),c.Rb("title","Double click to edit - ",r,""),c.Pb(1),c.cd(" ",r," ")}}function HR(e,t){if(1&e){var n=c.kc();c.jc(0,"input",34),c.tc("blur",function(e){c.Qc(n);var t=c.xc(),i=t.value,r=t.row;
1return c.xc().updateValue(e,"description",i,r)}),c.ic()}if(2&e){var i=c.xc().value;c.Dc("value",i)}}function jR(e,t){if(1&e&&(c.Yc(0,IR,2,4,"span",31),c.Yc(1,HR,1,1,"input",32)),2&e){var n=t.row,i=c.xc();c.Dc("ngIf",!i.editing[n.$$index+"-description"]),c.Pb(1),c.Dc("ngIf",i.editing[n.$$index+"-description"])}}function FR(e,t){1&e&&c.ec(0,"i",40)}function RR(e,t){1&e&&c.ec(0,"i",41)}function NR(e,t){if(1&e){var n=c.kc();c.jc(0,"a",35),c.tc("click",function(){var e=c.Qc(n).row;return c.xc().delete(e)}),c.yc(1,"translate"),c.ec(2,"i",36),c.ic(),c.jc(3,"a",37),c.tc("click",function(){var e=t.row;return e.important=!e.important})("mouseover",function(){return t.row.isMouseOver=!0})("mouseout",function(){return t.row.isMouseOver=!1}),c.yc(4,"translate"),c.Yc(5,FR,1,0,"i",38),c.Yc(6,RR,1,0,"i",39),c.ic()}if(2&e){var i=t.row;c.Ec("tooltip",c.zc(1,4,"todoDemo.management.Delete")),c.Pb(3),c.Ec("tooltip",c.zc(4,6,"todoDemo.management.Important")),c.Pb(2),c.Dc("ngIf",i.important||i.isMouseOver),c.Pb(1),c.Dc("ngIf",!i.important&&!i.isMouseOver)}}function BR(e,t){1&e&&(c.jc(0,"span",63),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"todoDemo.editor.TaskNameRequired")," "))}var YR=function(e,t){return{"is-valid":e,"is-invalid":t}};function zR(e,t){if(1&e){var n=c.kc();c.jc(0,"form",42,43),c.tc("ngSubmit",function(){c.Qc(n);var e=c.Nc(1),t=c.Nc(8),i=c.xc();return e.form.valid?i.save():!t.valid&&i.showErrorAlert("Task name is required","Please enter a name for the task")}),c.jc(2,"div",44),c.jc(3,"label",45),c.ad(4),c.yc(5,"translate"),c.ic(),c.jc(6,"div",46),c.jc(7,"input",47,48),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().taskEdit.name=e}),c.ic(),c.Yc(9,BR,3,3,"span",49),c.ic(),c.ic(),c.jc(10,"div",50),c.jc(11,"label",51),c.ad(12),c.yc(13,"translate"),c.ic(),c.jc(14,"div",46),c.jc(15,"input",52),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().taskEdit.description=e}),c.ic(),c.ic(),c.ic(),c.jc(16,"div",53),c.ec(17,"label",54),c.jc(18,"div",46),c.jc(19,"div",28),c.jc(20,"input",55),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().taskEdit.important=e}),c.ic(),c.jc(21,"label",56),c.ad(22),c.yc(23,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(24,"div",53),c.jc(25,"div",57),c.ec(26,"hr",58),c.ic(),c.ic(),c.jc(27,"div",59),c.jc(28,"div",60),c.jc(29,"button",61),c.ad(30),c.yc(31,"translate"),c.ic(),c.ic(),c.ic(),c.ec(32,"div",62),c.ic()}if(2&e){var i=c.Nc(1),r=c.Nc(8),a=c.xc();c.Pb(4),c.cd("",c.zc(5,9,"todoDemo.editor.Name"),":"),c.Pb(3),c.Dc("ngClass",c.Ic(17,YR,i.submitted&&r.valid,i.submitted&&!r.valid))("ngModel",a.taskEdit.name),c.Pb(2),c.Dc("ngIf",i.submitted&&!r.valid),c.Pb(3),c.cd("",c.zc(13,11,"todoDemo.editor.Description"),":"),c.Pb(3),c.Dc("ngModel",a.taskEdit.description),c.Pb(5),c.Dc("ngModel",a.taskEdit.important),c.Pb(2),c.bd(c.zc(23,13,"todoDemo.editor.Important")),c.Pb(8),c.bd(c.zc(31,15,"todoDemo.editor.AddTask"))}}var VR,UR,$R=((UR=function(){function e(t,n,i,r){_classCallCheck(this,e),this.alertService=t,this.translationService=n,this.localStorage=i,this.authService=r,this.rows=[],this.rowsCache=[],this.columns=[],this.editing={},this.taskEdit={},this.isDataLoaded=!1,this.loadingIndicator=!0,this.formResetToggle=!0,this._hideCompletedTasks=!1,this.verticalScrollbar=!1}return _createClass(e,[{key:"currentUserId",get:function(){return this.authService.currentUser&&(this._currentUserId=this.authService.currentUser.id),this._currentUserId}},{key:"hideCompletedTasks",get:function(){return this._hideCompletedTasks},set:function(e){this.rows=e?this.rowsCache.filter(function(e){return!e.completed}):_toConsumableArray(this.rowsCache),this._hideCompletedTasks=e}},{key:"ngOnInit",value:function(){var e=this;this.loadingIndicator=!0,this.fetch(function(t){e.refreshDataIndexes(t),e.rows=t,e.rowsCache=_toConsumableArray(t),e.isDataLoaded=!0,setTimeout(function(){e.loadingIndicator=!1},1500)});var t=function(t){return e.translationService.getTranslation(t)};this.columns=[{prop:"completed",name:"",width:30,headerTemplate:this.statusHeaderTemplate,cellTemplate:this.statusTemplate,resizeable:!1,
1canAutoResize:!1,sortable:!1,draggable:!1},{prop:"name",name:t("todoDemo.management.Task"),cellTemplate:this.nameTemplate,width:200},{prop:"description",name:t("todoDemo.management.Description"),cellTemplate:this.descriptionTemplate,width:500},{name:"",width:80,cellTemplate:this.actionsTemplate,resizeable:!1,canAutoResize:!1,sortable:!1,draggable:!1}]}},{key:"ngOnDestroy",value:function(){this.saveToDisk()}},{key:"fetch",value:function(e){var t=this,n=this.getFromDisk();null==n?setTimeout(function(){null==(n=t.getFromDisk())&&(n=[{completed:!0,important:!0,name:"Create visual studio extension",description:"Create a visual studio VSIX extension package that will add this project as an aspnet-core project template"},{completed:!1,important:!0,name:"Do a quick how-to writeup",description:""},{completed:!1,important:!1,name:"Create aspnet-core/Angular tutorials based on this project",description:"Create tutorials (blog/video/youtube) on how to build applications (full stack) using aspnet-core/Angular. The tutorial will focus on getting productive with the technology right away rather than the details on how and why they work so audience can get onboard quickly."}]),e(n)},1e3):e(n)}},{key:"refreshDataIndexes",value:function(e){var t,n=0,i=_createForOfIteratorHelper(e);try{for(i.s();!(t=i.n()).done;)t.value.$$index=n++}catch(r){i.e(r)}finally{i.f()}}},{key:"onSearchChanged",value:function(e){this.rows=this.rowsCache.filter(function(t){return ek.searchArray(e,!1,t.name,t.description)||"important"===e&&t.important||"not important"===e&&!t.important})}},{key:"showErrorAlert",value:function(e,t){this.alertService.showMessage(e,t,OM.error)}},{key:"addTask",value:function(){var e=this;this.formResetToggle=!1,setTimeout(function(){e.formResetToggle=!0,e.taskEdit={},e.editorModal.show()})}},{key:"save",value:function(){this.rowsCache.splice(0,0,this.taskEdit),this.rows.splice(0,0,this.taskEdit),this.refreshDataIndexes(this.rowsCache),this.rows=_toConsumableArray(this.rows),this.saveToDisk(),this.editorModal.hide()}},{key:"updateValue",value:function(e,t,n,i){this.editing[i.$$index+"-"+t]=!1,this.rows[i.$$index][t]=e.target.value,this.rows=_toConsumableArray(this.rows),this.saveToDisk()}},{key:"delete",value:function(e){var t=this;this.alertService.showDialog("Are you sure you want to delete the task?",LM.confirm,function(){return t.deleteHelper(e)})}},{key:"deleteHelper",value:function(e){this.rowsCache=this.rowsCache.filter(function(t){return t!==e}),this.rows=this.rows.filter(function(t){return t!==e}),this.saveToDisk()}},{key:"getFromDisk",value:function(){return this.localStorage.getDataObject("".concat(e.DBKeyTodoDemo,":").concat(this.currentUserId))}},{key:"saveToDisk",value:function(){this.isDataLoaded&&this.localStorage.saveSyncedSessionData(this.rowsCache,"".concat(e.DBKeyTodoDemo,":").concat(this.currentUserId))}}]),e}()).DBKeyTodoDemo="todo-demo.todo_list",UR.\u0275fac=function(e){return new(e||UR)(c.dc(PM),c.dc(nk),c.dc(tk),c.dc(bD))},UR.\u0275cmp=c.Xb({type:UR,selectors:[["app-todo-demo"]],viewQuery:function(e,t){var n;1&e&&(c.ed(CR,7),c.ed(xR,7),c.ed(SR,7),c.ed(MR,7),c.ed(DR,7),c.ed(TR,7)),2&e&&(c.Mc(n=c.uc())&&(t.statusHeaderTemplate=n.first),c.Mc(n=c.uc())&&(t.statusTemplate=n.first),c.Mc(n=c.uc())&&(t.nameTemplate=n.first),c.Mc(n=c.uc())&&(t.descriptionTemplate=n.first),c.Mc(n=c.uc())&&(t.actionsTemplate=n.first),c.Mc(n=c.uc())&&(t.editorModal=n.first))},inputs:{verticalScrollbar:"verticalScrollbar"},decls:43,vars:23,consts:[[1,"row","control-box"],[1,"col-lg-8"],[1,"form-group","search-box"],[3,"placeholder","searchChange"],[1,"col-lg-4"],[1,"nav","flex-column","flex-lg-row"],[1,"nav-item","toolbaritem"],["href","javascript:;",1,"nav-link",3,"click"],[1,"fa","fa-eye-slash"],[1,"fa","fa-plus"],[1,"material","colored-header","sm","table-hover",3,"loadingIndicator","rows","rowHeight","headerHeight","footerHeight","columns","scrollbarV","columnMode"],["statusHeaderTemplate",""],["statusTemplate",""],["nameTemplate",""],["descriptionTemplate",""],["actionsTemplate",""],["bsModal","","tabindex","-1",1,"modal","fade"],["editorModal","bs-modal"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","float-left"],[1,"fa","fa-tasks"],["type","button","title","Close",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],["name","taskEditorForm","novalidate","",3,"ngSubmit",4,"ngIf"],[1,"fa","fa-check-square-o"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"ngModel","ngModelChange"],[1,"form-check-label"],["class","inline-label",3,"completed","dblclick",4,"ngIf"],["class","inline-editor","appAutofocus","","type","text",3,"value","blur",4,"ngIf"],[1,"inline-label",3,"dblclick"],["appAutofocus","","type","text",1,"inline-editor",3,"value","blur"],["href","javascript:;","container","body",1,"btn","btn-link","btn-sm",3,"tooltip","click"],[1,"fa","fa-times"],["href","javascript:;","container","body",1,"btn","btn-link","btn-sm",3,"tooltip","click","mouseover","mouseout"],["class","fa fa-bookmark",4,"ngIf"],["class","fa fa-bookmark-o",4,"ngIf"],[1,"fa","fa-bookmark"],[1,"fa","fa-bookmark-o"],["name","taskEditorForm","novalidate","",3,"ngSubmit"],["f","ngForm"],[1,"form-group","row"],["for","taskName",1,"col-form-label","col-md-3"],[1,"col-md-9"],["appAutofocus","","type","text","id","taskName","name","taskName","placeholder","Enter task name","required","",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["taskName","ngModel"],["class","invali
1d-feedback",4,"ngIf"],[1,"form-group","row","description-form-group"],["for","taskDescription",1,"col-form-label","col-md-3"],["type","text","id","taskDescription","name","taskDescription","placeholder","Enter task description",1,"form-control",3,"ngModel","ngModelChange"],[1,"row"],[1,"col-form-label","col-md-3"],["id","isImportant","name","isImportant","type","checkbox",1,"form-check-input",3,"ngModel","ngModelChange"],["for","isImportant",1,"form-check-label"],[1,"col-md-12"],[1,"edit-last-separator-hr"],[1,"form-group","actionBtn-form-group"],[1,"float-right"],["type","submit",1,"btn","btn-primary"],[1,"clearfix"],[1,"invalid-feedback"]],template:function(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"div",0),c.jc(2,"div",1),c.jc(3,"div",2),c.jc(4,"app-search-box",3),c.tc("searchChange",function(e){return t.onSearchChanged(e)}),c.yc(5,"translate"),c.ic(),c.ic(),c.ic(),c.jc(6,"div",4),c.jc(7,"ul",5),c.jc(8,"li",6),c.jc(9,"a",7),c.tc("click",function(){return t.hideCompletedTasks=!t.hideCompletedTasks}),c.ec(10,"i",8),c.ad(11),c.yc(12,"translate"),c.ic(),c.ic(),c.jc(13,"li",6),c.jc(14,"a",7),c.tc("click",function(){return t.addTask()}),c.ec(15,"i",9),c.ad(16),c.yc(17,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ec(18,"ngx-datatable",10),c.Yc(19,ER,1,0,"ng-template",null,11,c.Zc),c.Yc(21,AR,3,2,"ng-template",null,12,c.Zc),c.Yc(23,OR,2,2,"ng-template",null,13,c.Zc),c.Yc(25,jR,2,2,"ng-template",null,14,c.Zc),c.Yc(27,NR,7,8,"ng-template",null,15,c.Zc),c.jc(29,"div",16,17),c.jc(31,"div",18),c.jc(32,"div",19),c.jc(33,"div",20),c.jc(34,"h4",21),c.ec(35,"i",22),c.ad(36),c.yc(37,"translate"),c.ic(),c.jc(38,"button",23),c.tc("click",function(){return c.Qc(n),c.Nc(30).hide()}),c.jc(39,"span",24),c.ad(40,"\xd7"),c.ic(),c.ic(),c.ic(),c.jc(41,"div",25),c.Yc(42,zR,33,20,"form",26),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()}2&e&&(c.Pb(4),c.Ec("placeholder",c.zc(5,15,"todoDemo.management.Search")),c.Pb(4),c.Vb("active",t.hideCompletedTasks),c.Pb(3),c.cd(" ",c.zc(12,17,"todoDemo.management.HideCompleted"),""),c.Pb(5),c.cd(" ",c.zc(17,19,"todoDemo.management.AddTask"),""),c.Pb(2),c.Dc("loadingIndicator",t.loadingIndicator)("rows",t.rows)("rowHeight",35)("headerHeight",35)("footerHeight",35)("columns",t.columns)("scrollbarV",t.verticalScrollbar)("columnMode","force"),c.Pb(18),c.cd(" ",c.zc(37,21,"todoDemo.editor.NewTask"),""),c.Pb(6),c.Dc("ngIf",t.formResetToggle))},directives:[wR,yh,_g,l.m,Mr,Zr,Fa,kR,Dg,Ra,Jr,Ia,Er,Wa,l.k],pipes:[jc],styles:["input.form-control[_ngcontent-%COMP%]{border-left-width:5px}.control-box[_ngcontent-%COMP%]{margin-bottom:5px}.search-box[_ngcontent-%COMP%]{margin:0}.nav-item.toolbaritem[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:3px;min-width:100px;font-weight:700}.completed[_ngcontent-%COMP%]{text-decoration:line-through}.form-check[_ngcontent-%COMP%]{margin:0}.inline-label[_ngcontent-%COMP%]{width:100%;min-height:1rem;display:inline-block}.inline-editor[_ngcontent-%COMP%]{width:100%}.description-form-group[_ngcontent-%COMP%]{margin-bottom:5px}.actionBtn-form-group[_ngcontent-%COMP%]{margin:0}.edit-last-separator-hr[_ngcontent-%COMP%]{margin:10px 0}"]}),UR),WR=((VR=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||VR)},VR.\u0275cmp=c.Xb({type:VR,selectors:[["app-banner-demo"]],decls:123,vars:0,consts:[[1,"reduced-font"],["interval","6000"],["src","assets/images/demo/banner1.png","alt","ASP.NET",1,"img-fluid"],[1,"carousel-caption"],["href","http://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409","target","_blank",1,"btn","btn-outline-info","btn-sm"],["src","assets/images/demo/banner2.png","alt","Visual Studio",1,"img-fluid"],["href","http://angular.io","target","_blank",1,"btn","btn-outline-primary","btn-sm"],["src","assets/images/demo/banner3.png","alt","Package Management",1,"img-fluid"],["href","http://go.microsoft.com/fwlink/?LinkID=525029&clcid=0x409","target","_blank",1,"btn","btn-outline-success","btn-sm"],["src","assets/images/demo/banner4.png","alt","Eben Monney",1,"img-fluid"],["href","https://www.ebenmonney.com/about","target","_blank",1,"btn","btn-outline-secondary","btn-sm"],[1,"row"],[1,"col-md-3"],["href","http://go.microsoft.com/fwlink/?LinkID=525028&clcid=0x409","target","_blank"],["href","http://angular.io","target","_blank"],["href","http://npmjs.com","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkID=398939","target","_blank"],["href","https://cli.angular.io","target","_blank"],["href","https://www.ebenmonney.com/quickapp#adding-pages","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkId=699315","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkId=699316","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkId=699317","target","_blank"],["href","https://www.ebenmonney.com/quickapp#adding-vendor-packages","target","_blank"],["href","https://www.ebenmonney.com/quickapp#building-vendor-packages","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkId=699319","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkId=518008","target","_blank"],["href","https://angular.io/guide/quickstart","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkId=398602","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkId=398603","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkID=699321","target","_blank"],["href","https://github.com/angular/angular-cli/wiki","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkID=699322","target","_blank"],["href","https://www.ebenmonney.com/quickapp","target","_blank"],["href","https://www.ebenmonney.com/quickapp#how-to-run-app","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkID=517853","target","_blank"],["href","http://go.microsoft.com/fwlink/?LinkID=398609","target","_blank"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"div"),c.jc(2,"carousel",1),c.jc(3,"slide"),c.ec(4,"img",2),c.jc(5,"div",3),c.jc(6,"p"),c.ad(7," Learn how to build ASP.NET apps that can run anywhere "),c.jc(8,"a",4),c.ad(9," Learn More "),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(10,"slide"),c.ec(11,"img",5),c.jc(12,"div",3),c.jc(13,"p"),c.ad(14," One platform for building modern web, native mobile and native desktop applications "),c.jc(15,"a",6),c.ad(16," Learn More "),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(17,"slide"),c.ec(18,"img",7),c.jc(19,"div",3),c.jc(20,"p"),
1c.ad(21," Bring in libraries from NuGet and npm, and bundle with angular/cli "),c.jc(22,"a",8),c.ad(23," Learn More "),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(24,"slide"),c.ec(25,"img",9),c.jc(26,"div",3),c.jc(27,"p"),c.ad(28," Follow me on social media for updates and tips on using this startup project "),c.jc(29,"a",10),c.ad(30," Learn More "),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(31,"div",11),c.jc(32,"div",12),c.jc(33,"h3"),c.ad(34,"Application uses"),c.ic(),c.jc(35,"ul"),c.jc(36,"li"),c.ad(37,"Restful API backend using the cross platform "),c.jc(38,"a",13),c.ad(39,"ASP.NET Core MVC"),c.ic(),c.ic(),c.jc(40,"li"),c.ad(41,"Client framework with "),c.jc(42,"a",14),c.ad(43,"Angular 11"),c.ic(),c.ad(44," and typescript"),c.ic(),c.jc(45,"li"),c.jc(46,"a",15),c.ad(47,"npm"),c.ic(),c.ad(48," for managing client-side libraries"),c.ic(),c.jc(49,"li"),c.ad(50,"Theming using "),c.jc(51,"a",16),c.ad(52,"Bootstrap"),c.ic(),c.ic(),c.jc(53,"li"),c.ad(54,"Module bundling with "),c.jc(55,"a",17),c.ad(56,"Angular CLI"),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(57,"div",12),c.jc(58,"h3"),c.ad(59,"How to"),c.ic(),c.jc(60,"ul"),c.jc(61,"li"),c.jc(62,"a",18),c.ad(63,"Add additional pages and set access permissions"),c.ic(),c.ic(),c.jc(64,"li"),c.jc(65,"a",19),c.ad(66,"Manage User Secrets using Secret Manager."),c.ic(),c.ic(),c.jc(67,"li"),c.jc(68,"a",20),c.ad(69,"Use logging to log a message."),c.ic(),c.ic(),c.jc(70,"li"),c.jc(71,"a",21),c.ad(72,"Add packages using NuGet."),c.ic(),c.ic(),c.jc(73,"li"),c.jc(74,"a",22),c.ad(75,"Add client packages using npm"),c.ic(),c.ic(),c.jc(76,"li"),c.jc(77,"a",23),c.ad(78,"Rebuild client vendor packages"),c.ic(),c.ic(),c.jc(79,"li"),c.jc(80,"a",24),c.ad(81,"Target development, staging or production environment."),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(82,"div",12),c.jc(83,"h3"),c.ad(84,"Overview"),c.ic(),c.jc(85,"ul"),c.jc(86,"li"),c.jc(87,"a",25),c.ad(88,"Conceptual overview of what is ASP.NET Core"),c.ic(),c.ic(),c.jc(89,"li"),c.jc(90,"a",26),c.ad(91,"QuickStart guide to Angular 11"),c.ic(),c.ic(),c.jc(92,"li"),c.jc(93,"a",27),c.ad(94,"Working with Data"),c.ic(),c.ic(),c.jc(95,"li"),c.jc(96,"a",28),c.ad(97,"Security"),c.ic(),c.ic(),c.jc(98,"li"),c.jc(99,"a",29),c.ad(100,"Client side development"),c.ic(),c.ic(),c.jc(101,"li"),c.jc(102,"a",30),c.ad(103,"Angular CLI documentation"),c.ic(),c.ic(),c.jc(104,"li"),c.jc(105,"a",31),c.ad(106,"Develop on different platforms"),c.ic(),c.ic(),c.jc(107,"li"),c.jc(108,"a",32),c.ad(109,"Read more on the documentation site"),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(110,"div",12),c.jc(111,"h3"),c.ad(112,"Run & Deploy"),c.ic(),c.jc(113,"ul"),c.jc(114,"li"),c.jc(115,"a",33),c.ad(116,"Run your app"),c.ic(),c.ic(),c.jc(117,"li"),c.jc(118,"a",34),c.ad(119,"Run tools such as EF migrations and more"),c.ic(),c.ic(),c.jc(120,"li"),c.jc(121,"a",35),c.ad(122,"Publish to Microsoft Azure Web Apps"),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ic())},directives:[Wg,qg],encapsulation:2}),VR);function qR(e,t){1&e&&(c.jc(0,"div",23),c.jc(1,"div",24),c.jc(2,"div",25),c.ec(3,"i",26),c.ic(),c.jc(4,"h4",27),c.ad(5),c.yc(6,"translate"),c.ic(),c.jc(7,"p",28),c.jc(8,"a",29),c.ec(9,"i",30),c.ad(10),c.yc(11,"translate"),c.ic(),c.ad(12),c.yc(13,"translate"),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(5),c.bd(c.zc(6,3,"home.NoWidgets1")),c.Pb(5),c.cd(" ",c.zc(11,5,"settings.tab.Preferences")," "),c.Pb(2),c.cd(" ",c.zc(13,7,"home.NoWidgets2")," "))}function GR(e,t){1&e&&(c.jc(0,"div",23),c.ec(1,"app-tradingview"),c.ic())}function XR(e,t){if(1&e){var n=c.kc();c.jc(0,"div",23),c.jc(1,"button",31),c.tc("click",function(){return c.Qc(n),c.xc().configurations.showDashboardNotifications=!1}),c.ec(2,"i",32),c.ic(),c.ec(3,"app-notifications-viewer"),c.ic()}}function QR(e,t){if(1&e){var n=c.kc();c.jc(0,"div",23),c.jc(1,"button",31),c.tc("click",function(){return c.Qc(n),c.xc().configurations.showDashboardTodo=!1}),c.ec(2,"i",32),c.ic(),c.ec(3,"app-todo-demo"),c.ic()}}function KR(e,t){if(1&e){var n=c.kc();c.jc(0,"div",23),c.jc(1,"button",31),c.tc("click",function(){return c.Qc(n),c.xc().configurations.showDashboardBanner=!1}),c.ec(2,"i",32),c.ic(),c.ec(3,"app-banner-demo"),c.ic()}}var ZR,JR,eN,tN,nN,iN,rN,aN=((rN=function(){function e(t){_classCallCheck(this,e),this.configurations=t,this.headerExpanded=!1}return _createClass(e,[{key:"toggleHeader",value:function(){this.headerExpanded=!this.headerExpanded}}]),e}()).\u0275fac=function(e){return new(e||rN)(c.dc(ak))},rN.\u0275cmp=c.Xb({type:rN,selectors:[["app-monitoring"]],decls:41,vars:31,consts:[[1,"container"],[1,"page-header-card"],[1,"page-header",3,"click"],[1,"page-header-content"],[1,"header-main"],[1,"page-title"],[1,"fas","fa-chevron-down"],[1,"header-details"],[1,"page-subtitle"],[1,"platform-links"],["target","_blank",1,"platform-link",3,"href"],[1,"fas","fa-chart-line"],[1,"separator"],[1,"fas","fa-chart-bar"],[1,"mobile-section"],[1,"mobile-app-link"],[1,"fab","fa-android"],["href","https://play.google.com/store/apps/details?id=com.forexvisible.app","target","_blank",1,"platform-link"],[1,"dashboard-content"],[1,"dashboard-widget"],[1,"widget-content"],[1,"row"],["class","col-12",4,"ngIf"],[1,"col-12"],[1,"empty-state-card"],[1,"empty-state-icon"],[1,"fas","fa-cog"],[1,"empty-state-title"],[1,"empty-state-description"],["routerLink","/settings","fragment","preferences",1,"settings-link"],[1,"fa","fa-sliders"],["type","button","aria-label","Close","title","Close",1,"widget-close",3,"click"],[1,"fas","fa-times"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"div",1),c.jc(2,"div",2),c.tc("click",function(){return t.toggleHeader()}),c.jc(3,"div",3),c.jc(4,"div",4),c.jc(5,"h1",5),c.ad(6),c.yc(7,"translate"),c.ic(),c.ec(8,"i",6),c.ic(),c.jc(9,"div",7),c.jc(10,"div",8),c.ad(11),c.yc(12,"translate"),c.jc(13,"div",9),c.jc(14,"a",10),c.yc(15,"translate"),c.ec(16,"i",11),c.ad(17),c.yc(18,"translate"),c.ic(),c.jc(19,"span",12),c.ad(20,"|"),c.ic(),c.jc(21,"a",10),c.yc(22,"translate"),c.ec(23,"i",13),c.ad(24),c.yc(25,"translate"),c.ic(),c.ic(),c.ic(),c.jc(26,"div",14),c.jc(27,"div",15),c.ec(28,"i",16),c.jc(29,"a",17),c.ad(30),c.yc(31,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(32,"div",18),c.jc(33,"div",19),c.jc(34,"div",20),c.jc(35,"div",21),c.Yc(36,qR,14,9,"div",22),c.Yc(37,GR,2,0,"div",22),c.Yc(38,XR,4,0,"div",22),c.Yc(39,QR,4,0,"div",22),c.Yc(40,KR,4,0,"div",22),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(6),c.bd(c.zc(7,17,"pageHeader.Monitoring")),c.Pb(2),c.Vb("rotated",t.headerExpanded),c.Pb(1),c.Vb("expanded",t.headerExpanded),c.Pb(2),c.cd(" ",c.zc(12,19,"titles.MainHeader")," "),c.Pb(3),c.Ec("href",c.zc(1
15,21,"titles.MainUrlMT5"),c.Tc),c.Pb(3),c.cd(" ",c.zc(18,23,"titles.MainHere")," MT5 "),c.Pb(4),c.Ec("href",c.zc(22,25,"titles.MainUrlMT4"),c.Tc),c.Pb(3),c.cd(" ",c.zc(25,27,"titles.MainHere")," MT4 "),c.Pb(6),c.cd(" ",c.zc(31,29,"titles.MainAndroid")," "),c.Pb(2),c.Dc("@fadeInOut",void 0),c.Pb(4),c.Dc("ngIf",!(t.configurations.showDashboardStatistics||t.configurations.showDashboardNotifications||t.configurations.showDashboardTodo||t.configurations.showDashboardBanner)),c.Pb(1),c.Dc("ngIf",t.configurations.showDashboardStatistics),c.Pb(1),c.Dc("ngIf",t.configurations.showDashboardNotifications),c.Pb(1),c.Dc("ngIf",t.configurations.showDashboardTodo),c.Pb(1),c.Dc("ngIf",t.configurations.showDashboardBanner))},directives:[l.m,mw,eR,gR,$R,WR],pipes:[jc],styles:['@charset "UTF-8";.page-header-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);transition:transform .3s ease,box-shadow .3s ease;margin-bottom:1.5rem}.page-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#26a69a);padding:1.2rem 1.5rem;cursor:pointer;transition:background .3s ease;position:relative;overflow:hidden}.page-header[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>\');opacity:.3}.page-header[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#3d8bfd,#249a8f)}.page-header-content[_ngcontent-%COMP%]{position:relative;z-index:1}.header-main[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem}.header-main[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;color:#fff;margin:0;text-shadow:0 2px 4px rgba(0,0,0,.3)}.header-main[_ngcontent-%COMP%] i.fa-chevron-down[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8);font-size:1.2rem;transition:transform .3s ease}.header-main[_ngcontent-%COMP%] i.fa-chevron-down.rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.header-details[_ngcontent-%COMP%]{max-height:0;overflow:hidden;transition:max-height .3s ease-out}.header-details.expanded[_ngcontent-%COMP%]{max-height:200px;transition:max-height .5s ease-in}.page-subtitle[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.95);font-size:.95rem;margin:0;opacity:0;transition:opacity .3s ease}.header-details.expanded[_ngcontent-%COMP%] .page-subtitle[_ngcontent-%COMP%]{opacity:1}.platform-links[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.platform-link[_ngcontent-%COMP%]{color:gold;text-decoration:underline;font-weight:600;transition:all .3s ease;padding:.2rem .4rem;border-radius:4px;background:rgba(255,215,0,.1)}.platform-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.platform-link[_ngcontent-%COMP%]:hover{color:orange;text-decoration:none;transform:scale(1.05);background:rgba(255,215,0,.2)}
1.separator[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.6);font-weight:300}.mobile-section[_ngcontent-%COMP%]{margin-top:1.5rem;animation:fadeInUp .8s ease-out .4s both}.mobile-app-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:1rem;opacity:.95;color:hsla(0,0%,100%,.95)}.mobile-app-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem;color:#4caf50}.mobile-app-link[_ngcontent-%COMP%] .platform-link[_ngcontent-%COMP%]{color:gold;text-decoration:underline;font-weight:600;margin-left:.3rem;transition:all .3s ease}.mobile-app-link[_ngcontent-%COMP%] .platform-link[_ngcontent-%COMP%]:hover{color:orange;text-decoration:none;transform:scale(1.05)}.widget-content[_ngcontent-%COMP%]{padding:1.5rem}.dashboard-widget[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);animation:slideInUp .5s ease-out}.signals-content[_ngcontent-%COMP%]{min-height:400px}.signals-widget[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);animation:slideInUp .5s ease-out}.user-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8f9fa,#dee2e6);padding:1.5rem;border-bottom:1px solid rgba(0,0,0,.05);gap:1rem}.back-button[_ngcontent-%COMP%], .user-header[_ngcontent-%COMP%]{display:flex;align-items:center}.back-button[_ngcontent-%COMP%]{background:#42a5f5;border:none;border-radius:50%;width:48px;height:48px;justify-content:center;color:#fff;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px rgba(66,165,245,.3)}.back-button[_ngcontent-%COMP%]:hover{background:#2196f3;transform:translateX(-2px);box-shadow:0 6px 16px rgba(66,165,245,.4)}.back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem}.user-info[_ngcontent-%COMP%]{flex:1}.user-name[_ngcontent-%COMP%]{margin:0;color:#2d3748;font-size:1.5rem;font-weight:700;line-height:1.2}.user-subtitle[_ngcontent-%COMP%]{margin:.25rem 0 0;color:#6c757d;font-size:.9rem;font-weight:500}.trading-container[_ngcontent-%COMP%]{padding:1.5rem;background:#fff}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInUp{0%{opacity:0;transform:translateY(50px)}to{opacity:1;transform:translateY(0)}}@media (max-width:768px){.page-header[_ngcontent-%COMP%]{padding:1rem;margin-bottom:1rem}.dashboard-widget[_ngcontent-%COMP%]{background:transparent;border-radius:0;box-shadow:none;border:none;padding:0}.widget-content[_ngcontent-%COMP%]{padding:.5rem 0}.row[_ngcontent-%COMP%]{margin:0}.col-12[_ngcontent-%COMP%]{padding:0}.page-title[_ngcontent-%COMP%]{font-size:1.2rem!important}.platform-links[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.8rem}.platform-link[_ngcontent-%COMP%]{width:100%;justify-content:center}
1.separator[_ngcontent-%COMP%]{display:none}.user-header[_ngcontent-%COMP%]{padding:1rem}.back-button[_ngcontent-%COMP%]{width:40px;height:40px}.user-name[_ngcontent-%COMP%]{font-size:1.3rem}.trading-container[_ngcontent-%COMP%]{padding:1rem}}@media (max-width:480px){.mobile-app-link[_ngcontent-%COMP%], .page-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.user-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.8rem}.back-button[_ngcontent-%COMP%]{align-self:flex-start}}@media (prefers-color-scheme:dark){.dashboard-widget[_ngcontent-%COMP%], .signals-widget[_ngcontent-%COMP%]{background:#37474f;border-color:hsla(0,0%,100%,.1)}.user-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#455a64,#37474f)}.user-name[_ngcontent-%COMP%]{color:#f7fafc}.user-subtitle[_ngcontent-%COMP%]{color:#b0bec5}.trading-container[_ngcontent-%COMP%]{background:#37474f}} ngb-accordion .card-header{background:linear-gradient(135deg,#f8f9fa,#e9ecef)!important;border:1px solid #dee2e6!important;border-radius:8px!important;padding:0!important;margin-bottom:8px!important;cursor:pointer!important;transition:background .3s ease,box-shadow .3s ease!important;box-shadow:0 2px 4px rgba(0,0,0,.05)!important;position:relative!important} ngb-accordion .card-header:hover{background:linear-gradient(135deg,#e9ecef,#dee2e6)!important;box-shadow:0 4px 8px rgba(0,0,0,.1)!important} ngb-accordion .card-header:active{background:linear-gradient(135deg,#dee2e6,#ced4da)!important;box-shadow:0 2px 4px rgba(0,0,0,.05)!important} ngb-accordion .card-header:after{content:"\uf107"!important;
1font-family:Font Awesome\\ 5 Free!important;font-weight:900!important;position:absolute!important;right:16px!important;top:50%!important;transform:translateY(-50%)!important;font-size:16px!important;color:#6c757d!important;transition:transform .3s ease,color .3s ease!important;pointer-events:none!important;z-index:1!important} ngb-accordion .card-header[aria-expanded=true]:after{transform:translateY(-50%) rotate(180deg)!important} ngb-accordion .card-header:hover:after{color:#495057!important} ngb-accordion .btn-link{color:#495057!important;font-weight:600!important;text-decoration:none!important;width:100%!important;text-align:left!important;padding:12px 16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative!important;z-index:2!important;pointer-events:auto!important;border-radius:8px!important} ngb-accordion .btn-link:hover{color:#212529!important;text-decoration:none!important} ngb-accordion .btn-link:focus{box-shadow:none!important;text-decoration:none!important;outline:none!important} ngb-accordion .btn-link:after{content:""!important;width:30px!important;height:16px!important;display:block!important;flex-shrink:0!important} ngb-accordion .btn-link span{flex:1!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important} ngb-accordion .card{border:none!important;background:transparent!important} ngb-accordion .card-body{background:#fff!important;border:1px solid #dee2e6!important;border-top:none!important;border-radius:0 0 8px 8px!important;margin-top:-8px!important;margin-bottom:16px!important;padding:16px!important;box-shadow:0 2px 4px rgba(0,0,0,.05)!important}@media (prefers-color-scheme:dark){ ngb-accordion .card-header{background:linear-gradient(135deg,#455a64,#37474f)!important;border-color:hsla(0,0%,100%,.1)!important} ngb-accordion .card-header:hover{background:linear-gradient(135deg,#37474f,#263238)!important} ngb-accordion .btn-link{color:#f7fafc!important} ngb-accordion .btn-link:hover{color:#e2e8f0!important} ngb-accordion .card-body{background:#37474f!important;border-color:hsla(0,0%,100%,.1)!important}}'],data:{animation:[Zw]}}),rN),oN=((iN=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||iN)},iN.\u0275cmp=c.Xb({type:iN,selectors:[["app-customers"]],decls:8,vars:4,consts:[[1,"container"],[1,"pageHeader"],["aria-hidden","true",1,"fa","fa-handshake-o","fa-lg","page-caption"],["verticalScrollbar","true"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"header",1),c.jc(2,"h3"),c.ec(3,"i",2),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.jc(6,"div"),c.ec(7,"app-todo-demo",3),c.ic(),c.ic()),2&e&&(c.Pb(4),c.cd(" ",c.zc(5,2,"pageHeader.Customers"),""),c.Pb(2),c.Dc("@fadeInOut",void 0))},directives:[$R],pipes:[jc],styles:[""],data:{animation:[Zw]}}),iN),sN=((nN=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,i,r)).configurations=e,a}return _createClass(n,[{key:"productsUrl",get:function(){return this.configurations.baseUrl+"/api/products"}},{key:"getProducts",value:function(){var e=this;return this.http.get(this.productsUrl,this.requestHeaders).pipe(Object(Cy.a)(function(t){return e.handleError(t,function(){return e.getProducts()})}))}},{key:"createProduct",value:function(e){var t=this;return this.http.post(this.productsUrl,JSON.stringify(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.createProduct(e)})}))}},{key:"updateProduct",value:function(e,t){var n=this;return this.http.put("".concat(this.productsUrl,"/").concat(e),JSON.stringify(t),this.requestHeaders).pipe(Object(Cy.a)(function(i){return n.handleError(i,function(){return n.updateProduct(e,t)})}))}},{key:"deleteProduct",value:function(e){var t=this;return this.http.delete("".concat(this.productsUrl,"/").concat(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.deleteProduct(e)})}))}}]),n}(OD)).\u0275fac=function(e){return new(e||nN)(c.qc(ak),c.qc($l.b),c.qc(bD))},nN.\u0275prov=c.Zb({token:nN,factory:nN.\u0275fac}),nN),lN=((tN=function(){function e(){_classCallCheck(this,e),this.GA_MEASUREMENT_ID="G-CCFNN5KJGT","undefined"!=typeof window&&window.gtag&&this.initializeAnalytics()}return _createClass(e,[{key:"initializeAnalytics",value:function(){window.gtag("config",this.GA_MEASUREMENT_ID,{send_page_view:!1,anonymize_ip:!0,cookie_flags:"SameSite=Lax;Secure"})}},{key:"trackPageView",value:function(e,t){"undefined"!=typeof window&&window.gtag&&window.gtag("config",this.GA_MEASUREMENT_ID,{page_path:e,page_title:t||document.title})}},{key:"trackEvent",value:function(e,t){"undefined"!=typeof window&&window.gtag&&window.gtag("event",e,t)}},{key:"trackUserInteraction",value:function(e,t,n){this.trackEvent("user_interaction",{event_category:"engagement",event_label:"".concat(e,"_").concat(t),custom_context:n})}},{key:"trackTradingEvent",value:function(e,t,n){this.trackEvent("trading_action",{event_category:"trading",event_label:e,instrument:t,result:n})}},{key:"trackFormSubmission",value:function(e,t){this.trackEvent("form_submit",{event_category:"conversion",event_label:e,success:t})}},{key:"trackDownload",value:function(e,t){this.trackEvent("file_download",{event_category:"engagement",event_label:e,file_type:t})}},{key:"trackOutboundLink",value:function(e,t){this.trackEvent("outbound_click",{event_category:"navigation",event_label:e,link_text:t})}},{key:"trackSearchQuery",value:function(e,t){this.trackEvent("search",{event_category:"site_search",search_term:e,results_count:t})}},{key:"trackError",value:function(e,t,n){this.trackEvent("error",{event_category:"error_tracking",event_label:e,error_message:t,context:n})}},{key:"trackFeatureUsage",value:function(e,t){this.trackEvent("feature_usage",{event_category:"feature",event_label:e,usage_type:t})}}
1,{key:"trackSessionDuration",value:function(e){this.trackEvent("session_duration",{event_category:"engagement",value:e})}},{key:"setCustomDimension",value:function(e,t){"undefined"!=typeof window&&window.gtag&&window.gtag("config",this.GA_MEASUREMENT_ID,_defineProperty({},e,t))}},{key:"setUserProperty",value:function(e,t){"undefined"!=typeof window&&window.gtag&&window.gtag("config",this.GA_MEASUREMENT_ID,_defineProperty({},e,t))}},{key:"trackConversion",value:function(e,t,n){this.trackEvent("conversion",{event_category:"conversion",event_label:e,value:t,currency:n||"USD"})}}]),e}()).\u0275fac=function(e){return new(e||tN)},tN.\u0275prov=c.Zb({token:tN,factory:tN.\u0275fac,providedIn:"root"}),tN),cN=((eN=function(){function e(t){_classCallCheck(this,e),this.translationService=t}return _createClass(e,[{key:"transform",value:function(e){if(!e)return"";var t=this.translationService.getCurrentLanguage();return t&&t.startsWith("ru")?e.titleRu?e.titleRu:this.getStaticTitle(e.name):e.titleEn||""}},{key:"getStaticTitle",value:function(e){if(!e)return"";var t={phythonML:"products.titlePhythonML",MultiBolbands:"products.titleMultiBolbands",ForexVisible:"products.titleForexVisible",pythonLSTM:"products.titlePythonLSTM",QBotAI:"products.titleQBotAI",IntervalAI:"products.titleIntervalAI",omegaAI:"products.titleOmegaAI",alphaAI:"products.titleAlphaAI"},n=t[e];if(n)return this.translationService.getTranslation(n)||"";for(var i=e.toLowerCase(),r=0,a=Object.entries(t);r<a.length;r++){var o=_slicedToArray(a[r],2),s=o[0],l=o[1];if(i.includes(s.toLowerCase())||s.toLowerCase().includes(i))return this.translationService.getTranslation(l)||""}return e||""}}]),e}()).\u0275fac=function(e){return new(e||eN)(c.dc(nk,16))},eN.\u0275pipe=c.cc({name:"productTitle",type:eN,pure:!1}),eN),uN=((JR=function(){function e(t){_classCallCheck(this,e),this.translationService=t}return _createClass(e,[{key:"transform",value:function(e){if(!e)return"";var t=this.translationService.getCurrentLanguage();return t&&t.startsWith("ru")?e.descriptionRu?e.descriptionRu:this.getStaticDescription(e.name):e.descriptionEn||""}},{key:"getStaticDescription",value:function(e){if(!e)return"";var t={phythonML:"products.phythonML",MultiBolbands:"products.MultiBolbands",ForexVisible:"products.ForexVisible",pythonLSTM:"products.pythonLSTM",QBotAI:"products.QBotAI",IntervalAI:"products.IntervalAI",omegaAI:"products.omegaAI",alphaAI:"products.alphaAI"},n=t[e];if(n)return this.translationService.getTranslation(n)||"";for(var i=e.toLowerCase(),r=0,a=Object.entries(t);r<a.length;r++){var o=_slicedToArray(a[r],2),s=o[0],l=o[1];if(i.includes(s.toLowerCase())||s.toLowerCase().includes(i))return this.translationService.getTranslation(l)||""}return""}}]),e}()).\u0275fac=function(e){return new(e||JR)(c.dc(nk,16))},JR.\u0275pipe=c.cc({name:"productDescription",type:JR,pure:!1}),JR),dN=((ZR=function(){function e(t){_classCallCheck(this,e),this.translationService=t}return _createClass(e,[{key:"transform",value:function(e){if(!e)return"";var t=this.translationService.getCurrentLanguage();return t&&t.startsWith("ru")?e.titleRu?e.titleRu:this.getStaticButtonTitle(e):e.titleEn||""}},{key:"getStaticButtonTitle",value:function(e){for(var t,n,i,r=(null===(t=e.linkEn)||void 0===t?void 0:t.toLowerCase())||"",a=(null===(n=e.linkRu)||void 0===n?void 0:n.toLowerCase())||"",o=(null===(i=e.titleEn)||void 0===i?void 0:i.toLowerCase())||"",s=0,l=Object.entries({buyPhythonML:"products.buyPhythonML",buyMultiBolbands:"products.buyMultiBolbands",buyForexVisible:"products.buyForexVisible",buyPythonLSTM:"products.buyPythonLSTM",buyQBotAI:"products.buyQBotAI",buyIntervalAI:"products.buyIntervalAI",buyOmegaAI:"products.buyOmegaAI",buyAlphaAIDemo:"products.buyAlphaAIDemo",buyAlphaAITrainer:"products.buyAlphaAITrainer",buyAlphaAIShop:"products.buyAlphaAIShop",buyAlphaAIMQL5:"products.buyAlphaAIMQL5"});s<l.length;s++){var c=_slicedToArray(l[s],2),u=c[0],d=c[1];if(r.includes(u.toLowerCase())||a.includes(u.toLowerCase())||o.includes(u.toLowerCase()))return this.translationService.getTranslation(d)||e.titleEn||"\u0421\u043a\u0430\u0447\u0430\u0442\u044c"}return r.includes("mql5.com")||a.includes("mql5.com")?this.translationService.getTranslation("products.buyPhythonML")||e.titleEn||"\u0421\u043a\u0430\u0447\u0430\u0442\u044c":e.titleEn||"\u0421\u043a\u0430\u0447\u0430\u0442\u044c"}}]),e}()).\u0275fac=function(e){return new(e||ZR)(c.dc(nk,16))},ZR.\u0275pipe=c.cc({name:"buttonTitle",type:ZR,pure:!1}),ZR);function hN(e,t){if(1&e){var n=c.kc();c.jc(0,"div",10),c.jc(1,"button",11),c.tc("click",function(){return c.Qc(n),c.xc().toggleForm()}),c.ec(2,"i",12),c.ad(3),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(2),c.Dc("ngClass",i.showForm?"fa-times":"fa-plus"),c.Pb(1),c.cd(" ",i.showForm?"Cancel":i.editingProduct?"Edit Product":"Add New Product"," ")}}function fN(e,t){if(1&e){var n=c.kc();c.jc(0,"div",30),c.jc(1,"div",19),c.jc(2,"div",31),c.jc(3,"input",32),c.tc("ngModelChange",function(e){return t.$implicit.titleEn=e}),c.ic(),c.ic(),c.jc(4,"div",31),c.jc(5,"input",33),c.tc("ngModelChange",function(e){return t.$implicit.titleRu=e}),c.ic(),c.ic(),c.jc(6,"div",31),c.jc(7,"input",34),c.tc("ngModelChange",function(e){return t.$implicit.linkEn=e}),c.ic(),c.ic(),c.jc(8,"div",31),c.jc(9,"input",35),c.tc("ngModelChange",function(e){return t.$implicit.linkRu=e}),c.ic(),c.ic(),c.ic(),c.jc(10,"button",36),c.tc("click",function(){var e=c.Qc(n).index;return c.xc(2).removeButton(e)}),c.ad(11,"Remove Button"),c.ic(),c.ic()}
1if(2&e){var i=t.$implicit,r=t.index;c.Pb(3),c.Fc("name","titleEn",r,""),c.Dc("ngModel",i.titleEn),c.Pb(2),c.Fc("name","titleRu",r,""),c.Dc("ngModel",i.titleRu),c.Pb(2),c.Fc("name","linkEn",r,""),c.Dc("ngModel",i.linkEn),c.Pb(2),c.Fc("name","linkRu",r,""),c.Dc("ngModel",i.linkRu)}}function pN(e,t){if(1&e){var n=c.kc();c.jc(0,"div",13),c.jc(1,"div",14),c.jc(2,"div",15),c.jc(3,"h3"),c.ad(4),c.ic(),c.ic(),c.jc(5,"div",16),c.jc(6,"div",17),c.jc(7,"label"),c.ad(8,"Product Name (Required)"),c.ic(),c.jc(9,"input",18),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().currentProduct.name=e}),c.ic(),c.ic(),c.jc(10,"div",19),c.jc(11,"div",20),c.jc(12,"label"),c.ad(13,"English Title (Required) - for accordion header"),c.ic(),c.jc(14,"input",21),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().currentProduct.titleEn=e}),c.ic(),c.ic(),c.jc(15,"div",20),c.jc(16,"label"),c.ad(17,"Russian Title (Required) - for accordion header"),c.ic(),c.jc(18,"input",22),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().currentProduct.titleRu=e}),c.ic(),c.ic(),c.ic(),c.jc(19,"div",19),c.jc(20,"div",20),c.jc(21,"label"),c.ad(22,"English Description (HTML)"),c.ic(),c.jc(23,"textarea",23),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().currentProduct.descriptionEn=e}),c.ic(),c.ic(),c.jc(24,"div",20),c.jc(25,"label"),c.ad(26,"Russian Description (HTML)"),c.ic(),c.jc(27,"textarea",24),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().currentProduct.descriptionRu=e}),c.ic(),c.ic(),c.ic(),c.jc(28,"div",17),c.jc(29,"label"),c.ad(30,"Product Image"),c.ic(),c.jc(31,"input",25),c.tc("change",function(e){return c.Qc(n),c.xc().onFileSelected(e)}),c.ic(),c.jc(32,"small",26),c.ad(33,"Select an image file to upload"),c.ic(),c.ic(),c.jc(34,"div",17),c.jc(35,"label"),c.ad(36,"Buttons"),c.ic(),c.Yc(37,fN,12,8,"div",27),c.jc(38,"button",28),c.tc("click",function(){return c.Qc(n),c.xc().addButton()}),c.ad(39,"Add Button"),c.ic(),c.ic(),c.jc(40,"button",29),c.tc("click",function(){return c.Qc(n),c.xc().saveProduct()}),c.ad(41),c.ic(),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(4),c.bd(i.editingProduct?"Edit Product":"Add New Product"),c.Pb(5),c.Dc("ngModel",i.currentProduct.name),c.Pb(5),c.Dc("ngModel",i.currentProduct.titleEn),c.Pb(4),c.Dc("ngModel",i.currentProduct.titleRu),c.Pb(5),c.Dc("ngModel",i.currentProduct.descriptionEn),c.Pb(4),c.Dc("ngModel",i.currentProduct.descriptionRu),c.Pb(10),c.Dc("ngForOf",i.currentProduct.buttons),c.Pb(4),c.bd(i.editingProduct?"Update Product":"Save Product")}}function mN(e,t){1&e&&(c.jc(0,"div",37),c.jc(1,"div",38),c.ec(2,"div",39),c.jc(3,"p"),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(4),c.cd("",c.zc(5,1,"titles.Loading"),"..."))}function gN(e,t){1&e&&(c.jc(0,"div",42),c.jc(1,"div",43),c.ec(2,"i",44),c.ic(),c.jc(3,"h3"),c.ad(4),c.yc(5,"translate"),c.ic(),c.jc(6,"p"),c.ad(7),c.yc(8,"translate"),c.ic(),c.ic()),2&e&&(c.Pb(4),c.bd(c.zc(5,2,"titles.NoProducts")),c.Pb(3),c.bd(c.zc(8,4,"titles.NoProductsMessage")))}function vN(e,t){if(1&e&&(c.ec(0,"div",60),c.yc(1,"productDescription")),2&e){var n=c.xc().$implicit;c.Dc("innerHTML",c.zc(1,1,n),c.Rc)}}function yN(e,t){if(1&e){var n=c.kc();c.jc(0,"button",61),c.tc("click",function(){var e=c.Qc(n).$implicit,t=c.xc(4);return t.openLink(t.getButtonLink(e))}),c.ad(1),c.yc(2,"buttonTitle"),c.ic()}if(2&e){var i=t.$implicit;c.Pb(1),c.cd(" ",c.zc(2,1,i)," ")}}function bN(e,t){if(1&e){var n=c.kc();c.jc(0,"div",62),c.jc(1,"button",63),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc(3).editProduct(e)}),c.ec(2,"i",64),c.ad(3," Edit "),c.ic(),c.jc(4,"button",65),c.tc("click",function(){c.Qc(n);var e=c.xc().$implicit;return c.xc(3).deleteProduct(e)}),c.ec(5,"i",66),c.ad(6," Delete "),c.ic(),c.ic()}}function _N(e,t){if(1&e){var n=c.kc();c.jc(0,"div",47),c.jc(1,"div",48),c.jc(2,"img",49),c.tc("error",function(e){return c.Qc(n),c.xc(3).onImageError(e)}),c.ic(),c.ic(),c.jc(3,"div",50),c.jc(4,"h3",51),c.ad(5),c.ic(),c.jc(6,"div",52),c.jc(7,"ngb-accordion",null,53),c.jc(9,"ngb-panel",54),c.yc(10,"productTitle"),c.Yc(11,vN,2,3,"ng-template",55),c.ic(),c.ic(),c.ic(),c.jc(12,"div",56),c.jc(13,"div",57),c.Yc(14,yN,3,3,"button",58),c.ic(),c.Yc(15,bN,7,0,"div",59),c.ic(),c.ic(),c.ic()}
1if(2&e){var i=t.$implicit,r=c.xc(3);c.Pb(2),c.Dc("src",i.imageUrl,c.Tc)("alt",i.name),c.Pb(3),c.bd(i.name),c.Pb(4),c.Dc("title",c.zc(10,6,i)),c.Pb(5),c.Dc("ngForOf",i.buttons),c.Pb(1),c.Dc("ngIf",r.isAdmin)}}function wN(e,t){if(1&e&&(c.jc(0,"div",45),c.Yc(1,_N,16,8,"div",46),c.ic()),2&e){var n=c.xc(2);c.Pb(1),c.Dc("ngForOf",n.products)}}function kN(e,t){if(1&e&&(c.jc(0,"div"),c.Yc(1,gN,9,6,"div",40),c.Yc(2,wN,2,1,"div",41),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Dc("ngIf",0===n.products.length),c.Pb(1),c.Dc("ngIf",n.products.length>0)}}var CN,xN,SN,MN,DN=((SN=function(){function e(t,n,i,r,a,o,s){_classCallCheck(this,e),this.document=t,this.translationService=n,this.appComponent=i,this.authService=r,this.productEndpoint=a,this.sanitizer=o,this.analytics=s,this.isAdmin=!1,this.products=[],this.isLoading=!1,this.showForm=!1,this.currentProduct={buttons:[]},this.editingProduct=null,this.selectedFile=null}return _createClass(e,[{key:"goToUrl",value:function(){var e=this.translationService.getTranslation("products.urlPhythonML");this.analytics.trackOutboundLink(e,"PythonML Product"),window.open(e,"_blank")}},{key:"goToUrlMultiBolbands",value:function(){var e=this.translationService.getTranslation("products.urlMultiBolbands");this.analytics.trackOutboundLink(e,"MultiBolbands Product"),window.open(e,"_blank")}},{key:"goToUrlForexVisible",value:function(){window.open(this.translationService.getTranslation("products.urlForexVisible"),"_blank")}},{key:"goToUrlCatBoost",value:function(){window.open(this.translationService.getTranslation("products.urlCatBoost"),"_blank")}},{key:"goToUrlPythonLSTM",value:function(){window.open(this.translationService.getTranslation("products.urlPythonLSTM"),"_blank")}},{key:"goToUrlQBotAI",value:function(){window.open(this.translationService.getTranslation("products.urlQBotAI"),"_blank")}},{key:"goToUrlIntervalAI",value:function(){window.open(this.translationService.getTranslation("products.urlIntervalAI"),"_blank")}},{key:"goToUrlOmegaAI",value:function(){window.open(this.translationService.getTranslation("products.urlOmegaAI"),"_blank")}},{key:"goToUrlAlphaAIMQL5",value:function(){window.open(this.translationService.getTranslation("products.urlAlphaAIMQL5"),"_blank")}},{key:"goToUrlAlphaAIDemo",value:function(){window.open(this.translationService.getTranslation("products.urlAlphaAIDemo"),"_blank")}},{key:"goToUrlAlphaAITrainer",value:function(){window.open(this.translationService.getTranslation("products.urlAlphaAITrainer"),"_blank")}},{key:"goToUrlAlphaAIShop",value:function(){if(this.authService.isLoggedIn&&"test"!=this.authService.currentUser.userName.toLowerCase()){var e=this.translationService.getTranslation("products.urlAlphaAIShop");window.open(this.translationService.getTranslation(e),"_blank")}else this.appComponent.showRegister()}},{key:"ngOnInit",value:function(){var e,t;this.isAdmin=(null===(t=null===(e=this.authService.currentUser)||void 0===e?void 0:e.roles)||void 0===t?void 0:t.filter(function(e){return"administrator"===e}).length)>0,this.loadProducts()}},{key:"loadProducts",value:function(){var e=this;this.isLoading=!0;var t=Date.now();this.productEndpoint.getProducts().subscribe(function(n){e.products=n||[];var i=Date.now()-t;setTimeout(function(){e.isLoading=!1},Math.max(0,500-i))},function(t){console.error("Error loading products:",t),e.isLoading=!1})}},{key:"displayName",value:function(e){return e.name}},{key:"getDisplayTitle",value:function(e){var t=this.translationService.getCurrentLanguage();return t&&t.startsWith("ru")?e.titleRu||e.titleEn:e.titleEn||e.titleRu}},{key:"getDisplayDescription",value:function(e){var t=this.translationService.getCurrentLanguage(),n=(t&&t.startsWith("ru")?e.descriptionRu:e.descriptionEn)||"";return this.sanitizer.bypassSecurityTrustHtml(n)}},{key:"getActionLink",value:function(e){var t=this.translationService.getCurrentLanguage();return t&&t.startsWith("ru")?e.actionLinkRu||e.actionLinkEn:e.actionLinkEn||e.actionLinkRu}},{key:"getButtonTitle",value:function(e){var t=this.translationService.getCurrentLanguage();return t&&t.startsWith("ru")?e.titleRu||e.titleEn:e.titleEn||e.titleRu}},{key:"getButtonLink",value:function(e){var t=this.translationService.getCurrentLanguage();return t&&t.startsWith("ru")?e.linkRu||e.linkEn:e.linkEn||e.linkRu}},{key:"openLink",value:function(e){window.open(e,"_blank")}},{key:"onImageError",value:function(e){e.target.src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjE1MCIgdmlld0JveD0iMCAwIDIwMCAxNTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMTUwIiBmaWxsPSIjRjhGOUZBIi8+CjxwYXRoIGQ9Ik03NSA2MEgxMjVWMTAwSDc1VjYwWiIgZmlsbD0iI0Q1RDJEQiIvPgo8cGF0aCBkPSJNODUgNzBIMTE1VjkwSDg1VjcwWiIgZmlsbD0iI0Y4RjlGQSIvPgo8cGF0aCBkPSJNODcuNSA3NUgxMTIuNVY4NUg4Ny41Vjc1WiIgZmlsbD0iI0Q1RDJEQiIvPgo8L3N2Zz4K"}},{key:"editProduct",value:function(e){this.editingProduct=e,this.currentProduct=Object.assign({}
1,e),this.showForm=!0}},{key:"toggleForm",value:function(){this.showForm=!this.showForm,this.showForm||this.resetForm()}},{key:"onFileSelected",value:function(e){var t=this,n=e.target.files[0];if(n){this.selectedFile=n;var i=new FileReader;i.onload=function(e){t.currentProduct.imageUrl=e.target.result},i.readAsDataURL(n)}}},{key:"saveProduct",value:function(){var e=this;if(this.isAdmin)if(this.currentProduct.name&&this.currentProduct.titleEn&&this.currentProduct.titleRu){var t=Object.assign({},this.currentProduct);this.editingProduct?this.productEndpoint.updateProduct(this.editingProduct.id,t).subscribe(function(t){var n=e.products.findIndex(function(t){return t.id===e.editingProduct.id});-1!==n&&(e.products[n]=t),e.resetForm(),e.showForm=!1},function(e){console.error("Error updating product:",e),alert("Failed to update product")}):this.productEndpoint.createProduct(t).subscribe(function(t){e.products.push(t),e.resetForm(),e.showForm=!1},function(e){console.error("Error adding product:",e),alert("Failed to add product")})}else alert("Please fill in all required fields")}},{key:"deleteProduct",value:function(e){var t=this;this.isAdmin&&confirm('Are you sure you want to delete "'.concat(e.name,'"?'))&&this.productEndpoint.deleteProduct(e.id).subscribe(function(){t.products=t.products.filter(function(t){return t.id!==e.id})},function(e){console.error("Error deleting product:",e),alert("Failed to delete product")})}},{key:"addButton",value:function(){this.currentProduct.buttons||(this.currentProduct.buttons=[]),this.currentProduct.buttons.push({titleEn:"",titleRu:"",linkEn:"",linkRu:""})}},{key:"removeButton",value:function(e){this.currentProduct.buttons&&this.currentProduct.buttons.splice(e,1)}},{key:"resetForm",value:function(){this.currentProduct={buttons:[]},this.editingProduct=null,this.selectedFile=null}}]),e}()).\u0275fac=function(e){return new(e||SN)(c.dc(l.d),c.dc(nk),c.dc(qT),c.dc(bD),c.dc(sN),c.dc(z),c.dc(lN))},SN.\u0275cmp=c.Xb({type:SN,selectors:[["app-products"]],decls:14,vars:10,consts:[[1,"container"],[1,"page-header"],[1,"page-header-content"],[1,"page-title"],[1,"page-subtitle"],["class","admin-actions",4,"ngIf"],["class","admin-form",4,"ngIf"],[1,"products-content"],["class","loading-state",4,"ngIf"],[4,"ngIf"],[1,"admin-actions"],[1,"admin-button",3,"click"],[1,"fas",3,"ngClass"],[1,"admin-form"],[1,"form-card"],[1,"form-header"],[1,"form-body"],[1,"form-group"],["name","name","placeholder","e.g., BMW M6",1,"form-control",3,"ngModel","ngModelChange"],[1,"form-row"],[1,"form-group","col-md-6"],["name","titleEn",1,"form-control",3,"ngModel","ngModelChange"],["name","titleRu",1,"form-control",3,"ngModel","ngModelChange"],["name","descriptionEn","rows","4","placeholder","HTML allowed",1,"form-control",3,"ngModel","ngModelChange"],["name","descriptionRu","rows","4","placeholder","HTML allowed",1,"form-control",3,"ngModel","ngModelChange"],["type","file","accept","image/*",1,"form-control",3,"change"],[1,"form-text","text-muted"],["class","border p-2 mb-2",4,"ngFor","ngForOf"],["type","button",1,"btn","btn-secondary",3,"click"],["type","button",1,"btn","btn-primary",3,"click"],[1,"border","p-2","mb-2"],[1,"form-group","col-md-3"],["placeholder","Title EN",1,"form-control",3,"ngModel","name","ngModelChange"],["placeholder","Title RU",1,"form-control",3,"ngModel","name","ngModelChange"],["placeholder","Link EN",1,"form-control",3,"ngModel","name","ngModelChange"],["placeholder","Link RU",1,"form-control",3,"ngModel","name","ngModelChange"],["type","button",1,"btn","btn-danger","btn-sm",3,"click"],[1,"loading-state"],[1,"loading-spinner"],[1,"spinner"],["class","empty-state",4,"ngIf"],["class","products-grid",4,"ngIf"],[1,"empty-state"],[1,"empty-state-icon"],[1,"fas","fa-box-open"],[1,"products-grid"],["class","product-card",4,"ngFor","ngForOf"],[1,"product-card"],[1,"product-image"],["loading","lazy",3,"src","alt","error"],[1,"product-content"],[1,"product-name"],[1,"product-description"],["acc","ngbAccordion"],[3,"title"],["ngbPanelContent",""],[1,"product-actions"],[1,"product-buttons"],["class","action-button",3,"click",4,"ngFor","ngForOf"],["class","admin-controls",4,"ngIf"],[3,"innerHTML"],[1,"action-button",3,"click"],[1,"admin-controls"],[1,"control-button","edit",3,"click"],[1,"fas","fa-edit"],[1,"control-button","delete",3,"click"],[1,"fas","fa-tras
1h"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"header",1),c.jc(2,"div",2),c.jc(3,"h1",3),c.ad(4),c.yc(5,"translate"),c.ic(),c.jc(6,"div",4),c.ad(7),c.yc(8,"translate"),c.ic(),c.ic(),c.ic(),c.Yc(9,hN,4,2,"div",5),c.Yc(10,pN,42,8,"div",6),c.jc(11,"div",7),c.Yc(12,mN,6,3,"div",8),c.Yc(13,kN,3,2,"div",9),c.ic(),c.ic()),2&e&&(c.Pb(4),c.bd(c.zc(5,6,"pageHeader.Products")),c.Pb(3),c.cd(" ",c.zc(8,8,"products.subtitle")," "),c.Pb(2),c.Dc("ngIf",t.isAdmin),c.Pb(1),c.Dc("ngIf",t.isAdmin&&t.showForm),c.Pb(2),c.Dc("ngIf",t.isLoading),c.Pb(1),c.Dc("ngIf",!t.isLoading))},directives:[l.m,l.k,Er,Zr,Fa,l.l,Vs,zs,Ys],pipes:[jc,cN,uN,dN],styles:['.page-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#26a69a);border-radius:16px;padding:1.2rem 1.5rem;margin-bottom:1.5rem;box-shadow:0 8px 20px rgba(0,0,0,.1);color:#fff;position:relative;overflow:hidden}.page-header[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>\');opacity:.3}.page-header-content[_ngcontent-%COMP%]{position:relative;z-index:1}.page-title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;margin-bottom:.6rem;text-shadow:0 2px 4px rgba(0,0,0,.3);animation:fadeInDown .8s ease-out}.page-subtitle[_ngcontent-%COMP%]{font-size:.95rem;opacity:.95;margin:0;animation:fadeInUp .8s ease-out .2s both}.admin-actions[_ngcontent-%COMP%]{margin-bottom:1.5rem}.admin-button[_ngcontent-%COMP%]{background:linear-gradient(135deg,#28a745,#20c997);border:none;border-radius:12px;padding:.8rem 1.5rem;color:#fff;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px rgba(40,167,69,.3);display:inline-flex;align-items:center;gap:.5rem}.admin-button[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(40,167,69,.4)}.admin-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.admin-form[_ngcontent-%COMP%]{margin-bottom:2rem}.form-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);animation:slideInUp .5s ease-out}.form-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8f9fa,#dee2e6);padding:1.5rem;border-bottom:1px solid rgba(0,0,0,.05)}.form-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;color:#2d3748;font-size:1.25rem;font-weight:600}.form-body[_ngcontent-%COMP%]{padding:1.5rem}.form-group[_ngcontent-%COMP%]{margin-bottom:1.5rem}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem;font-weight:600;color:#2d3748}.form-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border:2px solid #e2e8f0;border-radius:8px;padding:.75rem;transition:border-color .3s ease}.form-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border-color:#42a5f5;box-shadow:0 0 0 3px rgba(66,165,245,.1)}.loading-state[_ngcontent-%COMP%], .products-content[_ngcontent-%COMP%]{min-height:400px}.loading-state[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-radius:16px;margin:1rem 0;animation:fadeIn .3s ease-out}.loading-spinner[_ngcontent-%COMP%]{text-align:center}.loading-spinner[_ngcontent-%COMP%] .spinner[_ngcontent-%COMP%]{width:60px;height:60px;border:4px solid rgba(66,165,245,.2);border-top-color:#42a5f5;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1.5rem;box-shadow:0 4px 12px rgba(66,165,245,.2)}.loading-spinner[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#4a5568;font-size:1.1rem;margin:0;font-weight:500}.empty-state[_ngcontent-%COMP%]{text-align:center;padding:4rem 2rem;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08)}.empty-state-icon[_ngcontent-%COMP%]{font-size:4rem;color:#42a5f5;margin-bottom:1.5rem;animation:pulse 2s infinite}.empty-state[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#2d3748;font-size:1.5rem;font-weight:600;margin-bottom:1rem}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#6c757d;font-size:1.1rem;margin:0}.products-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:2rem;animation:fadeIn .6s ease-out}.product-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);transition:transform .3s ease,box-shadow .3s ease}.product-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.15)}.product-image[_ngcontent-%COMP%]{width:100%;height:auto;min-height:200px;overflow:hidden;background:#f8f9fa;display:flex;align-items:center;justify-content:center}.product-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:auto;max-height:300px;object-fit:contain;transition:transform .3s ease}.product-image[_ngcontent-%COMP%]:hover img[_ngcontent-%COMP%]{transform:scale(1.05)}.product-content[_ngcontent-%COMP%]{padding:1.5rem}
1.product-name[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;color:#2d3748;margin-bottom:1rem;line-height:1.3}.product-description[_ngcontent-%COMP%]{margin-bottom:1.5rem}.product-description[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:.95rem;line-height:1.6;color:#4a5568}.product-actions[_ngcontent-%COMP%]{gap:1rem}.product-actions[_ngcontent-%COMP%], .product-buttons[_ngcontent-%COMP%]{display:flex;flex-direction:column}.product-buttons[_ngcontent-%COMP%]{gap:.5rem}.action-button[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#2196f3);border:none;border-radius:8px;padding:.75rem 1rem;color:#fff;font-weight:600;cursor:pointer;transition:all .3s ease;text-align:center}.action-button[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#2196f3,#1976d2);transform:translateY(-1px)}.admin-controls[_ngcontent-%COMP%]{display:flex;gap:.5rem;padding-top:.5rem;border-top:1px solid #e2e8f0}.control-button[_ngcontent-%COMP%]{flex:1;border:none;border-radius:6px;padding:.5rem;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;justify-content:center;gap:.25rem}.control-button.edit[_ngcontent-%COMP%]{background:#ffc107;color:#212529}.control-button.edit[_ngcontent-%COMP%]:hover{background:#e0a800}.control-button.delete[_ngcontent-%COMP%]{background:#dc3545;color:#fff}.control-button.delete[_ngcontent-%COMP%]:hover{background:#c82333}.control-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.8rem}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideInUp{0%{opacity:0;transform:translateY(50px)}to{opacity:1;transform:translateY(0)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}@media (max-width:768px){.page-header[_ngcontent-%COMP%]{padding:1rem;margin-bottom:1rem}.page-title[_ngcontent-%COMP%]{font-size:1.2rem!important}.products-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1.5rem}.product-card[_ngcontent-%COMP%]{margin:0 .5rem}.admin-controls[_ngcontent-%COMP%]{flex-direction:column}}@media (max-width:480px){.page-title[_ngcontent-%COMP%]{font-size:1.2rem}.form-body[_ngcontent-%COMP%], .product-content[_ngcontent-%COMP%]{padding:1rem}.product-buttons[_ngcontent-%COMP%]{gap:.4rem}.action-button[_ngcontent-%COMP%]{padding:.6rem .8rem;font-size:.9rem}}@media (prefers-color-scheme:dark){.form-card[_ngcontent-%COMP%]{background:#37474f;border-color:hsla(0,0%,100%,.1)}.form-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#455a64,#37474f)}.form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .form-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#f7fafc}.form-control[_ngcontent-%COMP%]{background:#455a64;border-color:hsla(0,0%,100%,.2);color:#f7fafc}.product-card[_ngcontent-%COMP%]{background:#37474f;border-color:hsla(0,0%,100%,.1)}.product-name[_ngcontent-%COMP%]{color:#f7fafc}.product-description[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{color:#e2e8f0}.admin-controls[_ngcontent-%COMP%]{border-top-color:hsla(0,0%,100%,.1)}.empty-state[_ngcontent-%COMP%]{background:linear-gradient(135deg,#37474f,#263238)}.empty-state[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#f7fafc}.empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#b0bec5}}td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]{margin:10px;padding:10px}@media only screen and (min-width:700px){.text[_ngcontent-%COMP%]{font-size:15px}.btn[_ngcontent-%COMP%]{font-size:15px!important}.table1[_ngcontent-%COMP%]{display:table}.table2[_ngcontent-%COMP%]{display:none}}@media only screen and (max-width:700px){.text[_ngcontent-%COMP%]{font-size:8px}.btn[_ngcontent-%COMP%]{font-size:8px!important}.table1[_ngcontent-%COMP%]{display:none}.table2[_ngcontent-%COMP%]{display:table}}'],data:{animation:[Zw]}}),SN),TN=((xN=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||xN)}
1,xN.\u0275cmp=c.Xb({type:xN,selectors:[["app-orders"]],decls:9,vars:4,consts:[[1,"container"],[1,"pageHeader"],["aria-hidden","true",1,"fa","fa-shopping-cart","fa-lg","page-caption"],[1,"text-muted"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"header",1),c.jc(2,"h3"),c.ec(3,"i",2),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.jc(6,"div"),c.jc(7,"span",3),c.ad(8,"-- Sample Page --"),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(4),c.cd(" ",c.zc(5,2,"pageHeader.Orders"),""),c.Pb(2),c.Dc("@fadeInOut",void 0))},pipes:[jc],styles:[""],data:{animation:[Zw]}}),xN),EN=((CN=function(){function e(t,n){var i=this;_classCallCheck(this,e),this.el=t,this.zone=n,this.showBSTab=new c.s,this.hideBSTab=new c.s,this.tabShownSubscription=Ho($(this.el.nativeElement),"show.bs.tab").subscribe(function(e){i.runInZone(function(){return i.showBSTab.emit({type:e.type,target:e.target,relatedTarget:e.relatedTarget})})}),this.tabHiddenSubscription=Ho($(this.el.nativeElement),"hidden.bs.tab").subscribe(function(e){i.runInZone(function(){return i.hideBSTab.emit({type:e.type,target:e.target,relatedTarget:e.relatedTarget})})})}return _createClass(e,[{key:"ngOnDestroy",value:function(){this.tabShownSubscription.unsubscribe(),this.tabHiddenSubscription.unsubscribe()}},{key:"runInZone",value:function(e){this.zone.run(function(){e()})}},{key:"show",value:function(e){$(e).tab("show")}}]),e}()).\u0275fac=function(e){return new(e||CN)(c.dc(c.q),c.dc(c.J))},CN.\u0275dir=c.Yb({type:CN,selectors:[["","appBootstrapTab",""]],outputs:{showBSTab:"showBSTab",hideBSTab:"hideBSTab"},exportAs:["bootstrap-tab"]}),CN),AN=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this)).currentPassword=e,a.newPassword=i,a.confirmPassword=r,a}return n}(vD),PN=function e(t,n,i){_classCallCheck(this,e),this.name=t,this.description=n,this.permissions=i},LN=((MN=function(){function e(t,n){_classCallCheck(this,e),this.validateEqual=t,this.reverse=n}return _createClass(e,[{key:"validate",value:function(e){var t=e.root.get(this.validateEqual);return t?"true"===this.reverse?this.validateReverse(e,t):this.validateNoReverse(e,t):null}},{key:"validateNoReverse",value:function(e,t){return t.value===e.value?null:{validateEqual:!0}}},{key:"validateReverse",value:function(e,t){return e.value===t.value?t.errors&&(delete t.errors.validateEqual,0===Object.keys(t.errors).length&&t.setErrors(null)):t.setErrors({validateEqual:!0}),null}}]),e}()).\u0275fac=function(e){return new(e||MN)(c.rc("appValidateEqual"),c.rc("reverse"))},MN.\u0275dir=c.Yb({type:MN,selectors:[["","appValidateEqual","","formControlName",""],["","appValidateEqual","","formControl",""],["","appValidateEqual","","ngModel",""]],features:[c.Ob([{provide:Lr,useExisting:Object(c.gb)(function(){return MN}),multi:!0}])]}),MN),ON=["f"],IN=["userName"],HN=["userPassword"],jN=["email"],FN=["currentPassword"],RN=["newPassword"],NN=["confirmPassword"],BN=["roles"];function YN(e,t){if(1&e&&(c.jc(0,"div"),c.jc(1,"p",9),c.ad(2),c.ic(),c.ic()),2&e){var n=c.xc(3);
1c.Vb("col-lg-9",n.isViewOnly)("col-lg-10",!n.isViewOnly),c.Pb(2),c.bd(n.user.jobTitle)}}function zN(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"input",10),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(3).userEdit.jobTitle=e}),c.ic(),c.ic()}if(2&e){var i=c.xc(3);c.Vb("col-lg-9",i.isViewOnly)("col-lg-10",!i.isViewOnly),c.Pb(1),c.Rb("id","jobTitle-",i.uniqueId,""),c.Dc("ngModel",i.userEdit.jobTitle)}}function VN(e,t){if(1&e&&(c.jc(0,"div",6),c.jc(1,"label",7),c.ad(2),c.yc(3,"translate"),c.ic(),c.Yc(4,YN,3,5,"div",8),c.Yc(5,zN,2,6,"div",8),c.ic()),2&e){var n=c.xc(2);c.Pb(1),c.Vb("col-lg-3",n.isViewOnly)("col-lg-2",!n.isViewOnly),c.Fc("for","jobTitle-",n.uniqueId,""),c.Pb(1),c.bd(c.zc(3,8,"users.editor.JobTitle")),c.Pb(2),c.Dc("ngIf",!n.isEditMode),c.Pb(1),c.Dc("ngIf",n.isEditMode)}}function UN(e,t){if(1&e&&(c.jc(0,"div",11),c.jc(1,"div",12),c.ec(2,"hr"),c.ic(),c.ic()),2&e){var n=c.xc(2);c.Pb(2),c.Vb("separator-hr",!n.isEditMode)("edit-separator-hr",n.isEditMode)}}function $N(e,t){if(1&e&&(c.jc(0,"div"),c.jc(1,"p",9),c.ad(2),c.ic(),c.ic()),2&e){var n=c.xc(3);
1c.Vb("col-lg-9",n.isViewOnly)("col-lg-10",!n.isViewOnly),c.Pb(2),c.bd(n.user.userName)}}function WN(e,t){1&e&&(c.jc(0,"span",16),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.UserNameRequired")," "))}var qN=function(e,t){return{"is-valid":e,"is-invalid":t}};function GN(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"input",13,14),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(3).userEdit.userName=e}),c.ic(),c.Yc(3,WN,3,3,"span",15),c.ic()}if(2&e){var i=c.Nc(2);c.xc(2);var r=c.Nc(1),a=c.xc();c.Vb("col-lg-9",a.isViewOnly)("col-lg-10",!a.isViewOnly),c.Pb(1),c.Rb("id","userName-",a.uniqueId,""),c.Dc("ngClass",c.Ic(9,qN,r.submitted&&i.valid,r.submitted&&!i.valid))("ngModel",a.userEdit.userName),c.Qb("autocomplete",a.isGeneralEditor?"new-password":null),c.Pb(2),c.Dc("ngIf",a.showValidationErrors&&r.submitted&&!i.valid)}}function XN(e,t){if(1&e&&(c.jc(0,"div",6),c.jc(1,"label",7),c.ad(2),c.yc(3,"translate"),c.ic(),c.Yc(4,$N,3,5,"div",8),c.Yc(5,GN,4,12,"div",8),c.ic()),2&e){var n=c.xc(2);
1c.Pb(1),c.Vb("col-lg-3",n.isViewOnly)("col-lg-2",!n.isViewOnly),c.Fc("for","userName-",n.uniqueId,""),c.Pb(1),c.bd(c.zc(3,8,"users.editor.UserName")),c.Pb(2),c.Dc("ngIf",!n.isEditMode),c.Pb(1),c.Dc("ngIf",n.isEditMode)}}function QN(e,t){1&e&&(c.jc(0,"div",11),c.jc(1,"div",12),c.ec(2,"hr",17),c.ic(),c.ic())}function KN(e,t){1&e&&(c.jc(0,"span",16),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.CurrentPasswordRequired")," "))}function ZN(e,t){if(1&e){var n=c.kc();c.jc(0,"div",6),c.jc(1,"label",18),c.ad(2),c.yc(3,"translate"),c.ic(),c.jc(4,"div",19),c.jc(5,"input",20,21),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(2).userEdit.currentPassword=e}),c.ic(),c.jc(7,"small",22),c.ad(8),c.yc(9,"translate"),c.ic(),c.Yc(10,KN,3,3,"span",15),c.ic(),c.ic()}if(2&e){var i=c.Nc(6);c.xc();var r=c.Nc(1),a=c.xc();c.Pb(1),c.Fc("for","userPassword-",a.uniqueId,""),c.Pb(1),c.bd(c.zc(3,8,"users.editor.Password")),c.Pb(3),c.Rb("id","userPassword-",a.uniqueId,""),c.Dc("ngClass",c.Ic(12,qN,r.submitted&&i.valid,r.submitted&&!i.valid))("ngModel",a.userEdit.currentPassword),c.Qb("autocomplete",a.isGeneralEditor?"new-password":null),c.Pb(3),c.bd(c.zc(9,10,"users.editor.PasswordHint")),c.Pb(2),c.Dc("ngIf",a.showValidationErrors&&r.submitted&&!i.valid)}}function JN(e,t){if(1&e&&(c.jc(0,"div",11),c.jc(1,"div",12),c.ec(2,"hr"),c.ic(),c.ic()),2&e){var n=c.xc(2);c.Pb(2),c.Vb("separator-hr",!n.isEditMode)("edit-separator-hr",n.isEditMode)}}function eB(e,t){if(1&e&&(c.jc(0,"div"),c.jc(1,"p",9),c.ad(2),c.ic(),c.ic()),2&e){var n=c.xc(3);
1c.Vb("col-lg-9",n.isViewOnly)("col-lg-10",!n.isViewOnly),c.Pb(2),c.bd(n.user.email)}}function tB(e,t){1&e&&(c.jc(0,"span",16),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.EmailRequired")," "))}function nB(e,t){1&e&&(c.jc(0,"span",16),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.InvalidEmail")," "))}function iB(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"input",23,24),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(3).userEdit.email=e}),c.ic(),c.Yc(3,tB,3,3,"span",15),c.Yc(4,nB,3,3,"span",15),c.ic()}if(2&e){var i=c.Nc(2);c.xc(2);var r=c.Nc(1),a=c.xc();c.Vb("col-lg-9",a.isViewOnly)("col-lg-10",!a.isViewOnly),c.Pb(1),c.Rb("id","email-",a.uniqueId,""),c.Dc("ngClass",c.Ic(9,qN,r.submitted&&i.valid,r.submitted&&!i.valid))("ngModel",a.userEdit.email),c.Pb(2),c.Dc("ngIf",a.showValidationErrors&&r.submitted&&(null==i.errors?null:i.errors.required)),c.Pb(1),c.Dc("ngIf",a.showValidationErrors&&r.submitted&&(null==i.errors?null:i.errors.pattern))}}function rB(e,t){if(1&e&&(c.jc(0,"div",6),c.jc(1,"label",7),c.ad(2),c.yc(3,"translate"),c.ic(),c.Yc(4,eB,3,5,"div",8),c.Yc(5,iB,5,12,"div",8),c.ic()),2&e){var n=c.xc(2);
1c.Pb(1),c.Vb("col-lg-3",n.isViewOnly)("col-lg-2",!n.isViewOnly),c.Fc("for","email-",n.uniqueId,""),c.Pb(1),c.bd(c.zc(3,8,"users.editor.Email")),c.Pb(2),c.Dc("ngIf",!n.isEditMode),c.Pb(1),c.Dc("ngIf",n.isEditMode)}}function aB(e,t){if(1&e&&(c.jc(0,"div",11),c.jc(1,"div",12),c.ec(2,"hr"),c.ic(),c.ic()),2&e){var n=c.xc(2);c.Pb(2),c.Vb("separator-hr",!n.isEditMode)("edit-separator-hr",n.isEditMode)}}function oB(e,t){if(1&e){var n=c.kc();c.jc(0,"div",19),c.jc(1,"button",26),c.tc("click",function(){return c.Qc(n),c.xc(3).changePassword()}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(2),c.bd(c.zc(3,1,"users.editor.ChangePassword")))}function sB(e,t){1&e&&(c.jc(0,"span",16),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.CurrentPasswordRequired")," "))}function lB(e,t){if(1&e){var n=c.kc();c.jc(0,"div",6),c.jc(1,"label",28),c.ad(2),c.yc(3,"translate"),c.ic(),c.jc(4,"div",29),c.jc(5,"input",34,35),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(4).userEdit.currentPassword=e}),c.ic(),c.Yc(7,sB,3,3,"span",15),c.ic(),c.ic()}if(2&e){var i=c.Nc(6);c.xc(3);var r=c.Nc(1),a=c.xc();c.Pb(1),c.Fc("for","currentPassword-",a.uniqueId,""),c.Pb(1),c.bd(c.zc(3,7,"users.editor.CurrentPassword")),c.Pb(3),c.Rb("id","currentPassword-",a.uniqueId,""),c.Dc("ngClass",c.Ic(9,qN,r.submitted&&i.valid,r.submitted&&!i.valid))("ngModel",a.userEdit.currentPassword),c.Qb("autocomplete",a.isGeneralEditor?"new-password":null),c.Pb(2),c.Dc("ngIf",a.showValidationErrors&&r.submitted&&!i.valid)}}function cB(e,t){1&e&&(c.jc(0,"div",11),c.jc(1,"div",12),c.ec(2,"hr",17),c.ic(),c.ic())}function uB(e,t){1&e&&(c.jc(0,"span",16),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.NewPasswordRequired")," "))}function dB(e,t){1&e&&(c.jc(0,"span",16),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.ConfirmationPasswordRequired")," "))}function hB(e,t){1&e&&(c.jc(0,"span",16),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.PasswordMismatch")," "))}function fB(e,t){if(1&e){var n=c.kc();c.jc(0,"div",19),c.jc(1,"div",27),c.Yc(2,lB,8,12,"div",3),c.Yc(3,cB,3,0,"div",4),c.jc(4,"div",6),c.jc(5,"label",28),c.ad(6),c.yc(7,"translate"),c.ic(),c.jc(8,"div",29),c.jc(9,"input",30,31),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(3).userEdit.newPassword=e}),c.ic(),c.Yc(11,uB,3,3,"span",15),c.ic(),c.ic(),c.jc(12,"div",11),c.jc(13,"div",12),c.ec(14,"hr",17),c.ic(),c.ic(),c.jc(15,"div",6),c.jc(16,"label",28),c.ad(17),c.yc(18,"translate"),c.ic(),c.jc(19,"div",29),c.jc(20,"input",32,33),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(3).userEdit.confirmPassword=e}),c.ic(),c.Yc(22,dB,3,3,"span",15),c.Yc(23,hB,3,3,"span",15),c.ic(),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.Nc(10),r=c.Nc(21);c.xc(2);var a=c.Nc(1),o=c.xc();c.Pb(2),c.Dc("ngIf",o.isEditingSelf),c.Pb(1),c.Dc("ngIf",!o.isNewUser),c.Pb(2),c.Fc("for","newPassword-",o.uniqueId,""),c.Pb(1),c.bd(c.zc(7,17,"users.editor.NewPassword")),c.Pb(3),c.Rb("id","newPassword-",o.uniqueId,""),c.Dc("ngClass",c.Ic(21,qN,a.submitted&&i.valid,a.submitted&&!i.valid))("ngModel",o.userEdit.newPassword),c.Qb("autocomplete",o.isGeneralEditor?"new-password":null),c.Pb(2),c.Dc("ngIf",o.showValidationErrors&&a.submitted&&!i.valid),c.Pb(5),c.Fc("for","confirmPassword-",o.uniqueId,""),c.Pb(1),c.bd(c.zc(18,19,"users.editor.ConfirmPassword")),c.Pb(3),c.Rb("id","confirmPassword-",o.uniqueId,""),c.Dc("ngClass",c.Ic(24,qN,a.submitted&&r.valid,a.submitted&&!r.valid))("ngModel",o.userEdit.confirmPassword),c.Qb("autocomplete",o.isGeneralEditor?"new-password":null),c.Pb(2),c.Dc("ngIf",o.showValidationErrors&&a.submitted&&(null==r.errors?null:r.errors.required)),c.Pb(1),c.Dc("ngIf",o.showValidationErrors&&a.submitted&&(null==r.errors?null:r.errors.appValidateEqual)&&!(null!=r.errors&&r.errors.required))}}function pB(e,t){if(1&e&&(c.jc(0,"div",6),c.jc(1,"label",18),c.ad(2),c.yc(3,"translate"),c.ic(),c.Yc(4,oB,4,3,"div",25),c.Yc(5,fB,24,27,"div",25),c.ic()),2&e){var n=c.xc(2);c.Pb(1),c.Fc("for","newPassword-",n.uniqueId,""),c.Pb(1),c.bd(c.zc(3,4,"users.editor.Password")),c.Pb(2),c.Dc("ngIf",!n.isChangePassword&&!n.isNewUser),c.Pb(1),c.Dc("ngIf",n.isChangePassword||n.isNewUser)}}function mB(e,t){if(1&e&&(c.jc(0,"div",11),c.jc(1,"div",12),c.ec(2,"hr"),c.ic(),c.ic()),2&e){var n=c.xc(2);c.Pb(2),c.Vb("separator-hr",!n.isEditMode)("edit-separator-hr",n.isEditMode)}}function gB(e,t){if(1&e&&(c.jc(0,"span"),c.ad(1,"\n "),c.jc(2,"span",39),c.ad(3),c.ic(),c.ad(4,"\n "),c.ic()),2&e){var n,i=t.$implicit,r=c.xc(4);c.Pb(2),c.Ec("title",null==(n=r.getRoleByName(i))?null:n.description),c.Pb(1),c.bd(i)}}function vB(e,t){if(1&e&&(c.jc(0,"div"),c.jc(1,"p",9),c.ad(2,"\n "),c.Yc(3,gB,5,2,"span",38),c.ad(4,"\n "),c.ic(),c.ic()),2&e){var n=c.xc(3);
1c.Vb("col-lg-9",n.isViewOnly)("col-lg-10",!n.isViewOnly),c.Pb(3),c.Dc("ngForOf",n.user.roles)}}function yB(e,t){if(1&e&&(c.jc(0,"span",39),c.ad(1),c.jc(2,"span",45),c.tc("click",function(){return(0,t.clear)(t.item)}),c.ad(3,"\xd7"),c.ic(),c.ic()),2&e){var n=t.item;c.Ec("title",n.description),c.Pb(1),c.bd(n.name)}}function bB(e,t){if(1&e&&(c.jc(0,"span",39),c.ad(1),c.ic(),c.ec(2,"i",46)),2&e){var n=t.item;c.Ec("title",n.description),c.Pb(1),c.bd(n.name)}}function _B(e,t){1&e&&(c.jc(0,"span",16),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"users.editor.RoleRequired")," "))}function wB(e,t){if(1&e){var n=c.kc();c.jc(0,"div",40),c.jc(1,"ng-select",41,42),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(3).userEdit.roles=e}),c.Yc(3,yB,4,2,"ng-template",43),c.Yc(4,bB,3,2,"ng-template",44),c.ic(),c.Yc(5,_B,3,3,"span",15),c.ic()}if(2&e){var i=c.Nc(2);c.xc(2);var r=c.Nc(1),a=c.xc();c.Vb("col-lg-9",a.isViewOnly)("col-lg-10",!a.isViewOnly),c.Dc("ngClass",c.Ic(10,qN,r.submitted&&i.valid,r.submitted&&!i.valid)),c.Pb(1),c.Dc("items",a.allRoles)("multiple",!0)("closeOnSelect",!1)("ngModel",a.userEdit.roles),c.Pb(4),c.Dc("ngIf",a.showValidationErrors&&r.submitted&&!i.valid)}}function kB(e,t){if(1&e&&(c.jc(0,"div",6),c.jc(1,"label",36),c.ad(2),c.yc(3,"translate"),c.ic(),c.Yc(4,vB,5,5,"div",8),c.Yc(5,wB,6,13,"div",37),c.ic()),2&e){var n=c.xc(2);
1c.Pb(1),c.Vb("col-lg-3",n.isViewOnly)("col-lg-2",!n.isViewOnly),c.Pb(1),c.bd(c.zc(3,7,"users.editor.Roles")),c.Pb(2),c.Dc("ngIf",!n.isEditMode),c.Pb(1),c.Dc("ngIf",n.isEditMode&&n.canAssignRoles)}}function CB(e,t){if(1&e&&(c.jc(0,"div",11),c.jc(1,"div",12),c.ec(2,"hr"),c.ic(),c.ic()),2&e){var n=c.xc(2);c.Pb(2),c.Vb("separator-hr",!n.isEditMode)("edit-separator-hr",n.isEditMode)}}function xB(e,t){if(1&e&&(c.jc(0,"div"),c.jc(1,"p",9),c.ad(2),c.ic(),c.ic()),2&e){var n=c.xc(3);c.Vb("col-lg-9",n.isViewOnly)("col-lg-10",!n.isViewOnly),c.Pb(2),c.bd(n.user.fullName)}}function SB(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"input",47),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(3).userEdit.fullName=e}),c.ic(),c.ic()}if(2&e){var i=c.xc(3);c.Vb("col-lg-9",i.isViewOnly)("col-lg-10",!i.isViewOnly),c.Pb(1),c.Rb("id","fullName-",i.uniqueId,""),c.Dc("ngModel",i.userEdit.fullName)}}function MB(e,t){if(1&e&&(c.jc(0,"div",6),c.jc(1,"label",7),c.ad(2),c.yc(3,"translate"),c.ic(),c.Yc(4,xB,3,5,"div",8),c.Yc(5,SB,2,6,"div",8),c.ic()),2&e){var n=c.xc(2);
1c.Pb(1),c.Vb("col-lg-3",n.isViewOnly)("col-lg-2",!n.isViewOnly),c.Fc("for","fullName-",n.uniqueId,""),c.Pb(1),c.bd(c.zc(3,8,"users.editor.FullName")),c.Pb(2),c.Dc("ngIf",!n.isEditMode),c.Pb(1),c.Dc("ngIf",n.isEditMode)}}function DB(e,t){if(1&e&&(c.jc(0,"div",11),c.jc(1,"div",12),c.ec(2,"hr"),c.ic(),c.ic()),2&e){var n=c.xc(2);c.Pb(2),c.Vb("separator-hr",!n.isEditMode)("edit-separator-hr",n.isEditMode)}}function TB(e,t){if(1&e&&(c.jc(0,"div"),c.jc(1,"p",9),c.ad(2),c.ic(),c.ic()),2&e){var n=c.xc(3);c.Vb("col-lg-9",n.isViewOnly)("col-lg-10",!n.isViewOnly),c.Pb(2),c.bd(n.user.phoneNumber)}}function EB(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"input",48),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(3).userEdit.phoneNumber=e}),c.ic(),c.ic()}if(2&e){var i=c.xc(3);c.Vb("col-lg-9",i.isViewOnly)("col-lg-10",!i.isViewOnly),c.Pb(1),c.Rb("id","phoneNumber-",i.uniqueId,""),c.Dc("ngModel",i.userEdit.phoneNumber)}}function AB(e,t){if(1&e&&(c.jc(0,"div",6),c.jc(1,"label",7),c.ad(2),c.yc(3,"translate"),c.ic(),c.Yc(4,TB,3,5,"div",8),c.Yc(5,EB,2,6,"div",8),c.ic()),2&e){var n=c.xc(2);
1c.Pb(1),c.Vb("col-lg-3",n.isViewOnly)("col-lg-2",!n.isViewOnly),c.Fc("for","phoneNumber-",n.uniqueId,""),c.Pb(1),c.bd(c.zc(3,8,"users.editor.PhoneNumber")),c.Pb(2),c.Dc("ngIf",!n.isEditMode),c.Pb(1),c.Dc("ngIf",n.isEditMode)}}function PB(e,t){if(1&e&&(c.jc(0,"div",11),c.jc(1,"div",12),c.ec(2,"hr"),c.ic(),c.ic()),2&e){var n=c.xc(2);c.Pb(2),c.Vb("last-separator-hr",!n.isEditMode)("edit-last-separator-hr",n.isEditMode)}}function LB(e,t){if(1&e){var n=c.kc();c.jc(0,"button",61),c.tc("click",function(){return c.Qc(n),c.xc(4).unlockUser()}),c.ec(1,"i",62),c.ad(2),c.yc(3,"translate"),c.ic()}if(2&e){var i=c.xc(4);c.Dc("disabled",i.isSaving),c.Pb(2),c.cd(" ",c.zc(3,2,"users.editor.Unblock"),"")}}function OB(e,t){if(1&e){var n=c.kc();c.jc(0,"div",56),c.jc(1,"div",57),c.jc(2,"input",58),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc(3).userEdit.isEnabled=e}),c.ic(),c.jc(3,"label",59),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.Yc(6,LB,4,4,"button",60),c.ic()}if(2&e){var i=c.xc(3);c.Pb(2),c.Dc("ngModel",i.userEdit.isEnabled),c.Pb(2),c.bd(c.zc(5,3,"users.editor.Enabled")),c.Pb(2),c.Dc("ngIf",i.userEdit.isLockedOut)}}function IB(e,t){if(1&e){var n=c.kc();c.jc(0,"button",63),c.tc("click",function(){return c.Qc(n),c.xc(3).close()}),c.ec(1,"i",64),c.ad(2),c.yc(3,"translate"),c.ic()}2&e&&(c.Pb(2),c.cd(" ",c.zc(3,1,"users.editor.Close"),""))}function HB(e,t){if(1&e){var n=c.kc();c.jc(0,"button",63),c.tc("click",function(){return c.Qc(n),c.xc(3).edit()}),c.ec(1,"i",65),c.ad(2),c.yc(3,"translate"),c.ic()}2&e&&(c.Pb(2),c.cd(" ",c.zc(3,1,"users.editor.Edit"),""))}function jB(e,t){if(1&e){var n=c.kc();c.jc(0,"button",66),c.tc("click",function(){return c.Qc(n),c.xc(3).cancel()}),c.ec(1,"i",67),c.ad(2),c.yc(3,"translate"),c.ic()}if(2&e){var i=c.xc(3);c.Dc("disabled",i.isSaving),c.Pb(2),c.cd(" ",c.zc(3,2,"users.editor.Cancel"),"")}}function FB(e,t){1&e&&c.ec(0,"i",71)}function RB(e,t){1&e&&c.ec(0,"i",72)}function NB(e,t){if(1&e&&(c.jc(0,"button",68),c.ad(1,"\n "),c.Yc(2,FB,1,0,"i",69),c.Yc(3,RB,1,0,"i",70),c.ad(4),c.yc(5,"translate"),c.yc(6,"translate"),c.ic()),2&e){var n=c.xc(3);c.Dc("disabled",n.isSaving),c.Pb(2),c.Dc("ngIf",!n.isSaving),c.Pb(1),c.Dc("ngIf",n.isSaving),c.Pb(1),c.cd(" ",n.isSaving?c.zc(5,4,"users.editor.Saving"):c.zc(6,6,"users.editor.Save"),"\n ")}}function BB(e,t){if(1&e&&(c.jc(0,"div",6),c.jc(1,"div",49),c.Yc(2,OB,7,5,"div",50),c.ic(),c.jc(3,"div",51),c.jc(4,"div",52),c.ad(5,"\n "),c.Yc(6,IB,4,3,"button",53),c.ad(7,"\n "),c.Yc(8,HB,4,3,"button",53),c.ad(9,"\n "),c.Yc(10,jB,4,4,"button",54),c.ad(11,"\n "),c.Yc(12,NB,7,8,"button",55),c.ad(13,"\n "),c.ic(),c.ic(),c.ic()),2&e){var n=c.xc(2);c.Pb(2),c.Dc("ngIf",n.isGeneralEditor&&n.isEditMode&&!n.isRegisterUser),c.Pb(4),c.Dc("ngIf",!n.isEditMode&&n.isGeneralEditor&&!n.isTestAccount),c.Pb(2),c.Dc("ngIf",!n.isEditMode&&!n.isGeneralEditor&&!n.isTestAccount),c.Pb(2),c.Dc("ngIf",n.isEditMode&&!n.isTestAccount),c.Pb(2),c.Dc("ngIf",n.isEditMode)}}function YB(e,t){if(1&e){var n=c.kc();c.jc(0,"form",1,2),c.tc("ngSubmit",function(){c.Qc(n);var e=c.Nc(1),t=c.xc();return e.form.valid?t.save():!t.isResetPassword&&!t.userName.valid&&t.showErrorAlert("User name is required","Please enter a user name (minimum of 2 and maximum of 200 characters)"),t.userPassword&&!t.userPassword.valid&&t.showErrorAlert("Password is required","Please enter the current password"),!t.isResetPassword&&null!=t.email.errors&&t.email.errors.required&&t.showErrorAlert("Email is required","Please enter an email address (maximum of 200 characters)"),!t.isResetPassword&&null!=t.email.errors&&t.email.errors.pattern&&t.showErrorAlert("Invalid Email","Please enter a valid email address"),t.isChangePassword&&t.isEditingSelf&&!t.currentPassword.valid&&t.showErrorAlert("Current password is required","Please enter the current password"),(t.isChangePassword||t.isNewUser)&&!t.newPassword.valid&&t.showErrorAlert("New password is required","Please enter the new password (minimum of 6 characters)"),(t.isChangePassword||t.isNewUser)&&t.newPassword.valid&&null!=t.confirmPassword.errors&&t.confirmPassword.errors.required&&t.showErrorAlert("Confirmation password is required","Please enter the confirmation password"),(t.isChangePassword||t.isNewUser)&&t.newPassword.valid&&null!=t.confirmPassword.errors&&t.confirmPassword.errors.appValidateEqual&&t.showErrorAlert("Passwword mismatch","New password and confirmation password do not match"),t.canAssignRoles&&!t.roles.valid&&t.showErrorAlert("Roles is required","Please select a minimum of 1 role")}),c.Yc(2,VN,6,10,"div",3),c.Yc(3,UN,3,4,"div",4),c.Yc(4,XN,6,10,"div",3),c.Yc(5,QN,3,0,"div",4),c.Yc(6,ZN,11,15,"div",3),c.Yc(7,JN,3,4,"div",4),c.Yc(8,rB,6,10,"div",3),c.Yc(9,aB,3,4,"div",4),c.Yc(10,pB,6,6,"div",3),c.Yc(11,mB,3,4,"div",4),c.Yc(12,kB,6,9,"div",3),c.Yc(13,CB,3,4,"div",4),c.Yc(14,MB,6,10,"div",3),c.Yc(15,DB,3,4,"div",4),c.Yc(16,AB,6,10,"div",3),c.Yc(17,PB,3,4,"div",4),c.Yc(18,BB,14,5,"div",3),c.ec(19,"div",5),c.ic()}if(2&e){var i=c.xc();c.Qb("autocomplete",i.isGeneralEditor?"NaN":null),c.Pb(2),c.Dc("ngIf",!i.isRegisterUser&&!i.isResetPassword),c.Pb(1),c.Dc("ngIf",!i.isResetPassword),c.Pb(1),c.Dc("ngIf",!i.isResetPassword),c.Pb(1),c.Dc("ngIf",i.isEditMode&&i.isEditingSelf&&!i.isChangePassword&&i.user.userName!=i.userEdit.userName),c.Pb(1),c.Dc("ngIf",i.isEditMode&&i.isEditingSelf&&!i.isChangePassword&&i.user.userName!=i.userEdit.userName),c.Pb(1),c.Dc("ngIf",!i.isResetPassword),c.Pb(1),c.Dc("ngIf",!i.isResetPassword),c.Pb(1),c.Dc("ngIf",i.isEditMode),c.Pb(1),c.Dc("ngIf",i.isEditMode),c.Pb(1),c.Dc("ngIf",(!i.isEditMode||i.canAssignRoles)&&!i.isRegisterUser),c.Pb(1),c.Dc("ngIf",!i.isEditMode||i.canAssignRoles),c.Pb(1),c.Dc("ngIf",!i.isResetPassword&&!i.isRegisterUser),c.Pb(1),c.Dc("ngIf",!i.isRegisterUser),c.Pb(1),c.Dc("ngIf",!i.isResetPassword&&!i.isRegisterUser),c.Pb(1),c.Dc("ngIf",!i.isRegisterUser),c.Pb(1),c.Dc("ngIf",!i.isViewOnl
1y),c.Pb(1),c.Dc("ngIf",!i.isViewOnly)}}var zB,VB,UB=((VB=function(){function e(t,n){_classCallCheck(this,e),this.alertService=t,this.accountService=n,this.isEditMode=!1,this.isNewUser=!1,this.isRegisterUser=!1,this.isSaving=!1,this.isChangePassword=!1,this.isEditingSelf=!1,this.showValidationErrors=!1,this.uniqueId=ek.uniqueId(),this.user=new vD,this.allRoles=[],this.formResetToggle=!0,this.isGeneralEditor=!1,this.isResetPassword=!1}return _createClass(e,[{key:"ngOnInit",value:function(){this.isGeneralEditor||this.loadCurrentUserData()}},{key:"loadCurrentUserData",value:function(){var e=this;this.alertService.startLoadingMessage(),this.canViewAllRoles?this.accountService.getUserAndRoles().subscribe(function(t){return e.onCurrentUserDataLoadSuccessful(t[0],t[1])},function(t){return e.onCurrentUserDataLoadFailed(t)}):this.accountService.getUser().subscribe(function(t){return e.onCurrentUserDataLoadSuccessful(t,t.roles.map(function(e){return new PN(e)}))},function(t){return e.onCurrentUserDataLoadFailed(t)})}},{key:"onCurrentUserDataLoadSuccessful",value:function(e,t){this.alertService.stopLoadingMessage(),this.user=e,this.allRoles=t}},{key:"onCurrentUserDataLoadFailed",value:function(e){this.alertService.stopLoadingMessage(),this.alertService.showStickyMessage("Load Error",'Unable to retrieve user data from the server.\r\nErrors: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e),this.user=new vD}},{key:"getRoleByName",value:function(e){return this.allRoles.find(function(t){return t.name===e})}},{key:"showErrorAlert",value:function(e,t){this.alertService.showMessage(e,t,OM.error)}},{key:"deletePasswordFromUser",value:function(e){var t=e;delete t.currentPassword,delete t.newPassword,delete t.confirmPassword}},{key:"edit",value:function(){this.isGeneralEditor?(this.userEdit||(this.userEdit=new AN),this.isEditingSelf=!!this.accountService.currentUser&&this.userEdit.id===this.accountService.currentUser.id):(this.isEditingSelf=!0,this.userEdit=new AN,Object.assign(this.userEdit,this.user)),this.isEditMode=!0,this.showValidationErrors=!0,this.isChangePassword=!1}},{key:"save",value:function(){var e=this;this.isSaving=!0,this.alertService.startLoadingMessage("Saving changes..."),this.isRegisterUser?(this.userEdit.isEnabled=!0,this.userEdit.roles=["user"],this.isResetPassword?(this.resetPassword.password=this.userEdit.newPassword,this.accountService.resetPassword(this.resetPassword).subscribe(function(t){return e.saveSuccessHelper()},function(t){return e.saveFailedHelper(t)})):this.accountService.registerUser(this.userEdit).subscribe(function(t){return e.saveSuccessHelper(t)},function(t){return e.saveFailedHelper(t)})):this.isNewUser?this.accountService.newUser(this.userEdit).subscribe(function(t){return e.saveSuccessHelper(t)},function(t){return e.saveFailedHelper(t)}):this.accountService.updateUser(this.userEdit).subscribe(function(t){return e.saveSuccessHelper()},function(t){return e.saveFailedHelper(t)})}},{key:"saveSuccessHelper",value:function(e){this.testIsRoleUserCountChanged(this.user,this.userEdit),e&&Object.assign(this.userEdit,e),this.isSaving=!1,this.alertService.stopLoadingMessage(),this.isChangePassword=!1,this.showValidationErrors=!1,this.deletePasswordFromUser(this.userEdit),Object.assign(this.user,this.userEdit),this.userEdit=new AN,this.resetForm(),this.isGeneralEditor&&(this.isNewUser?this.alertService.showMessage("Success","Password was changed successfully",OM.success):this.isEditingSelf||this.alertService.showMessage("Success",'Changes to user "'.concat(this.user.userName,'" was saved successfully'),OM.success)),this.isEditingSelf&&(this.alertService.showMessage("Success","Changes to your User Profile was saved successfully",OM.success),this.refreshLoggedInUser()),this.isEditMode=!1,this.changesSavedCallback&&this.changesSavedCallback()}},{key:"saveFailedHelper",value:function(e){this.isSaving=!1,this.alertService.stopLoadingMessage(),this.alertService.showStickyMessage("Save Error","The below errors occured whilst saving your changes:",OM.error,e),this.alertService.showStickyMessage(e,null,OM.error),this.changesFailedCallback&&this.changesFailedCallback()}},{key:"testIsRoleUserCountChanged",value:function(e,t){var n=this,i=this.isNewUser?t.roles:t.roles.filter(function(t){return-1===e.roles.indexOf(t)}),r=this.isNewUser?[]:e.roles.filter(function(e){return-1===t.roles.indexOf(e)}),a=i.concat(r);a.length&&setTimeout(function(){return n.accountService.onRolesUserCountChanged(a)})}},{key:"isTestAccount",get:function(){return null!=this.accountService.currentUser&&"Test"==this.accountService.currentUser.userName}},{key:"cancel",value:function(){this.userEdit=this.isGeneralEditor?this.user=new AN:new AN,this.showValidationErrors=!1,this.resetForm(),this.alertService.showMessage("Cancelled","Operation cancelled by user",OM.default),this.alertService.resetStickyMessage(),this.isGeneralEditor||(this.isEditMode=!1),this.changesCancelledCallback&&this.changesCancelledCallback()}},{key:"close",value:function(){this.userEdit=this.user=new AN,this.showValidationErrors=!1,this.resetForm(),this.isEditMode=!1,this.changesSavedCallback&&this.changesSavedCallback()}},{key:"refreshLoggedInUser",value:function(){var e=this;this.accountService.refreshLoggedInUser().subscribe(function(t){e.loadCurrentUserData()},function(t){console.warn("User refresh failed after save, but save operation succeeded:",t),e.alertService.resetStickyMessage()})}},{key:"changePassword",value:function(){this.isChangePassword=!0}},{key:"unlockUser",value:function(){var e=this;this.isSaving=!0,this.alertService.startLoadingMessage("Unblocking user..."),this.accountService.unblockUser(this.userEdit.id).subscribe(function(){e.isSaving=!1,e.userEdit.isLockedOut=!1,e.alertService.stopLoadingMessage(),e.alertService.showMessage("Success","User has been successfully unblocked",OM.success)},function(t){e.isSaving=!1,e.alertService.stopLoadingMessage(),e.alertService.showStickyMessage("Unblock Error","The below errors occured whilst unblocking the user:",OM.error,t),e.alertService.showStickyMessage(t,null,OM.error)})}},{key:"resetForm",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isChangePassword=!1,t?(this.formResetToggle=!1,setTimeout(function(){e.formResetToggle=!0})):this.form.reset()}},{key:"newUser",value:function(e){return this.isGeneralEditor=!0,this.isNewUser=!0,this.allRoles=_toConsumableArray(e),this.user=this.userEdit=new AN,this.userEdit.isEnabled=!0,this.edit(),this.userEdit}},{key:"registerUser",value:function(e){return this.isGeneralEditor=!0,this.isRegisterUser=!0,this.isNewUser=!0,this.allRoles=_toConsumableArray(e),this.user=this.userEdit=new AN,this.userEdit.isEnabled=!0,this.edit(),this.userEdit}},{key:"editUser",value:function(e,t){return e?(this.isGeneralEditor=!0,this.isNewUser=!1,this.setRoles(e,t),this.user=new vD,this.userEdit=new AN,Object.assign(this.user,e),Object.assign(this.userEdit,e),this.edit(),this.userEdit):this.newUser(t)}},{key:"displayUser",value:function(e,t){this.user=new vD,Object.assign(this.user,e),this.deletePasswordFromUser(this.user),this.setRoles(e,t),this.isEditMode=!1}},{key:"setRoles",value:function(e,t){var n=this;if(this.allRoles=t?_toConsumableArray(t):[],e.roles){var i,r=_createForOfIteratorHelper(e.roles);try{var a=function(){var e=i.value;n.allRoles.some(function(t){return t.name===e})||n.allRoles.unshift(new PN(e))};for(r.s();!(i=r.n()).done;)a()}catch(o){r.e(o)}finally{r.f()}}}},{key:"canViewAllRoles",get:function(){return this.accountService.userHasPermission(pD.viewRolesPermission)}},{key:"canAssignRoles",get:function(){return this.accountService.userHasPermission(pD.assignRolesPermission)}}]),e}()).\u0275fac=function(e){return new(e||VB)(c.dc(PM),c.dc(HD))},VB.\u0275cmp=c.Xb({type:VB,selectors:[["app-user-info"]],viewQuery:function(e,t){var n;1&e&&(c.ed(ON,5),c.ed(IN,5),c.ed(HN,5),c.ed(jN,5),c.ed(FN,5),c.ed(RN,5),c.ed(NN,5),c.ed(BN,5)),2&e&&(c.Mc(n=c.uc())&&(t.form=n.first),c.Mc(n=c.uc())&&(t.userName=n.first),c.Mc(n=c.uc())&&(t.userPassword=n.first),c.Mc(n=c.uc())&&(t.email=n.first),c.Mc(n=c.uc())&&(t.currentPassword=n.first),c.Mc(n=c.uc())&&(t.newPassword=n.first),c.Mc(n=c.uc())&&(t.confirmPassword=n.first),c.Mc(n=c.uc())&&(t.roles=n.first))}
vendor: 5,152 bytes, line 1
1,inputs:{isViewOnly:"isViewOnly",isGeneralEditor:"isGeneralEditor",isResetPassword:"isResetPassword"},decls:2,vars:1,consts:[["name","userInfoForm","novalidate","",3,"ngSubmit",4,"ngIf"],["name","userInfoForm","novalidate","",3,"ngSubmit"],["f","ngForm"],["class","form-group row",4,"ngIf"],["class","row",4,"ngIf"],[1,"clearfix"],[1,"form-group","row"],[1,"col-form-label",3,"for"],[3,"col-lg-9","col-lg-10",4,"ngIf"],[1,"form-control-plaintext"],["appAutofocus","","type","text","name","jobTitle","placeholder","Enter Job Title",1,"form-control",3,"ngModel","ngModelChange"],[1,"row"],[1,"col-lg-12"],["type","text","name","userName","placeholder","Enter user name","required","","minlength","2","maxlength","200",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["userName","ngModel"],["class","invalid-feedback",4,"ngIf"],[1,"invalid-feedback"],[1,"password-separator-hr"],[1,"col-form-label","col-lg-2",3,"for"],[1,"col-lg-10"],["type","password","name","userPassword","placeholder","Enter password","required","",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["userPassword","ngModel"],[1,"hint-sm"],["type","text","name","email","placeholder","Enter email address","required","","maxlength","200","pattern","^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["email","ngModel"],["class","col-lg-10",4,"ngIf"],["type","button",1,"btn","btn-link",3,"click"],[1,"password-well","card","card-body","bg-light"],[1,"col-form-label","col-lg-3",3,"for"],[1,"col-lg-9"],["type","password","name","newPassword","placeholder","Enter new password","required","","minlength","6","appValidateEqual","confirmPassword","reverse","true",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["newPassword","ngModel"],["type","password","name","confirmPassword","placeholder","Confirm new password","required","","appValidateEqual","newPassword",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["confirmPassword","ngModel"],["type","password","name","currentPassword","placeholder","Enter current password","required","",1,"form-control",3,"ngClass","ngModel","ngModelChange"],["currentPassword","ngModel"],["for","roles-user-info",1,"col-form-label"],[3,"ngClass","col-lg-9","col-lg-10",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"badge","badge-pill","badge-secondary",3,"title"],[3,"ngClass"],["id","roles-user-info","name","roles","bindLabel","name","bindValue","name","placeholder","Select Roles","required","",1,"form-control","left-status","pill-items",3,"items","multiple","closeOnSelect","ngModel","ngModelChange"],["roles","ngModel"],["ng-label-tmp",""],["ng-option-tmp",""],["aria-hidden","true",1,"ng-value-icon","right",3,"click"],[1,"fa","fa-check","d-none"],["type","text","name","fullName","placeholder","Enter full name",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","phoneNumber","placeholder","Enter phone number",1,"form-control",3,"ngModel","ngModelChange"],[1,"col-sm-5"],["class","float-left",4,"ngIf"],[1,"col-sm-7"],[1,"float-right"],["type","button","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],[1,"float-left"],[1,"form-check","user-enabled"],["type","checkbox","id","idEnabled","name","isEnabled",1,"form-check-input",3,"ngModel","ngModelChange"],["for","idEnabled",1,"form-check-label"],["type","button","class","btn btn-warning unblock-user",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-warning","unblock-user",3,"disabled","click"],[1,"fa","fa-unlock-alt"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-close"],[1,"fa","fa-edit"],["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-times"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","fa fa-save",4,"ngIf"],["class","fa fa-circle-o-notch fa-spin",4,"ngIf"],[1,"fa","fa-save"],[1,"fa","fa-circle-o-notch","fa-spin"]],template:function(e,t){1&e&&(c.jc(0,"div"),c.Yc(1,YB,20,18,"form",0),c.ic()),2&e&&(c.Pb(1),c.Dc("ngIf",t.formResetToggle))},directives:[l.m,Ra,Jr,Ia,Er,kR,Zr,Fa,Wa,Ga,Qa,l.k,Za,LN,l.l,Jp,Mp,xp,Mr],pipes:[jc],styles:[".separator-hr[_ngcontent-%COMP%]{margin:0 5px;border-top-style:dashed}.edit-separator-hr[_ngcontent-%COMP%]{margin:10px 5px;border-top-style:dashed}.last-separator-hr[_ngcontent-%COMP%]{margin-top:5px}.edit-last-separator-hr[_ngcontent-%COMP%]{margin-top:15px}.password-separator-hr[_ngcontent-%COMP%]{margin:5px;border-style:none}.form-group[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}input.form-control[_ngcontent-%COMP%]{border-left-width:5px}.invalid-feedback[_ngcontent-%COMP%]{display:block}.password-well[_ngcontent-%COMP%]{padding:.5rem}.hint-sm[_ngcontent-%COMP%]{display:block}.form-check.user-enabled[_ngcontent-%COMP%]{display:inline-block}.unblock-user[_ngcontent-%COMP%]{margin-left:34px}@media (min-width:992px){.user-enabled[_ngcontent-%COMP%]{margin-left:40px}}"]}),VB),$B=((zB=function(){function e(t){var n=this;_classCallCheck(this,e),this.el=t,this.ngModelChange=new c.s,this.checkedSubscription=
1Ho($(this.el.nativeElement),"change").subscribe(function(e){return n.ngModelChange.emit(e.target.checked)})}return _createClass(e,[{key:"ngModel",set:function(e){this.toggle(e)}},{key:"ngOnInit",value:function(){var e=this;setTimeout(function(){return e.initialize()})}},{key:"ngOnDestroy",value:function(){this.destroy()}},{key:"initialize",value:function(e){$(this.el.nativeElement).bootstrapToggle(e)}},{key:"destroy",value:function(){this.checkedSubscription&&this.checkedSubscription.unsubscribe(),$(this.el.nativeElement).bootstrapToggle("destroy")}},{key:"toggleOn",value:function(){$(this.el.nativeElement).bootstrapToggle("on")}},{key:"toggleOff",value:function(){$(this.el.nativeElement).bootstrapToggle("off")}},{key:"toggle",value:function(e){null==e?$(this.el.nativeElement).bootstrapToggle("toggle"):$(this.el.nativeElement).prop("checked",e).change()}},{key:"enable",value:function(){$(this.el.nativeElement).bootstrapToggle("enable")}},{key:"disable",value:function(){$(this.el.nativeElement).bootstrapToggle("disable")}}]),e}()).\u0275fac=function(e){return new(e||zB)(c.dc(c.q))},zB.\u0275dir=c.Yb({type:zB,selectors:[["","appBootstrapToggle",""]],inputs:{ngModel:"ngModel"},outputs:{ngModelChange:"ngModelChange"},exportAs:["bootstrap-toggle"]}),zB);function WB(e,t){if(1&e&&(c.jc(0,"ng-option",12),c.jc(1,"div",27),c.ad(2),c.yc(3,"translate"),c.jc(4,"span",28),c.ad(5),c.ic(),c.ic(),c.ic()),2&e){var n=t.$implicit;c.Dc("value",n.id),c.Pb(1),c.Wc("background-color: ",n.background,"; color: ",n.color,""),c.Pb(1),c.cd(" ",c.zc(3,7,"preferences."+n.name+"Theme")," "),c.Pb(3),c.bd(n.isDark?"(Dark)":"")}}function qB(e,t){if(1&e){var n=c.kc();c.jc(0,"div",29),c.jc(1,"button",30),c.tc("click",function(){return c.Qc(n),c.xc().resetDefault()}),c.ec(2,"i",31),c.ad(3),c.yc(4,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(3),c.cd(" ",c.zc(4,1,"preferences.ResetDefault")," "))}function GB(e,t){if(1&e){var n=c.kc();c.jc(0,"div",32),c.jc(1,"button",33),c.tc("click",function(){return c.Qc(n),c.xc().setAsDefault()}),c.ec(2,"i",34),c.ad(3),c.yc(4,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(3),c.cd(" ",c.zc(4,1,"preferences.SetDefault")," "))}var XB,QB=((XB=function(){function e(t,n,i,r,a){_classCallCheck(this,e),this.alertService=t,this.translationService=n,this.accountService=i,this.themeManager=r,this.configurations=a}return _createClass(e,[{key:"reloadFromServer",value:function(){var e=this;this.alertService.startLoadingMessage(),this.accountService.getUserPreferences().subscribe(function(t){e.alertService.stopLoadingMessage(),e.configurations.import(t),e.alertService.showMessage("Defaults loaded!","",OM.info)},function(t){e.alertService.stopLoadingMessage(),e.alertService.showStickyMessage("Load Error",'Unable to retrieve user preferences from the server.\r\nErrors: "'.concat(ek.getHttpResponseMessages(t),'"'),OM.error,t)})}},{key:"setAsDefault",value:function(){var e=this;this.alertService.showDialog("Are you sure you want to set the current configuration as your new defaults?",LM.confirm,function(){return e.setAsDefaultHelper()},function(){return e.alertService.showMessage("Operation Cancelled!","",OM.default)})}},{key:"setAsDefaultHelper",value:function(){var e=this;this.alertService.startLoadingMessage("","Saving new defaults"),this.accountService.updateUserPreferences(this.configurations.export()).subscribe(function(t){e.alertService.stopLoadingMessage(),e.alertService.showMessage("New Defaults","Account defaults updated successfully",OM.success)},function(t){e.alertService.stopLoadingMessage(),e.alertService.showStickyMessage("Save Error",'An error occured whilst saving configuration defaults.\r\nErrors: "'.concat(ek.getHttpResponseMessages(t),'"'),OM.error,t)})}},{key:"resetDefault",value:function(){var e=this;this.alertService.showDialog("Are you sure you want to reset your defaults?",LM.confirm,function(){return e.resetDefaultHelper()},function(){return e.alertService.showMessage("Operation Cancelled!","",OM.default)})}},{key:"resetDefaultHelper",value:function(){var e=this;this.alertService.startLoadingMessage("","Resetting defaults"),this.accountService.updateUserPreferences(null).subscribe(function(t){e.alertService.stopLoadingMessage(),e.configurations.import(null),e.alertService.showMessage("Defaults Reset","Account defaults reset completed successfully",OM.success)},function(t){e.alertService.stopLoadingMessage(),e.alertService.showStickyMessage("Save Error",'An error occured whilst resetting configuration defaults.\r\nErrors: "'.concat(ek.getHttpResponseMessages(t),'"'),OM.error,t)})}},{key:"canViewCustomers",get:function(){return this.accountService.userHasPermission(pD.viewUsersPermission)}},{key:"isTestAccount",get:function(){return null!=this.accountService.currentUser&&"Test"==this.accountService.currentUser.userName}},{key:"canViewProducts",get:function(){return this.accountService.userHasPermission(pD.viewUsersPermission)}},{key:"canViewOrders",get:function(){return!0}}]),e}()).\u0275fac=function(e){return new(e||XB)(c.dc(PM),c.dc(nk),c.dc(HD),c.dc(rk),c.dc(ak))},XB.\u0275cmp=c.Xb({type:XB,selectors:[["app-user-preferences"]],decls:99,vars:70,consts:[[1,"form-group","row"],["for","refreshButton",1,"col-sm-3","col-form-label"],[1,"col-sm-4"],["id","refreshButton",1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-refresh"],[1,"col-sm-5"],[1,"form-control-plaintext","text-muted","small"],[1,"row"],[1,"col-md-12"],[1,"separator-hr"],["for","language",1,"col-sm-3","col-form-label"],["id","language",1,"form-control",3,"ngModel","searchable","clearable","ngModelChange"],[3,"value"],[1,"text-muted"],["for","defaultTheme",1,"col-sm-3","col-form-label"],["id","defaultTheme",1,"form-control","theme-picker",3,"ngModel","searchable","clearable","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["for","chartSamplingInterval",1,"col-sm-3","col-form-label"],["id","chartSamplingInterval",1,"form-control",3,"ngModel","searchable","clearable","ngModelChange"],["for","chartEnableAdaptiveSampling",1,"col-sm-3","col-form-label"],[1,"checkbox"],["name","chartEnableAdaptiveSampling","type","checkbox","appBootstrapToggle","","data-size","small",1,"form-control",3,"ngModel","ngModelChange"],[1,"last-separator-hr"],[1,"col-sm-9"],[1,"row","float-left"],["class","col-reset-default",4,"ngIf"],["class","col-set-default",4,"ngIf"],[1,"theme-item"],[1,"small"],[1,"col-reset-default"],["type","button",1,"btn","btn-success",3,"click"],[1,"fa","fa-circle-o-notch"],[1,"col-set-default"],["type","button",1,"btn","btn-primary",3,"click"],[1,"fa","fa-hdd-o"]],template:function(e,t){1&e&&(c.jc(0,"div"),c.jc(1,"div",0),c.jc(2,"label",1),c.ad(3),c.yc(4,"translate"),c.ic(),c.jc(5,"div",2),c.jc(6,"button",3),c.tc("click",function(){return t.reloadFromServer()}),c.ec(7,"i",4),c.ic(),c.ic(),c.jc(8,"div",5),c.jc(9,"p",6),c.ad(10),c.yc(11,"translate"),c.ic(),c.ic(),c.ic(),c.jc(12,"div",7),c.jc(13,"div",8),c.ec(14,"hr",9),c.ic(),c.ic(),c.jc(15,"div",0),c.jc(16,"label",10),c.ad(17),c.yc(18,"translate"),c.ic(),c.jc(19,"div",2),c.jc(20,"ng-select",11),c.tc("ngModelChange",function(e){return t.configurations.language=e}),c.jc(21,"ng-option",12),c.ad(22),c.yc(23,"translate"),c.jc(24,"small",13),c.jc(25,"i"),c.ad(26),c.yc(27,"translate"),c.ic(),c.ic(),c.ic(),c.jc(28,"ng-option",12),c.ad(29),c.yc(30,"translate"),c.ic(),c.ic(),c.ic(),c.jc(31,"div",5),c.jc(32,"p",6),c.ad(33),c.yc(34,"translate"),c.ic(),c.ic(),c.ic(),c.jc(35,"div",7),c.jc(36,"div",8),c.ec(37,"hr",9),c.ic(),c.ic(),c.jc(38,"div",7),c.jc(39,"div",8),c.ec(40,"hr",9),c.ic(),c.ic(),c.jc(41,"div",0),c.jc(42,"label",14),
1c.ad(43),c.yc(44,"translate"),c.ic(),c.jc(45,"div",2),c.jc(46,"ng-select",15),c.tc("ngModelChange",function(e){return t.configurations.themeId=e}),c.Yc(47,WB,6,9,"ng-option",16),c.ic(),c.ic(),c.jc(48,"div",5),c.jc(49,"p",6),c.ad(50),c.yc(51,"translate"),c.ic(),c.ic(),c.ic(),c.jc(52,"div",7),c.jc(53,"div",8),c.ec(54,"hr",9),c.ic(),c.ic(),c.jc(55,"div",0),c.jc(56,"label",17),c.ad(57),c.yc(58,"translate"),c.ic(),c.jc(59,"div",2),c.jc(60,"ng-select",18),c.tc("ngModelChange",function(e){return t.configurations.chartSamplingInterval=e}),c.jc(61,"ng-option",12),c.ad(62),c.yc(63,"translate"),c.ic(),c.jc(64,"ng-option",12),c.ad(65),c.yc(66,"translate"),c.ic(),c.jc(67,"ng-option",12),c.ad(68),c.yc(69,"translate"),c.ic(),c.jc(70,"ng-option",12),c.ad(71),c.yc(72,"translate"),c.ic(),c.ic(),c.ic(),c.jc(73,"div",5),c.jc(74,"p",6),c.ad(75),c.yc(76,"translate"),c.ic(),c.ic(),c.ic(),c.jc(77,"div",7),c.jc(78,"div",8),c.ec(79,"hr",9),c.ic(),c.ic(),c.jc(80,"div",0),c.jc(81,"label",19),c.ad(82),c.yc(83,"translate"),c.ic(),c.jc(84,"div",2),c.jc(85,"div",20),c.jc(86,"input",21),c.tc("ngModelChange",function(e){return t.configurations.chartEnableAdaptiveSampling=e}),c.ic(),c.ic(),c.ic(),c.jc(87,"div",5),c.jc(88,"p",6),c.ad(89),c.yc(90,"translate"),c.ic(),c.ic(),c.ic(),c.jc(91,"div",7),c.jc(92,"div",8),c.ec(93,"hr",22),c.ic(),c.ic(),c.jc(94,"div",0),c.jc(95,"div",23),c.jc(96,"div",24),c.Yc(97,qB,5,3,"div",25),c.Yc(98,GB,5,3,"div",26),c.ic(),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(3),c.cd("",c.zc(4,36,"preferences.ReloadPreferences")," "),c.Pb(7),c.bd(c.zc(11,38,"preferences.ReloadPreferencesHint")),c.Pb(7),c.cd("",c.zc(18,40,"preferences.Language")," "),c.Pb(3),c.Dc("ngModel",t.configurations.language)("searchable",!1)("clearable",!1),c.Pb(1),c.Dc("value","en"),c.Pb(1),c.cd("",c.zc(23,42,"preferences.English")," "),c.Pb(4),c.cd("(",c.zc(27,44,"preferences.Default"),")"),c.Pb(2),c.Dc("value","ru"),c.Pb(1),c.bd(c.zc(30,46,"preferences.Russian")),c.Pb(4),c.bd(c.zc(34,48,"preferences.LanguageHint")),c.Pb(10),c.cd("",c.zc(44,50,"preferences.Theme")," "),c.Pb(3),c.Dc("ngModel",t.configurations.themeId)("searchable",!1)("clearable",!1),c.Pb(1),c.Dc("ngForOf",t.themeManager.themes),c.Pb(3),c.bd(c.zc(51,52,"preferences.ThemeHint")),c.Pb(7),c.cd("",c.zc(58,54,"preferences.ChartDensity")," "),c.Pb(3),c.Dc("ngModel",t.configurations.chartSamplingInterval)("searchable",!1)("clearable",!1),c.Pb(1),c.Dc("value",1),c.Pb(1),c.bd(c.zc(63,56,"preferences.High")),c.Pb(2),c.Dc("value",2),c.Pb(1),c.bd(c.zc(66,58,"preferences.Medium")),c.Pb(2),c.Dc("value",5),c.Pb(1),c.bd(c.zc(69,60,"preferences.Low")),c.Pb(2),c.Dc("value",10),c.Pb(1),c.bd(c.zc(72,62,"preferences.VeryLow")),c.Pb(4),c.bd(c.zc(76,64,"preferences.ChartDensityHint")),c.Pb(7),c.cd("",c.zc(83,66,"preferences.AdaptiveSampling")," "),c.Pb(4),c.Dc("ngModel",t.configurations.chartEnableAdaptiveSampling),c.Pb(3),c.bd(c.zc(90,68,"preferences.AdaptiveSamplingHint")),c.Pb(8),c.Dc("ngIf",!t.isTestAccount),c.Pb(1),c.Dc("ngIf",!t.isTestAccount))},directives:[Jp,Zr,Fa,Qp,l.l,Mr,$B,l.m],pipes:[jc],styles:[".separator-hr[_ngcontent-%COMP%]{margin:7px 5px;border-top-style:dashed}.subseparator-hr[_ngcontent-%COMP%]{margin:7px 5px;border-top-style:none}.last-separator-hr[_ngcontent-%COMP%]{margin-top:7px}.form-group[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.form-control-plaintext[_ngcontent-%COMP%]{min-height:0}.checkbox[_ngcontent-%COMP%]{padding-top:0}.col-reset-default[_ngcontent-%COMP%]{padding-right:0}.col-set-default[_ngcontent-%COMP%]{padding-left:5px}.col-reset-default[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], .col-set-default[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{min-width:150px}@media (min-width:768px){.col-form-label[_ngcontent-%COMP%]{padding-top:5px}}"]}),XB),KB=["indexTemplate"],ZB=["userNameTemplate"],JB=["rolesTemplate"],eY=["actionsTemplate"],tY=["editorModal"],nY=["userEditor"];function iY(e,t){if(1&e){var n=c.kc();c.jc(0,"li",23),c.jc(1,"a",24),c.tc("click",function(){return c.Qc(n),c.xc().newUser()}),c.ec(2,"i",25),c.ad(3),c.yc(4,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(3),c.cd(" ",c.zc(4,1,"users.management.NewUser")," "))}function rY(e,t){if(1&e&&(c.jc(0,"strong"),c.ad(1),c.ic()),2&e){var n=t.value;c.Pb(1),c.bd(n)}}function aY(e,t){1&e&&c.ec(0,"i",28)}function oY(e,t){1&e&&c.ec(0,"i",29)}function sY(e,t){if(1&e&&(c.jc(0,"span"),c.Yc(1,aY,1,0,"i",26),c.Yc(2,oY,1,0,"i",27),c.ad(3),c.ic()),2&e){var n=t.row,i=t.value;c.Vb("locked-out",n.isLockedOut)("user-disabled",!n.isEnabled),c.Pb(1),c.Dc("ngIf",n.isLockedOut),c.Pb(1),c.Dc("ngIf",!n.isEnabled),c.Pb(1),c.cd(" ",i," ")}}function lY(e,t){if(1&e&&(c.jc(0,"span",31),c.ad(1),c.ic()),2&e){var n=t.$implicit;c.Pb(1),c.bd(n)}}function cY(e,t){1&e&&c.Yc(0,lY,2,1,"span",30),2&e&&c.Dc("ngForOf",t.value)}function uY(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"a",33),c.tc("click",function(){c.Qc(n);var e=c.xc().row;return c.xc().editUser(e)}),c.yc(2,"translate"),c.ec(3,"i",34),c.ic(),c.jc(4,"a",33),c.tc("click",function(){c.Qc(n);var e=c.xc().row;return c.xc().deleteUser(e)}),c.yc(5,"translate"),c.ec(6,"i",35),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,2,"users.management.Edit")),c.Pb(3),c.Ec("title",c.zc(5,4,"users.management.Delete")))}function dY(e,t){if(1&e&&c.Yc(0,uY,7,6,"div",32),2&e){var n=c.xc();c.Dc("ngIf",n.canManageUsers)}}function hY(e,t){1&e&&(c.jc(0,"h4",36),c.ec(1,"i",37),c.ad(2),c.yc(3,"translate"),c.ic()),2&e&&(c.Pb(2),c.cd(" ",c.zc(3,1,"users.management.NewUser"),""))}function fY(e,t){if(1&e&&(c.jc(0,"h4",36),c.ec(1,"i",38),c.ad(2),c.yc(3,"translate"),c.ic()),2&e){var n=c.xc();c.Pb(2),c.cd(" ",c.Ac(3,1,"users.management.EditUser",n.editingUserName),"")}}var pY,mY,gY=function(){return{backdrop:!1}},vY=((mY=function(){function e(t,n,i){_classCallCheck(this,e),this.alertService=t,this.translationService=n,this.accountService=i,this.columns=[],this.rows=[],this.rowsCache=[],this.allRoles=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this,t=function(t){return e.translationService.getTranslation(t)};this.columns=[{prop:"index",name:"#",cellTemplate:this.indexTemplate,canAutoResize:!1,width:10},{prop:"jobTitle",name:t("users.management.Title"),width:80},{prop:"userName",name:t("users.management.UserName"),cellTemplate:this.userNameTemplate},{prop:"fullName",name:t("users.management.FullName")},{prop:"email",name:t("users.management.Email")},{prop:"roles",name:t("users.management.Roles"),cellTemplate:this.rolesTemplate,width:100},{prop:"phoneNumber",name:t("users.management.PhoneNumber")}],this.canManageUsers&&this.columns.push({name:"",cellTemplate:this.actionsTemplate,resizeable:!1,
1canAutoResize:!1,sortable:!1,draggable:!1,width:100}),this.loadData()}},{key:"ngAfterViewInit",value:function(){var e=this;this.userEditor.changesSavedCallback=function(){e.addNewUserToList(),e.editorModal.hide()},this.userEditor.changesCancelledCallback=function(){e.editedUser=null,e.sourceUser=null,e.editorModal.hide()}}},{key:"addNewUserToList",value:function(){if(this.sourceUser){Object.assign(this.sourceUser,this.editedUser);var e=this.rowsCache.indexOf(this.sourceUser,0);e>-1&&ek.moveArrayItem(this.rowsCache,e,0),(e=this.rows.indexOf(this.sourceUser,0))>-1&&ek.moveArrayItem(this.rows,e,0),this.editedUser=null,this.sourceUser=null}else{var t=new vD;Object.assign(t,this.editedUser),this.editedUser=null;var n,i=0,r=_createForOfIteratorHelper(this.rowsCache);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.index>i&&(i=a.index)}}catch(o){r.e(o)}finally{r.f()}t.index=i+1,this.rowsCache.splice(0,0,t),this.rows.splice(0,0,t),this.rows=_toConsumableArray(this.rows)}}},{key:"loadData",value:function(){var e=this;this.alertService.startLoadingMessage(),this.loadingIndicator=!0,this.canViewRoles?this.accountService.getUsersAndRoles().subscribe(function(t){return e.onDataLoadSuccessful(t[0],t[1])},function(t){return e.onDataLoadFailed(t)}):this.accountService.getUsers().subscribe(function(t){return e.onDataLoadSuccessful(t,e.accountService.currentUser.roles.map(function(e){return new PN(e)}))},function(t){return e.onDataLoadFailed(t)})}},{key:"onDataLoadSuccessful",value:function(e,t){this.alertService.stopLoadingMessage(),this.loadingIndicator=!1,e.forEach(function(e,t){e.index=t+1}),this.rowsCache=_toConsumableArray(e),this.rows=e,this.allRoles=t}},{key:"onDataLoadFailed",value:function(e){this.alertService.stopLoadingMessage(),this.loadingIndicator=!1,this.alertService.showStickyMessage("Load Error",'Unable to retrieve users from the server.\r\nErrors: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)}},{key:"onSearchChanged",value:function(e){this.rows=this.rowsCache.filter(function(t){return ek.searchArray(e,!1,t.userName,t.fullName,t.email,t.phoneNumber,t.jobTitle,t.roles)})}},{key:"onEditorModalHidden",value:function(){this.editingUserName=null,this.userEditor.resetForm(!0)}},{key:"newUser",value:function(){this.editingUserName=null,this.sourceUser=null,this.editedUser=this.userEditor.newUser(this.allRoles),this.editorModal.show()}},{key:"editUser",value:function(e){this.editingUserName={name:e.userName},this.sourceUser=e,this.editedUser=this.userEditor.editUser(e,this.allRoles),this.editorModal.show()}},{key:"deleteUser",value:function(e){var t=this;this.alertService.showDialog('Are you sure you want to delete "'+e.userName+'"?',LM.confirm,function(){return t.deleteUserHelper(e)})}},{key:"deleteUserHelper",value:function(e){var t=this;this.alertService.startLoadingMessage("Deleting..."),this.loadingIndicator=!0,this.accountService.deleteUser(e).subscribe(function(n){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.rowsCache=t.rowsCache.filter(function(t){return t!==e}),t.rows=t.rows.filter(function(t){return t!==e})},function(e){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.alertService.showStickyMessage("Delete Error",'An error occured whilst deleting the user.\r\nError: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)})}},{key:"canAssignRoles",get:function(){return this.accountService.userHasPermission(pD.assignRolesPermission)}},{key:"canViewRoles",get:function(){return this.accountService.userHasPermission(pD.viewRolesPermission)}},{key:"canManageUsers",get:function(){return this.accountService.userHasPermission(pD.manageUsersPermission)}}]),e}()).\u0275fac=function(e){return new(e||mY)(c.dc(PM),c.dc(nk),c.dc(HD))},mY.\u0275cmp=c.Xb({type:mY,selectors:[["app-users-management"]],viewQuery:function(e,t){var n;1&e&&(c.ed(KB,7),c.ed(ZB,7),c.ed(JB,7),c.ed(eY,7),c.ed(tY,7),c.ed(nY,7)),2&e&&(c.Mc(n=c.uc())&&(t.indexTemplate=n.first),c.Mc(n=c.uc())&&(t.userNameTemplate=n.first),c.Mc(n=c.uc())&&(t.rolesTemplate=n.first),c.Mc(n=c.uc())&&(t.actionsTemplate=n.first),c.Mc(n=c.uc())&&(t.editorModal=n.first),c.Mc(n=c.uc())&&(t.userEditor=n.first))},decls:31,vars:15,consts:[[1,"row","control-box"],[1,"col-lg-8"],[1,"form-group","search-box"],[3,"placeholder","searchChange"],[1,"col-lg-4","pr-lg-5"],[1,"nav","flex-column","flex-lg-row","justify-content-end"],["class","nav-item toolbaritem",4,"ngIf"],[1,"material","colored-header","sm","table","table-striped","table-hover",3,"loadingIndicator","rows","columns","scrollbarV","scrollbarH","columnMode"],["indexTemplate",""],["userNameTemplate",""],["rolesTemplate",""],["actionsTemplate",""],["bsModal","","tabindex","-1",1,"modal","fade",3,"config","onHidden"],["editorModal","bs-modal"],[1,"modal-dialog","modal
1-lg","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["class","modal-title float-left",4,"ngIf"],["type","button","title","Close",1,"close","float-right",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"isGeneralEditor"],["userEditor",""],[1,"nav-item","toolbaritem"],["href","javascript:;",1,"nav-link",3,"click"],[1,"fa","fa-plus-circle"],["class","fa fa-exclamation-triangle",4,"ngIf"],["class","fa fa-exclamation",4,"ngIf"],[1,"fa","fa-exclamation-triangle"],[1,"fa","fa-exclamation"],["class","user-role badge badge-pill badge-secondary",4,"ngFor","ngForOf"],[1,"user-role","badge","badge-pill","badge-secondary"],[4,"ngIf"],["href","javascript:;",1,"btn","btn-link","btn-sm",3,"title","click"],["aria-hidden","true",1,"fa","fa-pencil"],["aria-hidden","true",1,"fa","fa-trash"],[1,"modal-title","float-left"],[1,"fa","fa-user-plus"],[1,"fa","fa-user-circle-o"]],template:function(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"div",0),c.jc(2,"div",1),c.jc(3,"div",2),c.jc(4,"app-search-box",3),c.tc("searchChange",function(e){return t.onSearchChanged(e)}),c.yc(5,"translate"),c.ic(),c.ic(),c.ic(),c.jc(6,"div",4),c.jc(7,"ul",5),c.Yc(8,iY,5,3,"li",6),c.ic(),c.ic(),c.ic(),c.ec(9,"ngx-datatable",7),c.Yc(10,rY,2,1,"ng-template",null,8,c.Zc),c.Yc(12,sY,4,7,"ng-template",null,9,c.Zc),c.Yc(14,cY,1,1,"ng-template",null,10,c.Zc),c.Yc(16,dY,1,1,"ng-template",null,11,c.Zc),c.jc(18,"div",12,13),c.tc("onHidden",function(){return t.onEditorModalHidden()}),c.jc(20,"div",14),c.jc(21,"div",15),c.jc(22,"div",16),c.Yc(23,hY,4,3,"h4",17),c.Yc(24,fY,4,4,"h4",17),c.jc(25,"button",18),c.tc("click",function(){return c.Qc(n),c.Nc(19).hide()}),c.jc(26,"span",19),c.ad(27,"\xd7"),c.ic(),c.ic(),c.ic(),c.jc(28,"div",20),c.ec(29,"app-user-info",21,22),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()}2&e&&(c.Pb(4),c.Ec("placeholder",c.zc(5,12,"users.management.Search")),c.Pb(4),c.Dc("ngIf",t.canManageUsers&&t.canAssignRoles),c.Pb(1),c.Dc("loadingIndicator",t.loadingIndicator)("rows",t.rows)("columns",t.columns)("scrollbarV",!0)("scrollbarH",!0)("columnMode","force"),c.Pb(9),c.Dc("config",c.Gc(14,gY)),c.Pb(5),c.Dc("ngIf",!t.editingUserName),c.Pb(1),c.Dc("ngIf",t.editingUserName),c.Pb(5),c.Dc("isGeneralEditor",!0))},directives:[wR,l.m,yh,_g,UB,l.l],pipes:[jc],styles:[".user-role[_ngcontent-%COMP%]{font-size:.8em!important;margin-right:1px}.control-box[_ngcontent-%COMP%]{margin-bottom:5px}.search-box[_ngcontent-%COMP%]{margin:0}.nav-item.toolbaritem[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:3px;min-width:100px}.user-disabled[_ngcontent-%COMP%]{color:#777;font-style:italic}.locked-out[_ngcontent-%COMP%]{background-color:#ff4500;color:#f5f5f5;width:100%;display:inline-block;padding-left:5px}.modal-content[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,.5)!important;border-radius:.5rem!important;box-shadow:0 .5rem 1rem rgba(0,0,0,.25)!important;background-color:#fff!important}.modal-dialog[_ngcontent-%COMP%]{max-width:800px}"]}),mY),yY=((pY=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(e,t){if(!e)return e;var n=e.reduce(function(e,n){return e[n[t]]?e[n[t]].push(n):e[n[t]]=[n],e},{});return Object.keys(n).map(function(e){return{key:e,value:n[e]}})}}]),e}()).\u0275fac=function(e){return new(e||pY)},pY.\u0275pipe=c.cc({name:"groupBy",type:pY,pure:!0}),pY),bY=["f"];function _Y(e,t){1&e&&(c.jc(0,"span",25),c.ad(1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.cd(" ",c.zc(2,1,"roles.editor.RoleNameRequired")," "))}function wY(e,t){if(1&e){var n=c.kc();c.jc(0,"div",31),c.jc(1,"input",32),c.tc("ngModelChange",function(e){var t=c.Qc(n).$implicit;return c.xc(3).selectedValues[t.value]=e}
1),c.ic(),c.jc(2,"label",33),c.ad(3),c.ic(),c.ic()}if(2&e){var i=t.$implicit,r=c.xc(3);c.Pb(1),c.Fc("name","checkboxes-",i.value,""),c.Fc("id","checkboxes-",i.value,""),c.Dc("disabled",!r.canManageRoles)("ngModel",r.selectedValues[i.value]),c.Pb(1),c.Ec("tooltip",i.description),c.Fc("for","checkboxes-",i.value,""),c.Pb(1),c.bd(i.name)}}function kY(e,t){1&e&&c.ec(0,"div",24)}function CY(e,t){if(1&e){var n=c.kc();c.jc(0,"div",26),c.jc(1,"label",27),c.tc("click",function(){var e=c.Qc(n).$implicit;return c.xc(2).toggleGroup(e.key)}),c.ad(2),c.ic(),c.jc(3,"div",28),c.Yc(4,wY,4,7,"div",29),c.ic(),c.ic(),c.Yc(5,kY,1,0,"div",30)}if(2&e){var i=t.$implicit,r=t.index;c.Pb(2),c.bd(i.key),c.Pb(2),c.Dc("ngForOf",i.value),c.Pb(1),c.Dc("ngIf",(r+1)%2==0)}}function xY(e,t){if(1&e){var n=c.kc();c.jc(0,"div",34),c.jc(1,"a",35),c.tc("click",function(){return c.Qc(n),c.xc(2).selectAll()}),c.ad(2),c.yc(3,"translate"),c.ic(),c.ad(4,"|"),c.jc(5,"a",35),c.tc("click",function(){return c.Qc(n),c.xc(2).selectNone()}),c.ad(6),c.yc(7,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(2),c.bd(c.zc(3,2,"roles.editor.SelectAll")),c.Pb(4),c.bd(c.zc(7,4,"roles.editor.SelectNone")))}function SY(e,t){if(1&e){var n=c.kc();c.jc(0,"button",36),c.tc("click",function(){return c.Qc(n),c.xc(2).cancel()}),c.ad(1),c.yc(2,"translate"),c.ic()}2&e&&(c.Pb(1),c.bd(c.zc(2,1,"roles.editor.Close")))}function MY(e,t){if(1&e){var n=c.kc();c.jc(0,"button",37),c.tc("click",function(){return c.Qc(n),c.xc(2).cancel()}),c.ec(1,"i",38),c.ad(2),c.yc(3,"translate"),c.ic()}if(2&e){var i=c.xc(2);c.Dc("disabled",i.isSaving),c.Pb(2),c.cd(" ",c.zc(3,2,"roles.editor.Cancel"),"")}}function DY(e,t){1&e&&c.ec(0,"i",42)}function TY(e,t){1&e&&c.ec(0,"i",43)}function EY(e,t){if(1&e&&(c.jc(0,"button",39),c.ad(1,"\n "),c.Yc(2,DY,1,0,"i",40),c.Yc(3,TY,1,0,"i",41),c.ad(4),c.yc(5,"translate"),c.yc(6,"translate"),c.ic()),2&e){var n=c.xc(2);c.Dc("disabled",n.isSaving),c.Pb(2),c.Dc("ngIf",!n.isSaving),c.Pb(1),c.Dc("ngIf",n.isSaving),c.Pb(1),c.cd(" ",n.isSaving?c.zc(5,4,"roles.editor.Saving"):c.zc(6,6,"roles.editor.Save"),"\n ")}}var AY=function(e,t){return{"is-valid":e,"is-invalid":t}};function PY(e,t){if(1&e){var n=c.kc();c.jc(0,"form",1,2),c.tc("ngSubmit",function(){c.Qc(n);var e=c.Nc(1),t=c.Nc(10),i=c.xc();return e.form.valid?i.save():!t.valid&&i.showErrorAlert("Role name is required","Please enter a role name (minimum of 2 and maximum of 200 characters)")}),c.jc(2,"div",3),c.jc(3,"div",4),c.jc(4,"div",5),c.jc(5,"label",6),c.ad(6),c.yc(7,"translate"),c.ic(),c.jc(8,"div",7),c.jc(9,"input",8,9),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().roleEdit.name=e}),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(11,"div",10),c.jc(12,"div",5),c.jc(13,"label",11),c.ad(14),c.yc(15,"translate"),c.ic(),c.jc(16,"div",7),c.jc(17,"input",12),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().roleEdit.description=e}),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(18,"div",3),c.jc(19,"div",13),c.Yc(20,_Y,3,3,"span",14),c.ic(),c.ic(),c.jc(21,"div",3),c.jc(22,"div",13),c.ec(23,"hr",15),c.ic(),c.ic(),c.jc(24,"div",3),c.jc(25,"div",16),c.jc(26,"div",3),c.Yc(27,CY,6,3,"ng-template",17),c.yc(28,"groupBy"),c.ic(),c.ic(),c.ic(),c.jc(29,"div",3),c.jc(30,"div",13),c.ec(31,"hr",18),c.ic(),c.ic(),c.jc(32,"div",5),c.jc(33,"div",4),c.Yc(34,xY,8,6,"div",19),c.ic(),c.jc(35,"div",10),c.jc(36,"div",20),c.ad(37,"\n "),c.Yc(38,SY,3,3,"button",21),c.ad(39,"\n "),c.Yc(40,MY,4,4,"button",22),c.ad(41,"\n "),c.Yc(42,EY,7,8,"button",23),c.ad(43,"\n "),c.ic(),c.ic(),c.ic(),c.ec(44,"div",24),c.ic()}if(2&e){var i=c.Nc(1),r=c.Nc(10),a=c.xc();c.Pb(6),c.bd(c.zc(7,13,"roles.editor.Name")),c.Pb(3),c.Dc("disabled",!a.canManageRoles)("ngClass",c.Ic(20,AY,i.submitted&&r.valid,i.submitted&&!r.valid))("ngModel",a.roleEdit.name),c.Pb(5),c.bd(c.zc(15,15,"roles.editor.Description")),c.Pb(3),c.Dc("disabled",!a.canManageRoles)("ngModel",a.roleEdit.description),c.Pb(3),c.Dc("ngIf",a.showValidationErrors&&i.submitted&&!r.valid),c.Pb(7),c.Dc("ngForOf",c.Ac(28,17,a.allPermissions,"groupName")),c.Pb(7),c.Dc("ngIf",a.canManageRoles),c.Pb(4),c.Dc("ngIf",!a.canManageRoles),c.Pb(2),c.Dc("ngIf",a.canManageRoles),c.Pb(2),c.Dc("ngIf",a.canManageRoles)}}var LY,OY=((LY=function(){function e(t,n){_classCallCheck(this,e),this.alertService=t,this.accountService=n,this.isNewRole=!1,this.showValidationErrors=!0,this.roleEdit=new PN,this.allPermissions=[],this.selectedValues={},this.formResetToggle=!0}return _createClass(e,[{key:"showErrorAlert",value:function(e,t){this.alertService.showMessage(e,t,OM.error)}},{key:"save",value:function(){var e=this;this.isSaving=!0,this.alertService.startLoadingMessage("Saving changes..."),this.roleEdit.permissions=this.getSelectedPermissions(),this.isNewRole?this.accountService.newRole(this.roleEdit).subscribe(function(t){return e.saveSuccessHelper(t)},function(t){return e.saveFailedHelper(t)}):this.accountService.updateRole(this.roleEdit).subscribe(function(t){return e.saveSuccessHelper()},function(t){return e.saveFailedHelper(t)})}},{key:"saveSuccessHelper",value:function(e){var t=this;e&&Object.assign(this.roleEdit,e),this.isSaving=!1,this.alertService.stopLoadingMessage(),this.showValidationErrors=!1,this.alertService.showMessage("Success",this.isNewRole?'Role "'.concat(this.roleEdit.name,'" was created successfully'):'Changes to role "'.concat(this.roleEdit.name,'" was saved successfully'),OM.success),this.roleEdit=new PN,this.resetForm(),!this.isNewRole&&this.accountService.currentUser.roles.some(function(e){return e===t.editingRoleName})&&this.refreshLoggedInUser(),this.changesSavedCallback&&this.changesSavedCallback()}},{key:"refreshLoggedInUser",value:function(){var e=this;this.accountService.refreshLoggedInUser().subscribe(function(e){},function(t){console.warn("User refresh failed after role save, but save operation succeeded:",t),e.alertService.resetStickyMessage()})}},{key:"saveFailedHelper",value:function(e){this.isSaving=!1,this.alertService.stopLoadingMessage(),this.alertService.showStickyMessage("Save Error","The below errors occured whilst saving your changes:",OM.error,e),this.alertService.showStickyMessage(e,null,OM.error),this.changesFailedCallback&&this.changesFailedCallback()}},{key:"cancel",value:function(){this.roleEdit=new PN,this.showValidationErrors=!1,this.resetForm(),this.alertService.showMessage("Cancelled","Operation cancelled by user",OM.default),this.alertService.resetStickyMessage(),this.changesCancelledCallback&&this.changesCancelledCallback()}},{key:"selectAll",value:function(){var e=this;this.allPermissions.forEach(function(t){return e.selectedValues[t.value]=!0})}},{key:"selectNone",value:function(){var e=this;this.allPermissions.forEach(function(t){return e.selectedValues[t.value]=!1})}},{key:"toggleGroup",value:function(e){var t,n=this;this.allPermissions.forEach(function(i){i.groupName===e&&(null==t&&(t=!0===n.selectedValues[i.value]),n.selectedValues[i.value]=!t)})}},{key:"getSelectedPermissions",value:function(){var e=this;return this.allPermissions.filter(function(t){return!0===e.selectedValues[t.value]})}},{key:"resetForm",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];t?(this.formResetToggle=!1,setTimeout(function(){e.formResetToggle=!0})):this.form.reset()}},{key:"newRole",value:function(e){return this.isNewRole=!0,this.showValidationErrors=!0,this.editingRoleName=null,this.allPermissions=e,this.selectedValues={},this.roleEdit=new PN,this.roleEdit}},{key:"editRole",value:function(e,t){var n=this;return e?(this.isNewRole=!1,this.showValidationErrors=!0,this.editingRoleName=e.name,this.allPermissions=t,this.selectedValues={},e.permissions.forEach(function(e){return n.selectedValues[e.value]=!0}),this.roleEdit=new PN,Object.assign(this.roleEdit,e),this.roleEdit):this.newRole(t)}},{key:"canManageRoles",get:function(){return this.accountService.userHasPermission(pD.manageRolesPermission)}}]),e}()).\u0275fac=function(e){return new(e||LY)(c.dc(PM),c.dc(HD))},LY.\u0275cmp=c.Xb({type:LY,selectors:[["app-role-editor"]],viewQuery:function(e,t){var n;1&e&&c.ed(bY,5),2&e&&c.Mc(n=c.uc())&&(t.form=n.first)},decls:2,vars:1,consts:[["name","roleEditorForm","novalidate","",3,"ngSubmit",4,"ngIf"],["name","roleEditorForm","novalidate","",3,"ngSubmit"],["f","ngForm"],[1,"row"],[1,"col-sm-5"],[1,"form-group","row"],["for","roleName",1,"col-form-label","col-md-3"],[1,"col-md-9"],["type","text","id","roleName","name","roleName","placeholder","Enter role name","required","","minlength","2","maxlength","200",1,"form-control",3,"disabled","ngClass","ngModel","ngModelChange"],["roleName","ngModel"],[1,"col-sm-7"],["for","roleDescription",1,"col-form-label","col-md-3"],["type","text","id","roleDescription","name","roleDescription","placeholder","Enter role description",1,"form-control",3,"disabled","ngModel","ngModelChange"],[1,"col-md-12"],["class","invali
1d-feedback",4,"ngIf"],[1,"edit-separator-hr"],[1,"col-sm-12","card","card-body","bg-light","well-sm","permissionsRow"],["ngFor","",3,"ngForOf"],[1,"edit-last-separator-hr"],["class","float-left",4,"ngIf"],[1,"float-right"],["type","button","class","btn btn-outline-secondary",3,"click",4,"ngIf"],["type","button","class","btn btn-danger",3,"disabled","click",4,"ngIf"],["type","submit","class","btn btn-primary",3,"disabled",4,"ngIf"],[1,"clearfix"],[1,"invalid-feedback"],[1,"form-group","row","col-sm-6","permissionsColumn"],["for","checkboxes",1,"col-md-5","col-form-label","group-name",3,"click"],[1,"col-md-7"],["class","form-check",4,"ngFor","ngForOf"],["class","clearfix",4,"ngIf"],[1,"form-check"],["type","checkbox",1,"form-check-input",3,"disabled","name","id","ngModel","ngModelChange"],[1,"form-check-label",3,"tooltip","for"],[1,"float-left"],["href","javascript:;",1,"btn","btn-link",3,"click"],["type","button",1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-danger",3,"disabled","click"],[1,"fa","fa-times"],["type","submit",1,"btn","btn-primary",3,"disabled"],["class","fa fa-save",4,"ngIf"],["class","fa fa-circle-o-notch fa-spin",4,"ngIf"],[1,"fa","fa-save"],[1,"fa","fa-circle-o-notch","fa-spin"]],template:function(e,t){1&e&&(c.jc(0,"div"),c.Yc(1,PY,45,23,"form",0),c.ic()),2&e&&(c.Pb(1),c.Dc("ngIf",t.formResetToggle))},directives:[l.m,Ra,Jr,Ia,Er,Wa,Ga,Qa,l.k,Zr,Fa,l.l,Mr,Dg],pipes:[jc,yY],styles:[".separator-hr[_ngcontent-%COMP%]{margin:0 5px;border-top-style:dashed}.edit-separator-hr[_ngcontent-%COMP%]{margin:10px 5px;border-top-style:dashed}.last-separator-hr[_ngcontent-%COMP%]{margin-top:5px}.edit-last-separator-hr[_ngcontent-%COMP%]{margin-top:15px}.form-group[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}input.form-control[_ngcontent-%COMP%]{border-left-width:5px}.invalid-feedback[_ngcontent-%COMP%]{display:block}.group-name[_ngcontent-%COMP%]{padding-top:0;font-weight:500;padding-right:0}.permissionsColumn[_ngcontent-%COMP%]{margin-bottom:20px}.permissionsRow[_ngcontent-%COMP%]{margin:0 15px}.well-sm[_ngcontent-%COMP%]{padding:.5rem}@media (min-width:992px){.user-enabled[_ngcontent-%COMP%]{margin-left:40px}}"]}),LY),IY=["indexTemplate"],HY=["actionsTemplate"],jY=["editorModal"],FY=["roleEditor"];function RY(e,t){if(1&e){var n=c.kc();c.jc(0,"li",20),c.jc(1,"a",21),c.tc("click",function(){return c.Qc(n),c.xc().newRole()}),c.ec(2,"i",22),c.ad(3),c.yc(4,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(3),c.cd(" ",c.zc(4,1,"roles.management.NewRole")," "))}function NY(e,t){if(1&e&&(c.jc(0,"strong"),c.ad(1),c.ic()),2&e){var n=t.value;c.Pb(1),c.bd(n)}}function BY(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"a",24),c.tc("click",function(){c.Qc(n);var e=c.xc().row;return c.xc().editRole(e)}),c.yc(2,"translate"),c.ec(3,"i",25),c.ic(),c.jc(4,"a",24),c.tc("click",function(){c.Qc(n);var e=c.xc().row;return c.xc().deleteRole(e)}),c.yc(5,"translate"),c.ec(6,"i",26),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,2,"roles.management.Edit")),c.Pb(3),c.Ec("title",c.zc(5,4,"roles.management.Delete")))}function YY(e,t){if(1&e&&c.Yc(0,BY,7,6,"div",23),2&e){var n=c.xc();c.Dc("ngIf",n.canManageRoles)}}function zY(e,t){if(1&e&&(c.jc(0,"h4",27),c.ec(1,"i",28),c.ad(2),c.yc(3,"translate"),c.ic()),2&e){var n=c.xc();c.Pb(2),c.cd(" ",c.Ac(3,1,"roles.management.RoleDetails",n.editingRoleName),"")}}function VY(e,t){if(1&e&&(c.jc(0,"h4",27),c.ec(1,"i",28),c.ad(2),c.yc(3,"translate"),c.yc(4,"translate"),c.ic()),2&e){var n=c.xc();c.Pb(2),c.cd(" ",n.editingRoleName?c.Ac(3,1,"roles.management.EditRole",n.editingRoleName):c.zc(4,4,"roles.management.NewRole"),"")}}var UY,$Y=function(){return{backdrop:!1}},WY=((UY=function(){function e(t,n,i){_classCallCheck(this,e),this.alertService=t,this.translationService=n,this.accountService=i,this.columns=[],this.rows=[],this.rowsCache=[],this.allPermissions=[]}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this,t=function(t){return e.translationService.getTranslation(t)};this.columns=[{prop:"index",name:"#",width:10,cellTemplate:this.indexTemplate,canAutoResize:!1},{prop:"name",name:t("roles.management.Name")},{prop:"description",name:t("roles.management.Description")},{prop:"usersCount",name:t("roles.management.Users")}
1,{name:"",cellTemplate:this.actionsTemplate,resizeable:!1,canAutoResize:!1,sortable:!1,draggable:!1}],this.loadData()}},{key:"ngAfterViewInit",value:function(){var e=this;this.roleEditor.changesSavedCallback=function(){e.addNewRoleToList(),e.editorModal.hide()},this.roleEditor.changesCancelledCallback=function(){e.editedRole=null,e.sourceRole=null,e.editorModal.hide()}}},{key:"addNewRoleToList",value:function(){if(this.sourceRole){Object.assign(this.sourceRole,this.editedRole);var e=this.rowsCache.indexOf(this.sourceRole,0);e>-1&&ek.moveArrayItem(this.rowsCache,e,0),(e=this.rows.indexOf(this.sourceRole,0))>-1&&ek.moveArrayItem(this.rows,e,0),this.editedRole=null,this.sourceRole=null}else{var t=new PN;Object.assign(t,this.editedRole),this.editedRole=null;var n,i=0,r=_createForOfIteratorHelper(this.rowsCache);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.index>i&&(i=a.index)}}catch(o){r.e(o)}finally{r.f()}t.index=i+1,this.rowsCache.splice(0,0,t),this.rows.splice(0,0,t),this.rows=_toConsumableArray(this.rows)}}},{key:"loadData",value:function(){var e=this;this.alertService.startLoadingMessage(),this.loadingIndicator=!0,this.accountService.getRolesAndPermissions().subscribe(function(t){e.alertService.stopLoadingMessage(),e.loadingIndicator=!1;var n=t[0],i=t[1];n.forEach(function(e,t){e.index=t+1}),e.rowsCache=_toConsumableArray(n),e.rows=n,e.allPermissions=i},function(t){e.alertService.stopLoadingMessage(),e.loadingIndicator=!1,e.alertService.showStickyMessage("Load Error",'Unable to retrieve roles from the server.\r\nErrors: "'.concat(ek.getHttpResponseMessages(t),'"'),OM.error,t)})}},{key:"onSearchChanged",value:function(e){this.rows=this.rowsCache.filter(function(t){return ek.searchArray(e,!1,t.name,t.description)})}},{key:"onEditorModalHidden",value:function(){this.editingRoleName=null,this.roleEditor.resetForm(!0)}},{key:"newRole",value:function(){this.editingRoleName=null,this.sourceRole=null,this.editedRole=this.roleEditor.newRole(this.allPermissions),this.editorModal.show()}},{key:"editRole",value:function(e){this.editingRoleName={name:e.name},this.sourceRole=e,this.editedRole=this.roleEditor.editRole(e,this.allPermissions),this.editorModal.show()}},{key:"deleteRole",value:function(e){var t=this;this.alertService.showDialog('Are you sure you want to delete the "'+e.name+'" role?',LM.confirm,function(){return t.deleteRoleHelper(e)})}},{key:"deleteRoleHelper",value:function(e){var t=this;this.alertService.startLoadingMessage("Deleting..."),this.loadingIndicator=!0,this.accountService.deleteRole(e).subscribe(function(n){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.rowsCache=t.rowsCache.filter(function(t){return t!==e}),t.rows=t.rows.filter(function(t){return t!==e})},function(e){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.alertService.showStickyMessage("Delete Error",'An error occured whilst deleting the role.\r\nError: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)})}},{key:"canManageRoles",get:function(){return this.accountService.userHasPermission(pD.manageRolesPermission)}}]),e}()).\u0275fac=function(e){return new(e||UY)(c.dc(PM),c.dc(nk),c.dc(HD))},UY.\u0275cmp=c.Xb({type:UY,selectors:[["app-roles-management"]],viewQuery:function(e,t){var n;1&e&&(c.ed(IY,7),c.ed(HY,7),c.ed(jY,7),c.ed(FY,7)),2&e&&(c.Mc(n=c.uc())&&(t.indexTemplate=n.first),c.Mc(n=c.uc())&&(t.actionsTemplate=n.first),c.Mc(n=c.uc())&&(t.editorModal=n.first),c.Mc(n=c.uc())&&(t.roleEditor=n.first))},decls:28,vars:14,consts:[[1,"row","control-box"],[1,"col-lg-8"],[1,"form-group","search-box"],[3,"placeholder","searchChange"],[1,"col-lg-4","pr-lg-5"],[1,"nav","flex-column","flex-lg-row","justify-content-end"],["class","nav-item toolbaritem",4,"ngIf"],[1,"material","colored-header","sm","table","table-striped","table-hover",3,"loadingIndicator","rows","columns","scrollbarV","scrollbarH","columnMode"],["indexTemplate",""],["actionsTemplate",""],["bsModal","","tabindex","-1",1,"modal","fade",3,"config","onHidden"],["editorModal","bs-modal"],[1,"modal-dialog","modal
1-lg","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["class","modal-title float-left",4,"ngIf"],["type","button","title","Close",1,"close","float-right",3,"click"],["aria-hidden","true"],[1,"modal-body"],["roleEditor",""],[1,"nav-item","toolbaritem"],["href","javascript:;",1,"nav-link",3,"click"],[1,"fa","fa-plus-circle"],[4,"ngIf"],["href","javascript:;",1,"btn","btn-link","btn-sm",3,"title","click"],["aria-hidden","true",1,"fa","fa-pencil"],["aria-hidden","true",1,"fa","fa-trash"],[1,"modal-title","float-left"],[1,"fa","fa-shield"]],template:function(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"div",0),c.jc(2,"div",1),c.jc(3,"div",2),c.jc(4,"app-search-box",3),c.tc("searchChange",function(e){return t.onSearchChanged(e)}),c.yc(5,"translate"),c.ad(6,">"),c.ic(),c.ic(),c.ic(),c.jc(7,"div",4),c.jc(8,"ul",5),c.Yc(9,RY,5,3,"li",6),c.ic(),c.ic(),c.ic(),c.ec(10,"ngx-datatable",7),c.Yc(11,NY,2,1,"ng-template",null,8,c.Zc),c.Yc(13,YY,1,1,"ng-template",null,9,c.Zc),c.jc(15,"div",10,11),c.tc("onHidden",function(){return t.onEditorModalHidden()}),c.jc(17,"div",12),c.jc(18,"div",13),c.jc(19,"div",14),c.Yc(20,zY,4,4,"h4",15),c.Yc(21,VY,5,6,"h4",15),c.jc(22,"button",16),c.tc("click",function(){return c.Qc(n),c.Nc(16).hide()}),c.jc(23,"span",17),c.ad(24,"\xd7"),c.ic(),c.ic(),c.ic(),c.jc(25,"div",18),c.ec(26,"app-role-editor",null,19),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()}2&e&&(c.Pb(4),c.Ec("placeholder",c.zc(5,11,"roles.management.Search")),c.Pb(5),c.Dc("ngIf",t.canManageRoles),c.Pb(1),c.Dc("loadingIndicator",t.loadingIndicator)("rows",t.rows)("columns",t.columns)("scrollbarV",!0)("scrollbarH",!0)("columnMode","force"),c.Pb(5),c.Dc("config",c.Gc(13,$Y)),c.Pb(5),c.Dc("ngIf",!t.canManageRoles),c.Pb(1),c.Dc("ngIf",t.canManageRoles))},directives:[wR,l.m,yh,_g,OY],pipes:[jc],styles:[".control-box[_ngcontent-%COMP%]{margin-bottom:5px}.search-box[_ngcontent-%COMP%]{margin:0}.nav-item.toolbaritem[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:3px;min-width:100px}.modal-content[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,.5)!important;border-radius:.5rem!important;box-shadow:0 .5rem 1rem rgba(0,0,0,.25)!important;background-color:#fff!important}.modal-dialog[_ngcontent-%COMP%]{max-width:800px}"]}),UY),qY=["tab"];function GY(e,t){1&e&&(c.jc(0,"div",24),c.ec(1,"app-user-info"),c.ic()),2&e&&c.Dc("@fadeInOut",void 0)}function XY(e,t){1&e&&(c.jc(0,"div",24),c.ec(1,"app-user-preferences"),c.ic()),2&e&&c.Dc("@fadeInOut",void 0)}function QY(e,t){1&e&&(c.jc(0,"div",25),c.ec(1,"app-users-management"),c.ic()),2&e&&c.Dc("@fadeInOut",void 0)}function KY(e,t){1&e&&(c.jc(0,"div",25),c.ec(1,"app-roles-management"),c.ic()),2&e&&c.Dc("@fadeInOut",void 0)}var ZY,JY,ez=function(){return[]},tz=((JY=function(){function e(t,n,i){_classCallCheck(this,e),this.router=t,this.route=n,this.accountService=i,this.isProfileActivated=!0,this.isPreferencesActivated=!1,this.isUsersActivated=!1,this.isRolesActivated=!1,this.profileTab="profile",this.preferencesTab="preferences",this.usersTab="users",this.rolesTab="roles"}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.fragmentSubscription=this.route.fragment.subscribe(function(t){return e.showContent(t)})}},{key:"ngOnDestroy",value:function(){this.fragmentSubscription.unsubscribe()}},{key:"showContent",value:function(e){e&&(e=e.toLowerCase()),this.isFragmentEquals(e,this.usersTab)&&!this.canViewUsers||this.isFragmentEquals(e,this.rolesTab)&&!this.canViewRoles||this.tab.show("#".concat(e||this.profileTab,"Tab"))}},{key:"isFragmentEquals",value:function(e,t){return null==e&&(e=""),null==t&&(t=""),e.toLowerCase()===t.toLowerCase()}},{key:"onShowTab",value:function(e){var t=e.target.hash.split("#",2).pop();this.isProfileActivated=t===this.profileTab,this.isPreferencesActivated=t===this.preferencesTab,this.isUsersActivated=t===this.usersTab,this.isRolesActivated=t===this.rolesTab,this.router.navigate([],{fragment:t})}},{key:"canViewUsers",get:function(){return this.accountService.userHasPermission(pD.viewUsersPermission)}},{key:"canViewRoles",get:function(){return this.accountService.userHasPermission(pD.viewRolesPermission)}}]),e}()).\u0275fac=function(e){return new(e||JY)(c.dc(fw),c.dc(zb),c.dc(HD))},JY.\u0275cmp=c.Xb({type:JY,selectors:[["app-settings"]],viewQuery:function(e,t){var n;1&e&&c.ed(qY,7),2&e&&c.Mc(n=c.uc())&&(t.tab=n.first)},decls:55,vars:42,consts:[[1,"container","settings-page"],[1,"pageHeader"],["aria-hidden","true",1,"fa","fa-cog","fa-lg","page-caption"],[1,"d-sm-flex","flex-row"],["appBootstrapTab","","role","navigation",1,"nav","nav-tabs","nav-tabs--vertical","nav-tabs--left",3,"showBSTab"],["tab","bootstrap-tab"],[1,"nav-item"],["id","profileTab","fragment","profile","data-target","#profile","href","#profile","data-toggle","tab","role","tab","aria-controls","profile",1,"nav-link","active",3,"routerLink"],["aria-hidden","true",1,"fa","fa-user-circle-o","fa-fw"],["id","preferencesTab","fragment","preferences","data-target","#preferences","href","#preferences","data-toggle","tab","role","tab","aria-controls","preferences",1,"nav-link",3,"routerLink"],["aria-hidden","true",1,"fa","fa-sliders","fa-fw"],[1,"nav-item",3,"hidden"],["id","usersTab","fragment","users","data-target","#users","href","#users","data-toggle","tab","role","tab","aria-controls","users",1,"nav-link",3,"routerLink"],["aria-hidden","true",1,"fa","fa-users","fa-fw"],["id","rolesTab","fragment","roles","data-target","#roles","href","#roles","data-toggle","tab","role","tab","aria-controls","roles",1,"nav-link",3,"routerLink"],["aria-hidden","true",1,"fa","fa-shield","fa-fw"],[1,"tab-content","w-100"],["id","profile","role","tabpanel",1,"tab-pane","show","active"],[1,"separator-hr"],["class","content-container pl-lg-2",4,"ngIf"],["id","preferences","role","tabpanel",1,"tab-pane"],["id","users","role","tabpanel",1,"tab-pane"],["class","content-container pl-lg-1",4,"ngIf"],["id","roles","role","tabpanel",1,"tab-pane"],[1,"content-container","pl-lg-2"],[1,"content-container","pl-lg-1"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"header",1),c.jc(2,"h3"),c.ec(3,"i",2),c.ad(4),c.yc(5,"translate"),c.ic(),c.ic(),c.jc(6,"div"),c.jc(7,"div",3),c.jc(8,"ul",4,5),c.tc("showBSTab",function(e){return t.onShowTab(e)}),c.jc(10,"li",6),c.jc(11,"a",7),c.ec(12,"i",8),c.ad(13),c.yc(14,"translate"),c.ic(),c.ic(),c.jc(15,"li",6),c.jc(16,"a",9),c.ec(17,"i",10),c.ad(18),c.yc(19,"translate"),c.ic(),c.ic(),c.jc(20,"li",11),c.jc(21,"a",12),c.ec(22,"i",13),c.ad(23),c.yc(24,"translate"),c.ic(),c.ic(),c.jc(25,"li",11),c.jc(26,"a",14),c.ec(27,"i",15),c.ad(28),c.yc(29,"translate"),c.ic(),c.ic(),c.ic(),c.jc(30,"div",16),c.jc(31,"div",17),c.jc(32,"h4"),c.ad(33),c.yc(34,"translate"),c.ic(),c.ec(35,"hr",18),c.Yc(36,GY,2,1,"div",19),c.ic(),c.jc(37,"div",20),c.jc(38,"h4"),c.ad(39),c.yc(40,"translate"),c.ic(),c.ec(41,"hr",18),c.Yc(42,XY,2,1,"div",19),c.ic(),c.jc(43,"div",21),c.jc(44,"h4"),c.ad(45),c.yc(46,"translate"),c.ic(),c.ec(47,"hr",18),c.Yc(48,QY,2,1,"div",22),c.ic(),c.jc(49,"div",23),c.jc(50,"h4"),c.ad(51),c.yc(52,"translate"),c.ic(),c.ec(53,"hr",18),c.Yc(54,KY,2,1,"div",22),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(4),c.cd(" ",c.zc(5,20,"pageHeader.Settings"),""),c.Pb(2),c.Dc("@fadeInOut",void 0),c.Pb(5),c.Dc("routerLink",c.Gc(38,ez)),c.Pb(2),c.cd(" ",c.zc(14,22,"settings.tab.Profile")," "),c.Pb(3),c.Dc("routerLink",c.Gc(39,ez)),c.Pb(2),c.cd(" ",c.zc(19,24,"settings.tab.Preferences")," "),c.Pb(2),c.Dc("hidden",!t.canViewUsers),c.Pb(1),c.Dc("routerLink",c.Gc(40,ez)),c.Pb(2),c.cd(" ",c.zc(24,26,"settings.tab.Users")," "),c.Pb(2),c.Dc("hidden",!t.canViewRoles),c.Pb(1),c.Dc("routerLink",c.Gc(41,ez)),c.Pb(2),c.cd(" ",c.zc(29,28,"settings.tab.Roles")," "),c.Pb(5),c.bd(c.zc(34,30,"settings.header.UserProfile")),c.Pb(3),c.Dc("ngIf",t.isProfileActivated),c.Pb(3),c.bd(c.zc(40,32,"settings.header.UserPreferences")),c.Pb(3),c.Dc("ngIf",t.isPreferencesActivated),c.Pb(3),c.bd(c.zc(46,34,"settings.header.UsersManagements")),c.Pb(3),c.Dc("ngIf",t.canViewUsers&&t.isUsersActivated),c.Pb(3),c.bd(c.zc(52,36,"settings.header.RolesManagement")),c.Pb(3),c.Dc("ngIf",t.canViewRoles&&t.isRolesActivated))},directives:[EN,mw,l.m,UB,QB,vY,WY],pipes:[jc],styles:[".separator-hr[_ngcontent-%COMP%]{margin-top:0;margin-bottom:10px}[hidden][_ngcontent-%COMP%]{display:none}"],data:{animation:[Zw]}}),JY),nz=((ZY=function(){function e(t){_classCallCheck(this,e),this.translationService=t}return _createClass(e,[{key:"goToUrlEmail",value:function(){window.open("https://mail.google.com/mail/?view=cm&[email protected]","_blank"),this.copyToClipboard("[email protected]")}},{key:"goToUrlTelegram",value:function(){window.open("https://t.me/musbreath","_blank")}},{key:"goToUrlTelegramChannel",value:function(){window.open("https://t.me/forexvisible1","_blank")}},{key:"goToUrlTouTubeChannel",value:function(){window.open("https://www.youtube.com/channel/UC
1Qq0RapWmyJtpKxlOD9tIcw","_blank")}},{key:"copyToClipboard",value:function(e){navigator.clipboard.writeText(e).then(function(){console.log("Email \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430:",e)}).catch(function(e){console.error("\u041e\u0448\u0438\u0431\u043a\u0430 \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:",e)})}}]),e}()).\u0275fac=function(e){return new(e||ZY)(c.dc(nk))},ZY.\u0275cmp=c.Xb({type:ZY,selectors:[["app-about"]],decls:82,vars:48,consts:[[1,"about-page"],[1,"about-header"],[1,"about-subtitle"],[1,"contact-container"],[1,"contact-card"],[1,"card-icon","email-icon"],[1,"fas","fa-envelope"],[1,"card-content"],[1,"contact-btn",3,"click"],[1,"fas","fa-paper-plane"],[1,"card-icon","telegram-icon"],[1,"fab","fa-telegram"],[1,"fas","fa-comment"],[1,"card-icon","telegram-channel-icon"],[1,"fas","fa-broadcast-tower"],[1,"card-icon","youtube-icon"],[1,"fab","fa-youtube"],[1,"fas","fa-play"],[1,"about-footer"],[1,"footer-content"],[1,"social-links"],["href","javascript:void(0)",1,"social-link",3,"click"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"div",1),c.jc(2,"h1"),c.ad(3),c.yc(4,"translate"),c.ic(),c.jc(5,"p",2),c.ad(6),c.yc(7,"translate"),c.ic(),c.ic(),c.jc(8,"div",3),c.jc(9,"div",4),c.jc(10,"div",5),c.ec(11,"i",6),c.ic(),c.jc(12,"div",7),c.jc(13,"h3"),c.ad(14),c.yc(15,"translate"),c.ic(),c.jc(16,"p"),c.ad(17),c.yc(18,"translate"),c.ic(),c.jc(19,"button",8),c.tc("click",function(){return t.goToUrlEmail()}),c.ec(20,"i",9),c.ad(21),c.yc(22,"translate"),c.ic(),c.ic(),c.ic(),c.jc(23,"div",4),c.jc(24,"div",10),c.ec(25,"i",11),c.ic(),c.jc(26,"div",7),c.jc(27,"h3"),c.ad(28),c.yc(29,"translate"),c.ic(),c.jc(30,"p"),c.ad(31),c.yc(32,"translate"),c.ic(),c.jc(33,"button",8),c.tc("click",function(){return t.goToUrlTelegram()}),c.ec(34,"i",12),c.ad(35),c.yc(36,"translate"),c.ic(),c.ic(),c.ic(),c.jc(37,"div",4),c.jc(38,"div",13),c.ec(39,"i",11),c.ic(),c.jc(40,"div",7),c.jc(41,"h3"),c.ad(42),c.yc(43,"translate"),c.ic(),c.jc(44,"p"),c.ad(45),c.yc(46,"translate"),c.ic(),c.jc(47,"button",8),c.tc("click",function(){return t.goToUrlTelegramChannel()}),c.ec(48,"i",14),c.ad(49),c.yc(50,"translate"),c.ic(),c.ic(),c.ic(),c.jc(51,"div",4),c.jc(52,"div",15),c.ec(53,"i",16),c.ic(),c.jc(54,"div",7),c.jc(55,"h3"),c.ad(56),c.yc(57,"translate"),c.ic(),c.jc(58,"p"),c.ad(59),c.yc(60,"translate"),c.ic(),c.jc(61,"button",8),c.tc("click",function(){return t.goToUrlTouTubeChannel()}),c.ec(62,"i",17),c.ad(63),c.yc(64,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(65,"div",18),c.jc(66,"div",19),c.jc(67,"h2"),c.ad(68),c.yc(69,"translate"),c.ic(),c.jc(70,"p"),c.ad(71),c.yc(72,"translate"),c.ic(),c.jc(73,"div",20),c.jc(74,"a",21),c.tc("click",function(){return t.goToUrlEmail()}),c.ec(75,"i",6),c.ic(),c.jc(76,"a",21),c.tc("click",function(){return t.goToUrlTelegram()}),c.ec(77,"i",11),c.ic(),c.jc(78,"a",21),c.tc("click",function(){return t.goToUrlTelegramChannel()}),c.ec(79,"i",11),c.ic(),c.jc(80,"a",21),c.tc("click",function(){return t.goToUrlTouTubeChannel()}),c.ec(81,"i",16),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(3),c.bd(c.zc(4,16,"pageHeader.About")),c.Pb(3),c.bd(c.zc(7,18,"aboutPage.subtitle")),c.Pb(8),c.bd(c.zc(15,20,"aboutPage.email.title")),c.Pb(3),c.bd(c.zc(18,22,"aboutPage.email.address")),c.Pb(4),c.cd(" ",c.zc(22,24,"aboutPage.email.button")," "),c.Pb(7),c.bd(c.zc(29,26,"aboutPage.telegram.title")),c.Pb(3),c.bd(c.zc(32,28,"aboutPage.telegram.username")),c.Pb(4),c.cd(" ",c.zc(36,30,"aboutPage.telegram.button")," "),c.Pb(7),c.bd(c.zc(43,32,"aboutPage.telegramChannel.title")),c.Pb(3),c.bd(c.zc(46,34,"aboutPage.telegramChannel.username")),c.Pb(4),c.cd(" ",c.zc(50,36,"aboutPage.telegramChannel.button")," "),c.Pb(7),c.bd(c.zc(57,38,"aboutPage.youtube.title")),c.Pb(3),c.bd(c.zc(60,40,"aboutPage.youtube.channel")),c.Pb(4),c.cd(" ",c.zc(64,42,"aboutPage.youtube.button")," "),c.Pb(5),c.bd(c.zc(69,44,"aboutPage.footer.title")),c.Pb(3),c.bd(c.zc(72,46,"aboutPage.footer.description")))},pipes:[jc],styles:['.about-page[_ngcontent-%COMP%]{min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:2rem;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif}.about-header[_ngcontent-%COMP%]{text-align:center;margin-bottom:3rem;color:#fff}.about-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2rem;font-weight:700;margin-bottom:1rem;text-shadow:2px 2px 4px rgba(0,0,0,.3);animation:fadeInDown .8s ease-out}.about-header[_ngcontent-%COMP%] .about-subtitle[_ngcontent-%COMP%]{font-size:1.2rem;opacity:.9;font-weight:300;animation:fadeInUp .8s ease-out .2s both}.contact-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:2rem;max-width:1200px;margin:0 auto 3rem}.contact-card[_ngcontent-%COMP%]{background:hsla(0,0%,100%,.95);border-radius:20px;padding:2rem;box-shadow:0 20px 40px rgba(0,0,0,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid hsla(0,0%,100%,.2);transition:all .3s ease;animation:fadeInUp .8s ease-out;position:relative;overflow:hidden}.contact-card[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#667eea,#764ba2)}.contact-card[_ngcontent-%COMP%]:hover{transform:translateY(-10px);box-shadow:0 30px 60px rgba(0,0,0,.15)}.contact-card[_ngcontent-%COMP%] .card-icon[_ngcontent-%COMP%]{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:1.5rem;font-size:1.5rem;color:#fff}.contact-card[_ngcontent-%COMP%] .card-icon.email-icon[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ff6b6b,#ee5a24)}.contact-card[_ngcontent-%COMP%] .card-icon.telegram-channel-icon[_ngcontent-%COMP%], .contact-card[_ngcontent-%COMP%] .card-icon.telegram-icon[_ngcontent-%COMP%]{background:linear-gradient(135deg,#08c,#069)}.contact-card[_ngcontent-%COMP%] .card-icon.youtube-icon[_ngcontent-%COMP%]{background:linear-gradient(135deg,red,#c00)}.contact-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1.5rem;font-weight:600;margin-bottom:.5rem;color:#333}.contact-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#666;margin-bottom:1.5rem;font-size:1rem}
1.contact-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .contact-btn[_ngcontent-%COMP%]{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:25px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;gap:.5rem}.contact-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .contact-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.8rem}.contact-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .contact-btn[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(102,126,234,.3)}.contact-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .contact-btn[_ngcontent-%COMP%]:active{transform:translateY(0)}.about-footer[_ngcontent-%COMP%]{background:hsla(0,0%,100%,.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:20px;padding:3rem;text-align:center;border:1px solid hsla(0,0%,100%,.2);max-width:800px;margin:0 auto;animation:fadeInUp .8s ease-out .4s both}.about-footer[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff;font-size:2rem;font-weight:600;margin-bottom:1rem}.about-footer[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8);font-size:1.1rem;line-height:1.6;margin-bottom:2rem}.about-footer[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%] .social-links[_ngcontent-%COMP%]{display:flex;justify-content:center;gap:1rem}.about-footer[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%] .social-links[_ngcontent-%COMP%] .social-link[_ngcontent-%COMP%]{width:50px;height:50px;border-radius:50%;background:hsla(0,0%,100%,.1);border:2px solid hsla(0,0%,100%,.3);display:flex;align-items:center;justify-content:center;color:#fff;text-decoration:none;transition:all .3s ease;font-size:1.2rem}.about-footer[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%] .social-links[_ngcontent-%COMP%] .social-link[_ngcontent-%COMP%]:hover{background:hsla(0,0%,100%,.2);transform:translateY(-5px);border-color:hsla(0,0%,100%,.5)}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@media (max-width:768px){.about-page[_ngcontent-%COMP%]{padding:1rem}.about-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.2rem}.about-header[_ngcontent-%COMP%] .about-subtitle[_ngcontent-%COMP%]{font-size:1rem}.contact-container[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1.5rem}.contact-card[_ngcontent-%COMP%]{padding:1.5rem}.about-footer[_ngcontent-%COMP%]{padding:2rem}.footer-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.5rem}.footer-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1rem}}@media (max-width:480px){.about-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:1.2rem}.contact-card[_ngcontent-%COMP%]{padding:1rem}.card-icon[_ngcontent-%COMP%]{width:50px;height:50px;font-size:1.2rem}.about-footer[_ngcontent-%COMP%]{padding:1.5rem}}'],data:{animation:[Zw]}}),ZY),iz=["indexTemplate"],rz=["userNameTemplate"],az=["rolesTemplate"],oz=["actionsTemplate"],sz=["editorModal"],lz=["userEditor"];function cz(e,t){1&e&&(c.jc(0,"h4",11),c.ec(1,"i",12),c.ad(2),c.yc(3,"translate"),c.ic()),2&e&&(c.Pb(2),c.cd(" ",c.zc(3,1,"users.management.NewUser"),""))}function uz(e,t){if(1&e&&(c.jc(0,"h4",11),c.ec(1,"i",13),c.ad(2),c.yc(3,"translate"),c.ic()),2&e){var n=c.xc();c.Pb(2),c.cd(" ",c.Ac(3,1,"users.management.EditUser",n.editingUserName),"")}}var dz,hz,fz,pz=function(){return{backdrop:!1}},mz=((fz=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this.appComponent=t,this.alertService=n,this.translationService=i,this.accountService=r,this.columns=[],this.rows=[],this.rowsCache=[],this.allRoles=[],t.myeventRegister.subscribe(function(){return a.showRegister()})}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"showRegister",value:function(){this.registerUser()}},{key:"ngAfterViewInit",value:function(){var e=this;this.userEditor.changesSavedCallback=function(){e.addNewUserToList(),e.editorModal.hide()},this.userEditor.changesCancelledCallback=function(){e.editedUser=null,e.sourceUser=null,e.editorModal.hide()}}},{key:"addNewUserToList",value:function(){if(this.sourceUser){Object.assign(this.sourceUser,this.editedUser);var e=this.rowsCache.indexOf(this.sourceUser,0);e>-1&&ek.moveArrayItem(this.rowsCache,e,0),(e=this.rows.indexOf(this.sourceUser,0))>-1&&ek.moveArrayItem(this.rows,e,0),this.editedUser=null,this.sourceUser=null}else{var t=new vD;Object.assign(t,this.editedUser),this.editedUser=null;var n,i=0,r=_createForOfIteratorHelper(this.rowsCache);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.index>i&&(i=a.index)}}catch(o){r.e(o)}finally{r.f()}t.index=i+1,this.rowsCache.splice(0,0,t),this.rows.splice(0,0,t),this.rows=_toConsumableArray(this.rows)}}},{key:"loadData",value:function(){this.loadingIndicator=!0}},{key:"onDataLoadSuccessful",value:function(e,t){this.alertService.stopLoadingMessage(),this.loadingIndicator=!1,e.forEach(function(e,t){e.index=t+1}),this.rowsCache=_toConsumableArray(e),this.rows=e,this.allRoles=t}},{key:"onDataLoadFailed",value:function(e){this.alertService.stopLoadingMessage(),this.loadingIndicator=!1,this.alertService.showStickyMessage("Load Error",'Unable to retrieve users from the server.\r\nErrors: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)}},{key:"onSearchChanged",value:function(e){this.rows=this.rowsCache.filter(function(t){return ek.searchArray(e,!1,t.userName,t.fullName,t.email,t.ph
1oneNumber,t.jobTitle,t.roles)})}},{key:"onEditorModalHidden",value:function(){this.editingUserName=null,this.userEditor.resetForm(!0)}},{key:"newUser",value:function(){this.editingUserName=null,this.sourceUser=null,this.editedUser=this.userEditor.newUser(this.allRoles),this.editorModal.show()}},{key:"registerUser",value:function(){this.editingUserName=null,this.sourceUser=null,this.editedUser=this.userEditor.registerUser(this.allRoles),this.editorModal.show()}},{key:"editUser",value:function(e){this.editingUserName={name:e.userName},this.sourceUser=e,this.editedUser=this.userEditor.editUser(e,this.allRoles),this.editorModal.show()}},{key:"deleteUser",value:function(e){var t=this;this.alertService.showDialog('Are you sure you want to delete "'+e.userName+'"?',LM.confirm,function(){return t.deleteUserHelper(e)})}},{key:"deleteUserHelper",value:function(e){var t=this;this.alertService.startLoadingMessage("Deleting..."),this.loadingIndicator=!0,this.accountService.deleteUser(e).subscribe(function(n){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.rowsCache=t.rowsCache.filter(function(t){return t!==e}),t.rows=t.rows.filter(function(t){return t!==e})},function(e){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.alertService.showStickyMessage("Delete Error",'An error occured whilst deleting the user.\r\nError: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)})}},{key:"canAssignRoles",get:function(){return this.accountService.userHasPermission(pD.assignRolesPermission)}},{key:"canViewRoles",get:function(){return this.accountService.userHasPermission(pD.viewRolesPermission)}},{key:"canManageUsers",get:function(){return this.accountService.userHasPermission(pD.manageUsersPermission)}}]),e}()).\u0275fac=function(e){return new(e||fz)(c.dc(qT),c.dc(PM),c.dc(nk),c.dc(HD))},fz.\u0275cmp=c.Xb({type:fz,selectors:[["app-user-register"]],viewQuery:function(e,t){var n;1&e&&(c.ed(iz,7),c.ed(rz,7),c.ed(az,7),c.ed(oz,7),c.ed(sz,7),c.ed(lz,7)),2&e&&(c.Mc(n=c.uc())&&(t.indexTemplate=n.first),c.Mc(n=c.uc())&&(t.userNameTemplate=n.first),c.Mc(n=c.uc())&&(t.rolesTemplate=n.first),c.Mc(n=c.uc())&&(t.actionsTemplate=n.first),c.Mc(n=c.uc())&&(t.editorModal=n.first),c.Mc(n=c.uc())&&(t.userEditor=n.first))},decls:14,vars:5,consts:[["bsModal","","tabindex","-1",1,"modal","fade",3,"config","onHidden"],["editorModal","bs-modal"],[1,"modal-dialog","modal
1-lg","modal-dialog-centered"],[1,"modal-content"],[1,"modal-header"],["class","modal-title float-left",4,"ngIf"],["type","button","title","Close",1,"close","float-right",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"isGeneralEditor"],["userEditor",""],[1,"modal-title","float-left"],[1,"fa","fa-user-plus"],[1,"fa","fa-user-circle-o"]],template:function(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"div",0,1),c.tc("onHidden",function(){return t.onEditorModalHidden()}),c.jc(3,"div",2),c.jc(4,"div",3),c.jc(5,"div",4),c.Yc(6,cz,4,3,"h4",5),c.Yc(7,uz,4,4,"h4",5),c.jc(8,"button",6),c.tc("click",function(){return c.Qc(n),c.Nc(2).hide()}),c.jc(9,"span",7),c.ad(10,"\xd7"),c.ic(),c.ic(),c.ic(),c.jc(11,"div",8),c.ec(12,"app-user-info",9,10),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Dc("config",c.Gc(4,pz)),c.Pb(5),c.Dc("ngIf",!t.editingUserName),c.Pb(1),c.Dc("ngIf",t.editingUserName),c.Pb(5),c.Dc("isGeneralEditor",!0))},directives:[_g,l.m,UB],pipes:[jc],styles:[".user-role[_ngcontent-%COMP%]{font-size:.8em!important;margin-right:1px}.control-box[_ngcontent-%COMP%]{margin-bottom:5px}.search-box[_ngcontent-%COMP%]{margin:0}.nav-item.toolbaritem[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:3px;min-width:100px}.user-disabled[_ngcontent-%COMP%]{color:#777;font-style:italic}.locked-out[_ngcontent-%COMP%]{background-color:#ff4500;color:#f5f5f5;width:100%;display:inline-block;padding-left:5px}.modal-content[_ngcontent-%COMP%]{border:2px solid rgba(0,0,0,.5)!important;border-radius:.5rem!important;box-shadow:0 .5rem 1rem rgba(0,0,0,.25)!important;background-color:#fff!important}"]}),fz),gz=((hz=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||hz)},hz.\u0275cmp=c.Xb({type:hz,selectors:[["app-not-found"]],decls:19,vars:13,consts:[[1,"pageHeader"],["aria-hidden","true",1,"fa","fa-exclamation-circle","fa-lg","page-caption"],[1,"d-flex","h-75"],[1,"m-auto"],[1,"icon-container"],[1,"fa","fa-exclamation-circle"],[1,"text-muted","error-description"],["routerLink","/",1,"btn","btn-primary"],[1,"fa","fa-home"]],template:function(e,t){1&e&&(c.jc(0,"header",0),c.jc(1,"h3"),c.ec(2,"i",1),c.ad(3),c.yc(4,"translate"),c.ic(),c.ic(),c.jc(5,"div",2),c.jc(6,"div",3),c.jc(7,"div",4),c.ec(8,"i",5),c.ad(9),c.yc(10,"translate"),c.ic(),c.jc(11,"div",6),c.ad(12),c.yc(13,"translate"),c.ic(),c.jc(14,"div"),c.jc(15,"a",7),c.ec(16,"i",8),c.ad(17),c.yc(18,"translate"),c.ic(),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(3),c.cd(" ",c.zc(4,5,"pageHeader.NotFound"),""),c.Pb(2),c.Dc("@fadeInOut",void 0),c.Pb(4),c.cd(" ",c.zc(10,7,"notFound.404"),""),c.Pb(3),c.bd(c.zc(13,9,"notFound.pageNotFound")),c.Pb(5),c.cd(" ",c.zc(18,11,"notFound.backToHome"),""))},directives:[mw],pipes:[jc],styles:[".icon-container[_ngcontent-%COMP%]{font-size:5rem}.error-description[_ngcontent-%COMP%]{font-size:1.5rem;padding-bottom:10px}"],data:{animation:[Zw]}}),hz),vz=((dz=function(){function e(t,n){_classCallCheck(this,e),this.authService=t,this.router=n}return _createClass(e,[{key:"canActivate",value:function(e,t){return this.checkLogin(t.url)}},{key:"canActivateChild",value:function(e,t){return this.canActivate(e,t)}},{key:"canLoad",value:function(e){return this.checkLogin("/".concat(e.path))}},{key:"checkLogin",value:function(e){return!!this.authService.isLoggedIn}}]),e}()).\u0275fac=function(e){return new(e||dz)(c.qc(bD),c.qc(fw))},dz.\u0275prov=c.Zb({token:dz,factory:dz.\u0275fac}),dz);function yz(e,t,n){return n?yz(e,t).pipe(Object(ye.a)(function(e){return Object(hr.a)(e)?n.apply(void 0,_toConsumableArray(e)):n(e)})):new ae.a(function(n){var i,r=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n.next(1===t.length?t[0]:t)};try{i=e(r)}catch(a){return void n.error(a)}if(Object(Io.a)(t))return function(){return t(r,i)}})}var bz,_z=n("mCNh"),wz=n("oB13"),kz=function(){function e(t){_classCallCheck(this,e),this.predicate=t}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new Cz(e,this.predicate))}}]),e}(),Cz=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i){var r;return _classCallCheck(this,n),(r=t.call(this,e)).predicate=i,r.ski
1pping=!0,r.index=0,r}return _createClass(n,[{key:"_next",value:function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)}},{key:"tryCallPredicate",value:function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(n){this.destination.error(n)}}}]),n}(_e.a),xz=["youtubeContainer"],Sz=((bz=function(){function e(t,n){_classCallCheck(this,e),this._ngZone=t,this._youtubeContainer=new oe.a,this._destroyed=new oe.a,this._playerChanges=new pe(void 0),this._videoId=new pe(void 0),this._height=new pe(390),this._width=new pe(640),this._startSeconds=new pe(void 0),this._endSeconds=new pe(void 0),this._suggestedQuality=new pe(void 0),this._playerVars=new pe(void 0),this.ready=this._getLazyEmitter("onReady"),this.stateChange=this._getLazyEmitter("onStateChange"),this.error=this._getLazyEmitter("onError"),this.apiChange=this._getLazyEmitter("onApiChange"),this.playbackQualityChange=this._getLazyEmitter("onPlaybackQualityChange"),this.playbackRateChange=this._getLazyEmitter("onPlaybackRateChange"),this._isBrowser=Object(l.z)(n)}return _createClass(e,[{key:"videoId",get:function(){return this._videoId.value},set:function(e){this._videoId.next(e)}},{key:"height",get:function(){return this._height.value},set:function(e){this._height.next(e||390)}},{key:"width",get:function(){return this._width.value},set:function(e){this._width.next(e||640)}},{key:"startSeconds",set:function(e){this._startSeconds.next(e)}},{key:"endSeconds",set:function(e){this._endSeconds.next(e)}},{key:"suggestedQuality",set:function(e){this._suggestedQuality.next(e)}},{key:"playerVars",get:function(){return this._playerVars.value},set:function(e){this._playerVars.next(e)}},{key:"ngOnInit",value:function(){var e=this;if(this._isBrowser){var t=Object(me.a)(!0);if(!window.YT||!window.YT.Player){var n=new oe.a;this._existingApiReadyCallback=window.onYouTubeIframeAPIReady,window.onYouTubeIframeAPIReady=function(){e._existingApiReadyCallback&&e._existingApiReadyCallback(),e._ngZone.run(function(){return n.next(!0)})},t=n.pipe(Object(be.a)(1),ht(!1))}var i,r=function(e,t,n,i,r,a,o){var s,l,c=Object(zo.b)([t,a]).pipe(es(Object(zo.b)([i,r])),Object(ye.a)(function(e){var t=_slicedToArray(e,2),n=t[0],i=t[1],r=_slicedToArray(n,2),a=r[0],o=r[1],s=_slicedToArray(i,2),l=s[0],c=s[1];return a?{videoId:a,playerVars:o,width:l,height:c}:void 0}));return Object(zo.b)([e,c,Object(me.a)(o)]).pipe((s=n,Object(_z.a)(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=null;return"function"==typeof t[t.length-1]&&(i=t.pop()),1===t.length&&Object(hr.a)(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(Object(dr.a)([e].concat(_toConsumableArray(t))),new zo.a(i))}}(s),(l=function(e){var t=_slicedToArray(e,2);return t[0],!t[1]},function(e){return e.lift(new kz(l))}),Object(ye.a)(function(e){return _slicedToArray(e,1)[0]}))),_y(Mz,void 0),Ce())}(this._youtubeContainer,this._videoId,t,this._width,this._height,this._playerVars,this._ngZone).pipe(Object(ge.a)(function(t){e._playerChanges.next(t)}),(i=function(e){Dz(e)||e.destroy()},Object(is.a)(function(e){return e?Dz(e)?Object(me.a)(e):new ae.a(function(t){var n=!1,r=!1;return e.addEventListener("onReady",function e(i){r=!0,n||(i.target.removeEventListener("onReady",e),t.next(i.target))}),function(){n=!0,r||i(e)}}).pipe(Object(be.a)(1),ht(void 0)):Object(me.a)(void 0)})),De(this._destroyed),Object(wz.a)(new oe.a));r.subscribe(function(t){e._player=t,t&&e._pendingPlayerState&&e._initializePlayer(t,e._pendingPlayerState),e._pendingPlayerState=void 0}),function(e,t,n){Object(zo.b)([e,t,n]).subscribe(function(e){var t=_slicedToArray(e,3),n=t[0],i=t[1],r=t[2];return n&&n.setSize(i,r)})}(r,this._width,this._height),function(e,t){Object(zo.b)([e,t]).subscribe(function(e){var t=_slicedToArray(e,2),n=t[0],i=t[1];return n&&i&&n.setPlaybackQuality(i)})}(r,this._suggestedQuality),function(e,t,n,i,r,a){var o=Object(zo.b)([n,i]).pipe(Object(ye.a)(function(e){var t=_slicedToArray(e,2);return{startSeconds:t[0],endSeconds:t[1]}})),s=o.pipe(Tz(e,function(e){return!!e&&!function(e){var t=e.getPlayerState();return t!==YT.PlayerState.UNSTARTED&&t!==YT.PlayerState.CUED}(e)})),l=t.pipe(Tz(e,function(e,t){return!!e&&e.videoId!==t})),c=e.pipe(Tz(Object(zo.b)([t,o]),function(e,t){var n=_slicedToArray(e,2),i=n[0],r=n[1];return!(!t||i==t.videoId&&!r.startSeconds&&!r.endSeconds)}));Object(mo.a)(c,l,s).pipe(es(Object(zo.b)([e,t,o,r])),Object(ye.a)(function(e){var t=_slicedToArray(e,2);return t[0],t[1]}),De(a)).subscribe(function(e){var t=_slicedToArray(e,4),n=t[0],i=t[1],r=t[2],a=t[3];i&&n&&(n.videoId=i,n.cueVideoById(Object.assign({videoId:i,suggestedQuality:a},r)))})}(r,this._videoId,this._startSeconds,this._endSeconds,this._suggestedQuality,this._destroyed),r.connect()}}},{key:"createEventsBoundInZone",value:function(){return{}}},{key:"ngAfterViewInit",value:function(){this._youtubeContainer.next(this.youtubeContainer.nativeElement)}},{key:"ngOnDestroy",value:function(){this._player&&(this._player.destroy(),window.onYouTubeIframeAPIReady=this._existingApiReadyCallback),this._playerChanges.complete(),this._videoId.complete(),this._height.complete(),this._width.complete(),this._startSeconds.complete(),this._endSeconds.complete(),this._suggestedQuality.complete(),this._youtubeContainer.complete(),this._playerVars.complete(),this._destroyed.next(),this._destroyed.complete()}},{key:"playVideo",value:function(){this._player?this._player.playVideo():this._getPendingState().playbackState=YT.PlayerState.PLAYING}},{key:"pauseVideo",value:function(){this._player?this._player.pauseVideo():this._getPendingState().playbackState=YT.PlayerState.PAUSED}},{key:"stopVideo",value:function(){this._player?this._player.stopVideo():this._getPendingState().playbackState=YT.PlayerState.CUED}},{key:"seekTo",value:function(e,t){this._player?this._player.seekTo(e,t):this._getPendingState().seek={seconds:e,allowSeekAhead:t}}},{key:"mute",value:function(){this._player?this._player.mute():this._getPendingState().muted=!0}
1},{key:"unMute",value:function(){this._player?this._player.unMute():this._getPendingState().muted=!1}},{key:"isMuted",value:function(){return this._player?this._player.isMuted():!!this._pendingPlayerState&&!!this._pendingPlayerState.muted}},{key:"setVolume",value:function(e){this._player?this._player.setVolume(e):this._getPendingState().volume=e}},{key:"getVolume",value:function(){return this._player?this._player.getVolume():this._pendingPlayerState&&null!=this._pendingPlayerState.volume?this._pendingPlayerState.volume:0}},{key:"setPlaybackRate",value:function(e){if(this._player)return this._player.setPlaybackRate(e);this._getPendingState().playbackRate=e}},{key:"getPlaybackRate",value:function(){return this._player?this._player.getPlaybackRate():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackRate?this._pendingPlayerState.playbackRate:0}},{key:"getAvailablePlaybackRates",value:function(){return this._player?this._player.getAvailablePlaybackRates():[]}},{key:"getVideoLoadedFraction",value:function(){return this._player?this._player.getVideoLoadedFraction():0}},{key:"getPlayerState",value:function(){if(this._isBrowser&&window.YT)return this._player?this._player.getPlayerState():this._pendingPlayerState&&null!=this._pendingPlayerState.playbackState?this._pendingPlayerState.playbackState:YT.PlayerState.UNSTARTED}},{key:"getCurrentTime",value:function(){return this._player?this._player.getCurrentTime():this._pendingPlayerState&&this._pendingPlayerState.seek?this._pendingPlayerState.seek.seconds:0}},{key:"getPlaybackQuality",value:function(){return this._player?this._player.getPlaybackQuality():"default"}},{key:"getAvailableQualityLevels",value:function(){return this._player?this._player.getAvailableQualityLevels():[]}},{key:"getDuration",value:function(){return this._player?this._player.getDuration():0}},{key:"getVideoUrl",value:function(){return this._player?this._player.getVideoUrl():""}},{key:"getVideoEmbedCode",value:function(){return this._player?this._player.getVideoEmbedCode():""}},{key:"_getPendingState",value:function(){return this._pendingPlayerState||(this._pendingPlayerState={}),this._pendingPlayerState}},{key:"_initializePlayer",value:function(e,t){var n=t.playbackState,i=t.playbackRate,r=t.volume,a=t.muted,o=t.seek;switch(n){case YT.PlayerState.PLAYING:e.playVideo();break;case YT.PlayerState.PAUSED:e.pauseVideo();break;case YT.PlayerState.CUED:e.stopVideo()}null!=i&&e.setPlaybackRate(i),null!=r&&e.setVolume(r),null!=a&&(a?e.mute():e.unMute()),null!=o&&e.seekTo(o.seconds,o.allowSeekAhead)}},{key:"_getLazyEmitter",value:function(e){var t=this;return this._playerChanges.pipe(Object(Ko.a)(function(t){return t?yz(function(n){t.addEventListener(e,n)},function(n){try{t.removeEventListener&&t.removeEventListener(e,n)}catch(QV){}}):Object(me.a)()}),function(e){return new ae.a(function(n){return e.subscribe({next:function(e){return t._ngZone.run(function(){return n.next(e)})},error:function(e){return n.error(e)},complete:function(){return n.complete()}})})},De(this._destroyed))}}]),e}()).\u0275fac=function(e){return new(e||bz)(c.dc(c.J),c.dc(c.M))},bz.\u0275cmp=c.Xb({type:bz,selectors:[["youtube-player"]],viewQuery:function(e,t){var n;1&e&&c.ed(xz,5),2&e&&c.Mc(n=c.uc())&&(t.youtubeContainer=n.first)},inputs:{videoId:"videoId",height:"height",width:"width",startSeconds:"startSeconds",endSeconds:"endSeconds",suggestedQuality:"suggestedQuality",playerVars:"playerVars",showBeforeIframeApiLoads:"showBeforeIframeApiLoads"},outputs:{ready:"ready",stateChange:"stateChange",error:"error",apiChange:"apiChange",playbackQualityChange:"playbackQualityChange",playbackRateChange:"playbackRateChange"},decls:2,vars:0,consts:[["youtubeContainer",""]],template:function(e,t){1&e&&c.ec(0,"div",null,0)},encapsulation:2,changeDetection:0}),bz);function Mz(e,t){var n=_slicedToArray(t,3),i=n[0],r=n[1],a=n[2];if(e&&r&&e.playerVars!==r.playerVars)e.destroy();else{if(!r)return void(e&&e.destroy());if(e)return e}var o=a.runOutsideAngular(function(){return new YT.Player(i,r)});return o.videoId=r.videoId,o.playerVars=r.playerVars,o}function Dz(e){return"getPlayerStatus"in e}function Tz(e,t){return Object(_z.a)(es(e),Object(ve.a)(function(e){var n=_slicedToArray(e,2),i=n[0],r=n[1];return t(r,i)}),Object(ye.a)(function(e){return _slicedToArray(e,1)[0]}))}var Ez,Az=((Ez=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Ez)}
1,Ez.\u0275mod=c.bc({type:Ez}),Ez.\u0275inj=c.ac({}),Ez);function Pz(e,t){1&e&&(c.jc(0,"div",23),c.jc(1,"div",24),c.ec(2,"i",25),c.jc(3,"p"),c.ad(4,"YouTube Video (ID: EPqPMEadJ_M)"),c.ic(),c.jc(5,"small"),c.ad(6,"Video disabled in debug mode to prevent errors"),c.ic(),c.ic(),c.ic())}var Lz=function(e){return{enablejsapi:1,origin:e,rel:0,modestbranding:1}};function Oz(e,t){if(1&e){var n=c.kc();c.jc(0,"youtube-player",26),c.tc("stateChange",function(e){return c.Qc(n),c.xc().onStateChange(e)})("error",function(e){return c.Qc(n),c.xc().onError(e)}),c.ic()}if(2&e){var i=c.xc();c.Dc("width",i.widthVideo)("height",i.heightVideo)("playerVars",c.Hc(3,Lz,i.origin))}}function Iz(e,t){1&e&&(c.jc(0,"div",27),c.jc(1,"div",24),c.ec(2,"i",25),c.jc(3,"p"),c.ad(4,"YouTube Video (ID: EPqPMEadJ_M)"),c.ic(),c.jc(5,"small"),c.ad(6,"Video disabled in debug mode"),c.ic(),c.ic(),c.ic())}function Hz(e,t){if(1&e){var n=c.kc();c.jc(0,"youtube-player",26),c.tc("stateChange",function(e){return c.Qc(n),c.xc().onStateChange(e)})("error",function(e){return c.Qc(n),c.xc().onError(e)}),c.ic()}if(2&e){var i=c.xc();c.Dc("width",i.widthVideo)("height",i.heightVideo)("playerVars",c.Hc(3,Lz,i.origin))}}var jz,Fz=((jz=function(){function e(t,n){_classCallCheck(this,e),this.document=t,this.translationService=n,this.apiLoaded=!1,this.origin=window.location.origin,this.isProduction=!0}return _createClass(e,[{key:"ngOnInit",value:function(){this.loadYouTubeApi(),this.updateVideoDimensions()}},{key:"loadYouTubeApi",value:function(){var e=this;if(!this.apiLoaded){var t=document.createElement("script");t.src="https://www.youtube.com/iframe_api",t.onerror=function(){console.error("Failed to load YouTube API")},document.body.appendChild(t),window.onYouTubeIframeAPIReady=function(){e.apiLoaded=!0}}}},{key:"onStateChange",value:function(e){try{console.log("YouTube player state changed:",e.data)}catch(t){console.warn("YouTube player error handled:",t)}}},{key:"onError",value:function(e){console.warn("YouTube player error:",e)}},{key:"goToUrlForexVisibleDemo",value:function(){this.document.location.href="https://www.mql5.com/ru/market/product/50587"}},{key:"goToUrlForexVisible",value:function(){window.open(this.translationService.getTranslation("products.urlForexVisible"),"_blank")}},{key:"onResize",value:function(e){this.updateVideoDimensions()}},{key:"updateVideoDimensions",value:function(){var e=window.innerWidth,t=e-40;e<=480?(this.widthVideo=Math.min(t,320),this.heightVideo=Math.floor(.5625*this.widthVideo)):e<=768?(this.widthVideo=Math.min(t,480),this.heightVideo=Math.floor(.5625*this.widthVideo)):(this.widthVideo=Math.min(t,800),this.heightVideo=Math.floor(.5625*this.widthVideo))}}]),e}()).\u0275fac=function(e){return new(e||jz)(c.dc(l.d),c.dc(nk))},jz.\u0275cmp=c.Xb({type:jz,selectors:[["app-instruction"]],hostBindings:function(e,t){1&e&&c.tc("resize",function(e){return t.onResize(e)},!1,c.Pc)},decls:39,vars:22,consts:[[1,"container"],[1,"page-header"],[1,"page-header-content"],[1,"page-title"],[1,"page-subtitle"],[1,"instruction-content"],[1,"video-section"],[1,"video-container"],["class","video-placeholder",4,"ngIf"],["videoId","EPqPMEadJ_M","suggestedQuality","highres",3,"width","height","playerVars","stateChange","error",4,"ngIf"],[1,"instruction-grid"],[1,"instruction-image"],["src","assets/images/instructions.png","alt","Instructions"],[1,"action-button-container"],[1,"action-button",3,"click"],[1,"fas","fa-download"],[1,"instruction-text"],[1,"text-content",3,"innerHTML"],[1,"mobile-instruction"],[1,"mobile-video"],["class","video-placeholder mobile",4,"ngIf"],[1,"mobile-image"],[1,"mobile-text"],[1,"video-placeholder"],[1,"placeholder-content"],[1,"fas","fa-play-circle"],["videoId","EPqPMEadJ_M","suggestedQuality","highres",3,"width","height","playerVars","stateChange","error"],[1,"video-placeholder","mobile"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"header",1),c.jc(2,"div",2),c.jc(3,"h1",3),c.ad(4),c.yc(5,"translate"),c.ic(),c.jc(6,"div",4),c.ad(7),c.yc(8,"translate"),c.ic(),c.ic(),c.ic(),c.jc(9,"div",5),c.jc(10,"div",6),c.jc(11,"div",7),c.Yc(12,Pz,7,0,"div",8),c.Yc(13,Oz,1,5,"youtube-player",9),c.ic(),c.ic(),c.jc(14,"div",10),c.jc(15,"div",11),c.ec(16,"img",12),c.jc(17,"div",13),c.jc(18,"button",14),c.tc("click",function(){return t.goToUrlForexVisible()}),c.ec(19,"i",15),c.ad(20),c.yc(21,"translate"),c.ic(),c.ic(),c.ic(),c.jc(22,"div",16),c.ec(23,"div",17),c.yc(24,"translate"),c.ic(),c.ic(),c.jc(25,"div",18),c.jc(26,"div",19),c.Yc(27,Iz,7,0,"div",20),c.Yc(28,Hz,1,5,"youtube-player",9),c.ic(),c.jc(29,"div",21),c.ec(30,"img",12),c.jc(31,"div",13),c.jc(32,"button",14),c.tc("click",function(){return t.goToUrlForexVisible()}),c.ec(33,"i",15),c.ad(34),c.yc(35,"translate"),c.ic(),c.ic(),c.ic(),c.jc(36,"div",22),c.ec(37,"div",17),c.yc(38,"translate"),c.ic(),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(4),c.bd(c.zc(5,10,"pageHeader.Instruction")),c.Pb(3),c.cd(" ",c.zc(8,12,"instruction.subtitle")," "),c.Pb(5),c.Dc("ngIf",!1),c.Pb(1),c.Dc("ngIf",!0),c.Pb(7),c.cd(" ",c.zc(21,14,"products.buyForexVisibleDemo")," "),c.Pb(3),c.Dc("innerHTML",c.zc(24,16,"instruction.text"),c.Rc),c.Pb(4),c.Dc("ngIf",!1),c.Pb(1),c.Dc("ngIf",!0),c.Pb(6),c.cd(" ",c.zc(35,18,"products.buyForexVisibleDemo")," "),c.Pb(3),c.Dc("innerHTML",c.zc(38,20,"instruction.text"),c.Rc))},directives:[l.m,Sz],pipes:[jc],styles:['.container[_ngcontent-%COMP%]{max-width:100%;overflow-x:hidden;box-sizing:border-box}.page-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#26a69a);border-radius:16px;padding:1.2rem 1.5rem;margin-bottom:1.5rem;box-shadow:0 8px 20px rgba(0,0,0,.1);color:#fff;position:relative;overflow:hidden}.page-header[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>\');opacity:.3}.page-header-content[_ngcontent-%COMP%]{position:relative;z-index:1}.page-title[_ngcontent-%COMP%]{font-size:1.8rem!important;font-weight:700;margin-bottom:.6rem;text-shadow:0 2px 4px rgba(0,0,0,.3);animation:fadeInDown .8s ease-out}.page-subtitle[_ngcontent-%COMP%]{font-size:.95rem;opacity:.95;margin:0;animation:fadeInUp .8s ease-out .2s both}.instruction-content[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);animation:slideInUp .5s ease-out;max-width:100%;box-sizing:border-box}.video-section[_ngcontent-%COMP%]{padding:2rem;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-bottom:1px solid rgba(0,0,0,.05)}.video-container[_ngcontent-%COMP%]{max-width:100%;margin:0 auto;border-radius:12px;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,.15);position:relative;width:100%;text-align:center}.video-container[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%]{display:inline-block;max-width:100%;height:auto;margin:0 auto}.video-container[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-width:100%!important;border:none!important;border-radius:12px!important;object-fit:contain!important;margin:0 auto;display:block}.video-container[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] embed[_ngcontent-%COMP%], .video-container[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] object[_ngcontent-%COMP%], .video-container[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-width:100%!important;border-radius:12px!important;object-fit:contain!important;margin:0 auto;display:block}.video-placeholder[_ngcontent-%COMP%]{width:100%;height:450px;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border:2px dashed #dee2e6;border-radius:12px;display:flex;align-items:center;justify-content:center;text-align:center}.video-placeholder.mobile[_ngcontent-%COMP%]{height:225px}.video-placeholder[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:3rem;color:#6c757d;margin-bottom:1rem;display:block}.video-placeholder[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1.1rem;font-weight:600;color:#495057;margin:.5rem 0}.video-placeholder[_ngcontent-%COMP%] .placeholder-content[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:.9rem;color:#6c757d;display:block;margin-top:.5rem}.instruction-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 2fr;gap:2rem;padding:2rem;align-items:start}.instruction-image[_ngcontent-%COMP%]{text-align:center}.instruction-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:400px;height:auto;object-fit:contain;border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,.1);margin-bottom:1.5rem}.action-button-container[_ngcontent-%COMP%]{margin-top:1rem}.action-button[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#2196f3);border:none;border-radius:12px;padding:1rem 2rem;color:#fff;font-weight:600;font-size:1rem;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px rgba(66,165,245,.3);display:inline-flex;align-items:center;gap:.5rem;width:100%;justify-content:center}.action-button[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#2196f3,#1976d2);transform:translateY(-2px);box-shadow:0 6px 16px rgba(66,165,245,.4)}.action-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.1rem}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%]{font-size:1rem;line-height:1.7;color:#4a5568}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h4[_ng
1content-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{color:#2d3748;margin-top:1.5rem;margin-bottom:1rem}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:1rem}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] ol[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin-bottom:1rem;padding-left:1.5rem}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-bottom:.5rem}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] b[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#2d3748;font-weight:600}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#f7fafc;padding:.2rem .4rem;border-radius:4px;font-family:Courier New,monospace;font-size:.9rem}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] blockquote[_ngcontent-%COMP%]{border-left:4px solid #42a5f5;padding-left:1rem;margin:1rem 0;font-style:italic;color:#6c757d}.mobile-instruction[_ngcontent-%COMP%]{display:none;padding:1.5rem}.mobile-instruction[_ngcontent-%COMP%] .mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%]{width:100%!important;max-width:100%!important;height:auto!important}.mobile-instruction[_ngcontent-%COMP%] .mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-width:100%!important;border:none!important;border-radius:12px!important}.mobile-instruction[_ngcontent-%COMP%] .mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] embed[_ngcontent-%COMP%], .mobile-instruction[_ngcontent-%COMP%] .mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] object[_ngcontent-%COMP%], .mobile-instruction[_ngcontent-%COMP%] .mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-width:100%!important;border-radius:12px!important}iframe[src*="youtu.be"][_ngcontent-%COMP%], iframe[src*=youtube][_ngcontent-%COMP%], youtube-player[_ngcontent-%COMP%]{max-width:100%!important;width:100%!important;height:auto!important;border-radius:12px!important;overflow:hidden!important;margin:0 auto!important;display:block!important}@media (min-width:769px){.mobile-instruction[_ngcontent-%COMP%]{display:none!important}}.mobile-video[_ngcontent-%COMP%]{margin-bottom:1.5rem;text-align:center;position:relative;width:100%;max-width:100%;margin-left:auto;margin-right:auto;overflow:hidden;border-radius:12px}.mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%]{display:inline-block;width:100%!important;max-width:100%!important;height:auto!important;margin:0 auto}.mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-width:100%!important;border:none!important;border-radius:12px!important;object-fit:contain!important;margin:0 auto;display:block}.mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] embed[_ngcontent-%COMP%], .mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] object[_ngcontent-%COMP%], .mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%] video[_ngcontent-%COMP%]{width:100%!important;height:100%!important;max-width:100%!important;border-radius:12px!important;object-fit:contain!important;margin:0 auto;display:block}.mobile-image[_ngcontent-%COMP%]{text-align:center;margin-bottom:1.5rem}.mobile-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:300px;height:auto;object-fit:contain;border-radius:12px;box-shadow:0 8px 20px rgba(0,0,0,.1)}.mobile-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%]{font-size:.9rem;line-height:1.6;color:#4a5568}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInUp{0%{opacity:0;transform:translateY(50px)}to{opacity:1;transform:translateY(0)}}@media (max-width:1200px){.instruction-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1.5rem}.instruction-image[_ngcontent-%COMP%]{order:2}.instruction-text[_ngcontent-%COMP%]{order:1}}@media (max-width:768px){.page-header[_ngcontent-%COMP%]{padding:1rem;margin-bottom:1rem}.page-title[_ngcontent-%COMP%]{font-size:1.2rem!important}.instruction-grid[_ngcontent-%COMP%], .video-section[_ngcontent-%COMP%]{display:none}.mobile-instruction[_ngcontent-%COMP%]{display:block}}@media (max-width:480px){.page-title[_ngcontent-%COMP%]{font-size:1.2rem}.page-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.mobile-instruction[_ngcontent-%COMP%], .video-section[_ngcontent-%COMP%]{padding:1rem}.mobile-video[_ngcontent-%COMP%]{max-width:100%;border-radius:8px}.mobile-video[_ngcontent-%COMP%] youtube-player[_ngcontent-%COMP%]{min-height:180px}.action-button[_ngcontent-%COMP%]{padding:.8rem 1.5rem;font-size:.9rem}}@media (prefers-color-scheme:dark){.instruction-content[_ngcontent-%COMP%]{background:#37474f;border-color:hsla(0,0%,100%,.1)}.video-section[_ngcontent-%COMP%]{background:linear-gradient(135deg,#455a64,#37474f)}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%]{color:#e2e8f0}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] b[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h4[_ng
1content-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] h6[_ngcontent-%COMP%], .instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#f7fafc}.instruction-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%] code[_ngcontent-%COMP%]{background:#455a64;color:#f7fafc}.mobile-text[_ngcontent-%COMP%] .text-content[_ngcontent-%COMP%]{color:#e2e8f0}}td[_ngcontent-%COMP%], tr[_ngcontent-%COMP%]{margin:10px;padding:10px}@media only screen and (min-width:1200px){.text[_ngcontent-%COMP%]{font-size:15px}.btn[_ngcontent-%COMP%]{font-size:15px!important}.table1[_ngcontent-%COMP%]{display:table}.table2[_ngcontent-%COMP%]{display:none}}@media only screen and (max-width:1200px){.text[_ngcontent-%COMP%]{font-size:8px}.btn[_ngcontent-%COMP%]{font-size:8px!important}.table1[_ngcontent-%COMP%]{display:none}.table2[_ngcontent-%COMP%]{display:table}}'],data:{animation:[Zw]}}),jz);function Rz(e,t){if(1&e){var n=c.kc();c.jc(0,"div",24),c.jc(1,"button",25),c.tc("click",function(){return c.Qc(n),c.xc().GoBack()}),c.ec(2,"i",26),c.ic(),c.jc(3,"div",27),c.jc(4,"h2",28),c.ad(5),c.ic(),c.jc(6,"p",29),c.ad(7,"Trading Signals"),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(5),c.bd(i.userName)}}var Nz,Bz=((Nz=function(){function e(t,n){_classCallCheck(this,e),this.route=t,this.router=n,this.headerExpanded=!1}return _createClass(e,[{key:"toggleHeader",value:function(){this.headerExpanded=!this.headerExpanded}},{key:"ngOnInit",value:function(){var e=this;this.prev=this.router.routeReuseStrategy.shouldReuseRoute,this.router.routeReuseStrategy.shouldReuseRoute=function(){return!1},this.fragmentSubscription=this.route.queryParamMap.subscribe(function(t){e.userName=t.get("userName")})}},{key:"ngOnDestroy",value:function(){this.fragmentSubscription.unsubscribe(),this.router.routeReuseStrategy.shouldReuseRoute=this.prev}},{key:"GoBack",value:function(){this.router.navigate(["/signals"])}},{key:"ngAfterViewInit",value:function(){}},{key:"ngAfterContentInit",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Nz)(c.dc(zb),c.dc(fw))},Nz.\u0275cmp=c.Xb({type:Nz,selectors:[["app-signals"]],decls:38,vars:28,consts:[[1,"container"],[1,"page-header-card"],[1,"page-header",3,"click"],[1,"page-header-content"],[1,"header-main"],[1,"page-title"],[1,"fas","fa-chevron-down"],[1,"header-details"],[1,"page-subtitle"],[1,"platform-links"],["target","_blank",1,"platform-link",3,"href"],[1,"fas","fa-chart-line"],[1,"separator"],[1,"fas","fa-chart-bar"],[1,"mobile-section"],[1,"mobile-app-link"],[1,"fab","fa-android"],["href","https://play.google.com/store/apps/details?id=com.forexvisible.app","target","_blank",1,"platform-link"],[1,"dashboard-content"],[1,"dashboard-widget"],[1,"widget-content"],["class","user-header",4,"ngIf"],[1,"trading-container"],["isSignal","true",3,"userNameSort"],[1,"user-header"],["type","button",1,"back-button",3,"click"],[1,"fas","fa-arrow-left"],[1,"user-info"],[1,"user-name"],[1,"user-subtitle"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"div",1),c.jc(2,"div",2),c.tc("click",function(){return t.toggleHeader()}),c.jc(3,"div",3),c.jc(4,"div",4),c.jc(5,"h1",5),c.ad(6),c.yc(7,"translate"),c.ic(),c.ec(8,"i",6),c.ic(),c.jc(9,"div",7),c.jc(10,"div",8),c.ad(11),c.yc(12,"translate"),c.jc(13,"div",9),c.jc(14,"a",10),c.yc(15,"translate"),c.ec(16,"i",11),c.ad(17),c.yc(18,"translate"),c.ic(),c.jc(19,"span",12),c.ad(20,"|"),c.ic(),c.jc(21,"a",10),c.yc(22,"translate"),c.ec(23,"i",13),c.ad(24),c.yc(25,"translate"),c.ic(),c.ic(),c.ic(),c.jc(26,"div",14),c.jc(27,"div",15),c.ec(28,"i",16),c.jc(29,"a",17),c.ad(30),c.yc(31,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(32,"div",18),c.jc(33,"div",19),c.jc(34,"div",20),c.Yc(35,Rz,8,1,"div",21),c.jc(36,"div",22),c.ec(37,"app-tradingview",23),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()),2&e&&(c.Pb(6),c.bd(c.zc(7,14,"mainMenu.Signals")),c.Pb(2),c.Vb("rotated",t.headerExpanded),c.Pb(1),c.Vb("expanded",t.headerExpanded),c.Pb(2),c.cd(" ",c.zc(12,16,"titles.MainHeader")," "),c.Pb(3),c.Ec("href",c.zc(1
15,18,"titles.MainUrlMT5"),c.Tc),c.Pb(3),c.cd(" ",c.zc(18,20,"titles.MainHere")," MT5 "),c.Pb(4),c.Ec("href",c.zc(22,22,"titles.MainUrlMT4"),c.Tc),c.Pb(3),c.cd(" ",c.zc(25,24,"titles.MainHere")," MT4 "),c.Pb(6),c.cd(" ",c.zc(31,26,"titles.MainAndroid")," "),c.Pb(2),c.Dc("@fadeInOut",void 0),c.Pb(3),c.Dc("ngIf",t.userName),c.Pb(2),c.Ec("userNameSort",t.userName))},directives:[l.m,eR],pipes:[jc],styles:['@charset "UTF-8";.page-header-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);transition:transform .3s ease,box-shadow .3s ease;margin-bottom:1.5rem}.page-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#26a69a);padding:1.2rem 1.5rem;cursor:pointer;transition:background .3s ease;position:relative;overflow:hidden}.page-header[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>\');opacity:.3}.page-header[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#3d8bfd,#249a8f)}.page-header-content[_ngcontent-%COMP%]{position:relative;z-index:1}.header-main[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:.6rem}.header-main[_ngcontent-%COMP%] .page-title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;color:#fff;margin:0;text-shadow:0 2px 4px rgba(0,0,0,.3)}.header-main[_ngcontent-%COMP%] i.fa-chevron-down[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.8);font-size:1.2rem;transition:transform .3s ease}.header-main[_ngcontent-%COMP%] i.fa-chevron-down.rotated[_ngcontent-%COMP%]{transform:rotate(180deg)}.header-details[_ngcontent-%COMP%]{max-height:0;overflow:hidden;transition:max-height .3s ease-out}.header-details.expanded[_ngcontent-%COMP%]{max-height:200px;transition:max-height .5s ease-in}.page-subtitle[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.95);font-size:.95rem;margin:0;opacity:0;transition:opacity .3s ease}.header-details.expanded[_ngcontent-%COMP%] .page-subtitle[_ngcontent-%COMP%]{opacity:1}.platform-links[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;width:100%}.platform-link[_ngcontent-%COMP%]{color:gold;text-decoration:underline;font-weight:600;transition:all .3s ease;padding:.2rem .4rem;border-radius:4px;background:rgba(255,215,0,.1)}.platform-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.platform-link[_ngcontent-%COMP%]:hover{color:orange;text-decoration:none;transform:scale(1.05);background:rgba(255,215,0,.2)}
1.separator[_ngcontent-%COMP%]{color:hsla(0,0%,100%,.6);font-weight:300}.mobile-section[_ngcontent-%COMP%]{margin-top:1.5rem;animation:fadeInUp .8s ease-out .4s both}.mobile-app-link[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;font-size:1rem;opacity:.95;color:hsla(0,0%,100%,.95)}.mobile-app-link[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem;color:#4caf50}.mobile-app-link[_ngcontent-%COMP%] .platform-link[_ngcontent-%COMP%]{color:gold;text-decoration:underline;font-weight:600;margin-left:.3rem;transition:all .3s ease}.mobile-app-link[_ngcontent-%COMP%] .platform-link[_ngcontent-%COMP%]:hover{color:orange;text-decoration:none;transform:scale(1.05)}.dashboard-content[_ngcontent-%COMP%]{min-height:400px}.dashboard-widget[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);animation:slideInUp .5s ease-out}.widget-content[_ngcontent-%COMP%]{padding:0}.user-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8f9fa,#dee2e6);padding:1.5rem;border-bottom:1px solid rgba(0,0,0,.05);gap:1rem}.back-button[_ngcontent-%COMP%], .user-header[_ngcontent-%COMP%]{display:flex;align-items:center}.back-button[_ngcontent-%COMP%]{background:#42a5f5;border:none;border-radius:50%;width:48px;height:48px;justify-content:center;color:#fff;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px rgba(66,165,245,.3)}.back-button[_ngcontent-%COMP%]:hover{background:#2196f3;transform:translateX(-2px);box-shadow:0 6px 16px rgba(66,165,245,.4)}.back-button[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem}.user-info[_ngcontent-%COMP%]{flex:1}.user-name[_ngcontent-%COMP%]{margin:0;color:#2d3748;font-size:1.5rem;font-weight:700;line-height:1.2}.user-subtitle[_ngcontent-%COMP%]{margin:.25rem 0 0;color:#6c757d;font-size:.9rem;font-weight:500}.trading-container[_ngcontent-%COMP%]{padding:1.5rem;background:#fff}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInUp{0%{opacity:0;transform:translateY(50px)}to{opacity:1;transform:translateY(0)}}@media (max-width:768px){.page-header[_ngcontent-%COMP%]{padding:1rem;margin-bottom:1rem}.dashboard-widget[_ngcontent-%COMP%]{background:transparent;border-radius:0;box-shadow:none;border:none;padding:0}.widget-content[_ngcontent-%COMP%]{padding:.5rem 0}.row[_ngcontent-%COMP%]{margin:0}.col-12[_ngcontent-%COMP%]{padding:0}.trading-container[_ngcontent-%COMP%]{padding:0!important}.user-header[_ngcontent-%COMP%]{padding:1rem!important}.page-title[_ngcontent-%COMP%]{font-size:1.2rem!important}.platform-links[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.8rem}.platform-link[_ngcontent-%COMP%]{width:100%;justify-content:center}
1.separator[_ngcontent-%COMP%]{display:none}.user-header[_ngcontent-%COMP%]{padding:1rem}.back-button[_ngcontent-%COMP%]{width:40px;height:40px}.user-name[_ngcontent-%COMP%]{font-size:1.3rem}.trading-container[_ngcontent-%COMP%]{padding:1rem}}@media (max-width:480px){.mobile-app-link[_ngcontent-%COMP%], .page-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.user-header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.8rem}.back-button[_ngcontent-%COMP%]{align-self:flex-start}}@media (prefers-color-scheme:dark){.dashboard-widget[_ngcontent-%COMP%]{background:#37474f;border-color:hsla(0,0%,100%,.1)}.user-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#455a64,#37474f)}.user-name[_ngcontent-%COMP%]{color:#f7fafc}.user-subtitle[_ngcontent-%COMP%]{color:#b0bec5}.trading-container[_ngcontent-%COMP%]{background:#37474f}} ngb-accordion .card-header{background:linear-gradient(135deg,#f8f9fa,#e9ecef)!important;border:1px solid #dee2e6!important;border-radius:8px!important;padding:0!important;margin-bottom:8px!important;cursor:pointer!important;transition:background .3s ease,box-shadow .3s ease!important;box-shadow:0 2px 4px rgba(0,0,0,.05)!important;position:relative!important} ngb-accordion .card-header:hover{background:linear-gradient(135deg,#e9ecef,#dee2e6)!important;box-shadow:0 4px 8px rgba(0,0,0,.1)!important} ngb-accordion .card-header:active{background:linear-gradient(135deg,#dee2e6,#ced4da)!important;box-shadow:0 2px 4px rgba(0,0,0,.05)!important} ngb-accordion .card-header:after{content:"\uf107"!important;
1font-family:Font Awesome\\ 5 Free!important;font-weight:900!important;position:absolute!important;right:16px!important;top:50%!important;transform:translateY(-50%)!important;font-size:16px!important;color:#6c757d!important;transition:transform .3s ease,color .3s ease!important;pointer-events:none!important;z-index:1!important} ngb-accordion .card-header[aria-expanded=true]:after{transform:translateY(-50%) rotate(180deg)!important} ngb-accordion .card-header:hover:after{color:#495057!important} ngb-accordion .btn-link{color:#495057!important;font-weight:600!important;text-decoration:none!important;width:100%!important;text-align:left!important;padding:12px 16px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative!important;z-index:2!important;pointer-events:auto!important;border-radius:8px!important} ngb-accordion .btn-link:hover{color:#212529!important;text-decoration:none!important} ngb-accordion .btn-link:focus{box-shadow:none!important;text-decoration:none!important;outline:none!important} ngb-accordion .btn-link:after{content:""!important;width:30px!important;height:16px!important;display:block!important;flex-shrink:0!important} ngb-accordion .btn-link span{flex:1!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important} ngb-accordion .card{border:none!important;background:transparent!important} ngb-accordion .card-body{background:#fff!important;border:1px solid #dee2e6!important;border-top:none!important;border-radius:0 0 8px 8px!important;margin-top:-8px!important;margin-bottom:16px!important;padding:16px!important;box-shadow:0 2px 4px rgba(0,0,0,.05)!important}@media (prefers-color-scheme:dark){ ngb-accordion .card-header{background:linear-gradient(135deg,#455a64,#37474f)!important;border-color:hsla(0,0%,100%,.1)!important} ngb-accordion .card-header:hover{background:linear-gradient(135deg,#37474f,#263238)!important} ngb-accordion .btn-link{color:#f7fafc!important} ngb-accordion .btn-link:hover{color:#e2e8f0!important} ngb-accordion .card-body{background:#37474f!important;border-color:hsla(0,0%,100%,.1)!important}}'],data:{animation:[Zw]}}),Nz),Yz=["empTbSort"],zz=["container"];function Vz(e,t){if(1&e){var n=c.kc();c.jc(0,"div",45),c.jc(1,"button",46),c.tc("click",function(){return c.Qc(n),c.xc().GoBack()}),c.ec(2,"i",47),c.ad(3),c.yc(4,"translate"),c.ic(),c.ic()}2&e&&(c.Pb(3),c.cd(" ",c.zc(4,1,"parsing.backToSignals")," "))}function Uz(e,t){if(1&e){var n=c.kc();c.jc(0,"pagination-controls",48),c.tc("pageChange",function(e){return c.Qc(n),c.xc().ChangePage(e)}),c.ic()}}var $z=function(){return["/signalsmql5"]},Wz=function(e){return{userName:e}},qz=function(e,t){return{positive:e,negative:t}};function Gz(e,t){if(1&e){var n=c.kc();c.jc(0,"div",49),c.jc(1,"div",50),c.jc(2,"div",51),c.jc(3,"a",52),c.ad(4),c.ic(),c.jc(5,"div",53),c.jc(6,"span",54),c.ad(7),c.ic(),c.jc(8,"span",55),c.ad(9),c.ic(),c.jc(10,"span",56),c.ad(11),c.ic(),c.ic(),c.ic(),c.jc(12,"div",57),c.jc(13,"a",58),c.ad(14),c.ic(),c.ic(),c.ic(),c.jc(15,"div",59),c.jc(16,"a",60),c.ad(17),c.yc(18,"translate"),c.ic(),c.ic(),c.jc(19,"div",61),c.jc(20,"div",62),c.jc(21,"div",63),c.jc(22,"div",64),c.tc("onCreate",function(){var e=c.Qc(n).$implicit;return c.xc().UpdateGraph(e)}),c.ic(),c.ic(),c.jc(23,"div",65),c.jc(24,"div",66),c.tc("onCreate",function(){var e=c.Qc(n).$implicit;return c.xc().UpdateDetail(e)}),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(25,"div",67),c.jc(26,"div",68),c.jc(27,"div",69),c.jc(28,"span",70),c.ad(29),c.yc(30,"translate"),c.ic(),c.jc(31,"span",71),c.ad(32),c.ic(),c.ic(),c.jc(33,"div",69),c.jc(34,"span",70),c.ad(35),c.yc(36,"translate"),c.ic(),c.jc(37,"span",71),c.ad(38),c.ic(),c.ic(),c.jc(39,"div",69),c.jc(40,"span",70),c.ad(41),c.yc(42,"translate"),c.ic(),c.jc(43,"span",72),c.ad(44),c.ic(),c.ic(),c.jc(45,"div",69),c.jc(46,"span",70),c.ad(47),c.yc(48,"translate"),c.ic(),c.jc(49,"span",71),c.ad(50),c.ic(),c.ic(),c.jc(51,"div",69),c.jc(52,"span",70),c.ad(53),c.yc(54,"translate"),c.ic(),c.jc(55,"span",71),c.ad(56),c.ic(),c.ic(),c.jc(57,"div",69),c.jc(58,"span",70),c.ad(59),c.yc(60,"translate"),c.ic(),c.jc(61,"span",71),c.ad(62),c.ic(),c.ic(),c.jc(63,"div",69),c.jc(64,"span",70),c.ad(65),c.yc(66,"translate"),c.ic(),c.jc(67,"span",71),c.ad(68),c.ic(),c.ic(),c.jc(69,"div",69),c.jc(70,"span",70),c.ad(71),c.yc(72,"translate"),c.ic(),c.jc(73,"span",71),c.ad(74),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()}
1if(2&e){var i=t.$implicit;c.Pb(3),c.Ec("href",i.urlSignal,c.Tc),c.Pb(1),c.cd(" ",i.name," "),c.Pb(3),c.cd("",i.weeks," Weeks"),c.Pb(2),c.bd(i.isDemo?"Demo":"Real"),c.Pb(2),c.bd(i.terminal),c.Pb(2),c.Dc("routerLink",c.Gc(47,$z))("queryParams",c.Hc(48,Wz,i.userName)),c.Pb(1),c.cd(" ",i.userName," "),c.Pb(2),c.Ec("href",i.productSignal,c.Tc),c.Pb(1),c.cd(" ",c.zc(18,29,"parsing.source")," "),c.Pb(5),c.Fc("id","chart",i.id,""),c.Pb(2),c.Fc("id","detail",i.id,""),c.Pb(5),c.bd(c.zc(30,31,"parsing.stats.balance")),c.Pb(3),c.bd(null==i.balance?null:i.balance.toFixed(2)),c.Pb(3),c.bd(c.zc(36,33,"parsing.stats.equity")),c.Pb(3),c.bd(null==i.equity?null:i.equity.toFixed(2)),c.Pb(3),c.bd(c.zc(42,35,"parsing.stats.profit")),c.Pb(2),c.Dc("ngClass",c.Ic(50,qz,i.profit>0,i.profit<0)),c.Pb(1),c.cd(" ",null==i.profit?null:i.profit.toFixed(2)," "),c.Pb(3),c.bd(c.zc(48,37,"parsing.stats.latestTrade")),c.Pb(3),c.cd("",i.latestTrade," days"),c.Pb(3),c.bd(c.zc(54,39,"parsing.stats.profitFactor")),c.Pb(3),c.bd(null==i.profitFactor?null:i.profitFactor.toFixed(2)),c.Pb(3),c.bd(c.zc(60,41,"parsing.stats.tradingActivity")),c.Pb(3),c.cd("",i.tradingActivity,"%"),c.Pb(3),c.bd(c.zc(66,43,"parsing.stats.tradesPerWeek")),c.Pb(3),c.bd(i.tradesPerWeek),c.Pb(3),c.bd(c.zc(72,45,"parsing.stats.subscribers")),c.Pb(3),c.bd(i.subscribers)}}function Xz(e,t){if(1&e){var n=c.kc();c.jc(0,"pagination-controls",48),c.tc("pageChange",function(e){return c.Qc(n),c.xc().ChangePage(e)}),c.ic()}}var Qz,Kz,Zz,Jz,eV=function(e,t,n){return{itemsPerPage:e,currentPage:t,totalItems:n}},tV=((Jz=function(){function e(t,n,i,r,a,o,s,l,c){_classCallCheck(this,e),this.tradeeaService=t,this.localStorage=n,this.route=i,this.router=r,this.deviceService=a,this.changeDetection=o,this.authService=s,this.renderer2=l,this.alertService=c,this.currentPage=1,this.itemsPerPage=10,this.isSortBalance=null,this.isSortEquity=null,this.isSortBalanceDays=null,this.isSortTotalDays=null,this.isSortProfit=null,this.isSortProfitFactor=null,this.isSortLatestTrade=null,this.isSortMaxDropDown=null,this.isSortGain=null,this.isSortSubscribers=null,this.isSortMode=!1,this.isPageShow=!1,this.activeIds=[],this.mt5Checked=!0,this.mt4Checked=!0,this.demoChecked=!0,this.realChecked=!0,this.productChecked=!0,this.signalChecked=!0,this.sellerChecked=!0,this.filtersExpanded=!1,this.dtOptions={},this.name="gain",this.direction="desc",this.empTbSort=new So,this.parsingData=new Array}return _createClass(e,[{key:"ChangePage",value:function(e){this.currentPage=e,null==this.userName&&this.localStorage.saveSyncedSessionData(this.currentPage,"currentPage"),this.UpdateParsing()}},{key:"ngOnInit",value:function(){var e=this;this.prev=this.router.routeReuseStrategy.shouldReuseRoute,this.router.routeReuseStrategy.shouldReuseRoute=function(){return!1},this.fragmentSubscription=this.route.queryParamMap.subscribe(function(t){e.userName=t.get("userName"),null!=e.localStorage.getDataObject("Acc")&&(e.activeIds=e.localStorage.getDataObject("Acc")),null!=e.localStorage.getDataObject("mt4Checked")&&(e.mt4Checked=e.localStorage.getDataObject("mt4Checked")),null!=e.localStorage.getDataObject("mt5Checked")&&(e.mt5Checked=e.localStorage.getDataObject("mt5Checked")),null!=e.localStorage.getDataObject("demoChecked")&&(e.demoChecked=e.localStorage.getDataObject("demoChecked")),null!=e.localStorage.getDataObject("realChecked")&&(e.realChecked=e.localStorage.getDataObject("realChecked")),null!=e.localStorage.getDataObject("productChecked")&&(e.productChecked=e.localStorage.getDataObject("productChecked")),null!=e.localStorage.getDataObject("signalChecked")&&(e.signalChecked=e.localStorage.getDataObject("signalChecked")),null!=e.localStorage.getDataObject("sellerChecked")&&(e.sellerChecked=e.localStorage.getDataObject("sellerChecked")),null!=e.localStorage.getDataObject("sortActive")&&(e.name=e.localStorage.getDataObject("sortActive"),e.direction=e.localStorage.getDataObject("sortDirection"),e.sortData({active:e.name,direction:e.direction})),null!=e.localStorage.getDataObject("currentPage")&&null==e.userName&&(e.currentPage=e.localStorage.getDataObject("currentPage"),e.UpdateParsing())}),this.UpdateParsing()}},{key:"ngOnDestroy",value:function(){this.fragmentSubscription.unsubscribe(),this.router.routeReuseStrategy.shouldReuseRoute=this.prev}},{key:"GoBack",value:function(){this.router.navigate(["/signalsmql5"])}},{key:"ChangeAcc",value:function(e){this.activeIds=e.nextState?["panelMy"]:[],this.localStorage.saveSyncedSessionData(this.activeIds,"Acc")}},{key:"ngAfterContentInit",value:function(){}},{key:"toggleFilters",value:function(){this.filtersExpanded=!this.filtersExpanded}},{key:"UpdateParsing",value:function(){var e=this;this.alertService.startLoadingMessage("Pleas wait..."),this.localStorage.saveSyncedSessionData(this.mt4Checked,"mt4Checked"),this.localStorage.saveSyncedSessionData(this.mt5Checked,"mt5Checked"),this.localStorage.saveSyncedSessionData(this.demoChecked,"demoChecked"),this.localStorage.saveSyncedSessionData(this.realChecked,"realChecked"),this.localStorage.saveSyncedSessionData(this.productChecked,"productChecked"),this.localStorage.saveSyncedSessionData(this.signalChecked,"signalChecked"),this.localStorage.saveSyncedSessionData(this.sellerChecked,"sellerChecked"),this.tradeeaService.getParsingData(this.currentPage,this.itemsPerPage,this.isSortBalance,this.isSortEquity,this.isSortProfit,this.isSortLatestTrade,this.isSortMaxDropDown,this.isSortGain,this.isSortBalanceDays,this.isSortTotalDays,this.isSortProfitFactor,this.isSortSubscribers,this.userName,this.mt5Checked,this.mt4Checked,this.demoChecked,this.realChecked,this.productChecked,this.signalChecked,this.sellerChecked).subscribe(function(t){e.parsingData=new Array,e.changeDetection.detectChanges(),e.parsingData=t.data,e.totalItems=t.count,e.parsingData.length>0&&(e.isPageShow=!0),e.changeDetection.detectChanges(),e.alertService.stopLoadingMessage()},function(t){e.alertService.stopLoadingMessage(),e.onCurrentUserDataLoadFailed(t)})}},{key:"onCurrentUserDataLoadFailed",value:function(e){this.alertService.stopLoadingMessage(),this.alertService.showStickyMessage("Load Error",'Unable to retrieve user data from the server.\r\nErrors: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)}},{key:"UpdateGraph",value:function(e){null!=e.graphicHtml&&document.getElementById("chart"+e.id).insertAdjacentHTML("beforeend",e.graphicHtml)}},{key:"UpdateDetail",value:function(e){null!=e.detailsHtml&&document.getElementById("detail"+e.id).insertAdjacentHTML("beforeend",e.detailsHtml)}},{key:"UpdateGraph2",value:function(e){if(null!=e.graphicHtml){var t=document.getElementById("chart2"+e.id);e.graphicHtml=e.graphicHtml.replace("width:600px","width:300px"),e.graphicHtml=e.graphicHtml.replace("font-size:20px","font-size:15px"),e.graphicHtml=e.graphicHtml.replace("img",'img style="width:300px" '),t.insertAdjacentHTML("beforeend",e.graphicHtml)}}},{key:"UpdateDetail2",value:function(e){if(null!=e.detailsHtml){var t=document.getElementById("detail2"+e.id);e.detailsHtml=e.detailsHtml.replace('width="400"','width="300" viewB
1ox="50 0 300 250"'),e.detailsHtml=e.detailsHtml.replace("Loss Trades:","Loss:"),e.detailsHtml=e.detailsHtml.replace('height="266"','height="200"'),e.detailsHtml=e.detailsHtml.replace('height="270"','height="200"'),t.insertAdjacentHTML("beforeend",e.detailsHtml)}}},{key:"sortData",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this.isSortBalance=null,this.isSortEquity=null,this.isSortProfit=null,this.isSortLatestTrade=null,this.isSortMaxDropDown=null,this.isSortGain=null,this.isSortBalanceDays=null,this.isSortTotalDays=null,this.isSortProfitFactor=null,this.isSortSubscribers=null,this.isSortLatestTrade=null,this.localStorage.saveSyncedSessionData(e.active,"sortActive"),this.localStorage.saveSyncedSessionData(e.direction,"sortDirection"),""!=e.direction){this.isSortMode=!0;var t="asc"===e.direction;switch(e.active){case"balance":this.isSortBalance=t;break;case"equity":this.isSortEquity=t;break;case"profit_days":this.isSortBalanceDays=t;break;case"total_days":this.isSortTotalDays=t;break;case"profit":this.isSortProfit=t;break;case"profitFactor":this.isSortProfitFactor=t;break;case"latestTrade":this.isSortLatestTrade=t;break;case"subscribers":this.isSortSubscribers=t;break;case"maxDropDown":this.isSortMaxDropDown=t;break;case"gain":this.isSortGain=t}}else this.isSortMode=!1;this.UpdateParsing()}},{key:"onFocus",value:function(e){}},{key:"onBlur",value:function(e){}},{key:"ngAfterViewInit",value:function(){}},{key:"onOrientationChange",value:function(e){null!=this.parsingData&&this.changeDetection.detectChanges()}},{key:"onResize",value:function(e){if((Math.abs(this.innerWidthOld-e.target.innerWidth)>30||null==this.innerWidthOld)&&null!=this.parsingData){var t=!1;try{t=this.deviceService.isDesktop()}catch(n){console.warn("DeviceDetectorService error:",n),t=!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}t&&this.changeDetection.detectChanges(),this.innerWidthOld=e.target.innerWidth}}}]),e}()).\u0275fac=function(e){return new(e||Jz)(c.dc(aT),c.dc(tk),c.dc(zb),c.dc(fw),c.dc(rD),c.dc(c.j),c.dc(bD),c.dc(c.Q),c.dc(PM))},Jz.\u0275cmp=c.Xb({type:Jz,selectors:[["app-parsing"]],viewQuery:function(e,t){var n;1&e&&(c.ed(Yz,5),c.ed(zz,5)),2&e&&(c.Mc(n=c.uc())&&(t.empTbSort=n.first),c.Mc(n=c.uc())&&(t.container=n.first))},hostBindings:function(e,t){1&e&&c.tc("focus",function(e){return t.onFocus(e)},!1,c.Pc)("blur",function(e){return t.onBlur(e)},!1,c.Pc)("orientationchange",function(e){return t.onOrientationChange(e)},!1,c.Pc)("resize",function(e){return t.onResize(e)},!1,c.Pc)},decls:84,vars:51,consts:[[1,"container"],[1,"page-header"],[1,"page-header-content"],[1,"page-title"],[1,"page-subtitle"],[1,"signals-content"],["class","back-section",4,"ngIf"],[1,"filters-section"],[1,"filters-card"],[1,"filters-header",3,"click"],[1,"fas","fa-filter"],[1,"fas","fa-chevron-down"],[1,"filters-body"],["matSort","",1,"sort-section",3,"matSortActive","matSortDirection","matSortChange"],[1,"sort-grid"],["mat-sort-header","balance",1,"sort-item"],["mat-sort-header","equity",1,"sort-item"],["mat-sort-header","profit",1,"sort-item"],["mat-sort-header","profit_days",1,"sort-item"],["mat-sort-header","total_days",1,"sort-item"],["mat-sort-header","subscribers",1,"sort-item"],["mat-sort-header","profitFactor",1,"sort-item"],["mat-sort-header","maxDropDown",1,"sort-item"],["mat-sort-header","gain",1,"sort-item"],[1,"checkbox-filters"],[1,"fas","fa-cogs"],[1,"checkbox-group"],[1,"checkbox-item"],["type","checkbox","id","mt5",3,"ngModel","ngModelChange","change"],["for","mt5"],["type","checkbox","id","mt4",3,"ngModel","ngModelChange","change"],["for","mt4"],["type","checkbox","id","demo",3,"ngModel","ngModelChange","change"],["for","demo"],["type","checkbox","id","real",3,"ngModel","ngModelChange","change"],["for","real"],["type","checkbox","id","product",3,"ngModel","ngModelChange","change"],["for","product"],["type","checkbox","id","signal",3,"ngModel","ngModelChange","change"],["for","signal"],["type","checkbox","id","seller",3,"ngModel","ngModelChange","change"],["for","seller"],["responsive","true",3,"pageChange",4,"ngIf"],[1,"signals-grid"],["class","signal-card",4,"ngFor","ngForOf"],[1,"back-section"],[1,"back-button",3,"click"],[1,"fas","fa-angle-left"],["responsive","true",3,"pageChange"],[1,"signal-card"],[1,"signal-header"],[1,"signal-title"],["target","_blank",1,"signal-link",3,"href"],[1,"signal-meta"],[1,"weeks"],[1,"type"],[1,"terminal"],[1,"signal-user"],[1,"user-link",3,"routerLink","queryParams"],[1,"signal-product"],["target","_blank",1,"s
1ource-button",3,"href"],[1,"signal-charts"],[1,"chart-row"],[1,"chart-container"],[2,"margin-right","90px",3,"id","onCreate"],[1,"detail-container"],[3,"id","onCreate"],[1,"signal-stats"],[1,"stats-grid"],[1,"stat-item"],[1,"stat-label"],[1,"stat-value"],[1,"stat-value",3,"ngClass"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"header",1),c.jc(2,"div",2),c.jc(3,"h1",3),c.ad(4),c.yc(5,"translate"),c.ic(),c.jc(6,"div",4),c.ad(7),c.yc(8,"translate"),c.ic(),c.ic(),c.ic(),c.jc(9,"div",5),c.Yc(10,Vz,5,3,"div",6),c.jc(11,"div",7),c.jc(12,"div",8),c.jc(13,"div",9),c.tc("click",function(){return t.toggleFilters()}),c.jc(14,"h3"),c.ec(15,"i",10),c.ad(16),c.yc(17,"translate"),c.ic(),c.ec(18,"i",11),c.ic(),c.jc(19,"div",12),c.jc(20,"div",13),c.tc("matSortChange",function(e){return t.sortData(e)}),c.jc(21,"div",14),c.jc(22,"div",15),c.ad(23,"Balance"),c.ic(),c.jc(24,"div",16),c.ad(25,"Equity"),c.ic(),c.jc(26,"div",17),c.ad(27,"Profit"),c.ic(),c.jc(28,"div",18),c.ad(29,"Gain/Days"),c.ic(),c.jc(30,"div",19),c.ad(31,"TotalDays"),c.ic(),c.jc(32,"div",20),c.ad(33,"Subscribers"),c.ic(),c.jc(34,"div",21),c.ad(35,"ProfitFactor"),c.ic(),c.jc(36,"div",22),c.ad(37,"MaxDropDown"),c.ic(),c.jc(38,"div",23),c.ad(39,"Gain"),c.ic(),c.ic(),c.ic(),c.jc(40,"div",24),c.jc(41,"h4"),c.ec(42,"i",25),c.ad(43),c.yc(44,"translate"),c.ic(),c.jc(45,"div",26),c.jc(46,"div",27),c.jc(47,"input",28),c.tc("ngModelChange",function(e){return t.mt5Checked=e})("change",function(){return t.UpdateParsing()}),c.ic(),c.jc(48,"label",29),c.ad(49,"MT5"),c.ic(),c.ic(),c.jc(50,"div",27),c.jc(51,"input",30),c.tc("ngModelChange",function(e){return t.mt4Checked=e})("change",function(){return t.UpdateParsing()}),c.ic(),c.jc(52,"label",31),c.ad(53,"MT4"),c.ic(),c.ic(),c.jc(54,"div",27),c.jc(55,"input",32),c.tc("ngModelChange",function(e){return t.demoChecked=e})("change",function(){return t.UpdateParsing()}
1),c.ic(),c.jc(56,"label",33),c.ad(57),c.yc(58,"translate"),c.ic(),c.ic(),c.jc(59,"div",27),c.jc(60,"input",34),c.tc("ngModelChange",function(e){return t.realChecked=e})("change",function(){return t.UpdateParsing()}),c.ic(),c.jc(61,"label",35),c.ad(62),c.yc(63,"translate"),c.ic(),c.ic(),c.jc(64,"div",27),c.jc(65,"input",36),c.tc("ngModelChange",function(e){return t.productChecked=e})("change",function(){return t.UpdateParsing()}),c.ic(),c.jc(66,"label",37),c.ad(67),c.yc(68,"translate"),c.ic(),c.ic(),c.jc(69,"div",27),c.jc(70,"input",38),c.tc("ngModelChange",function(e){return t.signalChecked=e})("change",function(){return t.UpdateParsing()}),c.ic(),c.jc(71,"label",39),c.ad(72),c.yc(73,"translate"),c.ic(),c.ic(),c.jc(74,"div",27),c.jc(75,"input",40),c.tc("ngModelChange",function(e){return t.sellerChecked=e})("change",function(){return t.UpdateParsing()}),c.ic(),c.jc(76,"label",41),c.ad(77),c.yc(78,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.Yc(79,Uz,1,0,"pagination-controls",42),c.jc(80,"div",43),c.Yc(81,Gz,75,53,"div",44),c.yc(82,"paginate"),c.ic(),c.Yc(83,Xz,1,0,"pagination-controls",42),c.ic(),c.ic()),2&e&&(c.Pb(4),c.bd(t.userName?t.userName:c.zc(5,26,"parsing.title")),c.Pb(3),c.cd(" ",c.zc(8,28,"parsing.subtitle")," "),c.Pb(3),c.Dc("ngIf",t.userName),c.Pb(6),c.cd(" ",c.zc(17,30,"titles.Sort"),""),c.Pb(2),c.Vb("rotated",t.filtersExpanded),c.Pb(1),c.Vb("expanded",t.filtersExpanded),c.Pb(1),c.Ec("matSortActive",t.name),c.Ec("matSortDirection",t.direction),c.Pb(23),c.cd(" ",c.zc(44,32,"parsing.filters.platformAndSignal"),""),c.Pb(4),c.Dc("ngModel",t.mt5Checked),c.Pb(4),c.Dc("ngModel",t.mt4Checked),c.Pb(4),c.Dc("ngModel",t.demoChecked),c.Pb(2),c.bd(c.zc(58,34,"parsing.filters.demo")),c.Pb(3),c.Dc("ngModel",t.realChecked),c.Pb(2),c.bd(c.zc(63,36,"parsing.filters.real")),c.Pb(3),c.Dc("ngModel",t.productChecked),c.Pb(2),c.bd(c.zc(68,38,"parsing.filters.product")),c.Pb(3),c.Dc("ngModel",t.signalChecked),c.Pb(2),c.bd(c.zc(73,40,"parsing.filters.signal")),c.Pb(3),c.Dc("ngModel",t.sellerChecked),c.Pb(2),c.bd(c.zc(78,42,"parsing.filters.seller")),c.Pb(2),c.Dc("ngIf",t.isPageShow),c.Pb(2),c.Dc("ngForOf",c.Ac(82,44,t.parsingData,c.Jc(47,eV,t.itemsPerPage,t.currentPage,t.totalItems))),c.Pb(2),c.Dc("ngIf",t.isPageShow))},directives:[l.m,So,Po,Mr,Zr,Fa,l.l,fy,mw,aE,l.k],pipes:[jc,cy],styles:[".page-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#26a69a);border-radius:16px;padding:1.2rem 1.5rem;margin-bottom:1.5rem;box-shadow:0 8px 20px rgba(0,0,0,.1);color:#fff;position:relative;overflow:hidden}.page-title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;margin-bottom:.6rem;text-shadow:0 2px 4px rgba(0,0,0,.3)}.page-subtitle[_ngcontent-%COMP%]{font-size:.95rem;opacity:.95;margin:0}.signals-content[_ngcontent-%COMP%]{animation:fadeIn .6s ease-out}.filters-section[_ngcontent-%COMP%]{margin-bottom:2rem}.filters-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05)}.filters-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8f9fa,#dee2e6);padding:1.2rem 1.5rem;border-bottom:1px solid rgba(0,0,0,.05);cursor:pointer;display:flex;justify-content:space-between;align-items:center}.filters-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;color:#2d3748;font-size:1.1rem;font-weight:600}.filters-body[_ngcontent-%COMP%]{max-height:0;overflow:hidden;transition:max-height .3s ease-out;padding:0 1.5rem}.filters-body.expanded[_ngcontent-%COMP%]{max-height:1000px;transition:max-height .5s ease-in;padding:1.5rem}.sort-section[_ngcontent-%COMP%]{background:#f8f9fa;border-radius:8px;padding:1rem;margin-bottom:2rem}.sort-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.75rem}.sort-item[_ngcontent-%COMP%]{background:#f8f9fa;border:2px solid #e2e8f0;border-radius:8px;padding:.75rem;text-align:center;cursor:pointer;transition:all .3s ease;font-weight:500;color:#4a5568}.sort-item[_ngcontent-%COMP%]:hover{background:#42a5f5;border-color:#42a5f5;color:#fff;transform:translateY(-1px)}.checkbox-filters[_ngcontent-%COMP%]{margin-bottom:1.5rem}
1.checkbox-filters[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{margin:0 0 1rem;color:#2d3748;font-size:1rem;font-weight:600}.checkbox-group[_ngcontent-%COMP%]{display:flex;gap:1.5rem;flex-wrap:wrap}.checkbox-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.checkbox-item[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:18px;height:18px;cursor:pointer;accent-color:#42a5f5}.checkbox-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{cursor:pointer;font-weight:500;color:#4a5568}.signals-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem;margin-bottom:2rem}.signal-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);transition:transform .3s ease,box-shadow .3s ease}.signal-card[_ngcontent-%COMP%]:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,.15)}.signal-header[_ngcontent-%COMP%]{padding:1.5rem;background:linear-gradient(135deg,#f8f9fa,#e9ecef);border-bottom:1px solid rgba(0,0,0,.05)}.signal-title[_ngcontent-%COMP%]{margin-bottom:1.25rem}.signal-title[_ngcontent-%COMP%] .signal-link[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:700;color:#2d3748;text-decoration:underline;-webkit-text-decoration-color:#42a5f5;text-decoration-color:#42a5f5;text-underline-offset:3px;transition:all .3s ease;display:inline-block}.signal-title[_ngcontent-%COMP%] .signal-link[_ngcontent-%COMP%]:hover{color:#42a5f5;-webkit-text-decoration-color:#42a5f5;text-decoration-color:#42a5f5;text-decoration-thickness:2px;transform:translateY(-1px)}.signal-meta[_ngcontent-%COMP%]{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.5rem!important}.signal-meta[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:.25rem .75rem;border-radius:20px;font-size:.85rem;font-weight:500}.signal-meta[_ngcontent-%COMP%] .weeks[_ngcontent-%COMP%]{background:#e3f2fd;color:#1976d2}.signal-meta[_ngcontent-%COMP%] .type[_ngcontent-%COMP%]{background:#fff3e0;color:#f57c00}.signal-meta[_ngcontent-%COMP%] .terminal[_ngcontent-%COMP%]{background:#e8f5e8;color:#388e3c}.signal-user[_ngcontent-%COMP%] .user-link[_ngcontent-%COMP%]{color:#42a5f5;font-weight:600;text-decoration:underline;-webkit-text-decoration-color:#42a5f5;text-decoration-color:#42a5f5;text-underline-offset:2px;transition:all .3s ease;display:inline-block}.signal-user[_ngcontent-%COMP%] .user-link[_ngcontent-%COMP%]:hover{color:#26a69a;-webkit-text-decoration-color:#26a69a;text-decoration-color:#26a69a;text-decoration-thickness:2px;transform:translateY(-1px)}.signal-product[_ngcontent-%COMP%]{padding:1rem 1.5rem;border-bottom:1px solid rgba(0,0,0,.05);overflow:hidden}.signal-product[_ngcontent-%COMP%] .product-link[_ngcontent-%COMP%]{color:#4a5568;font-weight:500;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}.signal-product[_ngcontent-%COMP%] .product-link[_ngcontent-%COMP%]:hover{color:#42a5f5}@media (max-width:768px){.container[_ngcontent-%COMP%], .signals-content[_ngcontent-%COMP%]{padding:0}.filters-card[_ngcontent-%COMP%]{background:transparent;border-radius:0;box-shadow:none;border:none;padding:0}.filters-header[_ngcontent-%COMP%]{padding:1rem 0;margin-bottom:.5rem}.filters-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1rem}.sort-item[_ngcontent-%COMP%]{font-size:.8rem}.checkbox-filters[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-size:.9rem}.filters-body[_ngcontent-%COMP%]{padding:0;display:none}.filters-body.expanded[_ngcontent-%COMP%]{display:block}.checkbox-item[_ngcontent-%COMP%], .checkbox-item[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.8rem}.sort-section[_ngcontent-%COMP%]{padding:1rem 0;margin:0 0 1rem}.signals-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1rem;padding:0}.signal-card[_ngcontent-%COMP%]{background:#fff;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.1);padding:0;margin:0 .5rem}.signal-header[_ngcontent-%COMP%], .signal-product[_ngcontent-%COMP%]{padding:1rem}}.signal-product[_ngcontent-%COMP%] .source-button[_ngcontent-%COMP%]{display:inline-block;background:linear-gradient(135deg,#42a5f5,#2196f3);color:#fff;padding:.5rem 1rem;border-radius:8px;text-decoration:none;font-weight:500;transition:all .3s ease;box-shadow:0 2px 8px rgba(66,165,245,.3)}.signal-product[_ngcontent-%COMP%] .source-button[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#2196f3,#1976d2);transform:translateY(-1px);box-shadow:0 4px 12px rgba(66,165,245,.4);color:#fff;text-decoration:none}.signal-charts[_ngcontent-%COMP%]{padding:1rem;border-bottom:1px solid rgba(0,0,0,.05)}@media (max-width:768px){.signal-charts[_ngcontent-%COMP%]{padding:1rem}}.chart-row[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.chart-container[_ngcontent-%COMP%], .detail-container[_ngcontent-%COMP%]{background:#f8f9fa;border-radius:8px;padding:1rem;min-height:200px;max-height:300px;display:flex;align-items:center;justify-content:center;overflow:hidden;width:100%;margin:0 auto}.chart-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .detail-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{width:100%!important;height:100%!important;transform:scale(.9);transform-origin:center center;margin:0 auto;text-align:center}.detail-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{transform:scale(1.1)}.chart-container[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%], .chart
1-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .chart-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%], .detail-container[_ngcontent-%COMP%] canvas[_ngcontent-%COMP%], .detail-container[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .detail-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain;margin:0 auto;display:block}.signal-stats[_ngcontent-%COMP%]{padding:1.5rem}@media (max-width:768px){.signal-stats[_ngcontent-%COMP%]{padding:1rem}}.stats-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem}.stat-item[_ngcontent-%COMP%]{text-align:center;padding:.75rem;background:#f8f9fa;border-radius:8px;transition:all .3s ease}.stat-item[_ngcontent-%COMP%]:hover{background:#e9ecef;transform:translateY(-1px)}.stat-label[_ngcontent-%COMP%]{display:block;font-size:.8rem;color:#6c757d;margin-bottom:.25rem;font-weight:500}.stat-value[_ngcontent-%COMP%]{display:block;font-size:1rem;font-weight:700;color:#2d3748}.stat-value.positive[_ngcontent-%COMP%]{color:#28a745}.stat-value.negative[_ngcontent-%COMP%]{color:#dc3545}.back-section[_ngcontent-%COMP%]{text-align:center;margin:2rem 0}.back-button[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#26a69a);border:none;border-radius:12px;padding:1rem 2rem;color:#fff;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px rgba(66,165,245,.3);display:inline-flex;align-items:center;gap:.5rem}.back-button[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#2196f3,#00897b);transform:translateY(-2px);box-shadow:0 6px 16px rgba(66,165,245,.4)}@media (max-width:1024px){.signals-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.chart-container[_ngcontent-%COMP%], .detail-container[_ngcontent-%COMP%]{min-height:160px;max-height:280px}.chart-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .detail-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{transform:scale(.7)}}@media (max-width:768px){.page-header[_ngcontent-%COMP%]{padding:1rem;margin-bottom:1rem}.page-title[_ngcontent-%COMP%]{font-size:1.2rem!important}.filters-body[_ngcontent-%COMP%]{padding:1rem}.sort-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.5rem}.checkbox-group[_ngcontent-%COMP%]{flex-direction:column;gap:.75rem}.signal-charts[_ngcontent-%COMP%], .signals-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}.stats-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:.75rem}.signal-stats[_ngcontent-%COMP%]{padding:1rem}.stat-item[_ngcontent-%COMP%]{padding:.5rem}.stat-label[_ngcontent-%COMP%]{font-size:.7rem}.stat-value[_ngcontent-%COMP%]{font-size:.9rem}.chart-container[_ngcontent-%COMP%], .detail-container[_ngcontent-%COMP%]{min-height:120px;max-height:150px;padding:.5rem}.chart-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{transform:scale(.55)}.detail-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{transform:scale(.7)}.signal-product[_ngcontent-%COMP%]{padding:.75rem 1rem}.signal-product[_ngcontent-%COMP%] .source-button[_ngcontent-%COMP%]{font-size:.8rem;text-align:center;padding:.4rem .8rem;background:linear-gradient(135deg,#42a5f5,#2196f3);color:#fff;border-radius:8px;border:1px solid #e2e8f0;display:inline-block;text-decoration:none;font-weight:500;transition:all .3s ease;box-shadow:0 2px 8px rgba(66,165,245,.3)}.signal-product[_ngcontent-%COMP%] .source-button[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#2196f3,#1976d2);color:#fff;border-color:#42a5f5;transform:translateY(-1px);box-shadow:0 4px 12px rgba(66,165,245,.4);text-decoration:none}}@media (max-width:480px){.page-title[_ngcontent-%COMP%]{font-size:1.2rem}.page-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.filters-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1rem}.signal-title[_ngcontent-%COMP%] .signal-link[_ngcontent-%COMP%]{font-size:1.1rem;text-decoration:underline;-webkit-text-decoration-color:#42a5f5;text-decoration-color:#42a5f5;text-underline-offset:2px}.signal-meta[_ngcontent-%COMP%]{gap:.5rem}.signal-meta[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:.2rem .5rem;font-size:.75rem}.chart-row[_ngcontent-%COMP%]{gap:.5rem}.signal-charts[_ngcontent-%COMP%]{padding:.5rem}.signal-stats[_ngcontent-%COMP%]{padding:.75rem}.stats-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);gap:.4rem}.stat-item[_ngcontent-%COMP%]{padding:.4rem}.stat-label[_ngcontent-%COMP%]{font-size:.65rem}.stat-value[_ngcontent-%COMP%]{font-size:.8rem}.chart-container[_ngcontent-%COMP%], .detail-container[_ngcontent-%COMP%]{min-height:100px;max-height:130px;padding:.25rem}.chart-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{transform:scale(.4)}.detail-container[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{transform:scale(.5)}}"],changeDetection:0}),Jz),nV=((Zz=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||Zz)},Zz.\u0275cmp=c.Xb({type:Zz,selectors:[["app-privacy"]],decls:3,vars:3,consts:[[1,"container"],[3,"innerHTML"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.ec(1,"div",1),c.yc(2,"translate"),c.ic()),2&e&&(c.Pb(1),c.Dc("innerHTML",c.zc(2,1,"privacy.text"),c.Rc))},pipes:[jc],styles:["@media only screen and (min-width:1200px){div[_ngcontent-%COMP%]{font-family:
1Franklin Gothic Medium,Arial Narrow,Arial,sans-serif;font-size:15px;padding:10px}}@media only screen and (max-width:1200px){div[_ngcontent-%COMP%]{font-family:Franklin Gothic Medium,Arial Narrow,Arial,sans-serif;font-size:12px;padding:10px}}"],data:{animation:[Zw]}}),Zz),iV=((Kz=function(){function e(t,n,i){_classCallCheck(this,e),this.route=t,this.router=n,this.authService=i}return _createClass(e,[{key:"ngOnInit",value:function(){var e=this;this.route.queryParams.subscribe(function(t){var n=t.access_token;n?(e.authService.processLoginResponse({access_token:n,refresh_token:t.refresh_token,expires_in:+t.expires_in||3600,token_type:t.token_type||"Bearer"},!0),e.router.navigate(["/"])):e.router.navigate(["/login"])})}}]),e}()).\u0275fac=function(e){return new(e||Kz)(c.dc(zb),c.dc(fw),c.dc(bD))},Kz.\u0275cmp=c.Xb({type:Kz,selectors:[["app-auth-success"]],decls:2,vars:0,template:function(e,t){1&e&&(c.jc(0,"p"),c.ad(1,"\u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0447\u0435\u0440\u0435\u0437 Google... \u041f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435..."),c.ic())},encapsulation:2}),Kz),rV=((Qz=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,r){var a;return _classCallCheck(this,n),(a=t.call(this,i,r)).configurations=e,a}return _createClass(n,[{key:"apiUrl",get:function(){return"".concat(this.configurations.baseUrl,"/api/license")}},{key:"getAll",value:function(){var e=this;return this.http.get("".concat(this.apiUrl,"/all"),this.requestHeaders).pipe(Object(Cy.a)(function(t){return e.handleError(t,function(){return e.getAll()})}))}},{key:"update",value:function(e){var t=this;return this.http.put("".concat(this.apiUrl,"/").concat(e.id),e,this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.update(e)})}))}},{key:"deactivate",value:function(e){var t=this;return this.http.delete("".concat(this.apiUrl,"/").concat(e),this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.deactivate(e)})}))}},{key:"updateVersions",value:function(e){var t=this;return this.http.post("".concat(this.apiUrl,"/update-versions"),e,this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.updateVersions(e)})}))}},{key:"create",value:function(e){var t=this;return this.http.post("".concat(this.apiUrl,"/create"),e,this.requestHeaders).pipe(Object(Cy.a)(function(n){return t.handleError(n,function(){return t.create(e)})}))}}]),n}(OD)).\u0275fac=function(e){return new(e||Qz)(c.qc(ak),c.qc($l.b),c.qc(bD))},Qz.\u0275prov=c.Zb({token:Qz,factory:Qz.\u0275fac,providedIn:"root"}),Qz);function aV(e,t){if(1&e){var n=c.kc();c.jc(0,"div",21),c.jc(1,"div",22),c.jc(2,"div",23),c.jc(3,"h3"),c.ec(4,"i",24),c.ad(5," Create New License"),c.ic(),c.ic(),c.jc(6,"div",25),c.jc(7,"div",26),c.jc(8,"div",27),c.jc(9,"label"),c.ad(10),c.yc(11,"translate"),c.ic(),c.jc(12,"input",28),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().newUsername=e}),c.yc(13,"translate"),c.ic(),c.ic(),c.jc(14,"div",27),c.jc(15,"label"),c.ad(16),c.yc(17,"translate"),c.ic(),c.jc(18,"input",29),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().newEmail=e}),c.yc(19,"translate"),c.ic(),c.ic(),c.jc(20,"div",27),c.jc(21,"label"),c.ad(22),c.yc(23,"translate"),c.ic(),c.jc(24,"input",30),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().newProductName=e}),c.ic(),c.ic(),c.jc(25,"div",27),c.jc(26,"label"),c.ad(27),c.yc(28,"translate"),c.ic(),c.jc(29,"input",28),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().newProductVersion=e}),c.yc(30,"translate"),c.ic(),c.ic(),c.jc(31,"div",27),c.jc(32,"label"),c.ad(33),c.yc(34,"translate"),c.ic(),c.jc(35,"input",31),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().newMaxAccounts=e}),c.ic(),c.ic(),c.jc(36,"div",27),c.jc(37,"button",32),c.tc("click",function(){return c.Qc(n),c.xc().createLicense()}),c.yc(38,"translate"),c.ec(39,"i",33),c.ad(40),c.yc(41,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(42,"div",22),c.jc(43,"div",23),c.jc(44,"h3"),c.ec(45,"i",34),c.ad(46," Bulk Update"),c.ic(),c.ic(),c.jc(47,"div",25),c.jc(48,"div",26),c.jc(49,"div",27),c.jc(50,"label"),c.ad(51),c.yc(52,"translate"),c.ic(),c.jc(53,"input",28),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().bulkProductName=e}),c.yc(54,"translate"),c.ic(),c.ic(),c.jc(55,"div",27),c.jc(56,"label"),c.ad(57),c.yc(58,"translate"),c.ic(),c.jc(59,"input",28),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().bulkProductVersion=e}),c.yc(60,"translate"),c.ic(),c.ic(),c.jc(61,"div",27),c.jc(62,"button",35),c.tc("click",function(){return c.Qc(n),c.xc().bulkUpdateVersions()}),c.ad(63),c.yc(64,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(10),c.bd(c.zc(11,22,"licenseManagement.UsernameLabel")),c.Pb(2),c.Ec("placeholder",c.zc(13,24,"licenseManagement.OrSpecifyEmail")),c.Dc("ngModel",i.newUsername),c.Pb(4),c.bd(c.zc(17,26,"licenseManagement.EmailLabel")),c.Pb(2),c.Ec("placeholder",c.zc(19,28,"licenseManagement.OrSpecifyUsername")),c.Dc("ngModel",i.newEmail),c.Pb(4),c.bd(c.zc(23,30,"licenseManagement.ProductLabel")),c.Pb(2),c.Dc("ngModel",i.newProductName),c.Pb(3),c.bd(c.zc(28,32,"licenseManagement.ProductVersionLabel")),c.Pb(2),c.Ec("placeholder",c.zc(30,34,"licenseManagement.ExampleVersion")),c.Dc("ngModel",i.newProductVersion),c.Pb(4),c.bd(c.zc(34,36,"licenseManagement.MaxAccountsLabel")),c.Pb(2),c.Dc("ngModel",i.newMaxAccounts),c.Pb(2),c.Ec("title",c.zc(38,38,"licenseManagement.CreateLicenseButton")),c.Pb(3),c.cd(" ",c.zc(41,40,"licenseManagement.CreateLicenseButton")," "),c.Pb(11),c.bd(c.zc(52,42,"licenseManagement.BulkProductLabel")),c.Pb(2),c.Ec("placeholder",c.zc(54,44,"licenseManagement.ExactProductName")),c.Dc("ngModel",i.bulkProductName),c.Pb(4),c.bd(c.zc(58,46,"licenseManagement.NewVersionLabel")),c.Pb(2),c.Ec("placeholder",c.zc(60,48,"licenseManagement.ExampleVersion")),c.Dc("ngModel",i.bulkProductVersion),c.Pb(4),c.bd(c.zc(64,50,"licenseManagement.ApplyToAllButton"))}}function oV(e,t){if(1&e&&(c.jc(0,"div",36),c.jc(1,"div",37),c.ec(2,"i",38),c.jc(3,"span"),c.ad(4),c.ic(),c.ic(),c.ic()),2&e){var n=c.xc();c.Pb(4),c.bd(n.errorMessage)}}function sV(e,t){1&e&&(c.ad(0),c.yc(1,"translate")),2&e&&c.cd(" ",t.row.expirationDate||c.zc(1,1,"licenseManagement.Unlimited")," ")}function lV(e,t){if(1&e){var n=c.kc();c.jc(0,"div",40),c.jc(1,"button",41),c.tc("click",function(){var e=c.Qc(n).row;return c.xc(2).editLicense(e)}),c.yc(2,"translate"),c.ec(3,"i",42),c.ic(),c.jc(4,"button",43),c.tc("click",function(){var e=c.Qc(n).row;return c.xc(2).deactivateLicense(e)}),c.yc(5,"translate"),c.ec(6,"i",44),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Ec("title",c.zc(2,2,"licenseManagement.EditTitle")),c.Pb(3),c.Ec("title",c.zc(5,4,"licenseManagement.DeactivateTitle")))}function cV(e,t){1&e&&(c.jc(0,"ngx-datatable-column",39),c.yc(1,"translate"),c.Yc(2,lV,7,6,"ng-template",16),c.ic()),2&e&&(c.Ec("name",c.zc(1,3,"licenseManagement.ActionsColumn")),c.Dc("width",110)("sortable",!1))}function uV(e,t){if(1&e){var n=c.kc();c.jc(0,"div",45),c.tc("click",function(){return c.Qc(n),c.xc().selectedLicense=null}),c.jc(1,"div",46),c.tc("click",function(e){return e.stopPropagation()}),c.jc(2,"div",47),c.jc(3,"h3"),c.ec(4,"i",42),c.ad(5),c.yc(6,"translate"),c.ic(),c.jc(7,"button",48),c.tc("click",function(){return c.Qc(n),c.xc().selectedLicense=null}),c.ec(8,"i",49),c.ic(),c.ic(),c.jc(9,"form",50,51),c.tc("ngSubmit",function(){return c.Qc(n),c.xc().saveLicense()}),c.jc(11,"div",52),c.jc(12,"label"),c.ad(13),c.yc(14,"translate"),c.ic(),c.jc(15,"input",53),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().selectedLicense.productName=e}),c.ic(),c.ic(),c.jc(16,"div",52),c.jc(17,"label"),c.ad(18),c.yc(19,"translate"),c.ic(),c.jc(20,"input",54),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().selectedLicense.productVersion=e}),c.ic(),c.ic(),c.jc(21,"div",52),c.jc(22,"label"),c.ad(23),c.yc(24,"translate"),c.ic(),c.jc(25,"input",55),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().selectedLicense.expirationDate=e}),c.ic(),c.ic(),c.jc(26,"div",52),c.jc(27,"label"),c.ad(28),c.yc(29,"translate"),c.ic(),c.jc(30,"input",56),c.tc("ngModelChange",function(e){return c.Qc(n),c.xc().selectedLicense.maxAccounts=e}),c.ic(),c.ic(),c.jc(31,"div",57),c.jc(32,"button",58),c.ad(33),c.yc(34,"translate"),c.ic(),c.jc(35,"button",59),c.tc("click",function(){return c.Qc(n),c.xc().selectedLicense=null}),c.ad(36),c.yc(37,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()}if(2&e){var i=c.xc();c.Pb(5),c.cd(" ",c.zc(6,11,"licenseManagement.EditLicenseModalTitle"),""),c.Pb(8),c.bd(c.zc(14,13,"licenseManagement.ProductModalLabel")),c.Pb(2),c.Dc("ngModel",i.selectedLicense.productName),c.Pb(3),c.bd(c.zc(19,15,"licenseManagement.VersionModalLabel")),c.Pb(2),c.Dc("ngModel",i.selectedLicense.productVersion),c.Pb(3),c.bd(c.zc(24,17,"licenseManagement.ExpirationModalLabel")),c.Pb(2),c.Dc("ngModel",i.selectedLicense.expirationDate),
1c.Pb(3),c.bd(c.zc(29,19,"licenseManagement.MaxAccountsModalLabel")),c.Pb(2),c.Dc("ngModel",i.selectedLicense.maxAccounts),c.Pb(3),c.bd(c.zc(34,21,"licenseManagement.SaveButton")),c.Pb(3),c.bd(c.zc(37,23,"licenseManagement.CancelButton"))}}var dV,hV,fV,pV,mV,gV,vV,yV=((pV=function(){function e(t,n){_classCallCheck(this,e),this.licenseService=t,this.authService=n,this.licenses=[],this.selectedLicense=null,this.newMaxAccounts=1,this.newUsername="",this.newEmail="",this.newProductName="",this.newProductVersion="",this.bulkProductName="",this.bulkProductVersion="",this.errorMessage="",this.isAdmin=!1,this.columns=[{name:"\u041a\u043b\u044e\u0447",prop:"licenseKey",width:250,resizeable:!0},{name:"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c",prop:"userName",width:150},{name:"\u041f\u0440\u043e\u0434\u0443\u043a\u0442",prop:"productName",width:150},{name:"\u0412\u0435\u0440\u0441\u0438\u044f",prop:"productVersion",width:100},{name:"\u0421\u0440\u043e\u043a \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f",width:140},{name:"\u041c\u0430\u043a\u0441. \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432",prop:"maxAccounts",width:120},{name:"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e",prop:"usedSlots",width:120}]}return _createClass(e,[{key:"ngOnInit",value:function(){var e,t;this.isAdmin=(null===(t=null===(e=this.authService.currentUser)||void 0===e?void 0:e.roles)||void 0===t?void 0:t.filter(function(e){return"administrator"==e}).length)>0,this.isAdmin&&this.columns.push({name:"\u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044f",width:110,sortable:!1}),this.loadLicenses()}},{key:"loadLicenses",value:function(){var e=this;this.licenseService.getAll().subscribe(function(t){return e.licenses=t})}},{key:"editLicense",value:function(e){this.isAdmin&&(this.selectedLicense=Object.assign({},e))}},{key:"saveLicense",value:function(){var e,t,n=this;this.selectedLicense&&((null===(e=this.selectedLicense.productName)||void 0===e?void 0:e.trim())?(null===(t=this.selectedLicense.productVersion)||void 0===t?void 0:t.toString().trim())?this.licenseService.update(this.selectedLicense).subscribe(function(){n.selectedLicense=null,n.loadLicenses()}):alert("\u041f\u043e\u043b\u0435 \u0412\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e"):alert("\u041f\u043e\u043b\u0435 \u041f\u0440\u043e\u0434\u0443\u043a\u0442 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e"))}},{key:"bulkUpdateVersions",value:function(){var e,t,n=this;(null===(e=this.bulkProductName)||void 0===e?void 0:e.trim())&&(null===(t=this.bulkProductVersion)||void 0===t?void 0:t.trim())?confirm('\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 "'.concat(this.bulkProductName,'" \u0434\u043e \u0432\u0435\u0440\u0441\u0438\u0438 ').concat(this.bulkProductVersion,"?"))&&this.licenseService.updateVersions({productName:this.bulkProductName,productVersion:this.bulkProductVersion}).subscribe(function(){n.loadLicenses(),n.bulkProductName="",n.bulkProductVersion="",n.errorMessage=""},function(e){var t,i;n.errorMessage=(null===(t=e.error)||void 0===t?void 0:t.message)||(null===(i=e.error)||void 0===i?void 0:i.Message)||"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u0432\u0435\u0440\u0441\u0438\u0439"}):this.errorMessage="\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0438 \u0432\u0435\u0440\u0441\u0438\u044e \u0434\u043b\u044f \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f"}},{key:"deactivateLicense",value:function(e){var t=this;this.isAdmin&&confirm("\u041f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438?")&&this.licenseService.deactivate(e.id).subscribe(function(){return t.loadLicenses()})}},{key:"createLicense",value:function(){var e=this;this.errorMessage="",this.newUsername.trim()||this.newEmail.trim()?this.newProductName.trim()?this.newProductVersion.trim()?this.licenseService.create({username:this.newUsername,email:this.newEmail,productName:this.newProductName,productVersion:this.newProductVersion,maxAccounts:this.newMaxAccounts}).subscribe(function(){e.loadLicenses(),e.newMaxAccounts=1,e.newUsername="",e.newEmail
1="",e.newProductName="",e.newProductVersion=""},function(t){var n,i;e.errorMessage=(null===(n=t.error)||void 0===n?void 0:n.message)||(null===(i=t.error)||void 0===i?void 0:i.Message)||"\u041e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0438"}):this.errorMessage="\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0435\u0440\u0441\u0438\u044e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 (\u0444\u043e\u0440\u043c\u0430\u0442: 1.2.0)":this.errorMessage="\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442":this.errorMessage="\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438\u043b\u0438 email"}}]),e}()).\u0275fac=function(e){return new(e||pV)(c.dc(rV),c.dc(bD))},pV.\u0275cmp=c.Xb({type:pV,selectors:[["app-license-management"]],decls:34,vars:46,consts:[[1,"container"],[1,"page-header"],[1,"page-header-content"],[1,"page-title"],[1,"page-subtitle"],["class","admin-controls",4,"ngIf"],["class","error-alert",4,"ngIf"],[1,"table-container"],[1,"table-header"],[1,"fas","fa-key"],[1,"bootstrap","table-grid",3,"rows","columns","columnMode","headerHeight","footerHeight","rowHeight","scrollbarH"],["prop","licenseKey",3,"name","width","resizeable"],["prop","userName",3,"name","width"],["prop","productName",3,"name","width"],["prop","productVersion",3,"name","width"],[3,"name","width"],["ngx-datatable-cell-template",""],["prop","maxAccounts",3,"name","width"],["prop","usedSlots",3,"name","width"],[3,"name","width","sortable",4,"ngIf"],["class","modal-overlay",3,"click",4,"ngIf"],[1,"admin-controls"],[1,"controls-card"],[1,"controls-header"],[1,"fas","fa-plus-circle"],[1,"controls-body"],[1,"row","g-2"],[1,"col-12"],["type","text",1,"form-control","input-sm","w-100",3,"ngModel","placeholder","ngModelChange"],["type","email",1,"form-control","input-sm","w-100",3,"ngModel","placeholder","ngModelChange"],["type","text",1,"form-control","input-sm","w-100",3,"ngModel","ngModelChange"],["type","number","min","1",1,"form-control","input-sm","w-100",3,"ngModel","ngModelChange"],[1,"btn","btn-success","btn-sm","w-100",3,"title","click"],[1,"fas","fa-plus"],[1,"fas","fa-sync-alt"],[1,"btn","btn-warning","btn-sm","w-100",3,"click"],[1,"error-alert"],[1,"alert-content"],[1,"fas","fa-exclamation-triangle"],[3,"name","width","sortable"],[1,"btn-group"],[1,"btn","btn-sm","btn-primary",3,"title","click"],[1,"fas","fa-edit"],[1,"btn","btn-sm","btn-danger",3,"title","click"],[1,"fas","fa-ban"],[1,"modal-overlay",3,"click"],[1,"modal-card",3,"click"],[1,"modal-header"],[1,"modal-close",3,"click"],[1,"fas","fa-times"],[3,"ngSubmit"],["licenseForm","ngForm"],[1,"form-group"],["type","text","name","productName","required","",1,"form-control",3,"ngModel","ngModelChange"],["type","text","name","productVersion","required","",1,"form-control",3,"ngModel","ngModelChange"],["type","date","name","expirationDate",1,"form-control",3,"ngModel","ngModelChange"],["type","number","name","maxAccounts","min","1",1,"form-control",3,"ngModel","ngModelChange"],[1,"mt-3","text-end"],["type","submit",1,"btn","btn-success","btn-sm"],["type","button",1,"btn","btn-secondary","btn-sm","ms-2",3,"click"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"header",1),c.jc(2,"div",2),c.jc(3,"h1",3),c.ad(4),c.yc(5,"translate"),c.ic(),c.jc(6,"div",4),c.ad(7),c.yc(8,"translate"),c.ic(),c.ic(),c.ic(),c.Yc(9,aV,65,52,"div",5),c.Yc(10,oV,5,1,"div",6),c.jc(11,"div",7),c.jc(12,"div",8),c.jc(13,"h3"),c.ec(14,"i",9),c.ad(15," Active Licenses"),c.ic(),c.ic(),c.jc(16,"ngx-datatable",10),c.ec(17,"ngx-datatable-column",11),c.yc(18,"translate"),c.ec(19,"ngx-datatable-column",12),c.yc(20,"translate"),c.ec(21,"ngx-datatable-column",13),c.yc(22,"translate"),c.ec(23,"ngx-datatable-column",14),c.yc(24,"translate"),c.jc(25,"ngx-datatable-column",15),c.yc(26,"translate"),c.Yc(27,sV,2,3,"ng-template",16),c.ic(),c.ec(28,"ngx-datatable-column",17),c.yc(29,"translate"),c.ec(30,"ngx-datatable-column",18),c.yc(31,"translate"),c.Yc(32,cV,3,5,"ngx-datatable-column",19),c.ic(),c.ic(),c.Yc(33,uV,38,25,"div",20),c.ic()),2&e&&(c.Pb(4),c.bd(c.zc(5,28,"licenseManagement.Title")),c.Pb(3),c.cd(" ",c.zc(8,30,"licenseManagement.subtitle")," "),c.Pb(2),c.Dc("ngIf",t.isAdmin),c.Pb(1),c.Dc("ngIf",t.errorMessage),c.Pb(6),c.Dc("rows",t.licenses)("columns",t.columns)("columnMode","force")("headerHeight",50)("footerHeight",50)("rowHeight","auto")("scrollbarH",!0),c.Pb(1),c.Ec("name",c.zc(18,32,"licenseManagement.KeyColumn")),c.Dc("width",250)("resizeable",!0),c.Pb(2),c.Ec("name",c.zc(20,34,"licenseManagement.UserColumn")),c.Dc("width",150),c.Pb(2),c.Ec("name",c.zc(22,36,"licenseManagement.ProductColumn")),c.Dc("width",150),c.Pb(2),c.Ec("name",c.zc(24,38,"licenseManagement.VersionColumn")),c.Dc("width",100),c.Pb(2),c.Ec("name",c.zc(26,40,"licenseManagement.ExpirationColumn")),c.Dc("width",140),c.Pb(3),c.Ec("name",c.zc(29,42,"licenseManagement.MaxAccountsColumn")),c.Dc("width",120),c.Pb(2),c.Ec("name",c.zc(31,44,"licenseManagement.UsedColumn")),c.Dc("width",120),c.Pb(2),c.Dc("ngIf",t.isAdmin),c.Pb(1),c.Dc("ngIf",t.selectedLicense&&t.isAdmin))},directives:[l.m,yh,Pd,Ed,Er,Zr,Fa,Ua,Ba,Ra,Jr,Ia,Wa],pipes:[jc],styles:['.page-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#26a69a);border-radius:16px;padding:1.2rem 1.5rem;margin-bottom:1.5rem;box-shadow:0 8px 20px rgba(0,0,0,.1);color:#fff;position:relative;overflow:hidden}.page-header[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>\');opacity:.3}.page-header-content[_ngcontent-%COMP%]{position:relative;z-index:1}.page-title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;margin-bottom:.6rem;text-shadow:0 2px 4px rgba(0,0,0,.3);animation:fadeInDown .8s ease-out}.page-subtitle[_ngcontent-%COMP%]{font-size:.95rem;opacity:.95;margin:0;animation:fadeInUp .8s ease-out .2s both}.license-content[_ngcontent-%COMP%]{animation:fadeIn .6s ease-out}.admin-controls[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;margin-bottom:2rem}.controls-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05);transition:transform .3s ease,box-shadow .3s ease}.controls-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,.15)}.controls-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8f9fa,#dee2e6);padding:1.2rem 1.5rem;border-bottom:1px solid rgba(0,0,0,.05)}.controls-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;color:#2d3748;font-size:1.1rem;font-weight:600;display:flex;align-items:center;gap:.5rem}.controls-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#42a5f5;font-size:1rem}
1.controls-body[_ngcontent-%COMP%]{padding:1.5rem}.controls-body[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin:0}.controls-body[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem;font-weight:600;color:#2d3748;font-size:.9rem}.controls-body[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{border:2px solid #e2e8f0;border-radius:8px;padding:.75rem;font-size:.95rem;transition:border-color .3s ease}.controls-body[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border-color:#42a5f5;box-shadow:0 0 0 3px rgba(66,165,245,.1);outline:none}.controls-body[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border-radius:8px;font-weight:600;padding:.75rem 1.5rem;transition:all .3s ease;border:none}.controls-body[_ngcontent-%COMP%] .btn.btn-success[_ngcontent-%COMP%]{background:linear-gradient(135deg,#28a745,#20c997);color:#fff;box-shadow:0 4px 12px rgba(40,167,69,.3)}.controls-body[_ngcontent-%COMP%] .btn.btn-success[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#218838,#1ea085);transform:translateY(-1px);box-shadow:0 6px 16px rgba(40,167,69,.4)}.controls-body[_ngcontent-%COMP%] .btn.btn-warning[_ngcontent-%COMP%]{background:linear-gradient(135deg,#ffc107,#ff9800);color:#212529;box-shadow:0 4px 12px rgba(255,193,7,.3)}.controls-body[_ngcontent-%COMP%] .btn.btn-warning[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#e0a800,#f57c00);transform:translateY(-1px);box-shadow:0 6px 16px rgba(255,193,7,.4)}.controls-body[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-right:.5rem}.error-alert[_ngcontent-%COMP%]{margin-bottom:2rem;animation:shake .5s ease-in-out}.alert-content[_ngcontent-%COMP%]{background:linear-gradient(135deg,#dc3545,#c82333);color:#fff;padding:1rem 1.5rem;border-radius:12px;display:flex;align-items:center;gap:.75rem;box-shadow:0 4px 12px rgba(220,53,69,.3)}.alert-content[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1.2rem}.alert-content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-weight:500}.table-container[_ngcontent-%COMP%]{background:#fff;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);overflow:hidden;border:1px solid rgba(0,0,0,.05)}.table-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f8f9fa,#dee2e6);padding:1.2rem 1.5rem;border-bottom:1px solid rgba(0,0,0,.05)}.table-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;color:#2d3748;font-size:1.1rem;font-weight:600;display:flex;align-items:center;gap:.5rem}.table-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#42a5f5;font-size:1rem}.table-responsive[_ngcontent-%COMP%]{overflow-x:auto;-webkit-overflow-scrolling:touch}.table-grid[_ngcontent-%COMP%] .datatable-body-cell, .table-grid[_ngcontent-%COMP%] .datatable-header-cell{border-right:1px solid #dee2e6!important;border-bottom:1px solid #dee2e6!important;padding:.75rem 1rem!important;vertical-align:middle}.table-grid[_ngcontent-%COMP%] .datatable-header-cell{background-color:#f8f9fa!important;font-weight:600;border-top:1px solid #dee2e6!important;text-align:center;color:#2d3748}.table-grid[_ngcontent-%COMP%] .datatable-body-row:last-child .datatable-body-cell{border-bottom:1px solid #dee2e6!important}.table-grid[_ngcontent-%COMP%] .datatable-body-row{transition:background-color .3s ease}.table-grid[_ngcontent-%COMP%] .datatable-body-row:hover{background-color:#f8f9fa!important}.btn-group[_ngcontent-%COMP%]{gap:.5rem}.btn-group[_ngcontent-%COMP%], .btn-group[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]{display:flex;justify-content:center}.btn-group[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]{width:36px;height:36px;padding:0;align-items:center;font-size:.85rem;border-radius:8px;border:none;cursor:pointer;transition:all .3s ease}.btn-group[_ngcontent-%COMP%] .btn-sm.btn-primary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#2196f3);color:#fff;box-shadow:0 2px 8px rgba(66,165,245,.3)}.btn-group[_ngcontent-%COMP%] .btn-sm.btn-primary[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#2196f3,#1976d2);transform:translateY(-1px);box-shadow:0 4px 12px rgba(66,165,245,.4)}.btn-group[_ngcontent-%COMP%] .btn-sm.btn-danger[_ngcontent-%COMP%]{background:linear-gradient(135deg,#dc3545,#c82333);color:#fff;box-shadow:0 2px 8px rgba(220,53,69,.3)}.btn-group[_ngcontent-%COMP%] .btn-sm.btn-danger[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#c82333,#bd2130);transform:translateY(-1px);box-shadow:0 4px 12px rgba(220,53,69,.4)}.modal-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:1050;padding:1rem;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .3s ease-out}.modal-card[_ngcontent-%COMP%]{background:#fff;border-radius:16px;width:100%;max-width:500px;box-shadow:0 20px 40px rgba(0,0,0,.2);animation:slideInUp .3s ease-out;overflow:hidden}.modal-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#26a69a);color:#fff;padding:1.2rem 1.5rem;justify-content:space-between}
1.modal-header[_ngcontent-%COMP%], .modal-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{display:flex;align-items:center}.modal-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;gap:.5rem}.modal-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:1rem}.modal-close[_ngcontent-%COMP%]{background:hsla(0,0%,100%,.2);border:none;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;transition:all .3s ease}.modal-close[_ngcontent-%COMP%]:hover{background:hsla(0,0%,100%,.3);transform:rotate(90deg)}.modal-close[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:.9rem}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{padding:1.5rem}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%]{margin-bottom:1.5rem}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;margin-bottom:.5rem;font-weight:600;color:#2d3748;font-size:.9rem}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{width:100%;padding:.75rem;border:2px solid #e2e8f0;border-radius:8px;font-size:.95rem;transition:border-color .3s ease}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .form-group[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]:focus{border-color:#42a5f5;box-shadow:0 0 0 3px rgba(66,165,245,.1);outline:none}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .text-end[_ngcontent-%COMP%]{text-align:right}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .ms-2[_ngcontent-%COMP%]{margin-left:.5rem}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{border-radius:8px;font-weight:600;padding:.75rem 1.5rem;transition:all .3s ease;border:none}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .btn.btn-success[_ngcontent-%COMP%]{background:linear-gradient(135deg,#28a745,#20c997);color:#fff;box-shadow:0 4px 12px rgba(40,167,69,.3)}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .btn.btn-success[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#218838,#1ea085);transform:translateY(-1px);box-shadow:0 6px 16px rgba(40,167,69,.4)}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .btn.btn-secondary[_ngcontent-%COMP%]{background:linear-gradient(135deg,#6c757d,#5a6268);color:#fff;box-shadow:0 4px 12px rgba(108,117,125,.3)}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .btn.btn-secondary[_ngcontent-%COMP%]:hover{background:linear-gradient(135deg,#5a6268,#495057);transform:translateY(-1px);box-shadow:0 6px 16px rgba(108,117,125,.4)}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideInUp{0%{opacity:0;transform:translateY(50px)}to{opacity:1;transform:translateY(0)}}@keyframes shake{0%,to{transform:translateX(0)}10%,30%,50%,70%,90%{transform:translateX(-5px)}20%,40%,60%,80%{transform:translateX(5px)}}@media (max-width:768px){.page-header[_ngcontent-%COMP%]{padding:1rem;margin-bottom:1rem}.page-title[_ngcontent-%COMP%]{font-size:1.2rem!important}.admin-controls[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:1rem}.controls-body[_ngcontent-%COMP%], .table-header[_ngcontent-%COMP%]{padding:1rem}.modal-card[_ngcontent-%COMP%]{max-width:95%}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%], .modal
1-header[_ngcontent-%COMP%]{padding:1rem}}@media (max-width:480px){.page-title[_ngcontent-%COMP%]{font-size:1.2rem}.page-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.controls-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .table-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:1rem}.btn-group[_ngcontent-%COMP%] .btn-sm[_ngcontent-%COMP%]{width:32px;height:32px;font-size:.8rem}}@media (prefers-color-scheme:dark){.controls-card[_ngcontent-%COMP%]{background:#37474f;border-color:hsla(0,0%,100%,.1)}.controls-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#455a64,#37474f)}.controls-body[_ngcontent-%COMP%] label[_ngcontent-%COMP%], .controls-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#f7fafc}.controls-body[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{background:#455a64;border-color:hsla(0,0%,100%,.2);color:#f7fafc}.table-container[_ngcontent-%COMP%]{background:#37474f;border-color:hsla(0,0%,100%,.1)}.table-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#455a64,#37474f)}.table-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{color:#f7fafc}.modal-card[_ngcontent-%COMP%]{background:#37474f}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#f7fafc}.modal-card[_ngcontent-%COMP%] form[_ngcontent-%COMP%] .form-control[_ngcontent-%COMP%]{background:#455a64;border-color:hsla(0,0%,100%,.2);color:#f7fafc}}']}),pV),bV=((fV=function(){function e(t,n){_classCallCheck(this,e),this.sanitizer=t,this.translationService=n,this.currentLanguage="ru",this.guideUrl=""}return _createClass(e,[{key:"scrollToTop",value:function(){var e=document.querySelector("iframe");e&&e.contentWindow&&e.contentWindow.scrollTo(0,0)}},{key:"ngOnInit",value:function(){this.detectLanguageFromSite(),this.updateGuideUrl(),this.startLanguageMonitoring()}},{key:"ngOnDestroy",value:function(){this.languageChangeSubscription&&this.languageChangeSubscription.unsubscribe(),this.languageCheckInterval&&clearInterval(this.languageCheckInterval)}},{key:"updateGuideUrl",value:function(){var e=window.location.hostname,t="".concat(window.location.protocol,"//").concat(e).concat(window.location.port?":".concat(window.location.port):"","/").concat("ru"===this.currentLanguage?"USER_GUIDE_RU.html":"USER_GUIDE_EN.html");console.log("Updating guide URL:",t,"for language:",this.currentLanguage),this.guideUrl=this.sanitizer.bypassSecurityTrustResourceUrl(t)}},{key:"detectLanguageFromSite",value:function(){var e=this.translationService.getCurrentLanguage();if(console.log("Current language from translation service:",e),e)this.currentLanguage=e.includes("ru")||"ru"===e?"ru":"en";else{var t=localStorage.getItem("binancebot-language");this.currentLanguage=!t||"ru"!==t&&"en"!==t?"en":t}console.log("Final detected language:",this.currentLanguage)}},{key:"startLanguageMonitoring",value:function(){var e=this;this.languageChangeSubscription=this.translationService.languageChanged$.subscribe(function(t){console.log("Language changed via translation service:",t);var n=e.currentLanguage;e.currentLanguage=t.includes("ru")||"ru"===t?"ru":"en",n!==e.currentLanguage&&(console.log("Language changed from",n,"to",e.currentLanguage),e.updateGuideUrl())}),this.languageCheckInterval=setInterval(function(){var t=e.currentLanguage;e.detectLanguageFromSite(),t!==e.currentLanguage&&(console.log("Language changed from",t,"to",e.currentLanguage),e.updateGuideUrl())},3e3)}}]),e}()).\u0275fac=function(e){return new(e||fV)(c.dc(z),c.dc(nk))},fV.\u0275cmp=c.Xb({type:fV,selectors:[["app-binancebot"]],decls:15,vars:7,consts:[[1,"binancebot-wrapper"],[1,"container"],[1,"page-header",3,"click"],[1,"page-header-content"],[1,"title-section"],[1,"emoji"],[1,"page-title"],[1,"page-subtitle"],[1,"iframe-container"],["frameborder","0","width","100%","height","100%","title","BinanceBot User Guide",3,"src"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"div",1),c.jc(2,"header",2),c.tc("click",function(){return t.scrollToTop()}),c.jc(3,"div",3),c.jc(4,"div",4),c.jc(5,"span",5),c.ad(6,"\ud83e\udd16"),c.ic(),c.jc(7,"h1",6),c.ad(8),c.yc(9,"translate"),c.ic(),c.ic(),c.jc(10,"div",7),c.ad(11),c.yc(12,"translate"),c.ic(),c.ic(),c.ic(),c.ic(),c.jc(13,"div",8),c.ec(14,"iframe",9),c.ic(),c.ic()),2&e&&(c.Pb(8),c.bd(c.zc(9,3,"pageHeader.BinanceBot")),c.Pb(3),c.cd(" ",c.zc(12,5,"binancebot.subtitle")," "),c.Pb(3),c.Dc("src",t.guideUrl,c.Sc))},pipes:[jc],styles:['.binancebot-wrapper[_ngcontent-%COMP%]{height:100vh;display:flex;flex-direction:column;background:#f8f9fa}.binancebot-wrapper[_ngcontent-%COMP%] > .container[_ngcontent-%COMP%]:first-child{flex-shrink:0;z-index:1001;padding:1rem 0}.page-header[_ngcontent-%COMP%]{background:linear-gradient(135deg,#42a5f5,#26a69a);border-radius:16px;padding:1.2rem 1.5rem;box-shadow:0 8px 20px rgba(0,0,0,.1);color:#fff;position:relative;overflow:hidden;cursor:pointer;transition:transform .3s ease,box-shadow .3s ease;&:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>\');opacity:.3}&:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(0,0,0,.15)}}.page-header-content[_ngcontent-%COMP%]{position:relative;z-index:1}.title-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.8rem;margin-bottom:.6rem}.emoji[_ngcontent-%COMP%]{font-size:2.2rem;animation:bounce 2s infinite}.page-title[_ngcontent-%COMP%]{font-size:1.6rem;font-weight:700;margin:0;text-shadow:0 2px 4px rgba(0,0,0,.3);animation:fadeInDown .8s ease-out}.page-subtitle[_ngcontent-%COMP%]{font-size:.95rem;opacity:.95;margin:0;animation:fadeInUp .8s ease-out .2s both;padding-left:3rem}.iframe-container[_ngcontent-%COMP%]{flex:1;position:relative;background:#fff;overflow:hidden;margin:1.5rem 0;border-radius:16px;box-shadow:0 8px 20px rgba(0,0,0,.08);border:1px solid rgba(0,0,0,.05);animation:slideInUp .5s ease-out .3s both}.iframe-container[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{width:100%;height:100%;border:none;display:block;border-radius:16px}@keyframes fadeInDown{0%{opacity:0;transform:translateY(-30px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInUp{0%{opacity:0;transform:translateY(50px)}to{opacity:1;transform:translateY(0)}}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-10px)}60%{transform:translateY(-5px)}}@media (max-width:768px){.binancebot-wrapper[_ngcontent-%COMP%]{height:100vh;overflow:hidden;position:fixed;top:0;left:0;right:0;bottom:0;padding-top:calc(50px + var(--safe-top, 0px))}.binancebot-wrapper[_ngcontent-%COMP%] > .container[_ngcontent-%COMP%]:first-child{padding:.8rem 0;flex-shrink:0}.page-header[_ngcontent-%COMP%]{padding:1rem;margin:0 .5rem}.title-section[_ngcontent-%COMP%]{gap:.6rem;margin-bottom:.4rem}.emoji[_ngcontent-%COMP%]{font-size:1.8rem}.page-title[_ngcontent-%COMP%]{font-size:1.2rem!important}.page-subtitle[_ngcontent-%COMP%]{font-size:.9rem;padding-left:2.4rem}.iframe-container[_ngcontent-%COMP%]{margin:1rem .5rem;flex:1;overflow:hidden}.iframe-container[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{overflow-y:auto;-webkit-overflow-scrolling:touch}}@media (max-width:480px){.binancebot-wrapper[_ngcontent-%COMP%]{height:100vh;overflow:hidden;position:fixed;top:0;left:0;right:0;bottom:0;padding-top:calc(50px + var(--safe-top, 0px))}.page-header[_ngcontent-%COMP%]{padding:.8rem;margin:0 .3rem}.title-section[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:.4rem}.emoji[_ngcontent-%COMP%]{font-size:1.6rem}.page-title[_ngcontent-%COMP%]{font-size:1.2rem}.page-subtitle[_ngcontent-%COMP%]{font-size:.85rem;padding-left:0}.iframe-container[_ngcontent-%COMP%]{margin:.8rem .3rem;flex:1;overflow:hidden}.iframe-container[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{overflow-y:auto;-webkit-overflow-scrolling:touch}}@media (prefers-color-scheme:dark){.binancebot-wrapper[_ngcontent-%COMP%]{background:#1a202c}.iframe-container[_ngcontent-%COMP%]{background:#2d3748;border-color:hsla(0,0%,100%,.1)}}']}
1),fV),_V=((hV=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"parse",value:function(e){var t,i=e.search(/[?;#]/);if(i>-1){var r=e.charAt(i),a=ek.splitInTwo(e,r);a.firstPart=a.firstPart.toLowerCase(),t=a.firstPart+r+a.secondPart}else t=e.toLowerCase();return _get(_getPrototypeOf(n.prototype),"parse",this).call(this,t)}}]),n}(_b)).\u0275fac=function(e){return(dV||(dV=c.lc(hV)))(e||hV)},hV.\u0275prov=c.Zb({token:hV,factory:hV.\u0275fac}),hV),wV=[{path:"",redirectTo:"/monitoring",pathMatch:"full"},{path:"auth-success",component:iV,data:{title:"Google Authentication Success - ForexVisible"}},{path:"reset",component:aN,data:{title:"Password Reset - ForexVisible AI Trading"}},{path:"register",component:mz,data:{title:"Register - ForexVisible Trading Platform"}},{path:"customers",component:oN,canActivate:[vz],data:{title:"Customers - ForexVisible Dashboard"}},{path:"products",component:DN,data:{title:"AI Trading Robots & Forex Algorithms - ForexVisible"}},{path:"signalsmql5",component:tV,data:{title:"MQL5 Trading Signals - ForexVisible"}},{path:"orders",component:TN,canActivate:[vz],data:{title:"Trading Orders - ForexVisible Platform"}},{path:"settings",component:tz,canActivate:[vz],data:{title:"Account Settings - ForexVisible"}},{path:"about",component:nz,data:{title:"About ForexVisible - AI Trading Platform"}},{path:"privacy",component:nV,data:{title:"Privacy Policy - ForexVisible"}},{path:"instruction",component:Fz,data:{title:"Trading Instructions - ForexVisible Guide"}},{path:"signals",component:Bz,data:{title:"Live Trading Signals - ForexVisible AI"}},{path:"binancebot",component:bV,data:{title:"BinanceBot - Automated Crypto Trading - ForexVisible"}},{path:"monitoring",component:aN,data:{title:"Real-time Trading Monitoring - ForexVisible"}},{path:"licenses",component:yV,canActivate:[vz],data:{title:"License Management - ForexVisible"}},{path:"**",component:gz,data:{title:"404 - Page Not Found - ForexVisible"}}],kV=((gV=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||gV)},gV.\u0275mod=c.bc({type:gV}),gV.\u0275inj=c.ac({providers:[bD,vz,{provide:bb,useClass:_V}],imports:[[Ow.forRoot(wV)],Ow]}),gV),CV=((mV=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"handleError",value:function(e){e.message&&e.message.includes("Permissions")?console.warn("YouTube Permissions API error handled:",e.message):e.message&&e.message.includes("ytembeds")?console.warn("YouTube embed error handled:",e.message):console.error("Application error:",e)}}]),e}()).\u0275fac=function(e){return new(e||mV)},mV.\u0275prov=c.Zb({token:mV,factory:mV.\u0275fac}),mV),xV=["indexTemplate"],SV=["userNameTemplate"],MV=["rolesTemplate"],DV=["actionsTemplate"],TV=["editorModal"],EV=["userEditor"],AV=function(){return{backdrop:"static"}},PV=((vV=function(){function e(t,n,i,r){var a=this;_classCallCheck(this,e),this.appComponent=t,this.alertService=n,this.translationService=i,this.accountService=r,this.columns=[],this.rows=[],this.rowsCache=[],this.allRoles=[],t.myeventReset.subscribe(function(e){return a.showReset(e)})}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"showReset",value:function(e){this.resetUser(e)}},{key:"ngAfterViewInit",value:function(){var e=this;this.userEditor.changesSavedCallback=function(){e.addNewUserToList(),e.editorModal.hide()},this.userEditor.changesCancelledCallback=function(){e.editedUser=null,e.sourceUser=null,e.editorModal.hide()}}},{key:"addNewUserToList",value:function(){if(this.sourceUser){Object.assign(this.sourceUser,this.editedUser);var e=this.rowsCache.indexOf(this.sourceUser,0);e>-1&&ek.moveArrayItem(this.rowsCache,e,0),(e=this.rows.indexOf(this.sourceUser,0))>-1&&ek.moveArrayItem(this.rows,e,0),this.editedUser=null,this.sourceUser=null}else{var t=new vD;Object.assign(t,this.editedUser),this.editedUser=null;var n,i=0,r=_createForOfIteratorHelper(this.rowsCache);try{for(r.s();!(n=r.n()).done;){var a=n.value;a.index>i&&(i=a.index)}}catch(o){r.e(o)}finally{r.f()}t.index=i+1,this.rowsCache.splice(0,0,t),this.rows.splice(0,0,t),this.rows=_toConsumableArray(this.rows)}}},{key:"loadData",value:function(){this.loadingIndicator=!0}},{key:"onDataLoadSuccessful",value:function(e,t){this.alertService.stopLoadingMessage(),this.loadingIndicator=!1,e.forEach(function(e,t){e.index=t+1}),this.rowsCache=_toConsumableArray(e),this.rows=e,this.allRoles=t}},{key:"onDataLoadFailed",value:function(e){this.alertService.stopLoadingMessage(),this.loadingIndicator=!1,this.alertService.showStickyMessage("Load Error",'Unable to retrieve users from the server.\r\nErrors: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)}},{key:"onSearchChanged",value:function(e){this.rows=this.rowsCache.filter(function(t){return ek.searchArray(e,!1,t.userName,t.fullName,t.email,t.ph
1oneNumber,t.jobTitle,t.roles)})}},{key:"onEditorModalHidden",value:function(){this.editingUserName=null,this.userEditor.resetForm(!0)}},{key:"newUser",value:function(){this.editingUserName=null,this.sourceUser=null,this.editedUser=this.userEditor.newUser(this.allRoles),this.editorModal.show()}},{key:"resetUser",value:function(e){this.userEditor.resetPassword=e,this.editingUserName=null,this.sourceUser=null,this.editedUser=this.userEditor.registerUser(this.allRoles),this.editorModal.show()}},{key:"editUser",value:function(e){this.editingUserName={name:e.userName},this.sourceUser=e,this.editedUser=this.userEditor.editUser(e,this.allRoles),this.editorModal.show()}},{key:"deleteUser",value:function(e){var t=this;this.alertService.showDialog('Are you sure you want to delete "'+e.userName+'"?',LM.confirm,function(){return t.deleteUserHelper(e)})}},{key:"deleteUserHelper",value:function(e){var t=this;this.alertService.startLoadingMessage("Deleting..."),this.loadingIndicator=!0,this.accountService.deleteUser(e).subscribe(function(n){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.rowsCache=t.rowsCache.filter(function(t){return t!==e}),t.rows=t.rows.filter(function(t){return t!==e})},function(e){t.alertService.stopLoadingMessage(),t.loadingIndicator=!1,t.alertService.showStickyMessage("Delete Error",'An error occured whilst deleting the user.\r\nError: "'.concat(ek.getHttpResponseMessages(e),'"'),OM.error,e)})}},{key:"canAssignRoles",get:function(){return this.accountService.userHasPermission(pD.assignRolesPermission)}},{key:"canViewRoles",get:function(){return this.accountService.userHasPermission(pD.viewRolesPermission)}},{key:"canManageUsers",get:function(){return this.accountService.userHasPermission(pD.manageUsersPermission)}}]),e}()).\u0275fac=function(e){return new(e||vV)(c.dc(qT),c.dc(PM),c.dc(nk),c.dc(HD))},vV.\u0275cmp=c.Xb({type:vV,selectors:[["reset-password"]],viewQuery:function(e,t){var n;1&e&&(c.ed(xV,7),c.ed(SV,7),c.ed(MV,7),c.ed(DV,7),c.ed(TV,7),c.ed(EV,7)),2&e&&(c.Mc(n=c.uc())&&(t.indexTemplate=n.first),c.Mc(n=c.uc())&&(t.userNameTemplate=n.first),c.Mc(n=c.uc())&&(t.rolesTemplate=n.first),c.Mc(n=c.uc())&&(t.actionsTemplate=n.first),c.Mc(n=c.uc())&&(t.editorModal=n.first),c.Mc(n=c.uc())&&(t.userEditor=n.first))},decls:16,vars:7,consts:[["bsModal","","tabindex","-1",1,"modal","fade",3,"config","onHidden"],["editorModal","bs-modal"],[1,"modal-dialog","modal
1-lg"],[1,"modal-content"],[1,"modal-header"],[1,"modal-title","float-left"],[1,"fa","fa-user-plus"],["type","button","title","Close",1,"close","float-right",3,"click"],["aria-hidden","true"],[1,"modal-body"],[3,"isGeneralEditor","isResetPassword"],["userEditor",""]],template:function(e,t){if(1&e){var n=c.kc();c.jc(0,"div"),c.jc(1,"div",0,1),c.tc("onHidden",function(){return t.onEditorModalHidden()}),c.jc(3,"div",2),c.jc(4,"div",3),c.jc(5,"div",4),c.jc(6,"h4",5),c.ec(7,"i",6),c.ad(8),c.yc(9,"translate"),c.ic(),c.jc(10,"button",7),c.tc("click",function(){return c.Qc(n),c.Nc(2).hide()}),c.jc(11,"span",8),c.ad(12,"\xd7"),c.ic(),c.ic(),c.ic(),c.jc(13,"div",9),c.ec(14,"app-user-info",10,11),c.ic(),c.ic(),c.ic(),c.ic(),c.ic()}2&e&&(c.Pb(1),c.Dc("config",c.Gc(6,AV)),c.Pb(7),c.cd(" ",c.zc(9,4,"users.management.ResetPassword"),""),c.Pb(6),c.Dc("isGeneralEditor",!0)("isResetPassword",!0))},directives:[_g,UB],pipes:[jc],styles:[".user-role[_ngcontent-%COMP%]{font-size:.8em!important;margin-right:1px}.control-box[_ngcontent-%COMP%]{margin-bottom:5px}.search-box[_ngcontent-%COMP%]{margin:0}.nav-item.toolbaritem[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding-top:3px;padding-bottom:3px;min-width:100px}.user-disabled[_ngcontent-%COMP%]{color:#777;font-style:italic}.locked-out[_ngcontent-%COMP%]{background-color:#ff4500;color:#f5f5f5;width:100%;display:inline-block;padding-left:5px}"]}),vV);n("12HJ"),window.Smart?window.Smart.RenderMode="manual":window.Smart={RenderMode:"manual"};var LV=function(){function e(t){_classCallCheck(this,e),this.onCreate=new c.s,this.onReady=new c.s,this.onAttach=new c.s,this.onDetach=new c.s;var n=this;this.nativeElement=t.nativeElement,n.nativeElement.onAttached=function(){n.onAttach.emit(n.nativeElement)},n.nativeElement.onDetached=function(){n.onDetach.emit(n.nativeElement)}}return _createClass(e,[{key:"addEventListener",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.nativeElement.addEventListener(e,t,n)}},{key:"removeEventListener",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.nativeElement.removeEventListener(e,t,n)}},{key:"dispatchEvent",value:function(e){return this.nativeElement.dispatchEvent(e)}},{key:"blur",value:function(){this.nativeElement.blur()}},{key:"click",value:function(){this.nativeElement.click()}},{key:"focus",value:function(e){this.nativeElement.focus(e)}},{key:"locale",get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)}},{key:"localizeFormatFunction",get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)}},{key:"messages",get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)}},{key:"rightToLeft",get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)}},{key:"theme",get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)}}]),e}();LV.\u0275fac=function(e){c.sc()},LV.\u0275dir=c.Yb({type:LV,inputs:{locale:"locale",localizeFormatFunction:"localizeFormatFunction",messages:"messages",rightToLeft:"rightToLeft",theme:"theme"},outputs:{onCreate:"onCreate",onReady:"onReady",onAttach:"onAttach",onDetach:"onDetach"}}),Object(Rc.b)([Object(c.L)()],LV.prototype,"onCreate",void 0),Object(Rc.b)([Object(c.L)()],LV.prototype,"onReady",void 0),Object(Rc.b)([Object(c.L)()],LV.prototype,"onAttach",void 0),Object(Rc.b)([Object(c.L)()],LV.prototype,"onDetach",void 0),Object(Rc.b)([Object(c.A)()],LV.prototype,"locale",null),Object(Rc.b)([Object(c.A)()],LV.prototype,"localizeFormatFunction",null),Object(Rc.b)([Object(c.A)()],LV.prototype,"messages",null),Object(Rc.b)([Object(c.A)()],LV.prototype,"rightToLeft",null),Object(Rc.b)([Object(c.A)()],LV.prototype,"theme",null);var OV=window.Smart,IV=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).eventHandlers=[],i.onCollapse=new c.s,i.onCollapsing=new c.s,i.onDragEnd=new c.s,i.onDragStart=new c.s,i.onExpand=new c.s,i.onExpanding=new c.s,i.nativeElement=e.nativeElement,i}return _createClass(n,[{key:"createComponent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in this.nativeElement=document.createElement("smart-accordion"),e)this.nativeElement[t]=e[t];return this.nativeElement}},{key:"animation",get:function(){return this.nativeElement?this.nativeElement.animation:void 0},set:function(e){this.nativeElement&&(this.nativeElement.animation=e)}},{key:"dataSource",get:function(){return this.nativeElement?this.nativeElement.dataSource:void 0},set:function(e){this.nativeElement&&(this.nativeElement.dataSource=e)}},{key:"disabled",get:function(){return this.nativeElement?this.nativeElement.disabled:void 0},set:function(e){this.nativeElement&&(this.nativeElement.disabled=e)}},{key:"expandedIndexes",get:function(){return this.nativeElement?this.nativeElement.expandedIndexes:void 0},set:function(e){this.nativeElement&&(this.nativeElement.expandedIndexes=e)}},{key:"expandMode",get:function(){return this.nativeElement?this.nativeElement.expandMode:void 0},set:function(e){this.nativeElement&&(this.nativeElement.expandMode=e)}},{key:"locale",get:function(){return this.nativeElement?this.nativeElement.locale:void 0},set:function(e){this.nativeElement&&(this.nativeElement.locale=e)}},{key:"localizeFormatFunction",get:function(){return this.nativeElement?this.nativeElement.localizeFormatFunction:void 0},set:function(e){this.nativeElement&&(this.nativeElement.localizeFormatFunction=e)}},{key:"messages",get:function(){return this.nativeElement?this.nativeElement.messages:void 0},set:function(e){this.nativeElement&&(this.nativeElement.messages=e)}},{key:"readonly",get:function(){return this.nativeElement?this.nativeElement.readonly:void 0},set:function(e){this.nativeElement&&(this.nativeElement.readonly=e)}},{key:"reorder",get:function(){return this.nativeElement?this.nativeElement.reorder:void 0},set:function(e){this.nativeElement&&(this.nativeElement.reorder=e)}},{key:"rightToLeft",get:function(){return this.nativeElement?this.nativeElement.rightToLeft:void 0},set:function(e){this.nativeElement&&(this.nativeElement.rightToLeft=e)}},{key:"theme",get:function(){return this.nativeElement?this.nativeElement.theme:void 0},set:function(e){this.nativeElement&&(this.nativeElement.theme=e)}},{key:"unfocusable",get:function(){return this.nativeElement?this.nativeElement.unfocusable:void 0},set:function(e){this.nativeElement&&(this.nativeElement.unfocusable=e)}},{key:"collapse",value:function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.collapse(e):this.nativeElement.whenRendered(function(){t.nativeElement.collapse(e)})}},{key:"expand",value:function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.expand(e):this.nativeElement.whenRendered(function(){t.nativeElement.expand(e)})}},{key:"insert",value:function(e,t){var n=this;this.nativeElement.isRendered?this.nativeElement.insert(e,t):this.nativeElement.whenRendered(function(){n.nativeElement.insert(e,t)})}},{key:"removeAt",value:function(e){var t=this;this.nativeElement.isRendered?this.nativeElement.removeAt(e):this.nativeElement.whenRendered(function(){t.nativeElement.removeAt(e)})}},{key:"update",value:function(e,t){var n=this;this.nativeElement.isRendered?this.nativeElement.update(e,t):this.nativeElement.whenRendered(function(){n.nativeElement.update(e,t)})}},{key:"isRendered",get:function(){return!!this.nativeElement&&this.nativeElement.isRendered}},{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this;e.onCreate.emit(e.nativeElement),OV.Render(),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered(function(){e.onReady.emit(e.nativeElement)}),this.listen()}},{key:"ngOnDestroy",value:function(){this.unlisten()}},{key:"ngOnChanges",value:function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)}},{key:"listen",value:function(){var e=this;e.eventHandlers.collapseHandler=function(t){e.onCollapse.emit(t)},e.nativeElement.addEventListener("collapse",e.eventHandlers.collapseHandler),e.eventHandlers.collapsingHandler=function(t){e.onCollapsing.emit(t)},e.nativeElement.addEventListener("collapsing",e.eventHandlers.collapsingHandler),e.eventHandlers.dragEndHandler=function(t){e.onDragEnd.emit(t)},e.nativeElement.addEventListener("dragEnd",e.eventHandlers.dragEndHandler),e.eventHandlers.dragStartHandler=function(t){e.onDragStart.emit(t)},e.nativeElement.addEventListener("dragStart",e.eventHandlers.dragStartHandler),e.eventHandlers.expandHandler=function(t){e.onExpand.emit(t)},e.nativeElement.addEventListener("expand",e.eventHandlers.expandHandler),e.eventHandlers.expandingHandler=function(t){e.onExpanding.emit(t)},e.nativeElement.addEventListener("expanding",e.eventHandlers.expandingHandler)}},{key:"unlisten",value:function(){this.eventHandlers.collapseHandler&&this.nativeElement.removeEventListener("collapse",this.eventHandlers.collapseHandler),this.eventHandlers.collapsingHandler&&this.nativeElement.removeEventListener("collapsing",this.eventHandlers.collapsingHandler),this.eventHandlers.dragEndHandler&&this.nativeElement.removeEventListener("dragEnd",this.eventHandlers.dragEndHandler),this.eventHandlers.dragStartHandler&&this.nativeElement.removeEventListener("dragStart",this.eventHandlers.dragStartHandler),this.eventHandlers.expandHandler&&this.nativeElement.removeEventListener("expand",this.eventHandlers.expandHandler),this.eventHandlers.expandingHandler&&this.nativeElement.removeEventListener("expanding",this.eventHandlers.expandingHandler)}}]),n}(LV);IV.\u0275fac=function(e){return new(e||IV)(c.dc(c.q))},IV.\u0275dir=c.Yb({type:IV,selectors:[["smart-accordion"],["","smart-accordion",""]],inputs:{animation:"animation",dataSource:"dataSource",disabled:"disabled",expandedIndexes:"expandedIndexes",expandMode:"expandMode",locale:"locale",localizeFormatFunction:"localizeFormatFunction",messages:"messages",readonly:"readonly",reorder:"reorder",rightToLeft:"rightToLeft",theme:"theme",unfocusable:"unfocusable"},outputs:{onCollapse:"onCollapse",onCollapsing:"onCollapsing",onDragEnd:"onDragEnd",onDragStart:"onDragStart",onExpand:"onExpand",onExpanding:"onExpanding"},features:[c.Mb,c.Nb]}),IV.ctorParameters=function(){return[{type:c.q}]},Object(Rc.b)([Object(c.A)()],IV.prototype,"animation",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"dataSource",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"disabled",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"expandedIndexes",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"expandMode",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"locale",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"localizeFormatFunction",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"messages",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"readonly",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"reorder",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"rightToLeft",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"theme",null),Object(Rc.b)([Object(c.A)()],IV.prototype,"unfocusable",null),Object(Rc.b)([Object(c.L)()],IV.prototype,"onCollapse",void 0),Object(Rc.b)([Object(c.L)()],IV.prototype,"onCollapsing",void 0),Object(Rc.b)([Object(c.L)()],IV.prototype,"onDragEnd",void 0),Object(Rc.b)([Object(c.L)()],IV.prototype,"onDragStart",void 0),Object(Rc.b)([Object(c.L)()],IV.prototype,"onExpand",void 0),Object(Rc.b)([Object(c.L)()],IV.prototype,"onExpanding",void 0);var HV=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this,e)).eventHandlers=[],i.onCollapse=new c.s,i.onExpand=new c.s,i.nativeElement=e.nativeElement,i}return _createClass(n,[{key:"createComponent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in this.nativeElement=document.createElement("smart-accordion-item"),e)this.nativeElement[t]=e[t];return this.nativeElement}},{key:"arrow",get:function(){return this.nativeElement?this.nativeElement.arrow:void 0},set:function(e){this.nativeElement&&(this.nativeElement.arrow=e)}},{key:"content",get:function(){return this.nativeElement?this.nativeElement.content:void 0},set:function(e){this.nativeElement&&(this.nativeElement.content=e)}},{key:"expanded",get:function(){return this.nativeElement?this.nativeElement.expanded:void 0},set:function(e){this.nativeElement&&(this.nativeElement.expanded=e)}},{key:"focused",get:function(){return this.nativeElement?this.nativeElement.focused:void 0},set:function(e){this.nativeElement&&(this.nativeElement.focused=e)}},{key:"label",get:function(){return this.nativeElement?this.nativeElement.label:void 0},set:function(e){this.nativeElement&&(this.nativeElement.label=e)}},{key:"isRendered",get:function(){return!!this.nativeElement&&this.nativeElement.isRendered}},{key:"ngOnInit",value:function(){}},{key:"ngAfterViewInit",value:function(){var e=this;e.onCreate.emit(e.nativeElement),this.nativeElement.classList.add("smart-angular"),this.nativeElement.whenRendered(function(){e.onReady.emit(e.nativeElement)}),this.listen()}},{key:"ngOnDestroy",value:function(){this.unlisten()}},{key:"ngOnChanges",value:function(e){if(this.nativeElement&&this.nativeElement.isRendered)for(var t in e)e.hasOwnProperty(t)&&(this.nativeElement[t]=e[t].currentValue)}},{key:"listen",value:function(){var e=this;e.eventHandlers.collapseHandler=function(t){e.onCollapse.emit(t)},e.nativeElement.addEventListener("collapse",e.eventHandlers.collapseHandler),e.eventHandlers.expandHandler=function(t){e.onExpand.emit(t)},e.nativeElement.addEventListener("expand",e.eventHandlers.expandHandler)}},{key:"unlisten",value:function(){this.eventHandlers.collapseHandler&&this.nativeElement.removeEventListener("collapse",this.eventHandlers.collapseHandler),this.eventHandlers.expandHandler&&this.nativeElement.removeEventListener("expand",this.eventHandlers.expandHandler)}}]),n}(LV);HV.\u0275fac=function(e){return new(e||HV)(c.dc(c.q))},HV.\u0275dir=c.Yb({type:HV,selectors:[["smart-accordion-item"],["","smart-accordion-item",""]],inputs:{arrow:"arrow",content:"content",expanded:"expanded",focused:"focused",label:"label"},outputs:{onCollapse:"onCollapse",onExpand:"onExpand"},features:[c.Mb,c.Nb]}),HV.ctorParameters=function(){return[{type:c.q}]},Object(Rc.b)([Object(c.A)()],HV.prototype,"arrow",null),Object(Rc.b)([Object(c.A)()],HV.prototype,"content",null),Object(Rc.b)([Object(c.A)()],HV.prototype,"expanded",null),Object(Rc.b)([Object(c.A)()],HV.prototype,"focused",null),Object(Rc.b)([Object(c.A)()],HV.prototype,"label",null),Object(Rc.b)([Object(c.L)()],HV.prototype,"onCollapse",void 0),Object(Rc.b)([Object(c.L)()],HV.prototype,"onExpand",void 0);var jV=function e(){_classCallCheck(this,e)};jV.\u0275fac=function(e){return new(e||jV)},jV.\u0275mod=c.bc({type:jV}
1),jV.\u0275inj=c.ac({});var FV,RV=((FV=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||FV)},FV.\u0275mod=c.bc({type:FV}),FV.\u0275inj=c.ac({imports:[[l.c]]}),FV);function NV(e,t){if(1&e&&(c.jc(0,"div",7),c.ec(1,"div",8),c.ic()),2&e){var n=c.xc();c.Pb(1),c.Xc("width",n.progress,"%")}}var BV,YV,zV=((YV=function(){function e(){_classCallCheck(this,e),this.isLoading=!1,this.message="",this.showProgress=!1,this.progress=0}return _createClass(e,[{key:"ngOnInit",value:function(){}},{key:"ngOnDestroy",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||YV)},YV.\u0275cmp=c.Xb({type:YV,selectors:[["app-loading-spinner"]],inputs:{isLoading:"isLoading",message:"message",showProgress:"showProgress",progress:"progress"},decls:11,vars:4,consts:[[1,"loading-overlay"],[1,"loading-content"],[1,"modern-spinner-container"],[1,"modern-spinner"],[1,"loading-text"],["class","progress-container",4,"ngIf"],[1,"loading-dots"],[1,"progress-container"],[1,"progress-bar"]],template:function(e,t){1&e&&(c.jc(0,"div",0),c.jc(1,"div",1),c.jc(2,"div",2),c.ec(3,"div",3),c.jc(4,"div",4),c.ad(5),c.ic(),c.ic(),c.Yc(6,NV,2,2,"div",5),c.jc(7,"div",6),c.ec(8,"span"),c.ec(9,"span"),c.ec(10,"span"),c.ic(),c.ic(),c.ic()),2&e&&(c.Vb("active",t.isLoading),c.Pb(5),c.bd(t.message||"Loading..."),c.Pb(1),c.Dc("ngIf",t.showProgress))},directives:[l.m],styles:['.loading-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.8);display:flex;align-items:center;justify-content:center;z-index:9999;opacity:0;visibility:hidden;transition:all .3s ease-in-out;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}.loading-overlay.active[_ngcontent-%COMP%]{opacity:1;visibility:visible}.loading-content[_ngcontent-%COMP%]{text-align:center;color:#fff;z-index:10}.modern-spinner-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:20px}.modern-spinner[_ngcontent-%COMP%]{width:60px;height:60px;position:relative;animation:spinnerRotate 2s linear infinite}.modern-spinner[_ngcontent-%COMP%]:after, .modern-spinner[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;border-radius:50%;border:3px solid transparent}.modern-spinner[_ngcontent-%COMP%]:before{border-top-color:#667eea;animation:spinnerPulse 1.5s ease-in-out infinite}.modern-spinner[_ngcontent-%COMP%]:after{border-bottom-color:rgba(102,126,234,.6);animation:spinnerPulse 1.5s ease-in-out .5s infinite}.loading-text[_ngcontent-%COMP%]{font-size:16px;font-weight:300;letter-spacing:1px;animation:fadeInUp .8s ease-out}.progress-container[_ngcontent-%COMP%]{width:200px;height:3px;background:hsla(0,0%,100%,.2);margin:15px auto 0}.progress-bar[_ngcontent-%COMP%], .progress-container[_ngcontent-%COMP%]{border-radius:2px;overflow:hidden;position:relative}.progress-bar[_ngcontent-%COMP%]{height:100%;background:linear-gradient(90deg,#667eea,#764ba2);transition:width .3s ease-in-out}.progress-bar[_ngcontent-%COMP%]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,transparent,hsla(0,0%,100%,.6),transparent);animation:shimmer 1.5s infinite}.loading-dots[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:center;align-items:center;height:30px;margin-top:15px}.loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:8px;height:8px;background:#667eea;border-radius:50%;display:inline-block;animation:dotBounce 1.4s ease-in-out infinite both}.loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:first-child{animation-delay:-.32s}.loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2){animation-delay:-.16s}.loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){animation-delay:0s}@keyframes spinnerRotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spinnerPulse{0%,to{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.7}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes dotBounce{0%,80%,to{transform:scale(.8);opacity:.5}40%{transform:scale(1.2);opacity:1}}@keyframes shimmer{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}@media (max-width:768px){.modern-spinner[_ngcontent-%COMP%]{width:50px;height:50px}.loading-text[_ngcontent-%COMP%]{font-size:14px}.progress-container[_ngcontent-%COMP%]{width:150px}.loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:6px;height:6px}}@media (max-width:480px){.modern-spinner[_ngcontent-%COMP%]{width:40px;height:40px}.modern-spinner[_ngcontent-%COMP%]:after, .modern-spinner[_ngcontent-%COMP%]:before{border-width:2px}.loading-text[_ngcontent-%COMP%]{font-size:12px}.progress-container[_ngcontent-%COMP%]{width:120px}.loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{width:5px;height:5px}}@media (prefers-reduced-motion:reduce){.loading-dots[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .modern-spinner[_ngcontent-%COMP%], .modern-spinner[_ngcontent-%COMP%]:after, .modern-spinner[_ngcontent-%COMP%]:before, .progress-bar[_ng
1content-%COMP%]:after{animation:none}.modern-spinner[_ngcontent-%COMP%]:before{border-top-color:#667eea;border-width:4px}}']}),YV),VV=((BV=function e(){_classCallCheck(this,e)}).\u0275fac=function(e){return new(e||BV)},BV.\u0275mod=c.bc({type:BV,bootstrap:[qT]}),BV.\u0275inj=c.ac({providers:[{provide:c.r,useClass:CV},PM,rk,sD,FM,ak,nT,nk,tT,eT,HD,ID,tk,yD,aT,fD,rV,sN],imports:[[G,po,Lo,Gj,qi,Az,$l.c,eo,vy,kV,ql,Ul,Fc.forRoot({loader:{provide:dc,useClass:ik}}),Hh,jh.a.forRoot(),lf.forRoot(),nm,Tg.forRoot(),Eg.forRoot(),Lg.forRoot(),Gg.forRoot(),kg.forRoot(),JT,jV,Xv,RV]]}),BV);c.Uc(qT,[rf,zV,yl,mw,l.m,ho,Zr,Fa,ww,gR,kw,mz,PV,_g,AD,VD],[jc]);var UV=localStorage.getItem("themeId"),$V=localStorage.getItem("language");if((UV||$V)&&(document.documentElement.style.opacity="0",document.documentElement.style.transition="opacity 0.3s ease"),UV){var WV=parseInt(UV,10),qV={1:"assets/themes/bootstrap.css",2:"assets/themes/cosmo.css",3:"assets/themes/lumen.css",4:"assets/themes/cerulean.css",5:"assets/themes/minty.css",6:"assets/themes/sketchy.css",7:"assets/themes/slate.css",8:"assets/themes/flatly.css",9:"assets/themes/pulse.css",10:"assets/themes/spacelab.css",11:"assets/themes/united.css",12:"assets/themes/journal.css",13:"assets/themes/superhero.css",14:"assets/themes/solar.css"};if(qV[WV]){var GV=document.createElement("link");GV.rel="stylesheet",GV.href=qV[WV],GV.className="style-manager-theme",document.head.appendChild(GV)}}$V&&(document.documentElement.lang=$V),setTimeout(function(){document.documentElement.style.opacity="1"},100);var XV=console.error;console.error=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t[0];"string"==typeof i&&(i.includes("Failed to execute 'query' on 'Permissions'")||i.includes("Illegal invocation")||i.includes("ytembeds"))||XV.apply(console,t)},window.addEventListener("error",function(e){if(e.message&&(e.message.includes("Failed to execute 'query' on 'Permissions'")||e.message.includes("Illegal invocation")||e.message.includes("ytembeds")))return e.preventDefault(),!1}),Object(c.fb)(),W().bootstrapModule(VV).catch(function(e){return console.error(e)})},zn8P:function(e,t){function n(e){return Promise.resolve().then(function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"},zx2A:function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return l});var i=n("7o/Q"),r=n("HDdC"),a=n("SeVD"),o=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var i;return _classCallCheck(this,n),(i=t.call(this)).parent=e,i}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),n}(i.a),s=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),n}(i.a);function l(e,t){if(!t.closed){if(e instanceof r.a)return e.subscribe(t);var n;try{n=Object(a.a)(e)(t)}catch(i){t.error(i)}return n}}},zx6S:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var a,o=t.words[i];return 1===i.length?"y"===i&&n?"jedna godina":r||n?o[0]:o[1]:(a=t.correctGrammaticalCase(e,o),"yy"===i&&n&&"godinu"===a?e+" godina":e+" "+a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n("wd/R"))}},[[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.